Wed Aug 22 19:44:28 2012 UTC ()
Disable -ffunction-sections -fdata-sections and accompanying
--gc-sections on netbsd because --gc-sections doesn't work with the
netbsd-4 and netbsd-5 linker. See PR 46698 and PR 40401.

Bump PKGREVISION because this changes the compiled package on netbsd-6.


(dholland)
diff -r1.13 -r1.14 pkgsrc/print/xetex/Makefile
diff -r1.11 -r1.12 pkgsrc/print/xetex/distinfo
diff -r0 -r1.1 pkgsrc/print/xetex/patches/patch-libs_icu_icu-49_1_configure

cvs diff -r1.13 -r1.14 pkgsrc/print/xetex/Makefile (expand / switch to unified diff)

--- pkgsrc/print/xetex/Makefile 2012/08/13 10:42:18 1.13
+++ pkgsrc/print/xetex/Makefile 2012/08/22 19:44:27 1.14
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1# $NetBSD: Makefile,v 1.13 2012/08/13 10:42:18 drochner Exp $ 1# $NetBSD: Makefile,v 1.14 2012/08/22 19:44:27 dholland Exp $
2 2
3DISTNAME= texlive-20120701-source 3DISTNAME= texlive-20120701-source
4PKGNAME= xetex-0.9998 4PKGNAME= xetex-0.9998
5PKGREVISION= 1 5PKGREVISION= 2
6CATEGORIES= print 6CATEGORIES= print
7MASTER_SITES= ftp://tug.org/historic/systems/texlive/2012/ 7MASTER_SITES= ftp://tug.org/historic/systems/texlive/2012/
8EXTRACT_SUFX= .tar.xz 8EXTRACT_SUFX= .tar.xz
9 9
10MAINTAINER= minskim@NetBSD.org 10MAINTAINER= minskim@NetBSD.org
11HOMEPAGE= http://www.tug.org/xetex/ 11HOMEPAGE= http://www.tug.org/xetex/
12COMMENT= TeX system with Unicode and modern font technologies 12COMMENT= TeX system with Unicode and modern font technologies
13 13
14CONFLICTS+= web2c<=7.5.7 14CONFLICTS+= web2c<=7.5.7
15DEPENDS+= xdvipdfmx-[0-9]*:../../print/xdvipdfmx 15DEPENDS+= xdvipdfmx-[0-9]*:../../print/xdvipdfmx
16 16
17EXTRACT_ELEMENTS= ${DISTNAME}/build-aux \ 17EXTRACT_ELEMENTS= ${DISTNAME}/build-aux \
18 ${DISTNAME}/libs/graphite ${DISTNAME}/libs/icu \ 18 ${DISTNAME}/libs/graphite ${DISTNAME}/libs/icu \

cvs diff -r1.11 -r1.12 pkgsrc/print/xetex/distinfo (expand / switch to unified diff)

--- pkgsrc/print/xetex/distinfo 2012/07/31 18:44:03 1.11
+++ pkgsrc/print/xetex/distinfo 2012/08/22 19:44:27 1.12
@@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
1$NetBSD: distinfo,v 1.11 2012/07/31 18:44:03 wiz Exp $ 1$NetBSD: distinfo,v 1.12 2012/08/22 19:44:27 dholland Exp $
2 2
3SHA1 (texlive-20120701-source.tar.xz) = e41ef31eba27891f3434e01638d3559cc6958016 3SHA1 (texlive-20120701-source.tar.xz) = e41ef31eba27891f3434e01638d3559cc6958016
4RMD160 (texlive-20120701-source.tar.xz) = df09b657919a3f203309645028803098f52bbac9 4RMD160 (texlive-20120701-source.tar.xz) = df09b657919a3f203309645028803098f52bbac9
5Size (texlive-20120701-source.tar.xz) = 131904044 bytes 5Size (texlive-20120701-source.tar.xz) = 131904044 bytes
 6SHA1 (patch-libs_icu_icu-49_1_configure) = 3e21058a60b628c948b5156f911eab2aa5e4aaf7
6SHA1 (patch-texk_web2c_xetexdir_XeTeX__ext.c) = a83e842b567db6acb35cfab5303a7e96845fa953 7SHA1 (patch-texk_web2c_xetexdir_XeTeX__ext.c) = a83e842b567db6acb35cfab5303a7e96845fa953

File Added: pkgsrc/print/xetex/patches/Attic/patch-libs_icu_icu-49_1_configure
$NetBSD: patch-libs_icu_icu-49_1_configure,v 1.1 2012/08/22 19:44:28 dholland Exp $

Disable -ffunction-sections -fdata-sections and accompanying
--gc-sections on netbsd because --gc-sections doesn't work with the
netbsd-4 and netbsd-5 linker. See PR 46698 and PR 40401.

At some point this patch should probably be made less blunt, and/or
upstream should fix it to test if the options work instead of going by
OS type.

--- libs/icu/icu-49.1/configure~	2012-03-21 15:06:23.000000000 +0000
+++ libs/icu/icu-49.1/configure
@@ -5259,6 +5259,9 @@ $as_echo_n "checking whether we can use 
             OLD_LDFLAGS="${LDFLAGS}"
 
             case "${host}" in
+	    *-netbsd*)
+		# --gc-sections does not work on netbsd-4 and netbsd-5
+		;;
             *-linux*|i*86-*-*bsd*|i*86-pc-gnu)
                 if test "$ac_cv_c_compiler_gnu" = yes; then
                     CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections"