Package: util-linux
Version: 2.12p-5
Severity: wishlist
Tags: patch

When building 'util-linux' on ppc64/unstable,
I currently get the following error:

install debian/mount.postinst debian/tmp-mount/DEBIAN/postinst
install debian/mount.prerm   debian/tmp-mount/DEBIAN/prerm
ls debian/tmp-mount/{bin,sbin}/* | xargs dpkg-shlibdeps -pmount
dpkg-gencontrol -isp -pmount -Pdebian/tmp-mount
dpkg-gencontrol: error: current build architecture ppc64 does not appear in 
package's list (alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc sh s390 
sparc sparc64)
make: *** [binary-arch] Error 255

The attached patch adds support for the ppc64 architecture to 'util-linux'.

Regards
Andreas Jochens

diff -urN ../tmp-orig/util-linux-2.12p/debian/control ./debian/control
--- ../tmp-orig/util-linux-2.12p/debian/control 2005-08-09 07:32:14.000000000 
+0000
+++ ./debian/control    2005-08-09 07:29:12.000000000 +0000
@@ -34,7 +34,7 @@
  messages in other languages than English.
 
 Package: mount
-Architecture: alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc sh s390 
sparc sparc64
+Architecture: alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc ppc64 sh 
s390 sparc sparc64
 Essential: yes
 Pre-Depends: ${mount:Depends}
 Description: Tools for mounting and manipulating filesystems
@@ -54,7 +54,7 @@
  Included are: logger, renice, replay, script, wall
 
 Package: fdisk-udeb
-Architecture: alpha amd64 arm hppa i386 ia64 mips mipsel powerpc hurd-i386 
sparc s390
+Architecture: alpha amd64 arm hppa i386 ia64 mips mipsel powerpc ppc64 
hurd-i386 sparc s390
 Priority: extra
 Section: debian-installer
 Depends: ${cfdisk-udeb:Depends}
diff -urN ../tmp-orig/util-linux-2.12p/debian/rules ./debian/rules
--- ../tmp-orig/util-linux-2.12p/debian/rules   2005-08-09 07:32:14.000000000 
+0000
+++ ./debian/rules      2005-08-09 07:32:01.000000000 +0000
@@ -21,7 +21,7 @@
 export arch = $(DEB_HOST_ARCH)
 version := $(shell sed -e '1{;s|^util-linux (\(.*\))\ .*|\1|;q;}' 
debian/changelog)
 
-fdisk_arch = $(findstring $(arch),alpha i386 powerpc arm mips mipsel hppa ia64 
hurd-i386 amd64 s390)
+fdisk_arch = $(findstring $(arch),alpha i386 powerpc ppc64 arm mips mipsel 
hppa ia64 hurd-i386 amd64 s390)
 sparc = $(findstring $(arch),sparc)
 nohwclock = $(findstring $(arch),s390)
 
@@ -196,7 +196,7 @@
        install -m 644 $(DOCFILES)  debian/tmp/usr/share/doc/$(PACKAGE)
 endif
        install -m 644 $(EXAMPLES)  debian/tmp/usr/share/doc/$(PACKAGE)/examples
-ifeq ($(arch), powerpc)
+ifeq ($(arch),$(findstring $(arch),powerpc ppc64))
        mv -f debian/tmp/sbin/fdisk debian/tmp/sbin/ddisk
        mv -f debian/tmp/usr/share/man/man8/fdisk.8 
debian/tmp/usr/share/man/man8/ddisk.8
 endif
@@ -208,7 +208,7 @@
        (cd debian/tmp/sbin ; mv agetty getty)
        (cd debian/tmp/usr/share/man/man8 ; mv agetty.8 getty.8)
 ifneq ($(arch), $(nohwclock))
-ifneq ($(arch), powerpc)
+ifneq ($(arch),$(findstring $(arch),powerpc ppc64))
        (cd debian/tmp/usr/share/man/man8 && ln -s hwclock.8.gz clock.8.gz)
 endif
 endif


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

Reply via email to