Devuan bug report logs - #911
libpolkit-gobject-consolekit-1-0: Ships the elogind variant of the library

version graph

Package: libpolkit-gobject-consolekit-1-0; Maintainer for libpolkit-gobject-consolekit-1-0 is Devuan Dev Team <devuan-dev@lists.dyne.org>; Source for libpolkit-gobject-consolekit-1-0 is src:policykit-1.

Reported by: "Plasma (David Paul)" <davidpaul@librem.one>

Date: Sat, 27 Sep 2025 01:00:01 UTC

Severity: grave

Tags: patch

Found in version 0.105-26+devuan1

Fixed in versions 126-2devuan2, 126-2devuan1+excalibur1, 122-3devuan3

Done: dak@devuan.org

Full log


Message #5 received at submit@bugs.devuan.org (full text, mbox, reply):

Received: (at submit) by bugs.devuan.org; 27 Sep 2025 00:58:52 +0000
Return-Path: <davidpaul@librem.one>
Delivered-To: bugs@devuan.org
Received: from email.devuan.org [2a01:4f9:fff1:13::5fd9:f9e4]
	by doc.devuan.org with IMAP (fetchmail-6.4.16)
	for <debbugs@localhost> (single-drop); Sat, 27 Sep 2025 00:58:52 +0000 (UTC)
Received: from email.devuan.org
	by email.devuan.org with LMTP
	id 2tuYCrM212jIQgAAmSBk0A
	(envelope-from <davidpaul@librem.one>)
	for <bugs@devuan.org>; Sat, 27 Sep 2025 00:58:27 +0000
Received: by email.devuan.org (Postfix, from userid 109)
	id E83784C4; Sat, 27 Sep 2025 00:58:26 +0000 (UTC)
Authentication-Results: email.devuan.org;
	dkim=pass (2048-bit key; unprotected) header.d=librem.one header.i=@librem.one header.a=rsa-sha256 header.s=smtp header.b=jVz0Rer+;
	dkim-atps=neutral
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on email.devuan.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham
	autolearn_force=no version=3.4.6
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=138.201.176.93; helo=mx1.librem.one; envelope-from=davidpaul@librem.one; receiver=<UNKNOWN> 
Received: from mx1.librem.one (mx1.librem.one [138.201.176.93])
	by email.devuan.org (Postfix) with ESMTPS id 4E3F348C
	for <submit@bugs.devuan.org>; Sat, 27 Sep 2025 00:58:22 +0000 (UTC)
Received: from smtp.librem.one (unknown [192.241.214.14])
	by mx1.librem.one (Postfix) with ESMTPS id AA9D181E50
	for <submit@bugs.devuan.org>; Fri, 26 Sep 2025 17:58:20 -0700 (PDT)
Authentication-Results: name mx1.librem.one; dmarc=fail (p=reject dis=none) header.from=librem.one
Date: Fri, 26 Sep 2025 19:57:42 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=librem.one; s=smtp;
	t=1758934699; bh=X3ehI/yNar037GseCqUZ8mDChTY6Wq/2qBHio5L94WU=;
	h=Date:From:To:Subject:From;
	b=jVz0Rer+GFLR/4FvOZxXs1ew4pMaURRXSWlD0ylfPVZbED0FhNOg2E74hJRHUvSvU
	 K2ONvr/Vfj6MNFW04iHzRrLwmG5ggX+qzKAJovemoGjN97T87SK1cFRvydGoVcaEvs
	 J4NLdoCCEwCVtSmnEr7WZOhRz1dAkAuM+sPl926xUsRkMbikSaP/jz9QWIEwdlvi8O
	 F5iBbejldvL54N+Z/BkLCzdXXe1C63gQPsHqmHnjD3cCOC4xfdfSyTtYjchotAH4e/
	 XrkASMk1NDEh8b2N5VL4gmsgYTbX79GurodFmc68T8nw3CWPTRa8xuTnzQzg0vMUIJ
	 UVS/MXhQj2SRw==
From: "Plasma (David Paul)" <davidpaul@librem.one>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: libpolkit-gobject-consolekit-1-0: Ships the elogind variant of the
 library
Message-ID: <20250926195742.05d13ff6@Zombmetheus.egg>
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
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

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Tue Nov 18 10:51:01 2025;