Package: perl-modules
Version: 5.10.0-10
Severity: important
Tags: patch
Hi,
All packages using the Build module and destdir FTBFS now like this:
> ./Build install
> destdir=/build/buildd/libimage-imlib2-perl-2.00/debian/libimage-imlib2-perl
> verbose=1
> Unknown OS type 'gnu' - using default settings
> Files found in blib/arch: installing files in blib/lib into architecture
> dependent library tree
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> ERROR: Can't create '/usr/lib/perl5/Image'
> mkdir /usr/lib/perl5/Image: Permission denied at
> /usr/share/perl/5.10/ExtUtils/Install.pm line 479
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> at /usr/share/perl/5.10/Module/Build/Base.pm line 2804
> make: *** [install] Error 13
This is apparently because 'gnu' is missing from the %OSTYPES hash at
the top of /usr/share/perl/5.10.0/Module/Build.pm, so it does not get
set to Unix, and later on the destdir stuff is handled wrong.
I've attached a diff which I verified works fine.
cheers,
Michael
--- /org/buildd/build/chroot-unstable/usr/share/perl/5.10.0/Module/Build.pm
2008-04-30 17:49:34.000000000 +0200
+++ /org/buildd/Build.pm 2008-05-09 15:57:25.000000000 +0200
@@ -29,6 +29,7 @@
dragonfly Unix
dynixptx Unix
freebsd Unix
+ gnu Unix
linux Unix
hpux Unix
irix Unix