pkgsrc-Bugs archive

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

pkg/41240: Perl5 build issue on opensolaris due to getconf



>Number:         41240
>Category:       pkg
>Synopsis:       Perl5 build issue on opensolaris due to getconf
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 17 18:35:00 +0000 2009
>Originator:     Michael Vergallen
>Release:        Not Relevant
>Organization:
>Environment:
>Description:
getconf fails to work correctly on solaris & opensolaris so don't use it when 
building perl. This gives warning's that are easely fixed.
>How-To-Repeat:
build perl5 on opensolaris or solaris.
>Fix:
--- hints/solaris_2.sh.orig     Fri Jan 16 06:28:36 2009
+++ hints/solaris_2.sh  Fri Jan 16 06:40:17 2009
@@ -571,9 +571,9 @@
                lddlflags="$lddlflags -G -m64"
                ;;
            *)
-               ccflags="$ccflags `getconf XBS5_LP64_OFF64_CFLAGS 2>/dev/null`"
-               ldflags="$ldflags `getconf XBS5_LP64_OFF64_LDFLAGS 2>/dev/null`"
-               lddlflags="$lddlflags -G `getconf XBS5_LP64_OFF64_LDFLAGS 
2>/dev/null`"
+               ccflags="$ccflags `echo -m64`"
+               ldflags="$ldflags `echo -m64`"
+               lddlflags="$lddlflags -G `echo -m64`"
                echo "int main() { return(0); } " > try.c
                tryworkshopcc="${cc:-cc} try.c -o try $ccflags"
                if test "$processor" = sparc; then



Home | Main Index | Thread Index | Old Index