Source: cycfx2prog Version: 0.47-1.2 Tags: patch User: [email protected] Usertags: ftcbfs
cycfx2prog fails to cross build from source, because it uses cdbs and as a result uses the build architecture compiler. Cross building with cdbs tends to not work well. I propose converting the package to debhelper. Doing so removes a lot of code and makes cross building just work. Please find a patch attached for your convenience. Helmut
diff --minimal -Nru cycfx2prog-0.47/debian/changelog cycfx2prog-0.47/debian/changelog --- cycfx2prog-0.47/debian/changelog 2024-03-24 20:53:34.000000000 +0100 +++ cycfx2prog-0.47/debian/changelog 2024-10-30 21:19:13.000000000 +0100 @@ -1,3 +1,10 @@ +cycfx2prog (0.47-1.3) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Convert to debhelper. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Wed, 30 Oct 2024 21:19:13 +0100 + cycfx2prog (0.47-1.2) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru cycfx2prog-0.47/debian/control cycfx2prog-0.47/debian/control --- cycfx2prog-0.47/debian/control 2024-03-24 20:53:13.000000000 +0100 +++ cycfx2prog-0.47/debian/control 2024-10-30 21:16:51.000000000 +0100 @@ -2,7 +2,7 @@ Section: electronics Priority: optional Maintainer: Uwe Hermann <[email protected]> -Build-Depends: cdbs, debhelper (>= 9), libusb-dev +Build-Depends: debhelper (>= 9), libusb-dev Standards-Version: 3.9.8 Homepage: http://www.triplespark.net/elec/periph/USB-FX2/software/ diff --minimal -Nru cycfx2prog-0.47/debian/dirs cycfx2prog-0.47/debian/dirs --- cycfx2prog-0.47/debian/dirs 2024-03-24 20:53:13.000000000 +0100 +++ cycfx2prog-0.47/debian/dirs 1970-01-01 01:00:00.000000000 +0100 @@ -1 +0,0 @@ -usr/bin diff --minimal -Nru cycfx2prog-0.47/debian/install cycfx2prog-0.47/debian/install --- cycfx2prog-0.47/debian/install 1970-01-01 01:00:00.000000000 +0100 +++ cycfx2prog-0.47/debian/install 2024-10-30 21:17:50.000000000 +0100 @@ -0,0 +1 @@ +cycfx2prog usr/bin diff --minimal -Nru cycfx2prog-0.47/debian/patches/series cycfx2prog-0.47/debian/patches/series --- cycfx2prog-0.47/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ cycfx2prog-0.47/debian/patches/series 2024-10-30 21:19:13.000000000 +0100 @@ -0,0 +1 @@ +fix-ftbfs-with-ls-as-needed.patch diff --minimal -Nru cycfx2prog-0.47/debian/rules cycfx2prog-0.47/debian/rules --- cycfx2prog-0.47/debian/rules 2024-03-24 20:53:13.000000000 +0100 +++ cycfx2prog-0.47/debian/rules 2024-10-30 21:19:13.000000000 +0100 @@ -1,17 +1,8 @@ #!/usr/bin/make -f - -# Note: The version number here must be increased with each upstream release! -CFLAGS = -O2 -fno-rtti -fno-exceptions -D'CYCFX2PROG_VERSION=\"0.47\"' -W \ - -Wall -Wformat -LDFLAGS = -lusb - -include /usr/share/cdbs/1/rules/debhelper.mk -include /usr/share/cdbs/1/class/makefile.mk -include /usr/share/cdbs/1/rules/simple-patchsys.mk -binary-install/cycfx2prog:: - install cycfx2prog debian/cycfx2prog/usr/bin +%: + dh $@ -clean:: - rm -f cycfx2prog +override_dh_auto_clean: + dh_auto_clean -- distclean

