Package: libdatrie
Version: 0.2.13-1
Severity: minor
Tags: patch
User: [email protected]
Usertags: origin-ubuntu hirsute ubuntu-patch
X-Debbugs-Cc: [email protected]


In Ubuntu, the attached patch was applied to achieve the following:

  * Make build test cross-testable


-- System Information:
Debian Release: bullseye/sid
  APT prefers hirsute
  APT policy: (500, 'hirsute'), (500, 'groovy-updates'), (500, 
'groovy-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-14-generic (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en
diff -Nru libdatrie-0.2.13/debian/tests/build 
libdatrie-0.2.13/debian/tests/build
--- libdatrie-0.2.13/debian/tests/build 2021-01-29 11:41:25.000000000 +0100
+++ libdatrie-0.2.13/debian/tests/build 2021-02-11 11:21:52.000000000 +0100
@@ -4,6 +4,15 @@
 
 set -e
 
+if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
+    CC="$DEB_HOST_GNU_TYPE-g++"
+    PKGCONFIG="$DEB_HOST_GNU_TYPE-pkg-config"
+else
+    CC=gcc
+    PKGCONFIG=pkg-config
+fi
+
+
 WORKDIR=$(mktemp -d)
 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
 cd $WORKDIR
@@ -27,7 +36,7 @@
 }
 EOF
 
-gcc -o libdatrietest libdatrietest.c $(pkg-config --cflags --libs datrie-0.2)
+$CC -o libdatrietest libdatrietest.c $($PKGCONFIG --cflags --libs datrie-0.2)
 echo "build: OK"
 [ -x libdatrietest ]
 ./libdatrietest

Reply via email to