Use DEB_HOST_GNU_TYPE for the meson build directory.
authorPeter Pentchev <roam@debian.org>
Thu, 18 Jun 2020 19:40:30 +0000 (22:40 +0300)
committerPeter Pentchev <roam@debian.org>
Thu, 18 Jun 2020 19:40:30 +0000 (22:40 +0300)
debian/rules

index 69bc1c63256ad34a1fd0278980bb488a8d3e569e..fc50a2600506a83d4bbafdb83c1e7d883a40db15 100755 (executable)
@@ -4,7 +4,7 @@
 DEB_BUILD_MAINT_OPTIONS=       hardening=+all
 export DEB_BUILD_MAINT_OPTIONS
 
-MARCH:=        $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+GARCH:=        $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
 %:
        dh '$@'
@@ -13,8 +13,8 @@ override_dh_auto_configure:
        dh_auto_configure -- -Dwith-openssl=disabled
 
 execute_after_dh_auto_test:
-       env PYTHONPATH=debian/tests python3 -B -m pychunk.roundtrip -d 'obj-${MARCH}/src' -f '/usr/share/dict/american-english'
-       env PYTHONPATH=debian/tests python3 -B -m pychunk.roundtrip -d 'obj-${MARCH}/src' -f "$$(readlink -f -- "$$(command -v gcc)")"
+       env PYTHONPATH=debian/tests python3 -B -m pychunk.roundtrip -d 'obj-${GARCH}/src' -f '/usr/share/dict/american-english'
+       env PYTHONPATH=debian/tests python3 -B -m pychunk.roundtrip -d 'obj-${GARCH}/src' -f "$$(readlink -f -- "$$(command -v gcc)")"
 
 override_dh_makeshlibs:
        dh_makeshlibs -- -c4