[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1064663: liblangtag: stop using libtool-bin



Source: liblangtag
Version: 0.6.7-1
Tags: patch
User: debian-cross@lists.debian.org
Usertags: cross-satisfiability

We want to remove libtool-bin from Debian, because it is fundamentally
incompatible with cross compilation. Also using it usually indicates
that libtool is used in unintended ways. That's also the case for
liblangtag where two different libtools are mixed together. I'm
proposing the attached patch to remove liblangtag's dependency on
libtool-bin.

Helmut
diff --minimal -Nru liblangtag-0.6.7/debian/changelog liblangtag-0.6.7/debian/changelog
--- liblangtag-0.6.7/debian/changelog	2024-01-02 22:19:17.000000000 +0100
+++ liblangtag-0.6.7/debian/changelog	2024-02-25 08:57:44.000000000 +0100
@@ -1,3 +1,10 @@
+liblangtag (0.6.7-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * libtool.patch: Stop using libtool-bin. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sun, 25 Feb 2024 08:57:44 +0100
+
 liblangtag (0.6.7-1) unstable; urgency=medium
 
   * New upstream version 0.6.7
diff --minimal -Nru liblangtag-0.6.7/debian/control liblangtag-0.6.7/debian/control
--- liblangtag-0.6.7/debian/control	2024-01-02 18:13:08.000000000 +0100
+++ liblangtag-0.6.7/debian/control	2024-02-25 08:57:43.000000000 +0100
@@ -2,7 +2,7 @@
 Priority: optional
 Maintainer: Debian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
 Uploaders: Rene Engelhard <rene@debian.org>
-Build-Depends: debhelper (>= 9.0.0), autotools-dev, pkg-config, libxml2-dev, libglib2.0-dev, check, libgirepository1.0-dev, gobject-introspection, libtool, libtool-bin, locales, dh-autoreconf, gnome-common, gtk-doc-tools
+Build-Depends: debhelper (>= 9.0.0), autotools-dev, pkg-config, libxml2-dev, libglib2.0-dev, check, libgirepository1.0-dev, gobject-introspection, libtool, locales, dh-autoreconf, gnome-common, gtk-doc-tools
 Build-Conflicts: locales-all
 Standards-Version: 3.9.2
 Section: libs
diff --minimal -Nru liblangtag-0.6.7/debian/patches/libtool.patch liblangtag-0.6.7/debian/patches/libtool.patch
--- liblangtag-0.6.7/debian/patches/libtool.patch	1970-01-01 01:00:00.000000000 +0100
+++ liblangtag-0.6.7/debian/patches/libtool.patch	2024-02-25 08:57:44.000000000 +0100
@@ -0,0 +1,16 @@
+--- liblangtag-0.6.7.orig/configure.ac
++++ liblangtag-0.6.7/configure.ac
+@@ -337,8 +337,11 @@
+ if test "x$enable_modules" != "xno"; then
+ 	AC_MSG_CHECKING(for the suffix of module shared libraries)
+ 	export SED
+-	shrext_cmds=`libtool --config | grep '^shrext_cmds='`
+-	eval $shrext_cmds
++	if test "x$shrext_cmds" = x; then
++		dnl This is usually set up by LT_INIT. Fall back to a system libtool if not.
++		shrext_cmds=`libtool --config | grep '^shrext_cmds='`
++		eval $shrext_cmds
++	fi
+ 	module=yes eval std_shrext=$shrext_cmds
+ 	lt_module_suffix=`echo $std_shrext | sed 's/^\.//'`
+ 	AC_MSG_RESULT(.$lt_module_suffix)
diff --minimal -Nru liblangtag-0.6.7/debian/patches/series liblangtag-0.6.7/debian/patches/series
--- liblangtag-0.6.7/debian/patches/series	2024-01-02 18:13:08.000000000 +0100
+++ liblangtag-0.6.7/debian/patches/series	2024-02-25 08:53:31.000000000 +0100
@@ -1,2 +1,3 @@
 no_encoding.diff
 pthread.diff
+libtool.patch

Reply to: