Ticket #53974: dvips.patch

File dvips.patch, 2.7 KB (added by slewsys (Andrew L. Moore), 7 years ago)

Patch texk/dvipsk/color.c. Fixes ticket #53974

  • tex/texlive-bin/Portfile

    diff --git a/tex/texlive-bin/Portfile b/tex/texlive-bin/Portfile
    index f225430ebf..32f4149e8c 100644
    a b PortGroup muniversal 1.0 
    1010
    1111name            texlive-bin
    1212version         2016
    13 revision        6
     13revision        7
    1414
    1515categories      tex
    1616maintainers     dports
    patchfiles-append patch-texk_chktex_Makefile.in.diff \ 
    8181                   patch-texk_tex4htk_Makefile.in.diff \
    8282                   patch-texk_texlive_linked_scripts_Makefile.in.diff \
    8383                   patch-texk_texlive_tl_scripts_Makefile.in.diff \
    84                    patch-texk_xdvik_xdvi-sh.in.diff
    85                    
     84                   patch-texk_xdvik_xdvi-sh.in.diff \
     85                   patch-texk_dvipsk_color.c.diff
     86
    8687# patches to luajit/luajittex's config scripts to correctly detect
    8788# architecture in universal builds
    8889patchfiles-append  patch-libs_luajit_configure.diff \
    configure.args --bindir=${texlive_bindir} \ 
    181182# It appears to be specific to Xcode 4.6, but there's no harm in
    182183# silencing the warning for all versions of clang.
    183184post-patch {
    184     if {[string match *clang* ${configure.compiler}]} { 
     185    if {[string match *clang* ${configure.compiler}]} {
    185186        reinplace "/^WARNING_CFLAGS =/s/$/ -Wno-invalid-source-encoding/" ${worksrcpath}/texk/makejvf/Makefile.in
    186187    }
    187188}
    post-destroot { 
    219220    # Not sure why this gets installed into the wrong location, but
    220221    # fix it here.
    221222    move ${destroot}${prefix}/lib/kpathsea/c-auto.h ${destroot}${prefix}/include/kpathsea/c-auto.h
    222    
     223
    223224    # Anything that gets installed into texmf-dist will be installed
    224225    # by one of the texmf ports
    225226    delete ${destroot}${prefix}/share/texmf-dist
    post-destroot { 
    227228
    228229    # Do not install symlinks to scripts that we don't install
    229230    delete ${destroot}${texlive_bindir}/latexmk
    230     delete ${destroot}${texlive_bindir}/tlmgr   
     231    delete ${destroot}${texlive_bindir}/tlmgr
    231232
    232233    # install the tlpkg/TeXLive perl module
    233234    xinstall -d ${destroot}${prefix}/share/tlpkg
  • new file tex/texlive-bin/files/patch-texk_dvipsk_color.c.diff

    diff --git a/tex/texlive-bin/files/patch-texk_dvipsk_color.c.diff b/tex/texlive-bin/files/patch-texk_dvipsk_color.c.diff
    new file mode 100644
    index 0000000000..9a994f236c
    - +  
     1--- texk/dvipsk/color.c~        2017-06-04 12:20:31.000000000 -0400
     2+++ texk/dvipsk/color.c 2017-06-04 12:20:58.000000000 -0400
     3@@ -37,7 +37,7 @@
     4    struct colorpage *next;
     5    integer boploc; /* we use the bop loc as a page indicator */
     6    char *bg;
     7-   char colordat[2];
     8+   char *colordat[2];
     9 } *colorhash[COLORHASH];
     10 static char *cstack, *csp, *cend, *bg;
     11 /*