Package: parted Version: 1.8.8.git.2008.03.24-7 Severity: normal Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu ubuntu-patch intrepid
Hi, I found (a while back, so I'm afraid I don't have sample partition tables to hand at the moment) that the partition table on Cell platforms was sometimes misdetected as pc98. It seems that it should be safe to disable pc98 partition tables on powerpc; they're rare to start with, and I think it's very unlikely that anyone will ever want to use one on powerpc. The attached patch does this, and has been in Ubuntu for a while now without any problems I know of. Thanks, -- Colin Watson [EMAIL PROTECTED]
diff -u parted-1.8.8.git.2008.03.24/debian/rules parted-1.8.8.git.2008.03.24/debian/rules --- parted-1.8.8.git.2008.03.24/debian/rules +++ parted-1.8.8.git.2008.03.24/debian/rules @@ -77,6 +77,10 @@ DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) endif +ifeq (, $(DEB_HOST_ARCH)) +DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH) +endif + ifeq (, $(DEB_HOST_GNU_TYPE)) DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) endif @@ -114,6 +118,12 @@ CONFFLAGS += --disable-Werror endif +# Cell partition tables get misdetected for pc98; we don't need pc98 support +# on powerpc +ifeq (powerpc, $(DEB_HOST_ARCH)) + CONFFLAGS += --disable-pc98 +endif + # Workaround/fix bug #442308 CFLAGS += -fgnu89-inline UDEB_CFLAGS += -fgnu89-inline