Bug#625634: perl ftbfs with multiarch enabled

Matthias Klose doko at ubuntu.com
Wed May 4 17:50:20 UTC 2011


Package: perl
Version: 5.12.3-6
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch

ext/ODBM_File/hints/linux.pl checks for path names, which don't exist anymore 
once gdbm is built for multiarch:


# uses GDBM dbm compatibility feature - at least on SuSE 8.0
$self->{LIBS} = ['-lgdbm'];

# Debian/Ubuntu have /usr/lib/libgdbm_compat.so.3* but not this file,
# so linking may fail
if (-e '/usr/lib/libgdbm_compat.so' or -e '/usr/lib64/libgdbm_compat.so') {
     $self->{LIBS}->[0] .= ' -lgdbm_compat';
}

patch at
http://launchpadlibrarian.net/71069406/perl_5.12.3-6ubuntu1_5.12.3-6ubuntu2.diff.gz

Note, with a multiarch enabled glibc (with a missing /usr/include/asm), this 
still fails to build, as seen in
https://launchpadlibrarian.net/71070665/buildlog_ubuntu-oneiric-amd64.perl_5.12.3-6ubuntu2_FAILEDTOBUILD.txt.gz

# Verify that the headers are usable
for ph in `< debian/headers sed -e 's/\.h$/.ph/'`; do \
		if [ ! -f debian/tmp/usr/lib/perl/5.12/$ph ]; then \
			echo "$ph: missing"; else \
			echo $ph | ./perl.static debian/check-require debian/tmp \
				|| exit 1; \
		fi; \
	done
asm/termios.ph: missing
syscall.ph: Can't locate asm/unistd.ph in @INC (@INC contains: ./etc/perl 
./usr/local/lib/perl/5.12.3 ./usr/local/share/perl/5.12.3 ./usr/lib/perl5 
./usr/share/perl5 ./usr/lib/perl/5.12 ./usr/share/perl/5.12 
./usr/local/lib/site_perl) at usr/lib/perl/5.12/sys/syscall.ph line 7, <> line 1.
Compilation failed in require at usr/lib/perl/5.12/syscall.ph line 5, <> line 1.
Compilation failed in require at debian/check-require line 71, <> line 1.
make: *** [install-stamp] Error 1






More information about the Perl-maintainers mailing list