Package: src:pkg-config
Version: 0.29-2
Severity: important
Tags: sid stretch patch

the cross wrapper never runs with the cross environment, but behaves like the tool for native builds. The [ "$native_multiarch" = "$multiarch" ] test always succeeds.
  * Fix crosswrapper for cross builds.
 
diff -u pkg-config-0.29/debian/pkg-config-crosswrapper pkg-config-0.29/debian/pkg-config-crosswrapper
--- pkg-config-0.29/debian/pkg-config-crosswrapper
+++ pkg-config-0.29/debian/pkg-config-crosswrapper
@@ -11,11 +11,11 @@
   triplet="${basename%-pkg-config}"
   # Normalized multiarch path if any, e.g. i386-linux-gnu for i386
   multiarch="`dpkg-architecture -t"${triplet}" -qDEB_HOST_MULTIARCH 2>/dev/null`"
-  # Native multiarch path
-  native_multiarch="`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null`"
+  # Multiarch path for the build machine
+  build_multiarch="`dpkg-architecture -qDEB_BUILD_MULTIARCH 2>/dev/null`"
 
   # This can be used for native builds as well, in that case, just exec pkg-config "$@" directly.
-  if [ "$native_multiarch" = "$multiarch" ]; then
+  if [ "$build_multiarch" = "$multiarch" ]; then
      exec pkg-config "$@"
   fi
 

Reply via email to