pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/44182: pdftex fails due to largefile/endian issues on big endian machines (patch included)



>Number:         44182
>Category:       pkg
>Synopsis:       pdftex fails due to largefile/endian issues on big endian 
>machines (patch included)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 01 18:30:00 +0000 2010
>Originator:     Tim
>Release:        pkgsrc HEAD
>Organization:
>Environment:
SunOS nodename 5.10 Generic_144488-02 sun4u sparc SUNW,Sun-Fire-V440 Solaris
>Description:
NOT a solaris specific issue... rather a big endian w/LFS issue.

It appears that pdftex and friends are not bigendian safe when
compiled without --disable-largefile
(reference: http://www.tug.org/pipermail/tex-live/2008-September/017761.html )

In particular trying to do the 'make install' phase of
pkgsrc/devel/doxygen dies with an error building the
doxygen_manual.pdf... and in general it seems that trying to include a
pdf image into a document shows the problem.
(reference: http://www.ntg.nl/pipermail/ntg-pdftex/2008-February/003472.html )

In my tree I added to each of:
 pkgsrc/print/web2c/Makefile
 pkgsrc/fonts/gsftopkk/Makefile
 pkgsrc/fonts/ps2pkm/Makefile
 pkgsrc/fonts/ttf2pk/Makefile
 pkgsrc/print/dviljk/Makefile
 pkgsrc/print/dvipdfmx/Makefile
 pkgsrc/print/dvipsk/Makefile
 pkgsrc/print/kpathsea/Makefile
 pkgsrc/print/ptexenc/Makefile
 pkgsrc/print/texlive-pdftools/Makefile
 pkgsrc/print/texlive-tetex/Makefile
 pkgsrc/print/xdvik/Makefile
 pkgsrc/print/xetex/Makefile
 pkgsrc/textproc/makeindexk/Makefile
 pkgsrc/textproc/mendexk/Makefile
(selected based on use of the texlive source distfile)
these lines to discover big endian machines and to add the CONFIGURE_ARGS:

 .include "../../mk/endian.mk"

 .if ${MACHINE_ENDIAN} == "big"
 # largefile support is broken in pdftex on big endian machines
 CONFIGURE_ARGS+=        --disable-largefile
 .endif

After rebuilding everything, I was able to do the make install in
pkgsrc/devel/doxygen without failure.  It may be that this patch is not needed 
for ALL these packages, but the tex maintainer is better to determine this... 
changing and rebuilding only print/web2c did not seem to solve it for me.
>How-To-Repeat:
Attempt to 'make install' doxygen while on a big endian machine with largefile 
support (such as Solaris SPARC), which demonstrates the failure while building 
the doxygen_manual.pdf.

>Fix:
Add to Makefile of every package with DISTNAME matching texlive-*-source

 .include "../../mk/endian.mk"
 .if ${MACHINE_ENDIAN} == "big"
 # largefile support is broken in pdftex on big endian machines
 CONFIGURE_ARGS+=        --disable-largefile
 .endif



Home | Main Index | Thread Index | Old Index