Bug#656928: libraptor2-0: please add a Breaks against libraptor1 versions without symbol versioning

Jonathan Nieder jrnieder at gmail.com
Sun Jan 22 22:47:40 UTC 2012


Package: libraptor2-0
Version: 2.0.6-1
Severity: important
Justification: http://bugs.debian.org/613411
Tags: patch

Hi,

Adrian Knoth wrote:

> The situation is as follows:
>
>    - ardour depends on liblrdf (mind the l after lib)
>         - liblrdf depends on libraptor1
>
>    - ardour depends on libslv2
>         - libslv2 depends on librdf0 (no l this time)
>               - librdf0 (>= 1.0.13-1) depends on libraptor2
>
> And there you have it, clashing symbols.
>
> The solution is to add symbol versioning to both raptor libraries, then
> recompile librdf, liblrdf and afterwards libslv2 (the whole dependency
> chain backwards). In the end, recompile ardour.

Is that last step (in the end, recompile ardour) needed?

I'm asking because if it is, this will break partial upgrades from
squeeze.  If it isn't, it should be enough for the updated librdf0 to
gain a (direct or indirect) Breaks against versions of libraptor1 that
lack versioned symbols, to ensure the correct upgrade order.

That is, probably libraptor2-0 should Breaks: libraptor1 (<< 1.4.21-3).
How about this patch?
---
 debian/changelog |    7 +++++++
 debian/control   |    1 +
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index c48a8a87..37a940cc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+raptor2 (2.0.6-1.1) local; urgency=low
+
+  * debian/control: add a breaks relation by libraptor2-0 against squeeze
+    libraptor1 to force upgrades to a version with symbol versioning
+
+ -- Jonathan Nieder <jrnieder at gmail.com>  Sun, 22 Jan 2012 16:39:45 -0600
+
 raptor2 (2.0.6-1) unstable; urgency=low
 
   * New upstream release
diff --git a/debian/control b/debian/control
index 8d758eeb..abe13400 100644
--- a/debian/control
+++ b/debian/control
@@ -21,6 +21,7 @@ Package: libraptor2-0
 Section: libs
 Architecture: any
 Depends: ${misc:Depends}, ${shlibs:Depends}
+Breaks: libraptor1 (<< 1.4.21-3)
 Suggests: raptor2-utils
 Description: Raptor 2 RDF syntax library
  Raptor is a C library providing a set of parsers and serializers for
-- 
1.7.9.rc2






More information about the pkg-multimedia-maintainers mailing list