Merge ~athos-ribeiro/ubuntu/+source/libslirp:ship-static-lib into ubuntu/+source/libslirp:ubuntu/devel

Proposed by Athos Ribeiro
Status: Merged
Approved by: git-ubuntu bot
Approved revision: not available
Merged at revision: 0f0ba3d5207ddcb6e5639c9f93347d1211568a3a
Proposed branch: ~athos-ribeiro/ubuntu/+source/libslirp:ship-static-lib
Merge into: ubuntu/+source/libslirp:ubuntu/devel
Diff against target: 49 lines (+13/-1)
4 files modified
debian/changelog (+7/-0)
debian/control (+2/-1)
debian/libslirp-dev.install (+1/-0)
debian/rules (+3/-0)
Reviewer Review Type Date Requested Status
git-ubuntu bot Approve
Sergio Durigan Junior (community) Approve
Canonical Server Reporter Pending
Review via email: mp+449291@code.launchpad.net

Description of the change

Fix for LP: #2029431. Here, we want to ship a static library within the -dev package.

We set the meson option to build both the static and shared libraries from the project and install the .a file in the -dev package.

I will forward this change to debian once it is accepted here.

PPA: https://launchpad.net/~athos-ribeiro/+archive/ubuntu/libslirp-static/+packages

Unfortunately, this package has no DEP8 tests.

To post a comment you must log in.
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

I wonder if debhelper shouldn't add the option to build the static library to the default options appended to the configure target...

Revision history for this message
Sergio Durigan Junior (sergiodj) wrote :

Thanks, Athos.

LGTM, +1. Thanks for also submitting this change to Debian.

As for your comment re. debhelper, that's an interesting question. I tried searching to see if I could find any rationale, but apparently this topic was never even raised. I'm not very familiar with meson/ninja, so I don't know if there could be any side effects to always enabling "--default-library=both". But it's certainly something worth discussing with the debhelper maintainers, IMHO.

Thanks.

review: Approve
Revision history for this message
git-ubuntu bot (git-ubuntu-bot) wrote :

Approvers: athos-ribeiro, sergiodj
Uploaders: athos-ribeiro, sergiodj
MP auto-approved

review: Approve
Revision history for this message
Athos Ribeiro (athos-ribeiro) wrote :

Thanks, Sergio!

Uploaded.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index bc0945d..3424c9f 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,10 @@
6+libslirp (4.7.0-1ubuntu1) mantic; urgency=medium
7+
8+ * d/rules, d/libslirp-dev.install: ship static library in the libslirp-dev
9+ binary package. (LP: #2029431)
10+
11+ -- Athos Ribeiro <athos.ribeiro@canonical.com> Wed, 16 Aug 2023 14:36:41 -0300
12+
13 libslirp (4.7.0-1) unstable; urgency=medium
14
15 * new upstream release
16diff --git a/debian/control b/debian/control
17index bcdde93..c91afe5 100644
18--- a/debian/control
19+++ b/debian/control
20@@ -1,7 +1,8 @@
21 Source: libslirp
22 Section: net
23 Priority: optional
24-Maintainer: Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>
25+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
26+XSBC-Original-Maintainer: Debian QEMU Team <pkg-qemu-devel@lists.alioth.debian.org>
27 Uploaders: Michael Tokarev <mjt@tls.msk.ru>
28 Build-Depends: debhelper-compat (= 13), libglib2.0-dev, meson, ninja-build
29 Standards-Version: 4.6.0
30diff --git a/debian/libslirp-dev.install b/debian/libslirp-dev.install
31index aa09df2..4ea7660 100644
32--- a/debian/libslirp-dev.install
33+++ b/debian/libslirp-dev.install
34@@ -1,3 +1,4 @@
35 usr/include/slirp
36 usr/lib/*/pkgconfig/slirp.pc
37 usr/lib/*/libslirp.so
38+usr/lib/*/libslirp.a
39diff --git a/debian/rules b/debian/rules
40index ffc9f5d..96cbd3c 100755
41--- a/debian/rules
42+++ b/debian/rules
43@@ -2,3 +2,6 @@
44
45 build-arch build-indep build clean install-indep install-arch install binary-arch binary-indep binary: %:
46 dh $@ --buildsystem=meson+ninja
47+
48+override_dh_auto_configure:
49+ dh_auto_configure -- --default-library=both

Subscribers

People subscribed via source and target branches