Package: whois
Version: 5.0.20
Severity: normal
Tags: patch
User: crossbu...@debian.org 
Usertags: origin-ubuntu raring ubuntu-patch cross

In Ubuntu, the attached patch was applied to achieve the following:

  * Respect DEB_HOST_GNU_TYPE when selecting CC for cross-compiling.

It should be rather self-evident what this does, both from the above
changelog entry and from the patch itself.  Thanks for considering.

... 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 whois-5.0.20/debian/changelog whois-5.0.20ubuntu1/debian/changelog
diff -Nru whois-5.0.20/debian/rules whois-5.0.20ubuntu1/debian/rules
--- whois-5.0.20/debian/rules	2012-09-17 13:25:53.000000000 -0600
+++ whois-5.0.20ubuntu1/debian/rules	2012-12-07 23:58:55.000000000 -0700
@@ -1,6 +1,15 @@
 #!/usr/bin/make -f
 SHELL+= -e
 
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_TYPE  := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+  export CC = $(DEB_HOST_GNU_TYPE)-gcc
+else
+  export CC = gcc
+endif
+
 DPKG_EXPORT_BUILDFLAGS = 1
 -include /usr/share/dpkg/buildflags.mk
 

Reply via email to