Package: xtrs
Version: xtrs 4.9c-2
Severity: normal
User: [EMAIL PROTECTED]
Usertags: eabi

In order to fix build on armel, I looked into debian/rules and concluded
the arch stanza needs update.

1) DEB_BUILD_ARCH is wrong, see dpkg-architecture manpage
2) instead of looking debian arch, it makes more sense to
   look at the debian CPU, so hurd-i386, linux-i386 and kfreebsd-i386
   all work. Same for arm and armel which both are little-endian
3) So by using DEB_HOST_ARCH_CPU we support more systems with a shorter
   line :)

In case you intend to remain MIA, I can proceed to do a porter NMU
soon.


-- 
"rm -rf" only sounds scary if you don't have backups
diff -urN xtrs-4.9c/debian/rules xtrs-4.9c.new/debian/rules
--- xtrs-4.9c/debian/rules      2008-05-08 11:19:55.000000000 +0300
+++ xtrs-4.9c.new/debian/rules  2008-05-08 11:27:01.000000000 +0300
@@ -12,13 +12,13 @@
 #HTML2TEXT=lynx -dump -nolist
 HTML2TEXT=html2text -nobs -style pretty
 
-ARCH=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
 
-ifneq (,$(findstring $(ARCH),alpha amd64 arm hurd-i386 i386 ia64 mipsel sh3 
sh4))
+ifneq (,$(findstring $(ARCH),alpha amd64 arm i386 ia64 mipsel sh3 sh4))
 ENDIANNESS=little
 endif
 
-ifneq (,$(findstring $(ARCH),hppa m68k mips powerpc ppc64 sparc s390))
+ifneq (,$(findstring $(ARCH),armeb hppa m68k mips powerpc ppc64 sparc s390))
 ENDIANNESS=big
 endif
 

Reply via email to