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

From: "Devuan bug Tracking System" <[email-masked]>
Date: Fri, 10 Oct 2025 19:46:03 +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-2devuan1+excalibur1
From: [email-masked]
To: [email-masked]
Date: Fri, 10 Oct 2025 19:44:26 +0000

Version: 126-2devuan1+excalibur1

Source package policykit-1 (126-2devuan1+excalibur1) added to Devuan suite excalibur-proposed-updates.

This closes bug report 911.

Thanks

DAK managing the Devuan archive

Format: 1.8
Date: Fri, 10 Oct 2025 20:18:39 +0100
Source: policykit-1
Architecture: source
Version: 126-2devuan1+excalibur1
Distribution: excalibur-proposed-updates
Urgency: medium
Maintainer: Devuan Dev Team <[email-masked]>
Changed-By: Mark Hindley <[email-masked]>
Closes: 911
Changes:
 policykit-1 (126-2devuan1+excalibur1) excalibur-proposed-updates; 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:
 35e210482efdca4e468253dc0f8c9dce3d233700 3142 policykit-1_126-2devuan1+excalibur1.dsc
 d0b5ba7a7dd86ffe6de2315fc268deb17639c7f8 33272 policykit-1_126-2devuan1+excalibur1.debian.tar.xz
 7fbb59e9ed4c7f1b0136c77aaf1866e103788efc 5649 policykit-1_126-2devuan1+excalibur1_source.buildinfo
Checksums-Sha256:
 d167f824ac5c85c1064ae99d1a0a7a2a8e6b1c6419c4008a641c1685d00e716d 3142 policykit-1_126-2devuan1+excalibur1.dsc
 8e910afb9aa0cf2743194933b71e215a9e2b8aa5b9314855fe52ef8822f3519e 33272 policykit-1_126-2devuan1+excalibur1.debian.tar.xz
 d68317b5522ae9637d833812cbfe9d7b6a63f2ba7fbe9f4ec345d17dbc5efd87 5649 policykit-1_126-2devuan1+excalibur1_source.buildinfo
Files:
 9f901ab68cc3471a71027a88e0f5b4c5 3142 admin optional policykit-1_126-2devuan1+excalibur1.dsc
 e805a7a566ecc59ee69c6f7b03abab32 33272 admin optional policykit-1_126-2devuan1+excalibur1.debian.tar.xz
 8a6f1c42be9b856809874afabc9c0e54 5649 admin optional policykit-1_126-2devuan1+excalibur1_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