Source: libtomcrypt Version: 1.18.2+dfsg-7 Tags: patch User: debian-cr...@lists.debian.org Usertags: cross-satisfiability
We want to remove libtool-bin from the Debian archive, because it is fundamentally incompatible with cross compilation. The intended way to use libtool is to generate one at configure time. This is not how libtomcrypt uses libtool. Instead, it tries to rely on a pre-configured libtool. I'm attaching a patch that generates a minimal libtool for building for your convenience. Helmut
diff --minimal -Nru libtomcrypt-1.18.2+dfsg/debian/changelog libtomcrypt-1.18.2+dfsg/debian/changelog --- libtomcrypt-1.18.2+dfsg/debian/changelog 2023-09-09 15:36:03.000000000 +0200 +++ libtomcrypt-1.18.2+dfsg/debian/changelog 2024-02-25 11:00:32.000000000 +0100 @@ -1,3 +1,10 @@ +libtomcrypt (1.18.2+dfsg-7.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Generate a libtool instead of relying on libtool-bin. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 25 Feb 2024 11:00:32 +0100 + libtomcrypt (1.18.2+dfsg-7) unstable; urgency=medium * Repack source without doc/crypt.pdf (Closes: #1046608) diff --minimal -Nru libtomcrypt-1.18.2+dfsg/debian/configure.ac libtomcrypt-1.18.2+dfsg/debian/configure.ac --- libtomcrypt-1.18.2+dfsg/debian/configure.ac 1970-01-01 01:00:00.000000000 +0100 +++ libtomcrypt-1.18.2+dfsg/debian/configure.ac 2024-02-25 10:58:53.000000000 +0100 @@ -0,0 +1,4 @@ +AC_INIT([dummy],[1.0]) +LT_INIT +AC_PROG_LIBTOOL +AC_OUTPUT diff --minimal -Nru libtomcrypt-1.18.2+dfsg/debian/control libtomcrypt-1.18.2+dfsg/debian/control --- libtomcrypt-1.18.2+dfsg/debian/control 2023-09-09 15:36:03.000000000 +0200 +++ libtomcrypt-1.18.2+dfsg/debian/control 2024-02-25 11:00:30.000000000 +0100 @@ -3,7 +3,6 @@ Maintainer: Nicolas Mora <babelou...@debian.org> Build-Depends: debhelper-compat (= 13), libtool, - libtool-bin, libgmp-dev, libtommath-dev, texlive-latex-base, diff --minimal -Nru libtomcrypt-1.18.2+dfsg/debian/rules libtomcrypt-1.18.2+dfsg/debian/rules --- libtomcrypt-1.18.2+dfsg/debian/rules 2023-09-09 15:36:03.000000000 +0200 +++ libtomcrypt-1.18.2+dfsg/debian/rules 2024-02-25 11:00:32.000000000 +0100 @@ -9,23 +9,24 @@ DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) -ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) - NUMJOBS := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) -else - NUMJOBS := 1 -endif +override_dh_auto_configure: + mkdir -p debian/libtool + cp debian/configure.ac debian/libtool/ + env -C debian/libtool LIBTOOLIZE='libtoolize -i' autoreconf -f -i + dh_auto_configure --sourcedirectory=debian/libtool override_dh_auto_test: $(MAKE) coverage EXTRALIBS="-lgmp -ltommath" override_dh_auto_build: $(MAKE) V=1 docs - $(MAKE) -f makefile.shared EXTRALIBS="-lgmp -ltommath" -j$(NUMJOBS) + dh_auto_build -- -f makefile.shared EXTRALIBS="-lgmp -ltommath" LIBTOOL="$(CURDIR)/debian/libtool/libtool" override_dh_auto_install: - $(MAKE) DESTDIR=$(CURDIR)/debian/tmp INSTALL_GROUP=root LIBPATH=/usr/lib/$(DEB_HOST_MULTIARCH) PREFIX=/usr install -f makefile.shared + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp INSTALL_GROUP=root LIBPATH=/usr/lib/$(DEB_HOST_MULTIARCH) PREFIX=/usr install -f makefile.shared LIBTOOL="$(CURDIR)/debian/libtool/libtool" override_dh_auto_clean: + rm -Rf debian/libtool rm -f doc/crypt.pdf dh_auto_clean --