[petsc] 01/03: use virtual libpetsc3.7 package for shlib dependencies
Drew Parsons
dparsons at moszumanska.debian.org
Fri Oct 14 15:30:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
dparsons pushed a commit to tag debian/3.7.4+dfsg1-2
in repository petsc.
commit fd1cfbe2a73e39c75af91767454e0cc79b462f09
Author: Drew Parsons <dparsons at debian.org>
Date: Fri Oct 14 16:57:54 2016 +0800
use virtual libpetsc3.7 package for shlib dependencies
Handle shlibs dependencies via virtual libpetsc3.7 and
libpetsc-complex-3.7 packages.
The .Z in 3.7.Z is not used in sonames, but we need .Z in binary
package names because of the upstream directory structure (which
specifies 3.7.Z).
That is, we want libpetsc3.7.Z-dev to be coinstallable for different
.Z (since coinstallibility is facilitated by upstream). But it is not
convenient for client packages to have to depend on libpetsc3.7.Z when
libpetsc3.7 would do.
Without this shlib patch, either client programs such as petsc4py have
to be recompiled with every .Z patch release, or the older
libpetsc3.7.(Z-1) package needs to be retained until the client
package gets rebuilt. Neither of these are desirable situations.
The version of .Z which is actually used by the client program is
controlled by alternatives for libpetsc.so.3.7 (or
libpetsc_complex.so.3.7)
---
debian/changelog | 12 ++++++++++++
debian/control | 2 ++
debian/libpetsc-complex-3.7.4.shlibs | 1 +
debian/libpetsc3.7.4.shlibs | 1 +
4 files changed, 16 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index fd39352..52cf6b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,15 @@
+petsc (3.7.4+dfsg1-2) UNRELEASED; urgency=medium
+
+ * Handle shlibs dependencies via virtual libpetsc3.7 and
+ libpetsc-complex-3.7 packages. The .Z in 3.7.Z is not used in
+ sonames, but we need .Z in binary packages because of the upstream
+ directory structure.
+ When different libpetsc3.7.Z are installed, the preferred version
+ is controlled by alternatives for libpetsc3.7 (likewise for
+ libpetsc_complex.so.3.7).
+
+ -- Drew Parsons <dparsons at debian.org> Fri, 14 Oct 2016 16:43:26 +0800
+
petsc (3.7.4+dfsg1-1) unstable; urgency=medium
* New upstream version.
diff --git a/debian/control b/debian/control
index 1cdfa3b..3f38d35 100644
--- a/debian/control
+++ b/debian/control
@@ -82,6 +82,7 @@ Package: libpetsc3.7.4
Architecture: any
Multi-Arch: same
Section: libs
+Provides: libpetsc3.7
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Conflicts: libpetsc3.6 (<< 3.6.2.dfsg1-4)
@@ -188,6 +189,7 @@ Package: libpetsc-complex-3.7.4
Architecture: any
Multi-Arch: same
Section: libs
+Provides: libpetsc-complex-3.7
Pre-Depends: ${misc:Pre-Depends}
Depends: ${shlibs:Depends}, ${misc:Depends}
Conflicts: libpetsc-complex-3.6 (<< 3.6.2.dfsg1-4)
diff --git a/debian/libpetsc-complex-3.7.4.shlibs b/debian/libpetsc-complex-3.7.4.shlibs
new file mode 100644
index 0000000..7ed3d99
--- /dev/null
+++ b/debian/libpetsc-complex-3.7.4.shlibs
@@ -0,0 +1 @@
+libpetsc_complex 3.7 libpetsc-complex-3.7
diff --git a/debian/libpetsc3.7.4.shlibs b/debian/libpetsc3.7.4.shlibs
new file mode 100644
index 0000000..0e7c3bd
--- /dev/null
+++ b/debian/libpetsc3.7.4.shlibs
@@ -0,0 +1 @@
+libpetsc_real 3.7 libpetsc3.7
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/petsc.git
More information about the debian-science-commits
mailing list