Re: system header leakage in texlive

Jack Howarth <[email protected]>
Newsgroups gmane.os.apple.fink.devel
Message-ID <CAP5Ds0AGVEhY=n--8BXKFGKXvKe6V5JiJ3KP10TrSpcYiDNA_g@mail.gmail.com>
    I suspect that the breakage of the texlive build when flag-sort is
used may be exposing the
usage of libs/poppler/poppler-0.25.2 during the build despite the
--with-system-poppler passed
to configure.

On Sun, Jan 25, 2015 at 3:26 PM, Jack Howarth <[email protected]> wrote:
> Tomoaki,
>       The upgrade of freetype219 to 2.5.5 has exposed the fact that
> current texlive build is leaking system headers into the build over
> the fink headers. The 10.7 build currently fails with…
>
> gcc -DHAVE_CONFIG_H -I. -I../../../texk/pxdvik
> -I../../../texk/pxdvik/gui -DPS_GS -I/sw/include  -I/sw/include
> -I/usr/X11R6/include  -I/sw/include/freetype2   -I/sw/include
> -Wimplicit -Wreturn-type -Wdeclaration-after-statement
> -Wno-unknown-pragmas -g -O2 -MT ft2.o -MD -MP -MF .deps/ft2.Tpo -c -o
> ft2.o ../../../texk/pxdvik/ft2.c
> In file included from ../../../texk/pxdvik/ft2.c:7:
> /usr/X11R6/include/ft2build.h:56:10: fatal error:
> 'freetype/config/ftheader.h' file not found
> #include <freetype/config/ftheader.h>
>          ^
>
> This is due to a flaw in the
> ptexlive/archive/xdvik-20090903-texlive2009.diff.xz which places the
> FREETYPE2_INCLUDES after the common_includes that contains
> -I/usrX11R6/include. The trivial workaround for the moment is…
>
> --- texlive.info.orig 2015-01-25 15:18:51.000000000 -0500
> +++ texlive.info 2015-01-25 15:18:15.000000000 -0500
> @@ -71,6 +71,7 @@
>   cp -R texlive-20120701-source/texk/xdvik texlive/texk/xdvik.2012
>   cp -R texlive-20120701-source/libs/t1lib texlive/libs/
>   xz -dc ptexlive/archive/xdvik-20090903-texlive2009.diff.xz \
> + | sed -e 's|\$(common_includes)
> \$(FREETYPE2_INCLUDES)|\$(FREETYPE2_INCLUDES) \$(common_includes)|g' \
>       > xdvik-20090903-texlive2009.diff
>   gzip -dc xdvik-20090903-texlive2009_2012.patch.gz | patch -p0
>   xz -c xdvik-20090903-texlive2009.diff \
>
> which allows the build of texlive-base on 10.7 to complete.
>      We do seem to have other header leakages in the texlive build
> though which are exposed when…
>
> SetCC: flag-sort -r gcc
> SetCXX: flag-sort -r g++
>
> is added to the info file. This results on both 10.7 and 10.10 in the
> build failure…
>
> ./../../texk/web2c/luatexdir/lua/lepdflib.cc:579:1: error: assigning
> to 'Object *' from incompatible type 'StructTreeRoot *'
> m_poppler_get_poppler(Catalog, Object, getStructTreeRoot);
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../../texk/web2c/luatexdir/lua/lepdflib.cc:207:7: note: expanded
> from macro 'm_poppler_get_poppler'
>     o = ((in *) uin->d)->function();                           \
>       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ../../../texk/web2c/luatexdir/lua/lepdflib.cc:2165:13: error:
> assigning to 'Object *' from incompatible type 'StructTreeRoot *'
>         obj = ((PdfDocument *) uin->d)->doc->getStructTreeRoot();
>             ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flag-sort -r g++ -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./w2c
> -I/sw/include  -I/sw/include/libpng16  -DPOPPLER_VERSION=\"0.26.2\"
> -I/sw/include/poppler  -I../../../texk/web2c/libmd5 -DpdfTeX
> -I../../../texk/web2c/luatexdir
> -DSYNCTEX_ENGINE_H='<synctex-luatex.h>'
> -I../../../texk/web2c/synctexdir
> -I/sw/src/fink.build/texlive-0.20140523-1/texlive/Work/libs/luajit/include
> -DLUAJIT_ENABLE_LUA52COMPAT -DLuajitTeX
> -I../../../texk/web2c/luatexdir/fake -I/sw/include  -g -O2 -MT
> luatexdir/lua/libluajittex_a-lepdflib.o -MD -MP -MF
> luatexdir/lua/.deps/libluajittex_a-lepdflib.Tpo -c -o
> luatexdir/lua/libluajittex_a-lepdflib.o `test -f
> 'luatexdir/lua/lepdflib.cc' || echo
> '../../../texk/web2c/'`luatexdir/lua/lepdflib.cc
>
> which is rather worrisome.
>              Jack

------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Fink-devel mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.