Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 347478 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]
perl-5.16.3 cross-compile support
perl-5.16.3-cross.patch (text/plain), 2.32 KB, created by
SpanKY
on 2013-05-06 02:48:40 UTC
(
hide
)
Description:
perl-5.16.3 cross-compile support
Filename:
MIME Type:
Creator:
SpanKY
Created:
2013-05-06 02:48:40 UTC
Size:
2.32 KB
patch
obsolete
>--- perl-5.16.3.ebuild >+++ perl-5.16.3.ebuild >@@ -7,6 +7,7 @@ EAPI=5 > inherit eutils alternatives flag-o-matic toolchain-funcs multilib multiprocessing > > PATCH_VER=1 >+CROSS_VER="0.7.4" > > PERL_OLDVERSEN="5.16.2 5.16.1 5.16.0" > MODULE_AUTHOR=RJBS >@@ -22,6 +23,7 @@ SRC_URI=" > mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${MY_P}.tar.bz2 > mirror://gentoo/${MY_P}-${PATCH_VER}.tar.bz2 > http://dev.gentoo.org/~tove/distfiles/${CATEGORY}/${PN}/${MY_P}-${PATCH_VER}.tar.bz2 >+ ${CROSS_VER:+mirror://berlios/perlcross/${P}-cross-${CROSS_VER}.tar.gz} > " > HOMEPAGE="http://www.perl.org/" > >--- files/eblits/src_configure-v50160001.eblit >+++ files/eblits/src_configure-v50160001.eblit >@@ -51,7 +51,9 @@ eblit-perl-src_configure() { > > myconf "-${myndbm}i_ndbm" "-${mygdbm}i_gdbm" "-${mydb}i_db" > >- if use alpha && [[ "$(tc-getCC)" = "ccc" ]] ; then >+ tc-export CC >+ >+ if use alpha && [[ "${CC}" == "ccc" ]] ; then > ewarn "Perl will not be built with berkdb support, use gcc if you needed it..." > myconf -Ui_db -Ui_ndbm > fi >@@ -83,7 +85,7 @@ eblit-perl-src_configure() { > 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 >+ ${CC} -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) >@@ -104,11 +106,10 @@ eblit-perl-src_configure() { > # don't try building ODBM, bug #354453 > myconf -Dnoextensions=ODBM_File > >- sh Configure \ >- -des \ >+ set -- \ > -Duseshrplib \ > -Darchname="${myarch}" \ >- -Dcc="$(tc-getCC)" \ >+ -Dcc="${CC}" \ > -Doptimize="${CFLAGS}" \ > -Dldflags="${LDFLAGS}" \ > -Dprefix="${EPREFIX}"'/usr' \ >@@ -138,8 +139,20 @@ eblit-perl-src_configure() { > -Dcf_by='Gentoo' \ > -Dmyhostname='localhost' \ > -Dperladmin='root@localhost' \ >- -Dinstallusrbinperl='n' \ >+ -Dinstallusrbinperl='undef' \ > -Ud_csh \ > -Uusenm \ >- "${myconf[@]}" || die "Unable to configure" >+ "${myconf[@]}" >+ if tc-is-cross-compiler ; then >+ set -- \ >+ ./configure \ >+ --target=${CHOST} \ >+ --sysroot="${SYSROOT:-$(${CC} -print-sysroot)}" \ >+ "$@" >+ MAKEOPTS+=" -j1" >+ else >+ set -- sh Configure -des "$@" >+ fi >+ printf '%q ' "$@"; echo >+ "$@" || die > }
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