Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 362566 Details for
Bug 490396
dev-lang/perl eblits v50160001: add AIX support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
AIX support
perl-eblits-aix.patch (text/plain), 2.72 KB, created by
Michael Haubenwallner (RETIRED)
on 2013-11-04 15:15:21 UTC
(
hide
)
Description:
AIX support
Filename:
MIME Type:
Creator:
Michael Haubenwallner (RETIRED)
Created:
2013-11-04 15:15:21 UTC
Size:
2.72 KB
patch
obsolete
>Index: files/eblits/pkg_setup-v50160001.eblit >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/pkg_setup-v50160001.eblit,v >retrieving revision 1.1 >diff -u -r1.1 pkg_setup-v50160001.eblit >--- files/eblits/pkg_setup-v50160001.eblit 5 Jun 2012 17:52:35 -0000 1.1 >+++ files/eblits/pkg_setup-v50160001.eblit 4 Nov 2013 15:07:11 -0000 >@@ -10,6 +10,7 @@ > *-openbsd*) osname="openbsd" ;; > *-darwin*) osname="darwin" ;; > *-interix*) osname="interix" ;; >+ *-aix*) osname="aix" ;; > *) osname="linux" ;; > esac > >Index: files/eblits/src_configure-v50160001.eblit >=================================================================== >RCS file: /var/cvsroot/gentoo-x86/dev-lang/perl/files/eblits/src_configure-v50160001.eblit,v >retrieving revision 1.5 >diff -u -r1.5 src_configure-v50160001.eblit >--- files/eblits/src_configure-v50160001.eblit 16 Aug 2012 10:47:29 -0000 1.5 >+++ files/eblits/src_configure-v50160001.eblit 4 Nov 2013 15:07:11 -0000 >@@ -80,21 +80,27 @@ > if use prefix ; then > local ldir > local paths="" >- echo "int main() {}" > "${T}"/t.c >- # need to ensure dirs contain compatible libs, >- # bugs #358875, #400839, use scanelf for #425538 >- $(tc-getCC) -o "${T}"/t "${T}"/t.c > /dev/null || die >- local scantool=scanelf >- [[ ${CHOST} == *-darwin* ]] && scantool=scanmacho >- local mtype=$(${scantool} -BF "%M%D#f" "${T}"/t) >- einfo "searching libdirs for ${mtype}" >- for ldir in /lib/*-linux-gnu /usr/lib/*-linux-gnu /lib64 /lib/64 /usr/lib64 /usr/lib/64 /lib32 /usr/lib32 /lib /usr/lib ; do >- [[ -e ${ldir} ]] || continue >- if ${scantool} -BF "%M%D#f" ${ldir}/ | grep -q ${mtype} ; then >- paths="${paths} ${ldir}" >- einfo "found ${ldir}" >- fi >- done >+ local scantool="" >+ case ${CHOST} in >+ *-aix*) paths="/lib /usr/lib" ;; >+ *-darwin*) scantool=scanmacho ;; >+ *) scantool=scanelf ;; >+ esac >+ if [[ -n ${scantool} ]]; then >+ echo "int main() {}" > "${T}"/t.c >+ # need to ensure dirs contain compatible libs, >+ # bugs #358875, #400839, use scanelf for #425538 >+ $(tc-getCC) -o "${T}"/t "${T}"/t.c > /dev/null || die >+ local mtype=$(${scantool} -BF "%M%D#f" "${T}"/t) >+ einfo "searching libdirs for ${mtype}" >+ for ldir in /lib/*-linux-gnu /usr/lib/*-linux-gnu /lib64 /lib/64 /usr/lib64 /usr/lib/64 /lib32 /usr/lib32 /lib /usr/lib ; do >+ [[ -e ${ldir} ]] || continue >+ if ${scantool} -BF "%M%D#f" ${ldir}/ | grep -q ${mtype} ; then >+ paths="${paths} ${ldir}" >+ einfo "found ${ldir}" >+ fi >+ done >+ fi > myconf "-Dlibpth=${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir) ${paths}" > elif [[ $(get_libdir) != "lib" ]] ; then > # We need to use " and not ', as the written config.sh use ' ...
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 490396
: 362566