pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/39231: [PATCH] lang/perl5
>Number: 39231
>Category: pkg
>Synopsis: [PATCH] lang/perl5
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Jul 27 23:00:00 +0000 2008
>Originator: Jens Rehsack
>Release: -
>Organization:
Bayer Business Services
>Environment:
AIX 5.3.0.0
>Description:
Patch: lang/perl5
During initializing an IBM independent perl environment on our AIX machines, I
encounter several problems when building perl and p5-* modules.
The changes included in these patches helped me through the most problems.
I didn't have unsolvable problems building perl or dependent modules
(p5-DBD-Oracle, p5-Proc-ProcTable, ...).
Perl itself has problems with the linker flags, but beside of this all thing
run fine.
>How-To-Repeat:
>Fix:
Index: lang/perl5/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/lang/perl5/Makefile,v
retrieving revision 1.137
diff -u -r1.137 Makefile
--- lang/perl5/Makefile 1 Jun 2008 22:04:07 -0000 1.137
+++ lang/perl5/Makefile 27 Jul 2008 22:22:35 -0000
@@ -171,6 +171,7 @@
LIBSWANTED.NetBSD= m crypt
LIBSWANTED.OpenBSD= m crypt
LIBSWANTED.SunOS= m crypt dl socket nsl
+LIBSWANTED.AIX= m crypt dl socket nsl bind c
LIBSWANTED= ${LIBSWANTED.${OPSYS}}
# Nail down the directories in which the system libraries may be found.
@@ -184,6 +185,7 @@
SYSLIBPATH.NetBSD= /usr/lib
SYSLIBPATH.OpenBSD= /usr/lib
SYSLIBPATH.SunOS= /usr/lib
+SYSLIBPATH.AIX= /usr/lib
SYSLIBPATH= ${SYSLIBPATH.${OPSYS}}
# Nail down the directories in which headers and libraries of
Index: lang/perl5/module.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/perl5/module.mk,v
retrieving revision 1.56
diff -u -r1.56 module.mk
--- lang/perl5/module.mk 18 Nov 2007 21:44:56 -0000 1.56
+++ lang/perl5/module.mk 27 Jul 2008 22:22:35 -0000
@@ -46,13 +46,6 @@
.include "../../mk/compiler.mk"
-# see http://mail-index.netbsd.org/tech-pkg/2007/04/20/0004.html
-.if ${OPSYS} == "AIX"
-. if !empty(CC_VERSION:Mgcc*)
-BROKEN= Perl does not like building with GCC on AIX, please use
a different compiler
-. endif
-.endif
-
.if ${PERL5_MODULE_TYPE} == "Module::Build"
_PERL5_MODTYPE= modbuild
. if ${_USE_DESTDIR} != "no"
@@ -162,6 +155,8 @@
PERL5_MAKE_FLAGS.makemaker+= OPTIMIZE=${CFLAGS:Q}" "${CPPFLAGS:Q}
.if ${OBJECT_FMT} == "a.out"
PERL5_MAKE_FLAGS.makemaker+= OTHERLDFLAGS=${LDFLAGS:S/-Wl,//g:Q}
+.elif ${OS} == "AIX"
+PERL5_MAKE_FLAGS.makemaker+=
OTHERLDFLAGS=${LDFLAGS:S/-Wl,-R/-L/g:S/-Wl,//g:Q}
.else
PERL5_MAKE_FLAGS.makemaker+= OTHERLDFLAGS=${LDFLAGS:Q}
.endif
Home |
Main Index |
Thread Index |
Old Index