diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-05-30 09:33:32 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2007-05-30 09:33:32 +0000 |
commit | 92363fd4f8321c6e18fe7f122f8ca101c3673f8a (patch) | |
tree | 89c400dabd3142445f463db825ab3fcca0b7f2f1 /meta/packages/perl/perl-5.8.8 | |
parent | 6c47cd48aff1dbc3b2550ea71307c48debca9298 (diff) | |
download | poky-92363fd4f8321c6e18fe7f122f8ca101c3673f8a.tar.gz |
perl: sync with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@1816 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/perl/perl-5.8.8')
-rw-r--r-- | meta/packages/perl/perl-5.8.8/generate-sh.patch | 40 | ||||
-rw-r--r-- | meta/packages/perl/perl-5.8.8/native-makedepend-dash.patch | 13 | ||||
-rw-r--r-- | meta/packages/perl/perl-5.8.8/native-perlinc.patch | 16 |
3 files changed, 64 insertions, 5 deletions
diff --git a/meta/packages/perl/perl-5.8.8/generate-sh.patch b/meta/packages/perl/perl-5.8.8/generate-sh.patch index 4c2b0bd752..50ce00b42f 100644 --- a/meta/packages/perl/perl-5.8.8/generate-sh.patch +++ b/meta/packages/perl/perl-5.8.8/generate-sh.patch | |||
@@ -1,16 +1,46 @@ | |||
1 | Use the ld flags from the supplied configuration file. For sh we need the | 1 | Use the ld flags from the supplied configuration file. For sh we need the |
2 | flags that specify to build PIC code so that the shared libraries work. | 2 | flags that specify to build PIC code so that the shared libraries work. |
3 | 3 | ||
4 | --- perl-5.8.7/Cross/generate_config_sh~ 2006-09-25 16:34:09.000000000 +1000 | 4 | Index: perl-5.8.8/Cross/generate_config_sh |
5 | +++ perl-5.8.7/Cross/generate_config_sh 2006-09-25 16:34:09.000000000 +1000 | 5 | =================================================================== |
6 | @@ -19,8 +19,8 @@ | 6 | --- perl-5.8.8.orig/Cross/generate_config_sh 2003-09-05 18:31:08.000000000 +1000 |
7 | +++ perl-5.8.8/Cross/generate_config_sh 2007-05-30 09:12:50.000000000 +1000 | ||
8 | @@ -19,10 +19,10 @@ | ||
7 | $callbacks->{'ar'} = [\&simple_process, ["AR", "arm-linux-ar"]]; | 9 | $callbacks->{'ar'} = [\&simple_process, ["AR", "arm-linux-ar"]]; |
8 | $callbacks->{'archname'} = [\&simple_process, ["SYS", "armv4l-linux"]]; | 10 | $callbacks->{'archname'} = [\&simple_process, ["SYS", "armv4l-linux"]]; |
9 | $callbacks->{'cc'} = [\&simple_process, ["CC", "arm-linux-gcc"]]; | 11 | $callbacks->{'cc'} = [\&simple_process, ["CC", "arm-linux-gcc"]]; |
10 | -$callbacks->{'cccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; | 12 | -$callbacks->{'cccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; |
11 | -$callbacks->{'ccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; | 13 | -$callbacks->{'ccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; |
14 | -$callbacks->{'ccflags'} = [\&simple_process, ["CFLAGS", "-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]]; | ||
15 | -$callbacks->{'ccflags_uselargefiles'} = [\&simple_process, ["CFLAGS", "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]]; | ||
12 | +#$callbacks->{'cccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; | 16 | +#$callbacks->{'cccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; |
13 | +#$callbacks->{'ccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; | 17 | +#$callbacks->{'ccdlflags'} = [\&simple_process, ["CFLAGS", ""]]; |
14 | $callbacks->{'ccflags'} = [\&simple_process, ["CFLAGS", "-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]]; | 18 | +$callbacks->{'ccflags'} = [\&simple_process_insert, ["CFLAGS", "-fno-strict-aliasing -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]]; |
15 | $callbacks->{'ccflags_uselargefiles'} = [\&simple_process, ["CFLAGS", "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]]; | 19 | +$callbacks->{'ccflags_uselargefiles'} = [\&simple_process_insert, ["CFLAGS", "-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]]; |
16 | $callbacks->{'ccname'} = [\&simple_process, ["CC", "arm-linux-gcc"]]; | 20 | $callbacks->{'ccname'} = [\&simple_process, ["CC", "arm-linux-gcc"]]; |
21 | $callbacks->{'cpp'} = [\&simple_process, ["CCP", "arm-linux-cpp"]]; | ||
22 | $callbacks->{'cppflags'} = [\&simple_process, ["CCPFLAGS", "-fno-strict-aliasing"]]; | ||
23 | @@ -105,6 +105,23 @@ | ||
24 | |||
25 | } | ||
26 | |||
27 | +# Insert env var into the variables value | ||
28 | +sub simple_process_insert { | ||
29 | + my $key = shift; | ||
30 | + my $value = shift; | ||
31 | + my $envvar = $callbacks->{$key}->[1][0]; | ||
32 | + | ||
33 | + if ($ENV{$envvar}) { | ||
34 | + # Strip quotes from value | ||
35 | + $value =~ s/^\'//; | ||
36 | + $value =~ s/\'$//; | ||
37 | + # Remove -I/usr/local/... from the value | ||
38 | + $value =~ s#\W-I/usr/local/\w+\W##g; | ||
39 | + # Prepend env var (OE setting) to value | ||
40 | + print("$key=\'$ENV{$envvar} $value\'\n"); | ||
41 | + } | ||
42 | +} | ||
43 | + | ||
44 | sub library_munge { | ||
45 | my $key = shift; | ||
46 | my $value = shift; | ||
diff --git a/meta/packages/perl/perl-5.8.8/native-makedepend-dash.patch b/meta/packages/perl/perl-5.8.8/native-makedepend-dash.patch new file mode 100644 index 0000000000..1f15474377 --- /dev/null +++ b/meta/packages/perl/perl-5.8.8/native-makedepend-dash.patch | |||
@@ -0,0 +1,13 @@ | |||
1 | Index: perl-5.8.8/makedepend.SH | ||
2 | =================================================================== | ||
3 | --- perl-5.8.8.orig/makedepend.SH 2007-05-24 12:06:52.000000000 +1000 | ||
4 | +++ perl-5.8.8/makedepend.SH 2007-05-24 12:27:33.000000000 +1000 | ||
5 | @@ -128,7 +128,7 @@ | ||
6 | *.y) filebase=`basename $file .y` ;; | ||
7 | esac | ||
8 | case "$file" in | ||
9 | - */*) finc="-I`echo $file | sed 's#/[^/]*$##`" ;; | ||
10 | + */*) finc="-I`echo $file | sed 's#/[^/]*$##'`" ;; | ||
11 | *) finc= ;; | ||
12 | esac | ||
13 | $echo "Finding dependencies for $filebase$_o." | ||
diff --git a/meta/packages/perl/perl-5.8.8/native-perlinc.patch b/meta/packages/perl/perl-5.8.8/native-perlinc.patch new file mode 100644 index 0000000000..aea38a0b56 --- /dev/null +++ b/meta/packages/perl/perl-5.8.8/native-perlinc.patch | |||
@@ -0,0 +1,16 @@ | |||
1 | Index: perl-5.8.8/lib/ExtUtils/MM_Unix.pm | ||
2 | =================================================================== | ||
3 | --- perl-5.8.8.orig/lib/ExtUtils/MM_Unix.pm 2007-05-30 15:16:47.000000000 +1000 | ||
4 | +++ perl-5.8.8/lib/ExtUtils/MM_Unix.pm 2007-05-30 15:18:12.000000000 +1000 | ||
5 | @@ -1597,6 +1597,11 @@ | ||
6 | $self->{PERL_LIB} ||= $Config{privlibexp}; | ||
7 | $self->{PERL_ARCHLIB} ||= $Config{archlibexp}; | ||
8 | $self->{PERL_INC} = $self->catdir("$self->{PERL_ARCHLIB}","CORE"); # wild guess for now | ||
9 | + # Check for environment override so we'll find the headers in the correct place | ||
10 | + if (defined $ENV{PERL_INC}) | ||
11 | + { | ||
12 | + $self->{PERL_INC} = $ENV{PERL_INC}; | ||
13 | + } | ||
14 | my $perl_h; | ||
15 | |||
16 | if (not -f ($perl_h = $self->catfile($self->{PERL_INC},"perl.h")) | ||