Bug#912838: libtommath: stop using libtool-bin

Helmut Grohne helmut at subdivi.de
Sun Nov 4 09:11:51 GMT 2018


Source: libtommath
Version: 1.0.1-1
Tags: patch

We want to remove libtool-bin from the archive. Thus libtommath should
stop depending on it. For doing that, it should build its own libtool at
build time. The attached patch implements that. Please consider applying
it. Once libtool-bin is removed, libtommath will fail to build from
source.

Helmut
-------------- next part --------------
diff --minimal -Nru libtommath-1.0.1/debian/changelog libtommath-1.0.1/debian/changelog
--- libtommath-1.0.1/debian/changelog	2017-08-31 13:51:53.000000000 +0200
+++ libtommath-1.0.1/debian/changelog	2018-11-04 10:06:03.000000000 +0100
@@ -1,3 +1,10 @@
+libtommath (1.0.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Build a libtool to drop the libtool-bin dependency. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sun, 04 Nov 2018 10:06:03 +0100
+
 libtommath (1.0.1-1) unstable; urgency=medium
 
   * New upstream version 1.0.1
diff --minimal -Nru libtommath-1.0.1/debian/configure.ac libtommath-1.0.1/debian/configure.ac
--- libtommath-1.0.1/debian/configure.ac	1970-01-01 01:00:00.000000000 +0100
+++ libtommath-1.0.1/debian/configure.ac	2018-11-04 10:02:42.000000000 +0100
@@ -0,0 +1,4 @@
+AC_INIT([dummy],[1.0])
+LT_INIT
+AC_PROG_LIBTOOL
+AC_OUTPUT
diff --minimal -Nru libtommath-1.0.1/debian/control libtommath-1.0.1/debian/control
--- libtommath-1.0.1/debian/control	2017-08-31 13:51:53.000000000 +0200
+++ libtommath-1.0.1/debian/control	2018-11-04 10:05:04.000000000 +0100
@@ -3,9 +3,9 @@
 Uploaders: Dominique Dumont <dod at debian.org>
 Section: libs
 Priority: optional
-Build-Depends: debhelper (>= 9),
+Build-Depends: autoconf,
+               debhelper (>= 9),
                libtool,
-               libtool-bin,
                libtiff-tools,
                texlive-latex-recommended,
                ghostscript
diff --minimal -Nru libtommath-1.0.1/debian/rules libtommath-1.0.1/debian/rules
--- libtommath-1.0.1/debian/rules	2017-08-31 13:51:53.000000000 +0200
+++ libtommath-1.0.1/debian/rules	2018-11-04 10:06:03.000000000 +0100
@@ -21,16 +21,22 @@
 	dh $@
 
 override_dh_auto_build:
+	# create a libtool
+	mkdir debian/libtool
+	cp debian/configure.ac debian/libtool/
+	cd debian/libtool && LIBTOOLIZE='libtoolize -i' autoreconf -f -i
+	dh_auto_configure --sourcedirectory=debian/libtool
+
 	echo "running auto_test"
 	# this script runs "make clean" so it cannot be run after build
 	/bin/bash testme.sh
 	echo "cleanup after tests"
 	make clean
-	$(MAKE) -f makefile.shared
+	$(MAKE) -f makefile.shared LT=$(CURDIR)/debian/libtool/libtool
 	$(MAKE) manual docs
 
 override_dh_auto_install:
-	$(MAKE) -f makefile.shared install
+	$(MAKE) -f makefile.shared LT=$(CURDIR)/debian/libtool/libtool install
 
 # Override if not processing -docs
 ifeq (,$(findstring libtommath-docs, $(shell dh_listpackages)))
@@ -39,7 +45,7 @@
 endif
 
 override_dh_clean:
-	dh_clean tommath.out
+	dh_clean tommath.out debian/libtool
 
 override_dh_installchangelogs:
 	dh_installchangelogs changes.txt


More information about the Pkg-rakudo-devel mailing list