[uClibc]perl build on dev image
Jeremy Jones
jeremy at samnjack.com
Wed May 14 22:03:40 UTC 2003
On Wed, 2003-05-14 at 15:31, Peter S. Mazinger wrote:
Try this patch, from a discussion some time ago... Don't remember
exactly who to credit for this.
Jeremy
--- perl-5.8.0-RC2/lib/ExtUtils/t/INST_PREFIX.t.pix 2002-06-01
19:03:16.000000000 +0200
+++ perl-5.8.0-RC2/lib/ExtUtils/t/INST_PREFIX.t 2002-06-25
13:43:23.000000000 +0200
@@ -92,20 +92,20 @@
# support for man page skipping
$prefix = 'none' if $var =~ /man/ && !$Config{"install$var"};
- like( $mm->{uc "install$var"}, qr/^\Q$prefix\E/, "PREFIX + $var" );
+ like( $mm->{uc "install$var"}, qr//, "PREFIX + $var" );
}
foreach my $var (@Site_Install) {
my $prefix = $Is_VMS ? '[.foo.bar' : File::Spec->catdir(qw(foo
bar));
- like( $mm->{uc "install$var"}, qr/^\Q$prefix\E/,
+ like( $mm->{uc "install$var"}, qr//,
"SITEPREFIX + $var"
);
}
foreach my $var (@Vend_Install) {
my $prefix = $Is_VMS ? '[.foo.bar' : File::Spec->catdir(qw(foo
bar));
- like( $mm->{uc "install$var"}, qr/^\Q$prefix\E/,
+ like( $mm->{uc "install$var"}, qr//,
"VENDORPREFIX +
$var" );
}
--- perl-5.8.0-RC2/lib/ExtUtils/MM_Unix.pm.pix 2002-06-25
13:02:22.000000000 +0200
+++ perl-5.8.0-RC2/lib/ExtUtils/MM_Unix.pm 2002-06-25
13:36:37.000000000 +0200
@@ -1673,6 +1673,19 @@
$self->init_INST;
$self->init_INSTALL;
+ # <pixel>
+ # have "INSTALLBIN = $(PREFIX)/bin" instead of "INSTALLBIN =
/usr/bin" in generated Makefile
+ # (and do the same for INSTALLSITELIB, INSTALLARCHLIB...)
+ # this allows to build with PREFIX=/usr, then "make install
PREFIX=$RPM_BUILD_ROOT/usr"
+ # (this feature has been concensiously dropped since version
5.91_01, cf ExtUtils/Changes)
+ if ($self->{PREFIX}) {
+ foreach (grep { /^INSTALL/ && $self->{$_} } keys %$self) {
+# print STDERR "$_ is $self->{$_}\n";
+ $self->{$_} =~ s|^\Q$self->{PREFIX}|\$(PREFIX)|;
+ }
+ }
+ # </pixel>
+
$self->{MAN1EXT} ||= $Config{man1ext};
$self->{MAN3EXT} ||= $Config{man3ext};
--- perl-5.8.0-RC2/lib/ExtUtils/MakeMaker.pm.pix 2002-06-20
02:18:47.000000000 +0200
+++ perl-5.8.0-RC2/lib/ExtUtils/MakeMaker.pm 2002-06-25
13:07:12.000000000 +0200
@@ -561,6 +561,10 @@
# $VERSION (Revision: $Revision) from the contents of
# Makefile.PL. Don't edit this file, edit Makefile.PL instead.
#
+# [Mandrake adaptation] Hacked to have
+# "INSTALLBIN = \$(PREFIX)/bin" instead of "INSTALLBIN = /usr/bin"
+# (and do the same for INSTALLSITELIB, INSTALLARCHLIB...)
+#
# ANY CHANGES MADE HERE WILL BE LOST!
#
# MakeMaker ARGV: $argv
> Hello!
>
> Has someone tried to build perl on a dev image?
> perl-5.00503 and perl-5.8.0 does not work for me
> perl-5.6.1 works, but some of the tests did not succeed (db, gdbm, ndbm,
> dbm, regexp, groups)
>
> Thanks for any hints,
>
> Peter
More information about the uClibc
mailing list