Package: pkg-config
Version: 0.29-6
Severity: important

Dear Maintainer,

recent versions of pkg-config fail to work in cross builds targetting Windows,
so such cross builds no longer work for many users.

Error message when calling i686-w64-mingw32-pkg-config or 
x86_64-w64-mingw32-pkg-config:

    Please install dpkg-dev to use pkg-config when cross-building

A simple fix just removes the problematic lines (which I think were introduced 
recently):

--- /usr/share/pkg-config-crosswrapper.orig  2019-01-27 05:56:33.000000000 +0100
+++ /usr/share/pkg-config-crosswrapper       2019-03-12 17:28:40.721179639 +0100
@@ -11,10 +11,6 @@
   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)"
-  if [ "$?" != 0 ]; then
-      echo "Please install dpkg-dev to use pkg-config when cross-building" >&2
-      exit 1
-  fi
   # Native multiarch path
   native_multiarch="$(cat /usr/lib/pkg-config.multiarch)"
 
A better fix would skip the multiarch check for *-w64-mingw32 as I don't expect
that Debian will add multiarch support for *-w64-mingw32 in the near future.

Best regards
Stefan Weil


-- System Information:
Debian Release: 10.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-debug'), (500, 'unstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/16 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pkg-config depends on:
ii  libc6         2.28-10
ii  libdpkg-perl  1.19.7
ii  libglib2.0-0  2.58.3-2

pkg-config recommends no packages.

Versions of packages pkg-config suggests:
ii  dpkg-dev  1.19.7

-- no debconf information

Reply via email to