Subject: bug#911 closed by [email-masked] (#911: fixed in src:policykit-1 version 122-3devuan3)

From: "Devuan bug Tracking System" <[email-masked]>
Date: Sun, 12 Oct 2025 14:50: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 122-3devuan3
From: [email-masked]
To: [email-masked]
Date: Sun, 12 Oct 2025 14:49:15 +0000

Version: 122-3devuan3

Source package policykit-1 (122-3devuan3) added to Devuan suite daedalus-proposed-updates.

This closes bug report 911.

Thanks

DAK managing the Devuan archive

Format: 1.8
Date: Sun, 12 Oct 2025 14:45:03 +0100
Source: policykit-1
Architecture: source
Version: 122-3devuan3
Distribution: daedalus-proposed-updates
Urgency: medium
Maintainer: Devuan Dev Team <[email-masked]>
Changed-By: Mark Hindley <[email-masked]>
Closes: 911
Changes:
 policykit-1 (122-3devuan3) daedalus-proposed-updates; urgency=medium
 .
   * d/rules: backport Plasma's libpolkit-gobject-consolekit-1-0 fix from #911.
     (Closes: #911)
Checksums-Sha1:
 4e7062a2bb7689771a483d04475fbd3a0b843c38 3539 policykit-1_122-3devuan3.dsc
 dd74423455b50cb4db67fc3ca28fda3153a9f9e5 48208 policykit-1_122-3devuan3.debian.tar.xz
 971e934a6d17cf690ffe9f023693ce24d299e77f 5605 policykit-1_122-3devuan3_source.buildinfo
Checksums-Sha256:
 cd1fd2e2b8501cc5901bc20ba7ad1e09e8927911b32e9f0ef6c3cf1a748721bf 3539 policykit-1_122-3devuan3.dsc
 cc747521becb09a1a96eb441f910e3ec8c219071a8bb0dbd782155cb0014eece 48208 policykit-1_122-3devuan3.debian.tar.xz
 59c90aaf10a4a7f3fd3fd1c44fab8384204ebce96f3c6110a7bb7bd1bd05af1d 5605 policykit-1_122-3devuan3_source.buildinfo
Files:
 1ecff7579b029a8ffa8607ac43a2c318 3539 admin optional policykit-1_122-3devuan3.dsc
 2f5906bce7e3b6e5db0c65da325609c1 48208 admin optional policykit-1_122-3devuan3.debian.tar.xz
 5bf19d934ba49ce685c9664817eb7883 5605 admin optional policykit-1_122-3devuan3_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