Package: mac-fdisk
Version: 0.1-12
Severity: serious
Tags: patch

When building 'mac-fdisk' on powerpc/unstable,
I get the following error:

dh_fixperms: Compatibility levels before 3 are deprecated.
        find debian/mac-fdisk-cross  -print0 2>/dev/null | xargs -0r chown 
--no-dereference 0:0
        find debian/mac-fdisk-cross ! -type l  -print0 2>/dev/null | xargs -0r 
chmod go=rX,u+rw,a-s
        find debian/mac-fdisk-cross/usr/share/doc -type f  ! -regex 
'debian/mac-fdisk-cross/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null | 
xargs -0r chmod 644
        find debian/mac-fdisk-cross/usr/share/doc -type d  -print0 2>/dev/null 
| xargs -0r chmod 755
        find debian/mac-fdisk-cross/usr/share/man 
debian/mac-fdisk-cross/usr/man/ debian/mac-fdisk-cross/usr/X11*/man/ -type f  
-print0 2>/dev/null | xargs -0r chmod 644
        find debian/mac-fdisk-cross -perm -5 -type f \( -name '*.so*' -or -name 
'*.la' -or -name '*.a' \)  -print0 2>/dev/null | xargs -0r chmod 644
        find debian/mac-fdisk-cross/usr/include  -type f -name '*.h'  -print0 
2>/dev/null | xargs -0r chmod 644
        find debian/mac-fdisk-cross/usr/lib/perl5 
debian/mac-fdisk-cross/usr/share/perl5 -type f -perm -5 -name '*.pm'  -print0 
2>/dev/null | xargs -0r chmod a-X
dh_installdeb: Compatibility levels before 3 are deprecated.
        install -o 0 -g 0 -d debian/mac-fdisk-cross/DEBIAN
Use of uninitialized value in string eq at 
/usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 643.
dh_shlibdeps: Compatibility levels before 3 are deprecated.
        dpkg-shlibdeps -Tdebian/mac-fdisk-cross.substvars 
debian/mac-fdisk-cross/usr/sbin/mac-fdisk
dh_gencontrol: Compatibility levels before 3 are deprecated.
Use of uninitialized value in string eq at 
/usr/share/perl5/Debian/Debhelper/Dh_Lib.pm line 643.
        dpkg-gencontrol -pmac-fdisk-cross -ldebian/changelog -isp 
-Tdebian/mac-fdisk-cross.substvars -Pdebian/mac-fdisk-cross
dpkg-gencontrol: error: package mac-fdisk-cross not in control info
dh_gencontrol: command returned error code 65280
make: *** [binary-arch] Error 1

This occurs because debian/rules uses 'dpkg --print-gnu-build-architecture'
to set the BUILDARCH variable. The new dpkg version in unstable does
not support the '--print-gnu-build-architecture' parameter.

With the attached patch 'mac-fdisk' can be compiled on powerpc/unstable.

Regards
Andreas Jochens

diff -urN ../tmp-orig/mac-fdisk-0.1/debian/rules ./debian/rules
--- ../tmp-orig/mac-fdisk-0.1/debian/rules      2005-09-13 14:24:34.000000000 
+0200
+++ ./debian/rules      2005-09-13 14:24:26.000000000 +0200
@@ -4,7 +4,7 @@
 
 export DH_VERBOSE=1
 
-BUILDARCH = $(shell dpkg --print-gnu-build-architecture)
+BUILDARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
 POWERPC = $(findstring $(BUILDARCH),powerpc ppc64)
 
 packmn  = mac-fdisk


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to