pkgsrc-Bugs archive

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

pkg/41814: fix lang/perl5 to compile on AIX



>Number:         41814
>Category:       pkg
>Synopsis:       fix lang/perl5 to compile on AIX
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 04 13:55:00 +0000 2009
>Originator:     Oliver Lehmann
>Release:        AIX 5.1.0.0 ML9
>Organization:
>Environment:
AIX hostname 1 5 002016457200
>Description:
When compiling perl on AIX with gcc, the special AIX linker flags need
to be handed over with -Wl, prefixed to gcc. Otherwise gcc will threat
them as gcc flags which will not work.
This PR is related to PR 29440 but since this PR was/is for lang/perl58
I raised a new one for lang/perl5 which also requires another additional fix.

Please find the patch file attached. The patch file is intended to be
applied to lang/perl5 itself

If the attached patch is somewhat mangled, it can also be downloaded
from http://files.pofo.de/perl.diff
>How-To-Repeat:

>Fix:
diff -ruN perl5.orig/patches/patch-ca perl5/patches/patch-ca
--- perl5.orig/patches/patch-ca 2008-10-10 23:58:43.000000000 +0200
+++ perl5/patches/patch-ca      2009-08-04 13:46:44.000000000 +0200
@@ -70,6 +70,15 @@
  prefixvar=vendorlib
  . ./installprefix
  
+@@ -8140,7 +8145,7 @@ fi
+ # (For building Perl itself bare -bE:perl.exp is needed,
+ #  Makefile.SH takes care of this.)
+ case "$osname" in
+-aix) ccdlflags="$ccdlflags -bE:$installarchlib/CORE/perl.exp" ;;
++aix) ccdlflags="$ccdlflags -Wl,-bE:$installarchlib/CORE/perl.exp" ;;
+ esac
+ # Respect a hint or command-line value.
+ case "$shrpenv" in
 @@ -9170,6 +9175,13 @@ EOCP
        ;;
  esac
diff -ruN perl5.orig/patches/patch-cb perl5/patches/patch-cb
--- perl5.orig/patches/patch-cb 1970-01-01 01:00:00.000000000 +0100
+++ perl5/patches/patch-cb      2009-08-04 13:46:37.000000000 +0200
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- Makefile.SH.orig   2007-12-18 11:47:07.000000000 +0100
++++ Makefile.SH
+@@ -81,11 +81,11 @@ true)
+               shrpldflags="$shrpldflags -Wl,--image-base,0x57000000"
+               ;;
+       aix*)
+-              shrpldflags="-H512 -T512 -bhalt:4 -bM:SRE -bE:perl.exp"
++              shrpldflags="-Wl,-H512 -Wl,-T512 -Wl,-bhalt:4 -Wl,-bM:SRE 
-Wl,-bE:perl.exp"
+               case "$osvers" in
+               3*)     shrpldflags="$shrpldflags -e _nostart"
+                       ;;
+-              *)      shrpldflags="$shrpldflags -bnoentry"
++              *)      shrpldflags="$shrpldflags -Wl,-bnoentry"
+                       ;;
+               esac
+               shrpldflags="$shrpldflags $ldflags $perllibs $cryptlib"




Home | Main Index | Thread Index | Old Index