Message ID | cover.1705762361.git.dev@jpoiret.xyz |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BE94127BBEA; Mon, 22 Jan 2024 13:34:29 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id BCBA727BBE2 for <patchwork@mira.cbaines.net>; Mon, 22 Jan 2024 13:34:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1rRuRL-0003uv-H2; Mon, 22 Jan 2024 08:34:15 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rRuRD-0003nZ-I3 for guix-patches@gnu.org; Mon, 22 Jan 2024 08:34:09 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rRuR4-0000W9-GU for guix-patches@gnu.org; Mon, 22 Jan 2024 08:33:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1rRuR8-0000Y7-6J for guix-patches@gnu.org; Mon, 22 Jan 2024 08:34:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68656] [PATCH core-updates 0/7] Cryptsetup woes Resent-From: Josselin Poiret <dev@jpoiret.xyz> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 22 Jan 2024 13:34:02 +0000 Resent-Message-ID: <handler.68656.B.17059304212081@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68656 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68656@debbugs.gnu.org Cc: Josselin Poiret <dev@jpoiret.xyz> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17059304212081 (code B ref -1); Mon, 22 Jan 2024 13:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Jan 2024 13:33:41 +0000 Received: from localhost ([127.0.0.1]:40078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1rRuQm-0000XU-Sv for submit@debbugs.gnu.org; Mon, 22 Jan 2024 08:33:41 -0500 Received: from lists.gnu.org ([2001:470:142::17]:36530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <dev@jpoiret.xyz>) id 1rRuQj-0000XG-Kz for submit@debbugs.gnu.org; Mon, 22 Jan 2024 08:33:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <dev@jpoiret.xyz>) id 1rRuQa-0003iE-9u for guix-patches@gnu.org; Mon, 22 Jan 2024 08:33:28 -0500 Received: from jpoiret.xyz ([206.189.101.64]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <dev@jpoiret.xyz>) id 1rRuQW-0000RI-Vg for guix-patches@gnu.org; Mon, 22 Jan 2024 08:33:28 -0500 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id 274AF1851DF; Mon, 22 Jan 2024 13:33:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1705930401; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dzN8rcFZwdjuOA0CpajYLXh3HokgVNzFkN6v0wd5YKY=; b=YxB25UcD+o3xAjJKc1AZZwW8nPibD08c/mO/TcXSKpeOwyMfhwAZ/geq7hERHYFkOy5GKq e4odTxpaa+vtxRqePYCYROTbPkUnW5EV0KsGYmh9rQeRTWL+l8P6kQgPlpt5gJgn3Kzspy lQy4boDf75iHSJ1MP0KX1v6bEUwp0O7SEoPtYHslUB8gFaZCVuwXWbtY31ILOCLDfxNqQ/ rqxRx5DEj/NLM6r4lGXg+Ol1bZ97QumUFjx915iSX4QlcwrlUWKdaDY0kL28l7uItp8jVi Vi+CrpYj+s343aU3lfyBun4dOZ6pa1N2cSJqKLgaDKrI3EXD/VKIG/6sORLmqw== Date: Mon, 22 Jan 2024 14:33:14 +0100 Message-ID: <cover.1705762361.git.dev@jpoiret.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: ++++ Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz Received-SPF: pass client-ip=206.189.101.64; envelope-from=dev@jpoiret.xyz; helo=jpoiret.xyz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Reply-to: Josselin Poiret <dev@jpoiret.xyz> X-ACL-Warn: , Josselin Poiret via Guix-patches <guix-patches@gnu.org> From: Josselin Poiret via Guix-patches via <guix-patches@gnu.org> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series |
Cryptsetup woes
|
|
Message
Josselin Poiret
Jan. 22, 2024, 1:33 p.m. UTC
Hi everyone, I'm working on core-updates, trying to build gnome and the desktop configuration example. I've already pushed some fixes, but cryptsetup and lvm2 are proving to be quite annoying: for the same reason as the recent mpv patches [1], the Require.private fields of pkg-config files are actually used even when dynamic linking [2]. This means we need to propagate some transitive dependencies for users of the library, but here the packages also contain binaries for end-users and we don't want to propagate to them. So in the meantime, I just added some new functions libdevmapper-propagated-inputs and libcryptsetup-propagated-inputs that I then manually included in the dependents's inputs. I am not satisfied by this, but this is better than manually adding each needed transitive input, or propagating to end-users. Any ideas? [1] mid:521d0ba6e3d10b3b8aa98b35862d819c82223412.1704430613.git.hako@ultrarare.space [2] https://bugs.freedesktop.org/show_bug.cgi?id=105572 Best, Josselin Poiret (7): gnu: cryptsetup: Update to 2.6.1. gnu: Add libdevmapper-propagated-inputs. gnu: Add libcryptsetup-propagated-inputs. gnu: volume-key: Add required transitive dependencies. gnu: libblockdev: Add libcryptsetup propagated inputs. gnu: lvm2-static: Properly handle eudev dependency in pkg-config. gnu: cryptsetup-static: Fix static build. gnu/packages/cryptsetup.scm | 104 +++++++++++++++++++++--------------- gnu/packages/disk.scm | 46 ++++++++-------- gnu/packages/linux.scm | 42 +++++++++------ 3 files changed, 111 insertions(+), 81 deletions(-) base-commit: a5735488d3917ccb95fa975385ff294c4e3b9521
Comments
Hi Josselin, Josselin Poiret <dev@jpoiret.xyz> writes: > Hi everyone, > > I'm working on core-updates, trying to build gnome and the desktop > configuration example. I've already pushed some fixes, but cryptsetup and > lvm2 are proving to be quite annoying: for the same reason as the recent mpv > patches [1], the Require.private fields of pkg-config files are actually used > even when dynamic linking [2]. Ooof. I've read this whole thread, and if I got something right, our best options would be: 1. try using pkgconf instead of pkg-config, which supports Requires.internal as a correct way to define Requires.private for truly private libraries, and may have a different handling (more correct?) of the Requires.private field. 2. Specify the -Ddefault_library=shared in the default configure-flags of Meson; when done that way, Meson doesn't add the libs to Requires.private in its generated .pc files. That obviously means building static libraries is not supported, but that's not a concern too great for Guix, I would think. Thoughts?