Hi,

thanks for maintaining this package.
The FTBFS is due to changed behavior of dpkg-architecture. I've attached a 
patch against debian/rules which changes DEB_BUILD_GNU_SYSTEM to 
DEB_BUILD_ARCH_OS and DEB_BUILD_GNU_CPU to DEB_BUILD_ARCH_CPU.

However 5.0.1 will still FTBFS, but the newer upstream version (5.3.0) [1] 
will compile (with the patched rules). 
Please also note that new version suggests g++-3.4 or later compared to 
current version.

Cheers,
        Stefan.

[1]: http://plg.uwaterloo.ca/~usystem/pub/uSystem/u++-5.3.0.tar.gz
--- debian/rules.orig	2006-01-08 20:25:28.000000000 +0100
+++ debian/rules	2006-01-08 20:25:53.000000000 +0100
@@ -2,8 +2,8 @@
 
 export DH_COMPAT=4
 
-export DEB_BUILD_GNU_SYSTEM  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM)
-export DEB_BUILD_GNU_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
+export DEB_BUILD_ARCH_OS  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
+export DEB_BUILD_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
 
 INSTALLATION_DIRS =   INSTALLBINDIR=/usr/bin \
 	              INSTALLLIBDIR=/usr/lib/u++ \
@@ -45,7 +45,7 @@
 
 binary: binary-arch binary-indep
 
-ifeq ($(findstring $(DEB_BUILD_GNU_CPU),$(BINARY_ARCHES)),)
+ifeq ($(findstring $(DEB_BUILD_ARCH_CPU),$(BINARY_ARCHES)),)
 
 install-arch:
 
@@ -71,7 +71,7 @@
 build-arch-stamp:
 	dh_testdir
 
-	$(MAKE) $(INSTALLATION_DIRS) $(DEB_BUILD_GNU_SYSTEM)-$(DEB_BUILD_GNU_CPU)
+	$(MAKE) $(INSTALLATION_DIRS) $(DEB_BUILD_ARCH_OS)-$(DEB_BUILD_ARCH_CPU)
 	$(MAKE)
 	$(MAKE) -C doc/man
 
@@ -108,12 +108,7 @@
 build-indep-stamp:
 	dh_testdir
 
-ifeq ($(findstring $(DEB_BUILD_GNU_CPU),$(BINARY_ARCHES)),)
-	# choice of cpu is unimportant, but it must be a cpu that u++ supports
-	$(MAKE) $(INSTALLATION_DIRS) $(DEB_BUILD_GNU_SYSTEM)-i386
-else
-	$(MAKE) $(INSTALLATION_DIRS) $(DEB_BUILD_GNU_SYSTEM)-$(DEB_BUILD_GNU_CPU)
-endif
+	$(MAKE) $(INSTALLATION_DIRS) $(DEB_BUILD_ARCH_OS)-$(DEB_BUILD_ARCH_CPU)
 	$(MAKE) -C doc/refman
 
 	touch build-indep-stamp

Attachment: pgpRyoCKkqAs3.pgp
Description: PGP signature

Reply via email to