Source: nss Version: 2:3.19.1-2 Tags: patch User: [email protected] Usertags: rebootstrap
Hi Mike, Thanks for improving upon my cross patch. As discussed on IRC, we observed that nss still fails to cross build, because it uses the build arch uname -m for the OS_TEST variable. We discussed that OS_TEST should be set to $(DEB_HOST_GNU_CPU) and I verified that this works. Thus, I am creating this bug report as a patch and reminder to add the missing piece. Thanks for your support with making Debian cross buildable Helmut
diff -Nru a/debian/rules b/debian/rules --- a/debian/rules +++ b/debian/rules @@ -5,6 +5,7 @@ $(call lazy,DEB_BUILD_GNU_TYPE,$$(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)) $(call lazy,DEB_HOST_ARCH,$$(shell dpkg-architecture -qDEB_HOST_ARCH)) $(call lazy,DEB_HOST_GNU_TYPE,$$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)) +$(call lazy,DEB_HOST_GNU_CPU,$$(shell dpkg-architecture -qDEB_HOST_GNU_CPU)) $(call lazy,DEB_HOST_MULTIARCH,$$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)) $(call lazy,CFLAGS,$$(shell dpkg-buildflags --get CFLAGS)) $(call lazy,CPPFLAGS,$$(shell dpkg-buildflags --get CPPFLAGS)) @@ -45,6 +46,7 @@ ifeq ($(origin RANLIB),default) TOOLCHAIN += RANLIB=$(DEB_HOST_GNU_TYPE)-ranlib endif +TOOLCHAIN += OS_TEST=$(DEB_HOST_GNU_CPU) endif # $(foreach foo,$(list),$(call cmd,some command $(foo))) expands to

