Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 218251 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]
/files/perl-configpm-switch.patch for (perl and libperl)
perl-configpm-switch.patch (text/plain), 1.19 KB, created by
Peter Levine
on 2010-02-03 02:34:14 UTC
(
hide
)
Description:
/files/perl-configpm-switch.patch for (perl and libperl)
Filename:
MIME Type:
Creator:
Peter Levine
Created:
2010-02-03 02:34:14 UTC
Size:
1.19 KB
patch
obsolete
>This patch enables the switching of configuration files between Config_heavy.pl and >{PERL_ARCHLIB}/Config_heavy.pl by setting the environment variables >PERL_ARCHLIB - the later containing settings for the target while >the former contains those for the host. This will allow cpan.bbclass >to use the settings appropriate for the native and/or target builds >as required. This also disables the use of the cache since the cached >values would be valid for the host only. > >--- perl-5.8.8/configpm 2007/04/30 03:10:43 1.1 >+++ perl-5.8.8/configpm 2007/04/30 03:11:56 >@@ -374,7 +374,7 @@ > my($self, $key) = @_; > > # check for cached value (which may be undef so we use exists not defined) >- return $self->{$key} if exists $self->{$key}; >+ #return $self->{$key} if exists $self->{$key}; > > return $self->fetch_string($key); > } >@@ -530,7 +530,12 @@ > sub DESTROY { } > > sub AUTOLOAD { >- require 'Config_heavy.pl'; >+ my $cfgfile = 'Config_heavy.pl'; >+ if (defined $ENV{PERL_ARCHLIB} ) >+ { >+ $cfgfile = "$ENV{PERL_ARCHLIB}/Config_heavy.pl"; >+ } >+ require $cfgfile; > goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/; > die "&Config::AUTOLOAD failed on $Config::AUTOLOAD"; > }
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