Source: otpw Version: 1.5-5 Tags: patch User: [email protected] Usertags: ftcbfs
otpw fails to cross build from source, because it does not pass cross tools to make and thus uses the build architecture compiler as a make default. The easiest way of fixing this - using dh_auto_build - makes otpw cross buildable. I'm attaching a patch for your convenience. Helmut
diff -Nru otpw-1.5/debian/changelog otpw-1.5/debian/changelog --- otpw-1.5/debian/changelog 2025-09-08 10:22:19.000000000 +0200 +++ otpw-1.5/debian/changelog 2025-09-25 11:09:01.000000000 +0200 @@ -1,3 +1,10 @@ +otpw (1.5-5.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Thu, 25 Sep 2025 11:09:01 +0200 + otpw (1.5-5) unstable; urgency=medium * add gcc15.patch (Closes: #1097531) diff -Nru otpw-1.5/debian/rules otpw-1.5/debian/rules --- otpw-1.5/debian/rules 2025-09-08 10:22:19.000000000 +0200 +++ otpw-1.5/debian/rules 2025-09-25 11:09:00.000000000 +0200 @@ -31,7 +31,7 @@ dh_testdir # Add here commands to compile the package. - $(MAKE) CFLAGS="-fPIC -O -ggdb -W -Wall $(HCFLAGS) $(HCPPFLAGS)" LDFLAGS="$(HLDFLAGS) -Wl,-z,now" otpw-gen pam_otpw.so + dh_auto_build -- CFLAGS="-fPIC -O -ggdb -W -Wall $(HCFLAGS) $(HCPPFLAGS)" LDFLAGS="$(HLDFLAGS) -Wl,-z,now" otpw-gen pam_otpw.so touch $@ clean:

