Moving kompare build to dh sequencer and libpkgs_gen_strict_local_shlibs

Dmitry Shachnev mitya57 at debian.org
Thu Jun 18 11:35:50 BST 2020


Hi Aurélien!

On Thu, Jun 18, 2020 at 12:17:41AM +0200, Aurélien COUDERC wrote:
> Dear team,
>
> I’m working on updating kompare and would like to move the build to using the dh
> sequencer.
>
> However the current d/rules uses this:
>   libpkgs_gen_strict_local_shlibs = $(libpkgs_all_packages)
>   include /usr/share/pkg-kde-tools/qt-kde-team/3/library-packages.mk
>
> Reading through library-package.mk, I understand that it here forces the
> dependencies to internal libraries to a = versioned dep in ${shlibs:Depends}.
> This way kompare 4:18.08.1-1+b1 has a dep to:
>   kpart5-kompare (= 4:18.08.1-1+b1)
> and kpart5-kompare 4:18.08.1-1+b1 has a dep to:
>   libkompareinterface5 (= 4:18.08.1-1+b1)
>
> Question is how can I reproduce this behaviour with pure dh ?

You can add "package-name (= ${binary:Version})" to Depends along with
${shlibs:Depends}, then dpkg will leave only the strictest dependency.

> Any existing examples ?

https://salsa.debian.org/qt-kde-team/qt/qtbase/-/blob/experimental/debian/control#L344

> Also diffoscoping the existing packages and my new builds I noticed the
> following diffs in shlibs:
> - for kpart5-kompare:
> │ │ ├── ./shlibs
> │ │ │ @@ -1 +1 @@
> │ │ │ -libkomparedialogpages 5 kpart5-kompare
> │ │ │ +libkomparedialogpages 5 kpart5-kompare (>= 4:20.04.2)
> - for libkompareinterface5:
> │ │ ├── ./shlibs
> │ │ │ @@ -1 +1 @@
> │ │ │ -libkompareinterface 5 libkompareinterface5
> │ │ │ +libkompareinterface 5 libkompareinterface5 (>= 4:20.04.2)
>
> I guess this is due to the change explained in DH_MAKESHLIBS(1):
>   In compat 12 and later, dh_makeshlibs defaults to -VUpstream-Version.  In
>   compat 11 and earlier the default behaved like -VNone.
>
> Is it something I should worry about ?
> Should I override it with dh_makeshlibs -VNone ?

I think there is no need to worry, just use the new default.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-kde-talk/attachments/20200618/158eb271/attachment.sig>


More information about the pkg-kde-talk mailing list