Subject: bug#911 closed by [email-masked] (#911: fixed in src:policykit-1 version 126-2devuan2)

From: "Devuan bug Tracking System" <[email-masked]>
Date: Mon, 29 Sep 2025 16:10:02 +0000

This is an automatic notification regarding your bug report
which was filed against the libpolkit-gobject-consolekit-1-0 package:

#911: libpolkit-gobject-consolekit-1-0: Ships the elogind variant of the library

It has been closed by [email-masked].

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact [email-masked] by
replying to this email.

-- 
911: https://bugs.devuan.org/cgi/bugreport.cgi?bug=911
Devuan Bug Tracking System
Contact [email-masked] with problems

Subject: #911: fixed in src:policykit-1 version 126-2devuan2
From: [email-masked]
To: [email-masked]
Date: Mon, 29 Sep 2025 16:07:56 +0000

Version: 126-2devuan2

Source package policykit-1 (126-2devuan2) added to Devuan suite unstable.

This closes bug report 911.

Thanks

DAK managing the Devuan archive

Format: 1.8
Date: Mon, 29 Sep 2025 15:22:55 +0100
Source: policykit-1
Architecture: source
Version: 126-2devuan2
Distribution: unstable
Urgency: medium
Maintainer: Devuan Dev Team <[email-masked]>
Changed-By: Mark Hindley <[email-masked]>
Closes: 911
Changes:
 policykit-1 (126-2devuan2) unstable; urgency=medium
 .
   [ Mark Hindley ]
   * d/rules: reduce unnecessary delta with Debian.
 .
   [ Plasma (David Paul) ]
   * d/rules: Fix override_dh_install target. (Closes: #911)
Checksums-Sha1:
 0604665a219468045bf27358d700e04433e5a90b 3098 policykit-1_126-2devuan2.dsc
 bd95db35c65cd7a002ba51f5e15544811f3d6c1a 33248 policykit-1_126-2devuan2.debian.tar.xz
 2ae138057876f3925d5cfdad4b13cc9cd94d5229 5605 policykit-1_126-2devuan2_source.buildinfo
Checksums-Sha256:
 f127374232886bb08375be80eef6da54bfdd84bb0011c7727719c886d9296f93 3098 policykit-1_126-2devuan2.dsc
 b54f18cd7301c33dad854c1ebc89310db81f06c136a98d302520a3c56920cb6e 33248 policykit-1_126-2devuan2.debian.tar.xz
 ccc970d867b4960ddd6f525523e4dc28ae45cc9b72c1e6e3ea8404325d6b488e 5605 policykit-1_126-2devuan2_source.buildinfo
Files:
 62a5a0a662cddff5e127ef165c7ce60f 3098 admin optional policykit-1_126-2devuan2.dsc
 d43afa04d5b2622dd9b6dbc2cf598e2e 33248 admin optional policykit-1_126-2devuan2.debian.tar.xz
 9e261c77119a4acdee1e0038d1517219 5605 admin optional policykit-1_126-2devuan2_source.buildinfo

Subject: libpolkit-gobject-consolekit-1-0: Ships the elogind variant of the library
From: "Plasma (David Paul)" <[email-masked]>
To: Devuan Bug Tracking System <[email-masked]>
Date: Fri, 26 Sep 2025 19:57:42 -0500

Package: libpolkit-gobject-consolekit-1-0
Version: 0.105+26+devuan1
Severity: grave
Justification: ships the wrong shared-object library

Dear Maintainer,

Starting from version 0.105-26+devuan1, the
libpolkit-gobject-consolekit-1-0 package incorrectly ships the variant
of libpolkit-gobject-1.so.0.0.0 compiled with elogind session-tracking
rather than the variant compiled with ConsoleKit session-tracking. This
can be easily verified by comparing the checksums of the included
libpolkit-gobject-1.so.0.0.0 file in each of the
libpolkit-gobject-consolekit-1-0 and libpolkit-gobject-elogind-1-0
packages.

# Fix

Once this report is assigned a bug number, I will shortly be submitting
'git am'-ready patches to remedy this issue.

# Explanation

The issue lies with an interaction involving three commands in the
override_dh_install recipe in debian/rules, specifically
```
	dh_install -plibpolkit-gobject-consolekit-1-0 \
		--sourcedir=debian/install/consolekit
	dh_install -a -Nlibpolkit-gobject-consolekit-1-0
	[...]
	dh_install
```

The first command is required in order to copy the build of the
ConsoleKit variant of the library from its non-standard DESTDIR at
debian/install to the staging directory for the 
libpolkit-gobject-consolekit-1-0 binary package.

The second command then handles staging the files for the rest of the
arch-dependent packages, copying files from debian/tmp, the default
DESTDIR.

This leaves the third command with the task of staging the files for
all the remaining binary package which by this point should be all of
the arch-independent packages. However, because the command lacks
either a '-i' or '--remaining-packages' argument, it incorrectly stages
the files for *all* binary packages, copying files from only the
standard DESTDIR. This has the unfortunate consequence of re-staging
the libpolkit-gobject-consolekit-1-0 package, copying the elogind
variant of the library from within debian/tmp rather than the
ConsoleKit variant from debian/install.

-- 
Plasma