Source: dhcp-helper Version: 1.2-3.2 Tags: patch User: [email protected] Usertags: ftcbfs
dhcp-helper successfully cross builds a broken package, because it simply does not honour any DEB_HOST variables and builds for the build architecture instead. I'm attaching a patch to make it use cross tools. More generally, I recommend using debhelper which would make the bulk of this patch unnecessary. Helmut
diff --minimal -Nru dhcp-helper-1.2/debian/changelog dhcp-helper-1.2/debian/changelog --- dhcp-helper-1.2/debian/changelog 2024-02-09 14:16:21.000000000 +0100 +++ dhcp-helper-1.2/debian/changelog 2024-10-30 06:20:28.000000000 +0100 @@ -1,3 +1,10 @@ +dhcp-helper (1.2-3.3) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Use cross tools. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 30 Oct 2024 06:20:28 +0100 + dhcp-helper (1.2-3.2) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru dhcp-helper-1.2/debian/rules dhcp-helper-1.2/debian/rules --- dhcp-helper-1.2/debian/rules 2024-02-09 14:16:21.000000000 +0100 +++ dhcp-helper-1.2/debian/rules 2024-10-30 06:20:27.000000000 +0100 @@ -11,6 +11,8 @@ package=dhcp-helper +include /usr/share/dpkg/buildtools.mk + CFLAGS = $(shell export DEB_BUILD_OPTIONS=$(DEB_BUILD_OPTIONS); dpkg-buildflags --get CFLAGS) CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS) CFLAGS += $(shell dpkg-buildflags --get LDFLAGS) @@ -19,7 +21,7 @@ build: $(checkdir) - make CC=gcc CFLAGS="$(CFLAGS)" + make 'CC=$(CC)' CFLAGS="$(CFLAGS)" touch build clean: @@ -49,7 +51,7 @@ install -m 755 debian/postinst debian/postrm debian/prerm debian/tmp/DEBIAN install -m 755 dhcp-helper debian/tmp/usr/sbin ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - strip -R .note -R .comment debian/tmp/usr/sbin/dhcp-helper + $(STRIP) -R .note -R .comment debian/tmp/usr/sbin/dhcp-helper endif install -m 755 debian/init debian/tmp/etc/init.d/dhcp-helper install -m 644 debian/default debian/tmp/etc/default/dhcp-helper

