From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 AGqrJrW8b2dCugAAqHPOHw:P1 (envelope-from ) for ; Sat, 28 Dec 2024 08:54:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id AGqrJrW8b2dCugAAqHPOHw (envelope-from ) for ; Sat, 28 Dec 2024 09:54:13 +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=PZZB8K1p; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=hftvcsg2; 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=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735376053; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=88qLeqSEGVZqUTbkd0iGKs0AYsq4S9ZRoj+P4Q6DQN8=; b=oTk4y4CX7oOpHI5JKjpJ1Lz2MzRLbqNXhQDzR+LZ2G1L1ItMt8+ITwSWwgX2dBhd346a0E 6+iO6ldr0Pp2mVNpyRKKBoyyBl6tyHvBHqfCW/yh3K6VQU5xBjprsTMZfR7Aw22399/TL6 duCeEA9BH39q+zaD5oU4RGCXJCf/TK56o7FMdqhGOkMeE6IWC3LueSozUgQozJjrFyJ5He pIT+K4ZrkSRomjhYeEad+01c9/fdDpjfXsvz5lpLcS03iV7sGPyoB1jMWqLhBNVlqfh+ul ViBf6beSvtq931PuLW+hR5K6LT20+kT9kTip1nIj1Oqw1WVE99xN49f09Ktnlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=PZZB8K1p; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=hftvcsg2; 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=fail reason="SPF not aligned (strict), DKIM not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735376053; a=rsa-sha256; cv=none; b=nHl2B6SQurCCjMnnOB7/QtP0YOCSZ9bJBFcUIF+vsij4vl7tDqjaOCrbjOeWkKjjwsM7Wj JbbL0XmApo39+0X34A/SDH1REakF1w8xrYl22ya4W5557creT4NOKeyGOnp+l1P7yH0h+X X21ZxSnoznVACaoPkYhmcAtoZuQWeXoG1/irLjoDWkysolPIS5te/odlsy/56dpykQOyt2 GXWagamXX4tEACFSGycj64wa1JNqu9RbuklM+dqVXcJi6pcuoGi6bJEMsDXeFal8QVUVsv VbEWfe61873eCrSHIItL/g+TtjBi1q0DAptE6DQimJ6DAvLFEwygV+2KV3dxdw== 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 F0A8C53798 for ; Sat, 28 Dec 2024 09:54:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRSaC-00009f-FH; Sat, 28 Dec 2024 03:54:04 -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 1tRSaA-00009A-Fx for bug-guix@gnu.org; Sat, 28 Dec 2024 03:54:02 -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 1tRSaA-0005VM-7R for bug-guix@gnu.org; Sat, 28 Dec 2024 03:54:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:Subject; bh=88qLeqSEGVZqUTbkd0iGKs0AYsq4S9ZRoj+P4Q6DQN8=; b=PZZB8K1pBIwJAW8OIAczTt96RLpTOCexwzgumWOu9FG8p5d851naGU6zLvVdQfK1H4AiWc47SZp+oT3EDrNCZFQ4+9D7mL6OjUHb5QXz6OXk3SJ3b7HRSIt2QDDdjPwaN6knPiwry84ZwJTR5mH/b7njgMKjH4J0n5vltT++nHgpneEh8063TeTPa+cK6wicsCFcL04TxOqa0Ua8nwlpXpH7RCyweUa2xEcyIDXyPkrcEDdN4IrjKeC/KS347fJWPSPFuMqHn3TbbifVYsEoDVvWzpe2qOIDa/ucLQ+IITw8foJ96ofppZdB+YTbU1sOoraEx3gSaRsi8+Rl0T3q1A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRSaA-0000Cf-1e for bug-guix@gnu.org; Sat, 28 Dec 2024 03:54:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#75157: Grafting inconsistency with multiple outputs is causing problems Resent-From: Dariqq Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 28 Dec 2024 08:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75157 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 75157@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1735375985677 (code B ref -1); Sat, 28 Dec 2024 08:54:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Dec 2024 08:53:05 +0000 Received: from localhost ([127.0.0.1]:48713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRSZE-0000Ap-Hy for submit@debbugs.gnu.org; Sat, 28 Dec 2024 03:53:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:46990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRSZC-0000AO-2B for submit@debbugs.gnu.org; Sat, 28 Dec 2024 03:53:02 -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 1tRSZA-00005h-NX for bug-guix@gnu.org; Sat, 28 Dec 2024 03:53:00 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRSZ8-0005L0-1w for bug-guix@gnu.org; Sat, 28 Dec 2024 03:53:00 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BF577240103 for ; Sat, 28 Dec 2024 09:52:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735375972; bh=QdgKMOYWhrk+mWrf45p6u/pToiM0bk2fUQxS5giysnY=; h=Message-ID:Date:MIME-Version:To:From:Subject:Content-Type: Content-Transfer-Encoding:From; b=hftvcsg2hyAo0L4/cbTkiQKsbMA780t76+47utocZLCsMXZrKjbHTFht1Wg/4VqGF jnoEx9L+/4rC9oKa/Spa3VxEXpilbDzxLhSYwpwizq4v9yX6ZAEe4dL1grxzyjjS8a sjPDpeQccpyUfkNtEgFdCGP94dy7T+9LAGxekueZ9KbqdtenWx1DpI5n6oBCBUOf1J BVStcDLQp8P1+++umZ9a9odGAGgMoRBskHVOrkZJmbbQrUm/gWM3Cv6BddMl0sN13B kbo5byByexR4pmpvz60h8O4+9xbypBg6Ylj0F76Y9XMM5bry3Hz3vUTM9NKBRsKfi8 vScmSCkkRhu7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YKx2r1mcxz6twB for ; Sat, 28 Dec 2024 09:52:52 +0100 (CET) Message-ID: Date: Sat, 28 Dec 2024 08:52:44 +0000 MIME-Version: 1.0 Content-Language: en-US From: Dariqq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=dariqq@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, WEIRD_QUOTING=0.001 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: 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: F0A8C53798 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -2.49 X-Spam-Score: -2.49 X-TUID: NFNe0wMtjUKV Hello, Yesterday I was playing around with g-golf and libguile and encountered some weird glib issues once I linked my c program to glib/gobject. After asking about this in #guile the problem was discovered to be 2 different glibs being in use and the workaround is use them with '--no-grafts' instead. I looked into why grafting is causing this problem and here is what I have found: The following happend on guix commit e16cdcf37d8223b3634ec5e658356c3b7f154859 Before grafting: /gnu/store/digl75knygzqg9lrh8adk3pz0qg9cx8h-guile-g-golf-0.8.0-a.1: Has a reference to: /gnu/store/zgsphhmliwgmjjv1czmbyjql3gk7ynsx-glib-2.78.0 which is the out output of the hidden (@@ (gnu packages glib) glib) package After applying grafts: /gnu/store/2ar2h8d7nk3g7c9965y4n68gjr778prk-guile-g-golf-0.8.0-a.1: Has reference to /gnu/store/0466q5rlccclzg70f3yprpf9kdvlyfzf-glib-2.78.0 But the hidden glib grafts to /gnu/store/ls9p0k2chrzviadibzf0iz7rlpkmggms-glib-2.78.0 instead (which is the one I am linking to) Looking at the grafting derivations the issue seems to be that in one case all outputs of glib are grafted and in the other case only the out output which leads to the different results. 8<---------------cut here---------------start------------->8--- /gnu/store/ikv0s6dr3yzs398i67vh3p0w8jglxm4w-glib-2.78.0.drv Derive ([("out","/gnu/store/0466q5rlccclzg70f3yprpf9kdvlyfzf-glib-2.78.0","","")] ,[("/gnu/store/0s4qbdir1j1c6yfnhvj3w4kpplsaafik-pcre2-10.42.drv",["out"]) ,("/gnu/store/1554x8kqj7xjw5an8rzrnfz3v40spiy7-glibc-2.39.drv",["out"]) ,("/gnu/store/2c70wagxjjxk8lcj3znrqqlvn2dcj024-glibc-2.39.drv",["out"]) ,("/gnu/store/523ngwgnmyhszf9mqbk537ka41jbzs00-guile-3.0.9.drv",["out"]) ,("/gnu/store/7lwb609ira5a3rs9ncxk55azvsnwi6vv-glib-2.78.0.drv",["out"]) ,("/gnu/store/gmp1ciyg5yna6983phnf22pwsivfanwq-zlib-1.3.drv",["out"]) ,("/gnu/store/gxn87vb8lb1l3yzmnzidmxbn3nk9x3bf-gcc-11.4.0.drv",["lib"]) ,("/gnu/store/h268dh05da4jfrl94xq5jkvyic7k2h57-libffi-3.4.4.drv",["out"]) ,("/gnu/store/h50bkx0qkqj7x0f1sbkgkiszkbdq32qg-zlib-1.3.drv",["out"]) ,("/gnu/store/hkz1acxfcxil4252qw7i25gcn0f852dw-libffi-3.4.4.drv",["out"]) ,("/gnu/store/jyki6954ps4gnhpznacfws146svldkpf-gcc-11.4.0.drv",["lib"]) ,("/gnu/store/vhi205g193z01plb6pbhm75b186zrhis-util-linux-2.37.4.drv",["lib"]) ,("/gnu/store/w5pgbafd9apavpnczcgblbgmwwp0a8y0-util-linux-2.37.4.drv",["lib"]) ,("/gnu/store/yni45i1ca3ymb8rna09qh038v102zyjj-pcre2-10.42.drv",["out"]) ,("/gnu/store/zp7byldvi2imbliv154vv87iai65jwxy-module-import-compiled.drv",["out"])] ,["/gnu/store/2mml5mrmhmn1424pymllzk18m2z3l44q-glib-2.78.0-builder","/gnu/store/flaxnn4ciba6wd243ahwgrqw11082imp-module-import"] ,"x86_64-linux","/gnu/store/xv4cd7qz4yan93zkjisbmbpxfz78hah2-guile-3.0.9/bin/guile",["--no-auto-compile","-L","/gnu/store/flaxnn4ciba6wd243ahwgrqw11082imp-module-import","-C","/gnu/store/5wdfvn4mklppcg5p9i1d14ksbnsd7m8b-module-import-compiled","/gnu/store/2mml5mrmhmn1424pymllzk18m2z3l44q-glib-2.78.0-builder"] ,[("allowSubstitutes","0") ,("guix properties","((type . graft) (graft (count . 6)))") ,("out","/gnu/store/0466q5rlccclzg70f3yprpf9kdvlyfzf-glib-2.78.0") ,("preferLocalBuild","1")]) --8<---------------cut here---------------end--------------->8--- The "correctly" grafted glib derivation looks like this: /gnu/store/xax79x40lzs4wf2v4ipbxvy2gkc9qq7p-glib-2.78.0.drv 8<---------------cut here---------------start------------->8--- gnu/store/xax79x40lzs4wf2v4ipbxvy2gkc9qq7p-glib-2.78.0.drv Derive ([("bin","/gnu/store/q3d08x70gcjj99k5dd0jbfc8rj97j9lz-glib-2.78.0-bin","","") ,("debug","/gnu/store/pn2mdlc86i7x6vrg2j6pslp5sq551255-glib-2.78.0-debug","","") ,("out","/gnu/store/ls9p0k2chrzviadibzf0iz7rlpkmggms-glib-2.78.0","","") ,("static","/gnu/store/n5s2s4rg3jax3y7kp93bgn2w6s7vlfrz-glib-2.78.0-static","","")] ,[("/gnu/store/0s4qbdir1j1c6yfnhvj3w4kpplsaafik-pcre2-10.42.drv",["out"]) ,("/gnu/store/1554x8kqj7xjw5an8rzrnfz3v40spiy7-glibc-2.39.drv",["out"]) ,("/gnu/store/2c70wagxjjxk8lcj3znrqqlvn2dcj024-glibc-2.39.drv",["out"]) ,("/gnu/store/523ngwgnmyhszf9mqbk537ka41jbzs00-guile-3.0.9.drv",["out"]) ,("/gnu/store/7lwb609ira5a3rs9ncxk55azvsnwi6vv-glib-2.78.0.drv",["bin","debug","out","static"]) ,("/gnu/store/gmp1ciyg5yna6983phnf22pwsivfanwq-zlib-1.3.drv",["out"]) ,("/gnu/store/gxn87vb8lb1l3yzmnzidmxbn3nk9x3bf-gcc-11.4.0.drv",["lib"]) ,("/gnu/store/h268dh05da4jfrl94xq5jkvyic7k2h57-libffi-3.4.4.drv",["out"]) ,("/gnu/store/h50bkx0qkqj7x0f1sbkgkiszkbdq32qg-zlib-1.3.drv",["out"]) ,("/gnu/store/hkz1acxfcxil4252qw7i25gcn0f852dw-libffi-3.4.4.drv",["out"]) ,("/gnu/store/jyki6954ps4gnhpznacfws146svldkpf-gcc-11.4.0.drv",["lib"]) ,("/gnu/store/piymwc0w49ylyz69ikq6vnj32xhl96h6-bash-minimal-5.1.16.drv",["out"]) ,("/gnu/store/vhi205g193z01plb6pbhm75b186zrhis-util-linux-2.37.4.drv",["lib"]) ,("/gnu/store/w5pgbafd9apavpnczcgblbgmwwp0a8y0-util-linux-2.37.4.drv",["lib"]) ,("/gnu/store/wqa52jpxmv1xiibdxvfls7dnphq83jb5-bash-minimal-5.1.16.drv",["out"]) ,("/gnu/store/yhxc842f6arm91w4vhdmgazw2nvkn7g7-python-3.10.7.drv",["out"]) ,("/gnu/store/yig8rg8bjy599m49kia7nph8393x5j2g-python-3.10.7.drv",["out"]) ,("/gnu/store/yni45i1ca3ymb8rna09qh038v102zyjj-pcre2-10.42.drv",["out"]) ,("/gnu/store/zp7byldvi2imbliv154vv87iai65jwxy-module-import-compiled.drv",["out"])] ,["/gnu/store/65ym8q6k1adkz4d4xalrsdq409r8k8r8-glib-2.78.0-builder","/gnu/store/flaxnn4ciba6wd243ahwgrqw11082imp-module-import"] ,"x86_64-linux","/gnu/store/xv4cd7qz4yan93zkjisbmbpxfz78hah2-guile-3.0.9/bin/guile",["--no-auto-compile","-L","/gnu/store/flaxnn4ciba6wd243ahwgrqw11082imp-module-import","-C","/gnu/store/5wdfvn4mklppcg5p9i1d14ksbnsd7m8b-module-import-compiled","/gnu/store/65ym8q6k1adkz4d4xalrsdq409r8k8r8-glib-2.78.0-builder"] ,[("allowSubstitutes","0") ,("bin","/gnu/store/q3d08x70gcjj99k5dd0jbfc8rj97j9lz-glib-2.78.0-bin") ,("debug","/gnu/store/pn2mdlc86i7x6vrg2j6pslp5sq551255-glib-2.78.0-debug") ,("guix properties","((type . graft) (graft (count . 8)))") ,("out","/gnu/store/ls9p0k2chrzviadibzf0iz7rlpkmggms-glib-2.78.0") ,("preferLocalBuild","1") ,("static","/gnu/store/n5s2s4rg3jax3y7kp93bgn2w6s7vlfrz-glib-2.78.0-static")]) --8<---------------cut here---------------end--------------->8--- I think it would be good if grafts are only applied per output (which might also help resolve #69653).