Source: jcal Version: 0.5.1-0.2 Tags: patch User: [email protected] Usertags: ftcbfs
jcal fails to cross build from source, because it does not pass --host to configure. The easiest way of doing so is using dh_auto_configure. I went slightly beyond that and converted all of the debhelper overrides to use dh_auto_*. Note that dh_auto_configure also passes a multiarch libdir and therefore libraries move to multiarch locations. I've updated the *.install files accordingly. Please consider applying the attached patch. Helmut
diff -Nru jcal-0.5.1/debian/changelog jcal-0.5.1/debian/changelog --- jcal-0.5.1/debian/changelog 2025-04-30 14:11:12.000000000 +0200 +++ jcal-0.5.1/debian/changelog 2025-09-10 07:12:08.000000000 +0200 @@ -1,3 +1,12 @@ +jcal (0.5.1-0.3) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_* do its thing. + + This moves libraries to multiarch locations. + + -- Helmut Grohne <[email protected]> Wed, 10 Sep 2025 07:12:08 +0200 + jcal (0.5.1-0.2) unstable; urgency=medium [ Danial Behzadi ] diff -Nru jcal-0.5.1/debian/libjalali-dev.install jcal-0.5.1/debian/libjalali-dev.install --- jcal-0.5.1/debian/libjalali-dev.install 2025-04-24 14:14:03.000000000 +0200 +++ jcal-0.5.1/debian/libjalali-dev.install 2025-09-10 07:12:08.000000000 +0200 @@ -1,3 +1,3 @@ usr/include/jalali/*.h -usr/lib/*.a -usr/lib/*.so +usr/lib/*/*.a +usr/lib/*/*.so diff -Nru jcal-0.5.1/debian/libjalali0.install jcal-0.5.1/debian/libjalali0.install --- jcal-0.5.1/debian/libjalali0.install 2025-04-24 14:14:03.000000000 +0200 +++ jcal-0.5.1/debian/libjalali0.install 2025-09-10 07:12:08.000000000 +0200 @@ -1 +1 @@ -usr/lib/libjalali.so.* +usr/lib/*/libjalali.so.* diff -Nru jcal-0.5.1/debian/not-installed jcal-0.5.1/debian/not-installed --- jcal-0.5.1/debian/not-installed 2025-04-24 14:14:03.000000000 +0200 +++ jcal-0.5.1/debian/not-installed 2025-09-10 07:12:08.000000000 +0200 @@ -4,4 +4,4 @@ usr/bin/jyinfo usr/bin/leap usr/bin/sec_converter -usr/lib/libjalali.la +usr/lib/*/libjalali.la diff -Nru jcal-0.5.1/debian/rules jcal-0.5.1/debian/rules --- jcal-0.5.1/debian/rules 2025-04-24 14:14:03.000000000 +0200 +++ jcal-0.5.1/debian/rules 2025-09-10 07:12:08.000000000 +0200 @@ -12,21 +12,8 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk - -# These are used for cross-compiling and for saving the configure script -# from having to guess our platform (since we know it already) - %: - dh $@ - -override_dh_auto_configure: - cd sources && ./autogen.sh && ./configure --prefix=/usr - dh_auto_configure - -override_dh_auto_build: - cd sources && make - dh_auto_build + dh $@ --sourcedirectory=sources --buildsystem=autoconf -override_dh_auto_install: - cd sources && make DESTDIR=$(CURDIR)/debian/tmp install - dh_auto_install +execute_before_dh_auto_configure: + env -C sources ./autogen.sh

