Source: libwmf
Version: 0.2.12-5
Tags:patch
Hello, calling pkg-config on "debian/tests/build" breaks cross-autopkgtesting.
The following patch should properly fix the issue
diff -Nru libwmf-0.2.12/debian/changelog libwmf-0.2.12/debian/changelog
--- libwmf-0.2.12/debian/changelog 2022-01-25 09:16:35.0 +0100
+++ libwmf-0.2.12/debian/changelog 2022-02-04 12:07:59.0 +0100
@@ -1,3 +1,9 @@
+libwmf (0.2.12-5.1) unstable; urgency=medium
+
+ * Fix build on cross-autopkgtest-env (Closes: #-1)
+
+ -- Gianfranco Costamagna Fri, 04 Feb 2022
12:07:59 +0100
+
libwmf (0.2.12-5) unstable; urgency=medium
* Upload to unstable
diff -Nru libwmf-0.2.12/debian/tests/build libwmf-0.2.12/debian/tests/build
--- libwmf-0.2.12/debian/tests/build2022-01-25 09:16:35.0 +0100
+++ libwmf-0.2.12/debian/tests/build2022-02-04 12:07:57.0 +0100
@@ -35,6 +35,6 @@
}
EOF
-${CROSS_COMPILE}gcc -o wmf-api wmf-api.c $(pkg-config --cflags --libs libwmf)
+${CROSS_COMPILE}gcc -o wmf-api wmf-api.c $("${CROSS_COMPILE}pkg-config"
--cflags --libs libwmf)
test -x wmf-api
echo "everything seems OK"