Source: libtermkey
Version: 0.22-1
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. Usually, each build
system generates its own libtool configured for a particular combination
of architectures. This is not what libtermkey does as it uses a
pre-configured libtool from libtool-bin instead. I'm attaching a patch
that makes it generate its own libtool to avoid using libtool-bin.

Helmut
diff --minimal -Nru libtermkey-0.22/debian/changelog 
libtermkey-0.22/debian/changelog
--- libtermkey-0.22/debian/changelog    2019-12-20 14:27:40.000000000 +0100
+++ libtermkey-0.22/debian/changelog    2024-02-25 13:36:13.000000000 +0100
@@ -1,3 +1,10 @@
+libtermkey (0.22-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Libtoolize instead of using libtool-bin. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 25 Feb 2024 13:36:13 +0100
+
 libtermkey (0.22-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru libtermkey-0.22/debian/configure.ac 
libtermkey-0.22/debian/configure.ac
--- libtermkey-0.22/debian/configure.ac 1970-01-01 01:00:00.000000000 +0100
+++ libtermkey-0.22/debian/configure.ac 2024-02-25 13:33:06.000000000 +0100
@@ -0,0 +1,4 @@
+AC_INIT([dummy],[1.0])
+LT_INIT
+AC_PROG_LIBTOOL
+AC_OUTPUT
diff --minimal -Nru libtermkey-0.22/debian/control 
libtermkey-0.22/debian/control
--- libtermkey-0.22/debian/control      2019-12-20 14:27:40.000000000 +0100
+++ libtermkey-0.22/debian/control      2024-02-25 13:34:43.000000000 +0100
@@ -1,7 +1,7 @@
 Source: libtermkey
 Priority: optional
 Maintainer: James McCoy <james...@debian.org>
-Build-Depends: debhelper-compat (= 12), libunibilium-dev, libtool-bin, 
pkg-config, perl
+Build-Depends: debhelper-compat (= 12), libunibilium-dev, libtool, pkg-config, 
perl
 Standards-Version: 4.4.1
 Section: libs
 Rules-Requires-Root: no
diff --minimal -Nru libtermkey-0.22/debian/rules libtermkey-0.22/debian/rules
--- libtermkey-0.22/debian/rules        2019-12-20 14:27:40.000000000 +0100
+++ libtermkey-0.22/debian/rules        2024-02-25 13:36:13.000000000 +0100
@@ -20,13 +20,21 @@
 %:
        dh $@
 
+override_dh_auto_clean:override_dh_auto_configure
+       dh_auto_clean -- LIBTOOL="$(CURDIR)/debian/libtool/libtool"
+       rm -Rf debian/libtool
+
+override_dh_auto_configure:
+       mkdir 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_build-arch:
-       $(MAKE) VERBOSE=$(VERBOSE) PREFIX=/usr 
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
+       dh_auto_build -- VERBOSE=$(VERBOSE) PREFIX=/usr 
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) LIBTOOL="$(CURDIR)/debian/libtool/libtool"
 
 override_dh_auto_install-arch:
-       $(MAKE) VERBOSE=$(VERBOSE) PREFIX=/usr 
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) DESTDIR=$(CURDIR)/debian/tmp install
+       dh_auto_install -- VERBOSE=$(VERBOSE) PREFIX=/usr 
LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) LIBTOOL="$(CURDIR)/debian/libtool/libtool"
 
 override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-       $(MAKE) VERBOSE=$(VERBOSE) test
-endif
+       dh_auto_test -- VERBOSE=$(VERBOSE) 
LIBTOOL="$(CURDIR)/debian/libtool/libtool"

Reply via email to