Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 296657 Details for
Bug 395685
Please review Prefix changes for dev-lang/perl
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
perl-5.14.2 patch
perl-5.14.2.patch (text/plain), 9.38 KB, created by
Fabian Groffen
on 2011-12-22 13:14:41 UTC
(
hide
)
Description:
perl-5.14.2 patch
Filename:
MIME Type:
Creator:
Fabian Groffen
Created:
2011-12-22 13:14:41 UTC
Size:
9.38 KB
patch
obsolete
>--- perl-5.14.2.ebuild 2011-10-16 17:41:03.000000000 +0200 >+++ perl-5.14.2.ebuild 2011-12-22 14:08:30.509185000 +0100 >@@ -38,7 +38,7 @@ > sys-libs/zlib > " > DEPEND="${COMMON_DEPEND} >- elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) >+ !prefix? ( elibc_FreeBSD? ( sys-freebsd/freebsd-mk-defs ) ) > " > RDEPEND="${COMMON_DEPEND} > " >@@ -75,6 +75,7 @@ > *-netbsd*) osname="netbsd" ;; > *-openbsd*) osname="openbsd" ;; > *-darwin*) osname="darwin" ;; >+ *-interix*) osname="interix" ;; > *) osname="linux" ;; > esac > >@@ -152,8 +153,30 @@ > > # pod/perltoc.pod fails > # lib/ExtUtils/t/Embed.t fails >- ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV}) || die >- ln -s ${LIBPERL} libperl$(get_libname ) || die >+ if ! tc-is-static-only ; then >+ ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV}) || die >+ ln -s ${LIBPERL} libperl$(get_libname ) || die >+ fi >+ >+ epatch "${FILESDIR}"/${PN}-5.12.3-aix-soname.patch >+ epatch "${FILESDIR}"/${PN}-5.8.8-solaris-relocation.patch >+ epatch "${FILESDIR}"/${PN}-5.8.8-solaris11.patch >+ epatch "${FILESDIR}"/${PN}-5.14.1-cleanup-paths.patch >+ epatch "${FILESDIR}"/${PN}-5.8.8-usr-local.patch >+ epatch "${FILESDIR}"/${PN}-5.10.1-hpux.patch >+ epatch "${FILESDIR}"/${PN}-5.8.8-darwin-cc-ld.patch >+ epatch "${FILESDIR}"/${PN}-5.12.3-mint.patch >+ epatch "${FILESDIR}"/${PN}-5.12.3-interix.patch >+ >+ # Fix build on OSX Lion (10.7) >+# sed -i -e '/^usenm=/s/true/false/' hints/darwin.sh >+ >+ # rest of usr-local patch >+ sed -i \ >+ -e '/^locincpth=/c\locincpth=""' \ >+ -e '/^loclibpth=/c\loclibpth=""' \ >+ -e '/^glibpth=.*\/local\//s: /usr/local/lib.*":":' \ >+ Configure || die > } > > myconf() { >@@ -181,12 +204,12 @@ > > # 266337 > export BUILD_BZIP2=0 >- export BZIP2_INCLUDE=/usr/include >- export BZIP2_LIB=/usr/$(get_libdir) >+ export BZIP2_INCLUDE=${EPREFIX}/usr/include >+ export BZIP2_LIB=${EPREFIX}/usr/$(get_libdir) > cat <<-EOF > "${S}/cpan/Compress-Raw-Zlib/config.in" > BUILD_ZLIB = False >- INCLUDE = /usr/include >- LIB = /usr/$(get_libdir) >+ INCLUDE = ${EPREFIX}/usr/include >+ LIB = ${EPREFIX}/usr/$(get_libdir) > > OLD_ZLIB = False > GZIP_OS_CODE = AUTO_DETECT >@@ -232,11 +255,32 @@ > > [[ ${ELIBC} == "FreeBSD" ]] && myconf "-Dlibc=/usr/$(get_libdir)/libc.a" > >- if [[ $(get_libdir) != "lib" ]] ; then >+ # Prefix: the host system needs not to follow Gentoo multilib stuff, and in >+ # Prefix itself we don't do multilib either, so make sure perl can find >+ # something compatible. >+ if use prefix ; then >+ local ldir >+ local llib >+ local paths="" >+ echo "int main() {}" > "${T}"/t.c >+ # need to ensure dirs contain compatible libs, bug #358875 >+ for ldir in /lib /usr/lib /lib64 /lib/64 /usr/lib64 /usr/lib/64 /lib32 /usr/lib32 ; do >+ [[ -d ${ldir} ]] || continue >+ # find a random lib from here >+ llib=( ${ldir}/*$(get_libname) ) >+ [[ -e ${llib[0]} ]] || continue >+ $(tc-getCC) -o "${T}"/t "${T}"/t.c ${llib[0]} >& /dev/null \ >+ && paths="${paths} ${ldir}" >+ done >+ 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 ' ... > myconf "-Dlibpth=/usr/local/$(get_libdir) /$(get_libdir) /usr/$(get_libdir)" > fi > >+ # don't try building ODBM, bug #354453 >+ myconf -Dnoextensions=ODBM_File >+ > sh Configure \ > -des \ > -Duseshrplib \ >@@ -244,31 +288,33 @@ > -Dcc="$(tc-getCC)" \ > -Doptimize="${CFLAGS}" \ > -Dldflags="${LDFLAGS}" \ >- -Dprefix='/usr' \ >- -Dsiteprefix='/usr' \ >- -Dvendorprefix='/usr' \ >- -Dscriptdir='/usr/bin' \ >- -Dprivlib="${PRIV_LIB}" \ >- -Darchlib="${ARCH_LIB}" \ >- -Dsitelib="${SITE_LIB}" \ >- -Dsitearch="${SITE_ARCH}" \ >- -Dvendorlib="${VENDOR_LIB}" \ >- -Dvendorarch="${VENDOR_ARCH}" \ >- -Dman1dir=/usr/share/man/man1 \ >- -Dman3dir=/usr/share/man/man3 \ >- -Dsiteman1dir=/usr/share/man/man1 \ >- -Dsiteman3dir=/usr/share/man/man3 \ >- -Dvendorman1dir=/usr/share/man/man1 \ >- -Dvendorman3dir=/usr/share/man/man3 \ >+ -Dprefix="${EPREFIX}"'/usr' \ >+ -Dinstallprefix="${EPREFIX}"'/usr' \ >+ -Dsiteprefix="${EPREFIX}"'/usr' \ >+ -Dvendorprefix="${EPREFIX}"'/usr' \ >+ -Dscriptdir="${EPREFIX}"'/usr/bin' \ >+ -Dprivlib="${EPREFIX}/usr/$(get_libdir)/perl5/${MY_PV}" \ >+ -Darchlib="${EPREFIX}/usr/$(get_libdir)/perl5/${MY_PV}/${myarch}${mythreading}" \ >+ -Dsitelib="${EPREFIX}/usr/$(get_libdir)/perl5/site_perl/${MY_PV}" \ >+ -Dsitearch="${EPREFIX}/usr/$(get_libdir)/perl5/site_perl/${MY_PV}/${myarch}${mythreading}" \ >+ -Dvendorlib="${EPREFIX}/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}" \ >+ -Dvendorarch="${EPREFIX}/usr/$(get_libdir)/perl5/vendor_perl/${MY_PV}/${myarch}${mythreading}" \ >+ -Dman1dir="${EPREFIX}"/usr/share/man/man1 \ >+ -Dman3dir="${EPREFIX}"/usr/share/man/man3 \ >+ -Dsiteman1dir="${EPREFIX}"/usr/share/man/man1 \ >+ -Dsiteman3dir="${EPREFIX}"/usr/share/man/man3 \ >+ -Dvendorman1dir="${EPREFIX}"/usr/share/man/man1 \ >+ -Dvendorman3dir="${EPREFIX}"/usr/share/man/man3 \ > -Dman1ext='1' \ > -Dman3ext='3pm' \ > -Dlibperl="${LIBPERL}" \ >- -Dlocincpth=' ' \ >+ -Dlocincpth="${EPREFIX}"'/usr/include ' \ >+ -Dglibpth="${EPREFIX}/$(get_libdir) ${EPREFIX}/usr/$(get_libdir)"' ' \ > -Duselargefiles \ > -Dd_semctl_semun \ > -Dcf_by='Gentoo' \ > -Dmyhostname='localhost' \ >- -Dperladmin='root@localhost' \ >+ -Dperladmin="${PORTAGE_ROOT_USER:-root}@localhost" \ > -Dinstallusrbinperl='n' \ > -Ud_csh \ > -Uusenm \ >@@ -295,18 +341,20 @@ > fi > emake DESTDIR="${D}" ${installtarget} > >- rm -f "${D}"/usr/bin/perl >- ln -s perl${MY_PV} "${D}"/usr/bin/perl || die >+ rm -f "${ED}"/usr/bin/perl >+ ln -s perl${MY_PV} "${ED}"/usr/bin/perl || die > >- dolib.so "${D}"${coredir}/${LIBPERL} >- rm -f "${D}"${coredir}/${LIBPERL} >- ln -sf ${LIBPERL} "${D}"/usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die >- ln -sf ${LIBPERL} "${D}"/usr/$(get_libdir)/libperl$(get_libname) || die >- ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${D}"${coredir}/${LIBPERL} || die >- ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${D}"${coredir}/libperl$(get_libname ${SHORT_PV}) || die >- ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${D}"${coredir}/libperl$(get_libname) || die >+ if ! tc-is-static-only ; then >+ dolib.so "${ED}"${coredir}/${LIBPERL} >+ rm -f "${ED}"${coredir}/${LIBPERL} >+ ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname ${SHORT_PV}) || die >+ ln -sf ${LIBPERL} "${ED}"/usr/$(get_libdir)/libperl$(get_libname) || die >+ ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/${LIBPERL} || die >+ ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname ${SHORT_PV}) || die >+ ln -sf ../../../../../$(get_libdir)/${LIBPERL} "${ED}"${coredir}/libperl$(get_libname) || die >+ fi > >- rm -rf "${D}"/usr/share/man/man3 || die "Unable to remove module man pages" >+ rm -rf "${ED}"/usr/share/man/man3 || die "Unable to remove module man pages" > > # # A poor fix for the miniperl issues > # dosed 's:./miniperl:/usr/bin/perl:' /usr/$(get_libdir)/perl5/${MY_PV}/ExtUtils/xsubpp >@@ -320,11 +368,11 @@ > sed -i -e "s:${D}::" "${i}" || die "Sed failed" > done > >- find "${D}" -type f -name .packlist -delete || die >+ find "${ED}" -type f -name .packlist -delete || die > > # Note: find out from psm why we would need/want this. > # ( use berkdb && has_version '=sys-libs/db-1*' ) || >- # find "${D}" -name "*NDBM*" | xargs rm -f >+ # find "${ED}" -name "*NDBM*" | xargs rm -f > > dodoc Changes* README AUTHORS > >@@ -337,7 +385,7 @@ > --podroot='.' \ > --podpath='lib:ext:pod:vms' \ > --recurse \ >- --htmldir="${D}/usr/share/doc/${PF}/html" \ >+ --htmldir="${ED}/usr/share/doc/${PF}/html" \ > --libpods='perlfunc:perlguts:perlvar:perlrun:perlop' > fi > >@@ -375,8 +423,9 @@ > # fi > > einfo "Converting C header files to the corresponding Perl format (ignore any error)" >+ # unprefixed as this is all kernel/libc stuff that we never provide > pushd /usr/include >/dev/null >- h2ph -Q -a -d ${ARCH_LIB} \ >+ h2ph -Q -a -d "${EPREFIX}${ARCH_LIB}" \ > asm/termios.h syscall.h syslimits.h syslog.h sys/ioctl.h \ > sys/socket.h sys/time.h wait.h sysexits.h > popd >/dev/null >@@ -434,7 +483,7 @@ > ;; > setup) > for i in "$@" ; do >- if [[ -f ${ROOT}${i} && ! -h ${ROOT}${i} ]] ; then >+ if [[ -f ${EROOT}${i} && ! -h ${EROOT}${i} ]] ; then > has_version ${pkg} && ewarn "You must reinstall ${pkg} !" > break > fi >@@ -442,11 +491,11 @@ > ;; > install) > for i in "$@" ; do >- if ! [[ -f "${D}"${i} ]] ; then >+ if ! [[ -f "${ED}"${i} ]] ; then > use build || ewarn "${i} does not exist!" > continue > fi >- mv "${D}"${i}{,-${ver}-${P}} || die >+ mv "${ED}"${i}{,-${ver}-${P}} || die > done > ;; > esac >@@ -460,18 +509,18 @@ > case "${EBUILD_PHASE:-none}" in > postinst|postrm) > for i in "$@" ; do >- ff=`echo "${ROOT}${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}}"*` >+ ff=`echo "${EROOT}${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}}"*` > ff=${ff##*${i#${i%.[0-9]}}} > alternatives_auto_makesym "${i}${ff}" "${i%.[0-9]}-[0-9]*" > done > ;; > install) > for i in "$@" ; do >- if ! [[ -f "${D}"${i} ]] ; then >+ if ! [[ -f "${ED}"${i} ]] ; then > use build || ewarn "${i} does not exist!" > continue > fi >- mv "${D}"${i} "${D}"${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}} || die >+ mv "${ED}"${i} "${ED}"${i%.[0-9]}-${ver}-${P}${i#${i%.[0-9]}} || die > done > ;; > esac >@@ -652,7 +701,7 @@ > .${ARCH_LIB}/threads.pm > " > >- pushd "${D}" > /dev/null >+ pushd "${ED}" > /dev/null > # Remove cruft > einfo "Removing files that are not in the minimal install" > echo "${MINIMAL_PERL_INSTALL}"
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 395685
:
296655
| 296657