Source: tomsfastmath Version: 0.13.1-2 Tags: patch User: [email protected] Usertags: cross-satisfiability
We want to remove libtool-bin from Debian. A key reason is that use of this package universally breaks cross building. The way libtool is meant to be used is that one is constructed during build using autoconf. The other route is doing by hand what libtool does. Neither of these routes is particularly attractive in case of tomsfastmath. Hence, I am proposing adding a small dummy autoconf project to the debian directory just to construct a working libtool without using libtool-bin. I'm attaching a patch for your convenience. Helmut
diff -Nru tomsfastmath-0.13.1/debian/changelog tomsfastmath-0.13.1/debian/changelog --- tomsfastmath-0.13.1/debian/changelog 2024-12-30 13:07:23.000000000 +0100 +++ tomsfastmath-0.13.1/debian/changelog 2025-12-07 21:37:52.000000000 +0100 @@ -1,3 +1,10 @@ +tomsfastmath (0.13.1-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Generate a libtool during build instead of using libtool-bin. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Sun, 07 Dec 2025 21:37:52 +0100 + tomsfastmath (0.13.1-2) unstable; urgency=medium * Update watchfile to match releases (Closes: #1009153). diff -Nru tomsfastmath-0.13.1/debian/clean tomsfastmath-0.13.1/debian/clean --- tomsfastmath-0.13.1/debian/clean 1970-01-01 01:00:00.000000000 +0100 +++ tomsfastmath-0.13.1/debian/clean 2025-12-07 21:37:28.000000000 +0100 @@ -0,0 +1 @@ +debian/libtool diff -Nru tomsfastmath-0.13.1/debian/configure.ac tomsfastmath-0.13.1/debian/configure.ac --- tomsfastmath-0.13.1/debian/configure.ac 1970-01-01 01:00:00.000000000 +0100 +++ tomsfastmath-0.13.1/debian/configure.ac 2025-12-07 21:35:39.000000000 +0100 @@ -0,0 +1,4 @@ +AC_INIT([dummy],[1.0]) +LT_INIT +AC_PROG_LIBTOOL +AC_OUTPUT diff -Nru tomsfastmath-0.13.1/debian/control tomsfastmath-0.13.1/debian/control --- tomsfastmath-0.13.1/debian/control 2024-12-30 13:07:23.000000000 +0100 +++ tomsfastmath-0.13.1/debian/control 2025-12-07 21:37:43.000000000 +0100 @@ -2,7 +2,7 @@ Priority: optional Maintainer: ClamAV Team <[email protected]> Uploaders: Sebastian Andrzej Siewior <[email protected]> -Build-Depends: debhelper-compat (= 13), libtool-bin +Build-Depends: debhelper-compat (= 13), libtool Rules-Requires-Root: no Standards-Version: 4.7.0 Section: libs diff -Nru tomsfastmath-0.13.1/debian/patches/libtool.patch tomsfastmath-0.13.1/debian/patches/libtool.patch --- tomsfastmath-0.13.1/debian/patches/libtool.patch 1970-01-01 01:00:00.000000000 +0100 +++ tomsfastmath-0.13.1/debian/patches/libtool.patch 2025-12-07 21:37:52.000000000 +0100 @@ -0,0 +1,25 @@ +Index: tomsfastmath-0.13.1/makefile.shared +=================================================================== +--- tomsfastmath-0.13.1.orig/makefile.shared ++++ tomsfastmath-0.13.1/makefile.shared +@@ -89,17 +89,17 @@ $(OBJECTS): $(HEADERS) + $(LTCOMPILE) $(CFLAGS) $(LDFLAGS) -o $@ -c $< + + $(LIBNAME): $(OBJECTS) +- libtool --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) `find . -type f | LC_ALL=C sort | grep "[.]lo" | xargs` -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) -export-symbols libtfm.symbols ++ $(LT) --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) `find . -type f | LC_ALL=C sort | grep "[.]lo" | xargs` -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION) -export-symbols libtfm.symbols + + install: $(LIBNAME) + install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH) +- libtool --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME) ++ $(LT) --mode=install install -c $(LIBNAME) $(DESTDIR)$(LIBPATH)/$(LIBNAME) + install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(INCPATH) + install -g $(GROUP) -o $(USER) $(HEADERS_PUB) $(DESTDIR)$(INCPATH) + + HEADER_FILES=$(notdir $(HEADERS_PUB)) + uninstall: +- libtool --mode=uninstall rm $(DESTDIR)$(LIBPATH)/$(LIBNAME) ++ $(LT) --mode=uninstall rm $(DESTDIR)$(LIBPATH)/$(LIBNAME) + rm $(HEADER_FILES:%=$(DESTDIR)$(INCPATH)/%) + + mtest/mtest: mtest/mtest.c diff -Nru tomsfastmath-0.13.1/debian/patches/series tomsfastmath-0.13.1/debian/patches/series --- tomsfastmath-0.13.1/debian/patches/series 2022-12-23 19:24:04.000000000 +0100 +++ tomsfastmath-0.13.1/debian/patches/series 2025-12-07 21:37:52.000000000 +0100 @@ -1,3 +1,4 @@ Increase-FP_MAX_SIZE-to-8192.patch fix-fp_iseven.patch fix-fp_iseven-.-this-time-for-real.patch +libtool.patch diff -Nru tomsfastmath-0.13.1/debian/rules tomsfastmath-0.13.1/debian/rules --- tomsfastmath-0.13.1/debian/rules 2024-12-30 13:07:09.000000000 +0100 +++ tomsfastmath-0.13.1/debian/rules 2025-12-07 21:37:07.000000000 +0100 @@ -16,11 +16,19 @@ # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +export LT = "$(CURDIR)/debian/libtool/libtool" + CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS) %: dh $@ --parallel +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_build: dh_auto_build -- -f makefile.shared

