From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SJ9KI0vFZWCangAAgWs5BA (envelope-from ) for ; Thu, 01 Apr 2021 15:06:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id qPgeHUvFZWDYAgAAbx9fmQ (envelope-from ) for ; Thu, 01 Apr 2021 13:06:19 +0000 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 3FE6C17EC0 for ; Thu, 1 Apr 2021 15:06:19 +0200 (CEST) Received: from localhost ([::1]:52834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRx1e-0004qU-A3 for larch@yhetil.org; Thu, 01 Apr 2021 09:06:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRx0g-0004MD-Mr for guix-devel@gnu.org; Thu, 01 Apr 2021 09:05:18 -0400 Received: from sender4-of-o51.zoho.com ([136.143.188.51]:21108) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRx0c-00082i-L4 for guix-devel@gnu.org; Thu, 01 Apr 2021 09:05:18 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1617282307; cv=none; d=zohomail.com; s=zohoarc; b=ZT8/zcPxPwWcOgldK/LQIBS5TS3HU3Pi/RO7X9qmXd8goMdNT+U/hRnQJxR+Pd/E8EAWU+Q0ga99j22I6CcrqIP5To4oxY/z8KAtvuUPWlTivn7PLc9UH2WUhZMngjC7xhpimEDwnVaNUNUBKT1PVHyYS4O8Id66x+MDbtPWVwI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617282307; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=N2U2XS70Wq/kakvBOElReRKYefWaFfSHS5fFji6OOm4=; b=jB5e4csqvdW8fGTObQhd8siBT39O3pNDqwnaZumiUB+HB4+YXcLV48MPAPdt95aI7F1eMO7ZDBkOH/HrWNV1Wa5GiDCJ1MktMEr8Kl27sMeSFdBqWQn0aQWUES1sNZyetY3VChAtVb47ZK/71cTPoViMC4h5LCuaCizn8z7pdhQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1617282307; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=N2U2XS70Wq/kakvBOElReRKYefWaFfSHS5fFji6OOm4=; b=ENZh3/3hRr4SkleADwNLlSi52mWFbJ9+kf0hM4OQqRIWST5tKKkByFETVRdoOK5m 3mz9bWb+hN6PsF1y3GpIc1L2+pmO3kn1bhXI/lsWWiPhtndqkJTYFOsq2PgnatDXeYh D5X/D2/1s43CUbGrKI+0VsBr8vSMr5CKymKVnD7A= Received: from localhost (p54ad4e71.dip0.t-ipconnect.de [84.173.78.113]) by mx.zohomail.com with SMTPS id 16172823021761006.9377587911199; Thu, 1 Apr 2021 06:05:02 -0700 (PDT) References: <87ft0agvr2.fsf@nckx> User-agent: mu4e 1.4.15; emacs 27.2 From: Ricardo Wurmus To: Konrad Hinsen Subject: Re: Finding the channel in which a package is defined In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 01 Apr 2021 15:04:58 +0200 Message-ID: <87k0pm2m11.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.51; envelope-from=rekado@elephly.net; helo=sender4-of-o51.zoho.com 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617282379; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=N2U2XS70Wq/kakvBOElReRKYefWaFfSHS5fFji6OOm4=; b=pORZtUbybL/r5ybgfo1lIH46Fkx9jAnlGJMbUcKK5rifAUHT8DvojRzL04D4DVOjI5qrEJ RmCeV7Wnvqf091V/qYvxFkgwEV+xYhdVdJ7UKXvsvR0gpC0byfD8/NncQTBmJmIHTAIFPJ sds0Tq2bf9AbpjndhLSoIU5qLmJiFVo9s/bzyHmtUFYppZLY26OdVc7YDRK/EUQ1ym+lKG MF/8DDSf0HSpu2mMQY2CkQcRid4z6gPG7jH7dkHdP9g8T+sgEzF4EodsIpHMD2BEo4jABt 9WBtrckJdCCI4oL0Ffh0HM/C4aSLRnl3ojXCWTWKTFYLlMRrh1rdfkKeqF8rEA== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1617282379; a=rsa-sha256; cv=fail; b=cRAMAEyOHcuPnIx9ze2ECtdOlk6aU7tAxqOvEd1xWIP0NYJ7X/EQbLRVTjPNzPmRJ6lyXu 0cQsXFQtyHp7ebAETxl/GpXPvQTWNtZHuLM5+UelYni737U+qlpfziC0dQN2tB5+bj6IsW aEEeNWCN9zTxfLIoNYFLvuThpUqF6HKKcrtewvW8ppu9z3qj1qrEMoIiH0E+CEsGb46qzV yZrxDLNI9xyY2oBb5+ysh0T/CFnapTPoPU4is6w7b/TxHLjrBROhnnG3sPXnYPJ7rT485G PQRHJw6o1aY70YZB7y3PY174XQMeqE+83YyKKLWLkxQubSm8bHjrTRe3L9owvQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b="ENZh3/3h"; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: 0.57 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=elephly.net header.s=zoho header.b="ENZh3/3h"; arc=reject ("signature check failed: fail, {[1] = sig:zohomail.com:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 3FE6C17EC0 X-Spam-Score: 0.57 X-Migadu-Scanner: scn0.migadu.com X-TUID: QI2Dek1kjH7Z Konrad Hinsen writes: > Tobias, > > Thanks for your reply! > >> Does the =E2=80=98location=E2=80=99 field of =E2=80=98guix show PACKAGE= =E2=80=99 do what you want? > > Taking coreutils as a test case, it displays: > > gnu/packages/base.scm:328:2 > > as a link pointing to: > > /gnu/store/3qykwxq1mqlin3lrb93s3rzi1ah5xia8-guix-module-union/share/gu= ile/site/3.0/gnu/packages/base.scm > > and that is the same file that is opened with "guix edit". But it's a > copy of the input source file that is part of some channel, so the > provenance is lost. I=E2=80=99m pretty sure that the union file itself is a link. By using =E2=80=9Creadlink -f /gnu/store/3qykwxq1mqlin3lrb93s3rzi1ah5xia8-guix-module-union/share/guile/s= ite/3.0/gnu/packages/base.scm=E2=80=9D you could get the source directory of that file. The prefix will indicate that this is a Guix source checkout, whereas for files from other channels the prefix directory will differ. Still, that=E2=80=99s a bit crude. It might be better to record a channel reference in the package values. --=20 Ricardo