Package: cityhash
Version: 1.1.0-1
Severity: serious
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu raring ubuntu-patch


In Ubuntu, I've worked around the FTBFS on arches with unsigned chars
with the following patch.  The correct solution would be to hunt down
everywhere in the source that incorrectly assumes char=uint, but this
works as a quick fix to make the testsuite pass again.

... Adam

-- System Information:
Debian Release: wheezy/sid
  APT prefers raring-updates
  APT policy: (500, 'raring-updates'), (500, 'raring-security'), (500, 'raring')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.7.0-4-generic (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru cityhash-1.1.0/debian/changelog cityhash-1.1.0/debian/changelog
diff -Nru cityhash-1.1.0/debian/rules cityhash-1.1.0/debian/rules
--- cityhash-1.1.0/debian/rules	2012-11-19 06:06:16.000000000 -0700
+++ cityhash-1.1.0/debian/rules	2012-11-28 17:57:09.000000000 -0700
@@ -2,6 +2,9 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+# The source assumes signed chars, apply quick hack:
+export DEB_CXXFLAGS_MAINT_APPEND = -fsigned-char
+
 %:
 	dh $@ --with autotools-dev
 

Reply via email to