Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 383286 Details for
Bug 134650
dev-lang/perl: cross-compile support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Working perl-5.18.2-r1 cross patch
perl-cross.patch (text/plain), 2.86 KB, created by
James Le Cuirot
on 2014-08-21 20:44:17 UTC
(
hide
)
Description:
Working perl-5.18.2-r1 cross patch
Filename:
MIME Type:
Creator:
James Le Cuirot
Created:
2014-08-21 20:44:17 UTC
Size:
2.86 KB
patch
obsolete
>--- perl-5.18.2-r1.ebuild.orig 2014-07-28 17:31:06.000000000 +0100 >+++ perl-5.18.2-r1.ebuild 2014-08-21 20:48:45.000000000 +0100 >@@ -7,6 +7,7 @@ > inherit eutils alternatives flag-o-matic toolchain-funcs multilib multiprocessing > > PATCH_VER=2 >+CROSS_VER="0.8.5" > > PERL_OLDVERSEN="5.18.0 5.18.1" > MODULE_AUTHOR=RJBS >@@ -22,6 +23,7 @@ > mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.bz2 > mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2 > http://dev.gentoo.org/~civil/distfiles/${CATEGORY}/${PN}/${MY_P}-patches-${PATCH_VER}.tar.bz2 >+ https://raw.github.com/arsv/${PN}-cross/releases/${P}-cross-${CROSS_VER}.tar.gz > " > HOMEPAGE="http://www.perl.org/" > >--- files/eblits/src_prepare-v50160001.eblit.orig 2012-06-05 18:52:35.000000000 +0100 >+++ files/eblits/src_prepare-v50160001.eblit 2014-08-21 21:27:31.000000000 +0100 >@@ -66,5 +66,9 @@ > ln -s ${LIBPERL} libperl$(get_libname ${SHORT_PV}) || die > ln -s ${LIBPERL} libperl$(get_libname ) || die > fi >-} > >+ if use gdbm; then >+ sed -i "s:INC => .*:INC => \"-I${EROOT}usr/include/gdbm\":g" \ >+ ext/NDBM_File/Makefile.PL || die >+ fi >+} >--- files/eblits/src_configure-v50180002.eblit.orig 2014-07-17 08:01:06.000000000 +0100 >+++ files/eblits/src_configure-v50180002.eblit 2014-08-21 21:14:15.000000000 +0100 >@@ -27,12 +27,12 @@ > use sparc && myconf -Ud_longdbl > > export BUILD_BZIP2=0 >- export BZIP2_INCLUDE=${EPREFIX}/usr/include >- export BZIP2_LIB=${EPREFIX}/usr/$(get_libdir) >+ export BZIP2_INCLUDE=${EROOT}usr/include >+ export BZIP2_LIB=${EROOT}usr/$(get_libdir) > > export BUILD_ZLIB=False >- export ZLIB_INCLUDE=${EPREFIX}/usr/include >- export ZLIB_LIB=${EPREFIX}/usr/$(get_libdir) >+ export ZLIB_INCLUDE=${EROOT}usr/include >+ export ZLIB_LIB=${EROOT}usr/$(get_libdir) > > # allow either gdbm to provide ndbm (in <gdbm/ndbm.h>) or db1 > >@@ -102,15 +102,13 @@ > > myconf -Dnoextensions="${disabled_extensions}" > >- sh Configure \ >- -des \ >+ set -- \ > -Duseshrplib \ > -Darchname="${myarch}" \ > -Dcc="$(tc-getCC)" \ > -Doptimize="${CFLAGS}" \ > -Dldflags="${LDFLAGS}" \ > -Dprefix="${EPREFIX}"'/usr' \ >- -Dinstallprefix="${EPREFIX}"'/usr' \ > -Dsiteprefix="${EPREFIX}"'/usr/local' \ > -Dvendorprefix="${EPREFIX}"'/usr' \ > -Dscriptdir="${EPREFIX}"'/usr/bin' \ >@@ -136,8 +134,29 @@ > -Dcf_by='Gentoo' \ > -Dmyhostname='localhost' \ > -Dperladmin='root@localhost' \ >- -Dinstallusrbinperl='n' \ > -Ud_csh \ > -Uusenm \ >- "${myconf[@]}" || die "Unable to configure" >+ "${myconf[@]}" >+ >+ if tc-is-cross-compiler; then >+ MAKEOPTS+=" -j1" >+ >+ set -- \ >+ ./configure \ >+ --target="${CHOST}" \ >+ -Dinstallprefix='' \ >+ -Dinstallusrbinperl='undef' \ >+ -Dusevendorprefix='define' \ >+ "${@}" >+ else >+ set -- \ >+ sh Configure \ >+ -des \ >+ -Dinstallprefix="${EPREFIX}"'/usr' \ >+ -Dinstallusrbinperl='n' \ >+ "${@}" >+ fi >+ >+ printf '%q ' "${@}"; echo >+ "${@}" || die "Unable to configure" > }
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 134650
:
218243
|
218245
|
218247
|
218249
|
218251
|
218253
|
218255
|
218257
|
218259
|
218261
|
218263
|
218265
|
218267
|
218941
|
218947
|
218949
|
218953
|
229501
|
347478
|
351666
|
383286
|
447926
|
450836