Bug#645475: autogen FTBFS: cannot find the library `/usr/lib/libgmp.la'

Jonathan Nieder jrnieder at gmail.com
Sun Oct 16 13:03:52 UTC 2011


Julien Cristau wrote:
> On Sat, Oct 15, 2011 at 23:16:58 -0500, Jonathan Nieder wrote:

>>  B. update guile-1.8-dev (ideally by clearing dependency_libs, if that works)
>>     and any other packages that might have been relying on the old .la file,
>>     then add a versioned Breaks
>>
>> Obviously I prefer (B).
>
> Yes, except for the Breaks.  No bug in gmp here IMO, and guile-1.8 is
> already fixed AFAICT, closing.

Sheesh, I'm behind the times.  This was fixed in guile version 1.8.8+1-1
indeed.  Thanks for the sanity check.

I do think a Breaks would be a friendly thing to do (as usual when a
package in sid causes a package in the stable to stop behaving as
advertised).

Incidentally, is there a reason for libgmp-dev to keep the .la file at
all?
---
 debian/changelog |   11 +++++++++++
 debian/control   |    3 +++
 debian/rules     |    1 -
 3 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6968296..93c3472 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+gmp (2:5.0.2+dfsg-1.1) local; urgency=low
+
+  * rules: Remove .la file from the libgmp-dev package.  Anyone
+    relying on it would not be able to find it after it moved from
+    /usr/lib to /usr/lib/<arch>, anyway.
+
+  * control: Add Breaks relations from libgmp-dev to force upgrade of
+    packages that relied on libgmp.la.
+
+ -- Jonathan Nieder <jrnieder at gmail.com>  Sun, 16 Oct 2011 07:23:15 -0500
+
 gmp (2:5.0.2+dfsg-1) unstable; urgency=low
 
   * New upstream version.  Closes: #627012.
diff --git a/debian/control b/debian/control
index 3877d59..ccfcf33 100644
--- a/debian/control
+++ b/debian/control
@@ -45,6 +45,9 @@ Architecture: any
 Depends: libgmp10 (= ${binary:Version}), libgmpxx4ldbl (= ${binary:Version}), ${misc:Depends}
 Provides: libgmp10-dev
 Conflicts: libgmp3-dev (<< 5.0.1), libgmp10-dev
+Breaks: guile-1.8-dev (<< 1.8.8+1-1), libcdd-dev (<< 094b.dfsg-4.2),
+ libcln-dev (<< 1.3.2-1.1), libmpc-dev (<< 0.9-3), libmpfr-dev (<< 3.0.1-5),
+ librep-dev (<< 0.90.2-1.3), regina-normal-dev (<< 4.6-3)
 Replaces: libgmp3-dev, libgmp10-dev
 Recommends: libstdc++-dev
 Suggests: libgmp10-doc, libmpfr-dev
diff --git a/debian/rules b/debian/rules
index 0c83068..dc1b27f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -176,7 +176,6 @@ install: build-stamp install-prep
 
 	dh_install -plibgmp-dev usr/lib/*/lib*.so
 	dh_install -plibgmp-dev usr/lib/*/lib*.a
-	dh_install -plibgmp-dev usr/lib/*/lib*.la
 	dh_install -plibgmp-dev usr/include
 	dh_install -plibgmp-dev -Xgmp-mparam.h build/gmp*.h usr/include
 
-- 
1.7.7






More information about the debian-science-maintainers mailing list