Bug#964790: libmicrohttpd: please make autopkgtests cross-friendly

2020-07-10 Thread Gianfranco Costamagna
Source: libmicrohttpd
Version: 0.9.71-1
Severity: normal
tags: patch

Hello, can you please make tests cross-friendly, so we can test i386 on amd64?

Trivial patch will be directly committed on git once I have confirmation of the 
sanity.

however, it will be similar to this:

--- libmicrohttpd-0.9.71/debian/tests/build 2020-03-14 15:58:09.0 
+0100
+++ libmicrohttpd-0.9.71/debian/tests/build 2020-07-10 15:55:03.0 
+0200
@@ -5,6 +5,12 @@
 
 set -e
 
+if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
+CROSS_COMPILE=${DEB_HOST_GNU_TYPE}-
+else
+CROSS_COMPILE=
+fi
+
 WORKDIR=$(mktemp -d)
 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
 cd $WORKDIR
@@ -18,7 +24,7 @@
 return 0;
 }
 EOF
-gcc `pkg-config --cflags libmicrohttpd` -o build_test build_test.c `pkg-config 
--libs libmicrohttpd`
+${CROSS_COMPILE}gcc `${CROSS_COMPILE}pkg-config --cflags libmicrohttpd` -o 
build_test build_test.c `${CROSS_COMPILE}pkg-config --libs libmicrohttpd`
 echo "build: OK"
 [ -x build_test ]
 ./build_test


cheers,

Gianfranco



Bug#964790: libmicrohttpd: please make autopkgtests cross-friendly

2020-07-15 Thread Bertrand Marc
severity 964790 wishlist
thanks

Hi Gianfranco,

This looks fine to me, please go ahead.

Cheers,
Bertrand



Bug#964790: libmicrohttpd: please make autopkgtests cross-friendly

2020-07-17 Thread Gianfranco Costamagna
hello, no need to do an upload just for this...
feel free to add on the next planned release!

thanks for all!

G.






Il mercoledì 15 luglio 2020, 16:50:06 CEST, Bertrand Marc  ha 
scritto: 





severity 964790 wishlist
thanks

Hi Gianfranco,

This looks fine to me, please go ahead.

Cheers,
Bertrand