Bug#1004961: libwmf: please fix cross-test on i386

2023-05-17 Thread Andreas Metzler
On 2023-05-17 Gianfranco Costamagna  wrote:
> control: tags -1 patch pending

> Hello, this debdiff will be uploaded in unstable once the current one 
> migrates.


Hello Gianfranco,

looks like you accidentally closed this bug instead of tagging it.

cu Andreas



Bug#1004961: libwmf: please fix cross-test on i386

2022-02-04 Thread Gianfranco Costamagna

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"