From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2NhjJwKvdmdGMAEA62LTzQ:P1 (envelope-from ) for ; Thu, 02 Jan 2025 15:21:38 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2NhjJwKvdmdGMAEA62LTzQ (envelope-from ) for ; Thu, 02 Jan 2025 16:21:38 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=caywpbAZ; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=key2 header.b=V4wfedoL; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735831298; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=2HBzoE03MoowsKWhTwTCawQy6O6anuVGwsAnKczfqNA=; b=Hd+x23xnlwD4hi/72iLdbZ/OxbUMnLJEOpWpMLsiix6SbWxWNJQBYSm8gaGhqmWtuNNFBG tifE3RadZV58hOLD4U35uXc2lMxQ3CVcTkZADRV3iCTx5xEtgAJT4sMQqv2waqqqu71lcc uFtQj3+GFtSzwkKwlKtDxPtJDeBV5AnB+dX4kRYArf4Yz2FWu8CdW1h67LEpApIQ73tqAO TrjNQ4uY8/EqOPEZz0z42MrcIi23BwSJ67QQ75/Vn0wc93ZnM+J1cRjPiQXPpGpzH6e62Q ibT/LEdUyoPHMARNJh2JTo4KnrpeZsM3xUwb71InjidmgX/jprW6bN+3Do4raQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=caywpbAZ; dkim=fail ("headers rsa verify failed") header.d=pelzflorian.de header.s=key2 header.b=V4wfedoL; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735831298; a=rsa-sha256; cv=none; b=raiQ2teHrjsHF28dC1lP2GPlRneBcLeC4BFDX7nHYxcUuhY4cZv3G0KeFRgIOCMcpSzFgT NnsrAz+4nE4IoQ3Pv7jlLeWZZ1BpPyjh5IfNdgyH6TuFuHXE6fa4K6DGSxn9Tb6T78cFJ8 WNXO8pp5R+1GsP4xrj4/sigXDlC31DJ7fujtuA/4oyAJeod1V3/efMa5OIIi6xCpOPgrYM F4M93fYcwH48s0zc/JcBFVVD3j/SMJDuS8fCrj4SRjJtUHpfZAjl8C+ApzKVnAORjTSRub btIU0tPlx/9gi6TV3jfSLKjP/P7MAFL20mXTa0n8ae5ytZ7kzH4usVqF837NsQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0C32E782B3 for ; Thu, 02 Jan 2025 16:21:38 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTN0U-0000yZ-BP; Thu, 02 Jan 2025 10:21:06 -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 ) id 1tTN0R-0000x7-HH for bug-guix@gnu.org; Thu, 02 Jan 2025 10:21:03 -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 ) id 1tTN0R-0008Dp-04 for bug-guix@gnu.org; Thu, 02 Jan 2025 10:21:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=2HBzoE03MoowsKWhTwTCawQy6O6anuVGwsAnKczfqNA=; b=caywpbAZcQWVzwq0gbBIn5a+tGe34W+uKU6cqYnmI8uIvBng0totcuyTM3t7ANS+mpixGxMz5YGjE3jR5PIgCxeeYzD+1Z2MbFjbOiwFvHOsTUocTJnE19P2BlpAReFluMugBjvtE+oqwf97Wt4GKFFVzz9qSlDnf0YPZd5MNldgAMMga0FTuVhk19o40PMiUJXT7QwpmVuj7JFgvfUp3zmMtv16DKUNyGVxPwSYHfwEcw4FRbsJUM9PZrjnYH5ScSZSXh/zEUYnelZKGdVZOQ29VzFqGyLBWHdekEw3KI21yuZIRtLSrGJOkP2U3Dfa+F7te+Zh7q+ddatNB2ZpKQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTN0Q-0006ZX-GW for bug-guix@gnu.org; Thu, 02 Jan 2025 10:21:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#75157: Grafting inconsistency with multiple outputs is causing problems Resent-From: "pelzflorian (Florian Pelz)" Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 02 Jan 2025 15:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75157 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Dariqq Cc: 75157@debbugs.gnu.org Received: via spool by 75157-submit@debbugs.gnu.org id=B75157.173583122225165 (code B ref 75157); Thu, 02 Jan 2025 15:21:02 +0000 Received: (at 75157) by debbugs.gnu.org; 2 Jan 2025 15:20:22 +0000 Received: from localhost ([127.0.0.1]:46117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTMzl-0006Xp-Cz for submit@debbugs.gnu.org; Thu, 02 Jan 2025 10:20:22 -0500 Received: from relay.yourmailgateway.de ([185.244.194.184]:52749) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTMzh-0006Xa-TA for 75157@debbugs.gnu.org; Thu, 02 Jan 2025 10:20:19 -0500 Received: from relay01-mors.netcup.net (localhost [127.0.0.1]) by relay01-mors.netcup.net (Postfix) with ESMTPS id 4YP9PW5b12z90mg; Thu, 2 Jan 2025 16:20:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pelzflorian.de; s=key2; t=1735831215; bh=u5b9sPSUZpu8VsFebnxcd5xcTk1kPHntCy+5Vs7yn0Q=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=V4wfedoLaDSP5alwzrZrzx73bnYkm/j9ORaBQbiU6UjkZMJIjaiK5008HWorgv+Fn r7typ7LUrm7CDlMMC4NlAoDpBtOeF88Yt0mAi1EkJL6coun3c0gXfwWttDs6Awizwn T/6jw6UjR1j73CCAaVmYC7+CMnPuP/8CFwIKDEaBn9UL50aECp4tq35eSnBZ1tAgOG vyAApnU49ciKS8H2FhrSuGAbWFbSpBo1Jotw1i256neEv5HR9GiD0yDbMCM/jqTa2M SPaLbTkDssBEnoAyEfDO3yhcIMJzXAXZ1OGQ4lgZ2ok7LkaVZqhMqTI27Z7KqpizeS oujXkq1mmYg3g== Received: from policy01-mors.netcup.net (unknown [46.38.225.35]) by relay01-mors.netcup.net (Postfix) with ESMTPS id 4YP9PW4wDDz7wZR; Thu, 2 Jan 2025 16:20:15 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at policy01-mors.netcup.net Received: from mxe217.netcup.net (unknown [10.243.12.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by policy01-mors.netcup.net (Postfix) with ESMTPS id 4YP9PV2Bklz8tXn; Thu, 2 Jan 2025 16:20:13 +0100 (CET) Received: from florianhp (ipb21a5dbf.dynamic.kabel-deutschland.de [178.26.93.191]) by mxe217.netcup.net (Postfix) with ESMTPSA id B64B783F45; Thu, 2 Jan 2025 16:20:06 +0100 (CET) From: "pelzflorian (Florian Pelz)" In-Reply-To: (dariqq@posteo.net's message of "Sun, 29 Dec 2024 09:30:54 +0000") References: <87o70vxrna.fsf@pelzflorian.de> Date: Thu, 02 Jan 2025 16:20:51 +0100 Message-ID: <87pll58coc.fsf@pelzflorian.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Rspamd-Queue-Id: B64B783F45 X-Rspamd-Server: rspamd-worker-8404 X-NC-CID: dSNTTvyAbpnk0Mk5MKH1s4RlBYK1qg8r5xFQC7QtMYbeoI6Q0TM5spFv X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 0C32E782B3 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -3.99 X-Spam-Score: -3.99 X-TUID: a35jpAmWeMBT --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Dariqq. Your glib and json bug is indeed different. Your initial suggestion for a proper fix to the different but similar troubles we both have: > I think it would be good if grafts are only applied per output (which=20 > might also help resolve #69653). is the same proposal as in bug#48907. At https://bugs.gnu.org/48907 Richard Sent wrote: > One idea I had was to somehow graft each output as a unique derivation > via repeated calls to graft-derivation. From what I've seen so far > though that looks much easier said than done. It hasn't progressed > beyond the "huh, I wonder" phase. Therefore I will merge the two bugs. Not entirely sure if this proper fix would currently need changes to the C++ guix-daemon code. Anyway, I will not implement it. Currently we both have workarounds, obviously disabling security updates with --no-grafts is possible, but also you wrote you can set the pkgconfig path. For GTK programs, a workaround is instead of putting (list gdk-pixbuf graphene gtk harfbuzz pango) in your Guix shell manifest or a scheme-file, I could instead rebuild without grafts, like in Guix=E2=80=99 ungraft manifest. That is, my previous home configuration for commit 08e0144d2338c8fb51e52e74274554583d0faa69 was: --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=old-launcher.scm (service home-sway-service-type (sway-configuration (startup-programs `(,(with-extensions (list ((options->transformation '((with-commit . "guile-g-golf=v0.8.0-rc9"))) guile-g-golf)) #~(string-append "guile " #$(scheme-file "launcher.scm" #~(begin (eval-when (expand load eval) (use-modules (oop goops)) (default-duplicate-binding-handler '(merge-generics replace warn-override-core warn last)) (setenv "GI_TYPELIB_PATH" #$(file-append (directory-union "typelibs" (list gdk-pixbuf graphene gtk harfbuzz pango)) "/lib/girepository-1.0")) (use-modules (g-golf)) (g-irepository-require "Gtk" #:version "4.0") (for-each (lambda (name) (gi-import-by-name "Gtk" name)) '("Application" "ApplicationWindow" "Builder"))) (use-modules (sxml simple)) (define ui '(interface (requires (@ (version 4.0) (lib gtk))) --=-=-= Content-Type: text/plain Since then, I have now had to change it to: --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=workaround.scm (service home-sway-service-type (sway-configuration (startup-programs `(,(with-extensions (list ((options->transformation '((with-commit . "guile-g-golf=v0.8.0-rc9"))) guile-g-golf)) #~(string-append "guile " #$(scheme-file "launcher.scm" #~(begin (eval-when (expand load eval) (use-modules (oop goops)) (default-duplicate-binding-handler '(merge-generics replace warn-override-core warn last)) (setenv "GI_TYPELIB_PATH" #$(file-append (directory-union "typelibs" (let ((ungraft (package-mapping (lambda (p) (cond ;; Ungrafted fails to validate runpath. ((string=? (package-name p) "gst-plugins-bad") (specification->package "gst-plugins-bad-minimal")) (else (let ((old (or (package-replacement p) p))) (package (inherit old) (arguments (substitute-keyword-arguments (package-arguments old) ((#:disallowed-references _) (list)) ((#:allowed-references _) #f)))))))) #:deep? #t))) (map ungraft (list gdk-pixbuf graphene gtk harfbuzz pango)))) "/lib/girepository-1.0")) (use-modules (g-golf)) (g-irepository-require "Gtk" #:version "4.0") (for-each (lambda (name) (gi-import-by-name "Gtk" name)) '("Application" "ApplicationWindow" "Builder"))) (use-modules (sxml simple)) (define ui --=-=-= Content-Type: text/plain Unlike --no-grafts, this has security updates appropriate for use in production environments, but rebuilds part of the world, most importantly Rust. Building bootstrap rust-1.54 fails on my laptop, unless I specify the common build option --cores=1 in guix build. I dedicate the above snippet to the public domain as per CC0. https://creativecommons.org/publicdomain/zero/1.0/legalcode If someone wishes to use similar code. Regards, Florian --=-=-=--