From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MC8vCF8J9GSyXgEAG6o9tA:P1 (envelope-from ) for ; Sun, 03 Sep 2023 06:19:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MC8vCF8J9GSyXgEAG6o9tA (envelope-from ) for ; Sun, 03 Sep 2023 06:19:43 +0200 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 D42F555803 for ; Sun, 3 Sep 2023 06:19:42 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WaORFQKB; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693714783; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=K2HCd7by7MEyoLq2gDzAiFcnnCiJoEnMdWTCWU55pHQ=; b=acU6T1gz4cbt/Etkn66d0JrqlQyPxVwaVAoudnyKZ+dVY7OzJyiTJLnPLTNEc6UVaSD+dw cV7+4y90hB6nv7duYyMzjpPwYCebMZC2e2/KcRrxN3uhrzfXw+/X5azUBImbmgf8ooYHwQ /gnhHbhUHLX71NEvt69n561WDE9KexgGtAMbT08HELACyENo4vxSTAXraGRroOa6IPugcM aC2U1cYKDBKoixVw1fgOiLdBBwXtJVFUssXOa2dcx0uoT8qw1BsFu86tg6s1bfDvppwkUa hx1F1h2ifXkUEK6ylMoxax9ZEOi3sfeFpej+sHgQeMqrSQt368hkE+abx6KFCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693714783; a=rsa-sha256; cv=none; b=QbxUHyAaielSvB0MiN62GBpnWIwnp+HUZ7Ip8gPBq8Bp2EybdAhwtLCrI811Bo+L0VkgqQ t/BLT6NhFl/1MwmOmUBXjHg6RERuFx3rZpUYZvkApxSY3KPcA1X08aZ/P6w7zUvyJ8Za6o 8aEYKEOPQBZuXjJrSY3B6mFNtaGrhBlO0OoAn1Da/Rf93quO4PEh+KJoZqDWwxH6sn45ZN dVNkEIT2Ow+5IXpPlDwTRowMbb5is3xvitQaKNpMQQNkHFRYDp6UNSjaH82k6p6KEM01yB kL0ipaBFdlJ7ifOnnSCAowEUC9mvdUN87AlBwBHDd3a0uSdKo2TZcKuLUSil2Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=WaORFQKB; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qceZj-0000Rm-7F; Sun, 03 Sep 2023 00:19:03 -0400 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 1qceZh-0000RL-ET for guix-devel@gnu.org; Sun, 03 Sep 2023 00:19:01 -0400 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qceZf-0003eh-64 for guix-devel@gnu.org; Sun, 03 Sep 2023 00:19:01 -0400 Received: by mail-ed1-x542.google.com with SMTP id 4fb4d7f45d1cf-52a06f5f556so397031a12.2 for ; Sat, 02 Sep 2023 21:18:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693714737; x=1694319537; darn=gnu.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=K2HCd7by7MEyoLq2gDzAiFcnnCiJoEnMdWTCWU55pHQ=; b=WaORFQKB2oUmas5XlmHdkbZUyz39KB4TmesJfoMHt+qEvnP8k24q5aw0tceVLRCHIg TLZCY4KZvoWwACbjfnG9hS/jK4NMC+OnqEgQfuTFFqpTCLuasXsjuLn4zdIE0dvu3ScS WMHnIjLYjc+Irz7CSQyygtj0G6GGpPB0z6or4WNeiwEKP35r3MJDnlxXd2vkopAEakvu MX2J9PFgxBaTJXur3XL4tOOZKg76IIj0W2EjU/WTjnIVfQ0oDR3q15EUYEAK+zcc8akX bctkwM0Bvih5VR0sCU2iDnbL08HJ02W1Op29o9CBrE6PgrfEGGX0eTDargxLC6VuqzDx ReEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693714737; x=1694319537; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=K2HCd7by7MEyoLq2gDzAiFcnnCiJoEnMdWTCWU55pHQ=; b=QY8RVukeW5f1ottQMGhQQ9vAH/2u54HpnwsOmJjSZeqNzTekFWSaZcoM2SY8Fssriz z0N9NQ9jiSvBPbn/aoa+AoLVn2xWKbz8wttp6/p5FtIyE41B+JgXR435TXU5/rIK8XMf vmyyt0zJNp3bgq+1CwgqEozwnEWEsBaqrHtvOUvfXiZwUb2CcyZOCFe+HUNaDYJpGdTn milpsrZOrKHP2a6nQ1rJLcUOpb6psDqvaICoKSzeg1QGH115XPqwZAZYMJmbpGoVB6wl E5ZY1fijqnV77GdIPNIB/QTGE1gMP23h1WBM7DdNnBkHTnE5GSksN3nX7dG+n2pwoGqW Wa7A== X-Gm-Message-State: AOJu0YwLKQLSWu0CrxDhd6DBvWh/gNNOaLICMBSxdiZ4cghc28LR6UcE jEiaJitTqKzfB1Zf6gLWpJOGliQNZnjqFJPF X-Google-Smtp-Source: AGHT+IF6pQleo0h9QmJUpCLipJm2U72I2Q1jxMQljo3F95Z/lopCv+aCqEl4pIlNfY6BURVkHQq26A== X-Received: by 2002:aa7:d496:0:b0:51e:5251:8f45 with SMTP id b22-20020aa7d496000000b0051e52518f45mr4443352edr.4.1693714737441; Sat, 02 Sep 2023 21:18:57 -0700 (PDT) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id r7-20020aa7cb87000000b0052996528b81sm4059106edt.45.2023.09.02.21.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Sep 2023 21:18:56 -0700 (PDT) Message-ID: <2f8cbbd0e72a0d9c11696021cc92697d4c8807a9.camel@gmail.com> Subject: Re: package definition question: referring to source files of another package? From: Liliana Marie Prikler To: Andy Tai , guix-devel@gnu.org Date: Sun, 03 Sep 2023 06:18:54 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::542; envelope-from=liliana.prikler@gmail.com; helo=mail-ed1-x542.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -7.09 X-Spam-Score: -7.09 X-Migadu-Queue-Id: D42F555803 X-TUID: GK1rY7lh476d Am Samstag, dem 02.09.2023 um 20:35 -0700 schrieb Andy Tai: > Hi, this is a question for writing package definition. >=20 > In some scenarios package A may refer to source files in package B. > The question is,=C2=A0 > 1. How to reference source directory of package B from within > definition of package A? > 2. can we even assume sources of Package B is available?=C2=A0=C2=A0 Norm= ally > if package B is an input (dependency) for package A, guix would > ensure its installation directory is available, but not necessarily > the source.=C2=A0 So is there something that has to be done to ensure > Package B sources are somewhere? You can use (package-source B) both within source and inputs. The only caveat here is that A and B should best be located in the same file; things break badly if they are split and introduce cyclic references. Note that the and part is more likely than you think, since the thunked nature of inputs normally makes them harmless. Cheers