diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:14:24 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 15:29:45 +0100 |
commit | 29d6678fd546377459ef75cf54abeef5b969b5cf (patch) | |
tree | 8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/recipes-devtools/perl/perl-5.8.8/perl-dynloader.patch | |
parent | da49de6885ee1bc424e70bc02f21f6ab920efb55 (diff) | |
download | poky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz |
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things
and is generally overwhelming. This commit splits it into several
logical sections roughly based on function, recipes.txt gives more
information about the classifications used.
The opportunity is also used to switch from "packages" to "recipes"
as used in OpenEmbedded as the term "packages" can be confusing to
people and has many different meanings.
Not all recipes have been classified yet, this is just a first pass
at separating things out. Some packages are moved to meta-extras as
they're no longer actively used or maintained.
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/perl/perl-5.8.8/perl-dynloader.patch')
-rw-r--r-- | meta/recipes-devtools/perl/perl-5.8.8/perl-dynloader.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl-5.8.8/perl-dynloader.patch b/meta/recipes-devtools/perl/perl-5.8.8/perl-dynloader.patch new file mode 100644 index 0000000000..e2dc774d5e --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.8.8/perl-dynloader.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Allow the location that .so files are searched for for dynamic | ||
2 | loading to be changed via an environment variable. This is to allow | ||
3 | us to load .so's from the host system while building for the target | ||
4 | system. | ||
5 | |||
6 | --- perl-5.8.8/ext/DynaLoader/XSLoader_pm.PL 2007/04/20 09:03:08 1.1 | ||
7 | +++ perl-5.8.8/ext/DynaLoader/XSLoader_pm.PL 2007/04/20 09:41:28 | ||
8 | @@ -65,6 +65,15 @@ | ||
9 | print OUT <<'EOT'; | ||
10 | my $modpname = join('/',@modparts); | ||
11 | my $modlibname = (caller())[1]; | ||
12 | + # OE: Allow env to form dynamic loader to look in a different place | ||
13 | + # This is so it finds the host .so files, not the targets | ||
14 | + if (defined $ENV{PERLHOSTLIB}) | ||
15 | + { | ||
16 | + my $hostlib = $ENV{PERLHOSTLIB}; | ||
17 | + print STDERR "*** Module name IN: $modlibname\n"; | ||
18 | + $modlibname =~ s#(?<!/)(\.\./)*lib/#$hostlib#g; | ||
19 | + print STDERR "*** Module name OUT: $modlibname\n"; | ||
20 | + } | ||
21 | my $c = @modparts; | ||
22 | $modlibname =~ s,[\\/][^\\/]+$,, while $c--; # Q&D basename | ||
23 | my $file = "$modlibname/auto/$modpname/$modfname.$dl_dlext"; | ||