pkgsrc-Users archive

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

pkg_install-info is unhappy on AIX [patch]



I had some trouble installing pkg_install-info on AIX 5.3:

===> Building for pkg_install-info-4.5nb3
cc -q64 -qarch=ppc64 -O3 -qstrict -qcpluscmt -qkeyword=inline -ma -Werror -DHAVE_CONFIG_H -I. -DENABLE_NLS=0 -DLOCALEDIR=\"\" -DPACKAGE=PACKAGE_NAME -DVERSION=PACKAGE_VERSION -c getopt.c /usr/vacpp/bin/xlc: 1501-210 (S) command option Werror contains an incorrect subargument
*** Error code 40

Stop.
bmake: stopped in /usr/pkgobj/pkgtools/pkg_install-info/work/pkg_install-info-4.5
*** Error code 1

Stop.



I noticed there was a "hack" for gcc. Seems to work for xlc too. The following patch allows the package to build. I'm not sure it's the "right" thing to do. But after all it is in hacks.mk!

Louis


---------- 8< -----------
--- pkgtools/pkg_install-info/hacks.mk.orig 2009-02-11 17:17:42.000000000 -0500
+++ pkgtools/pkg_install-info/hacks.mk  2009-02-11 17:16:28.000000000 -0500
@@ -12,4 +12,9 @@
 BUILDLINK_TRANSFORM+=  rm:-Werror
 .  endif

+.  if !empty(PKGSRC_COMPILER:Mxlc*) && !empty(CFLAGS:M-O3)
+PKG_HACKS+=    suppress-Werror
+BUILDLINK_TRANSFORM+=  rm:-Werror
+.  endif
+
 .endif
---------- >8 -----------

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Home | Main Index | Thread Index | Old Index