Jeroen van Wolffelaar <[EMAIL PROTECTED]> (16/10/2006):
>   hardinfo | 0.3.7pre-4 |      unstable | m68k, s390
>   hardinfo |    0.4.1-5 |      unstable | source, alpha, amd64, arm,
>                                           hppa, i386, ia64, mips,
>                                           mipsel, powerpc, sparc
> 
> So the package does build also for alpha, ia64 and arm.

All arch's are currently in sync: 0.4.1-8 in unstable. So the list would
also include m68k and s390 (back).

> Is it broken on those architectures? Then you should ensure the
> package will not actually build on those architectures [...]

I really don't know about the possible breakages for those
architectures, but in case the following is useful to you: please find
attached a tiny patch (debdiff) implementing such a self-test. A
dpkg-architecture call could be added to ensure the DEB_HOST_ARCH
variable is set appropriately, maybe. Please also note that I don't plan
to NMU this package, I just wanted to generate a proper changelog entry
you could re-use.

Cheers,

-- 
Cyril Brulebois
diff -u hardinfo-0.4.1/debian/rules hardinfo-0.4.1/debian/rules
--- hardinfo-0.4.1/debian/rules
+++ hardinfo-0.4.1/debian/rules
@@ -7,6 +7,7 @@
 
 
 
+UNSUPPORTED_ARCHS = alpha ia64 arm s390 m68k
 
 CFLAGS = -Wall -g
 
@@ -21,6 +22,11 @@
 
 configure: configure-stamp
 configure-stamp:
+ifneq (,$(findstring $(DEB_HOST_ARCH), $(UNSUPPORTED_ARCHS)))
+	# Explicit fail to ensure that the package doesn't get built on architectures
+	# no longer supported, until the processor.h file is rewritten for each one.
+	exit 1
+endif
 	dh_testdir
 	./configure
 
diff -u hardinfo-0.4.1/debian/changelog hardinfo-0.4.1/debian/changelog
--- hardinfo-0.4.1/debian/changelog
+++ hardinfo-0.4.1/debian/changelog
@@ -1,3 +1,13 @@
+hardinfo (0.4.1-8.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Added an architecture test to exit with a failure on the architectures no
+    longer supported by upstream for this version, until processor.h are fixed
+    for each architecture (details in #385781). Currently, these architectures
+    are: alpha, ia64, arm, s390, m68k.
+
+ -- Cyril Brulebois <[EMAIL PROTECTED]>  Tue, 23 Jan 2007 08:53:03 +0100
+
 hardinfo (0.4.1-8) unstable; urgency=low
 
   * Fixed errors on processor.h on ia64 and alpha. 

Attachment: pgpyoautW4I4s.pgp
Description: PGP signature

Reply via email to