pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/p5-Socket6 - Fix build problems on any platform, w...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/294c61480b3d
branches:  trunk
changeset: 555192:294c61480b3d
user:      sno <sno%pkgsrc.org@localhost>
date:      Wed Feb 25 20:39:20 2009 +0000

description:
- Fix build problems on any platform, where perl isn't compiled using the
  compiler provided in ${CC} according to RT #14372
- tell the "right" compiler to use on AIX when PKGSRC_COMPILER=xlc

diffstat:

 net/p5-Socket6/Makefile         |   9 ++++++++-
 net/p5-Socket6/distinfo         |   3 ++-
 net/p5-Socket6/patches/patch-aa |  10 ++++++++++
 3 files changed, 20 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r 3a1d4e1dc14a -r 294c61480b3d net/p5-Socket6/Makefile
--- a/net/p5-Socket6/Makefile   Wed Feb 25 20:33:12 2009 +0000
+++ b/net/p5-Socket6/Makefile   Wed Feb 25 20:39:20 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.29 2008/11/05 15:25:34 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2009/02/25 20:39:20 sno Exp $
 #
 
 DISTNAME=              Socket6-0.23
@@ -22,5 +22,12 @@
 USE_LANGUAGES=         c
 MAKE_ENV+=             CCFLAGS="${CFLAGS} ${CPPFLAGS}"
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "AIX" && ${PKGSRC_COMPILER} == "xlc"
+MAKE_ENV+=             CC="cc_r"
+.endif
+cc=cc_r
+
 .include "../../lang/perl5/module.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 3a1d4e1dc14a -r 294c61480b3d net/p5-Socket6/distinfo
--- a/net/p5-Socket6/distinfo   Wed Feb 25 20:33:12 2009 +0000
+++ b/net/p5-Socket6/distinfo   Wed Feb 25 20:39:20 2009 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.9 2008/11/05 14:58:20 wiz Exp $
+$NetBSD: distinfo,v 1.10 2009/02/25 20:39:20 sno Exp $
 
 SHA1 (Socket6-0.23.tar.gz) = f6598055e40d71fe3bab9881d38995f8677ee90a
 RMD160 (Socket6-0.23.tar.gz) = c45f3024e64cd3b1d43226fdc44f1f7dd54ddcaf
 Size (Socket6-0.23.tar.gz) = 57859 bytes
+SHA1 (patch-aa) = e62617f27b3fda22e62d1e383535c1e003a070f1
diff -r 3a1d4e1dc14a -r 294c61480b3d net/p5-Socket6/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/p5-Socket6/patches/patch-aa   Wed Feb 25 20:39:20 2009 +0000
@@ -0,0 +1,10 @@
+--- Makefile.PL.orig   2008-11-14 20:14:49.000000000 +0100
++++ Makefile.PL        2008-11-14 20:15:01.000000000 +0100
+@@ -46,7 +46,6 @@
+     MAN3PODS   => {},                 # Pods will be built by installman.
+     XSPROTOARG         => '-noprototypes',    # XXX remove later?
+     PM                 => {'Socket6.pm' => '$(INST_LIBDIR)/Socket6.pm'},
+-    CONFIGURE  => sub { { CC => "${cc}" } },
+     LIBS       => ["${libs}"],
+     realclean  => {FILES => 'config.cache config.h config.log config.pl config.status gailookup.pl'},
+ );



Home | Main Index | Thread Index | Old Index