From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iDQPB0E3JmdvgQEAqHPOHw:P1 (envelope-from ) for ; Sat, 02 Nov 2024 14:29:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iDQPB0E3JmdvgQEAqHPOHw (envelope-from ) for ; Sat, 02 Nov 2024 15:29:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=futurile.net header.s=selector1 header.b=j146fOLx; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730557761; a=rsa-sha256; cv=none; b=Y5IMagJ7lI53ir3vq97V4+/j/OhSI9HJMNoUojKdSlMrxwvG6fwSoic1mfGHx9osSC2dP/ mk/DhfLHiUYps4yW2qjY+mg5GB6PERqUX3cJwK1ZCqIG3ZK56ysW8Q1TNpE0mLf/dNvNx/ GW92q4wr+kpouWCzuTBHFmErBr4Y7eOfPeH6v2z5baXuUjuh5TfCpNyJT6++fMKwlcqejt T3enDQr5EgzZyePwllfPjNEqSfkxvwIrndUDT+kXeM1Q4By9q2hP5RhOdi2TT55o3Ea0zW uA532NHv6c4Z9fX5yoEC5SGR3hdtBlpHnw1Pnp7OMRxFTQ/3VLRNSdoustNuAQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=futurile.net header.s=selector1 header.b=j146fOLx; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730557761; 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=0zvNh4dnyNX/KNS4A3A+L7qZlwOatP+qSube0LFyzpA=; b=A7beKWa8W88wRZBNfmdgqnttZg6ThHeVTDRRdKYErWa96JxvEIK/prIilllsIOeq1JZAS2 OhSbvyUry0Q5EUyDBpcjfyjOvxhiqnADGLc06gmEaz1RiuMuUlNkAdydMpUA9QKKEePQF4 KiHiuCSEXz2rJfGP5zuZSPakhZSI4ceXLt7xAYF6WpNDn1/XRL8Il1YawDyILDI06IFnbP yUF4nQY4M9TeZTOHkCDJKB4xooM6jYkAemm1ffLKHLisb69mSRkripEldeq5xE4YiAYMVo +QvZF2qpdvLpxX1yspWg0X2Xxma06vKRhIRMWdXV+9Of/zndl2vqvJuZ1PfhaA== 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 E81D18B9A1 for ; Sat, 02 Nov 2024 15:29:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7F7N-0007ns-LV; Sat, 02 Nov 2024 10:28:45 -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 1t7F7M-0007nj-2n for help-guix@gnu.org; Sat, 02 Nov 2024 10:28:44 -0400 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t7F7I-0005Xw-Ve for help-guix@gnu.org; Sat, 02 Nov 2024 10:28:43 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1t7F7D-002bvd-Oe for help-guix@gnu.org; Sat, 02 Nov 2024 15:28:35 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=futurile.net; s=selector1; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=0zvNh4dnyNX/KNS4A3A+L7qZlwOatP+qSube0LFyzpA=; b=j146fOLx7d9/2OqKwgcMVek7sA E8uJ0oP0iBo/mPMwnWofVBrBvjOz50wDJxoTURCTgADJpKYK9iM54T+xhUpqV3eDYA+7HNQQZgJ+P 6X9eyPYK9l8VZ4hMytzqzkUDx5V4EOjfg5P1MYaEUZiBSbW8Xp+nifEomoX+oJ2Ja2Okl/ZZcz5l1 XIxKmm37p5M6KoagcLBc/y8Da58HVo6MUBeueWiQ6EMqPzKscQmRl6QWtVWzsrQYYmeYxYfrUirr2 eTI6YHjQ1gV7XOysUfucAOMxsv7GSuTxCp/mp9l8OTKTI4uPrYOPdsdXQ8nnwYZmc6ygxQsIa/YYb wm/Kaolw==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1t7F7C-0006Jx-Js; Sat, 02 Nov 2024 15:28:34 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (641962)] (TLS1.2:ECDHE_SECP256R1__RSA_SHA256__AES_256_GCM:256) (Exim 4.93) id 1t7F78-00AXZC-42; Sat, 02 Nov 2024 15:28:30 +0100 Date: Sat, 2 Nov 2024 14:28:29 +0000 From: Steve George To: Simen =?utf-8?Q?Endsj=C3=B8?= Cc: help-guix@gnu.org Subject: Re: Combine outputs from several packages to a shared location Message-ID: References: <877c9ulhaj.fsf@simendsjo.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <877c9ulhaj.fsf@simendsjo.me> Received-SPF: permerror client-ip=2a0c:5a00:149::26; envelope-from=steve@futurile.net; helo=mailtransmit05.runbox.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-0.001, T_SPF_PERMERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.91 X-Spam-Score: -3.91 X-Migadu-Queue-Id: E81D18B9A1 X-Migadu-Scanner: mx10.migadu.com X-TUID: O1gAe1bKnnpu Hi Simen, I'm aware of a union build in Guix, but unfortunately have never used it: https://git.savannah.gnu.org/cgit/guix.git/tree/guix/build/union.scm I recalled it because of this blog post which talks about union packages: https://trivialfis.github.io/linux/2018/06/10/Using-guix-for-development.html Hope it helps! Steve / Futurile On 26 Oct, Simen Endsjø wrote: > > Hi, I'm trying to package some software where I combine various packages into a > single location. I'll try to explain... > > I have a package P. This package contains a binary, B, some libraries S, and > some libraries R. These are usually packages together, in which case things just > work, but I need to support adding various versions of some of these packages. > > E.g. I add P@2:out to get everything for that version, but additionally P@1:S > and P@1:R. B can only be added once as it is at the same location, and we > usually use the latest version, but S and R have versioned subdirectories. This > means S@1 is located at /s/1 and R@2 is located at /r/2. > > Given the shell with P@2:out, P@1:S, P@1:R, I should get a structure like > > /B > /s/1 > /s/2 > /r/1 > /r/2 > > This is the structure you get when installing the packages on other distros and > operating systems. > > But how can I create such a "virtual package"? I also need to register this > virtual package path in an environment variable so B is able to locate > all S and R versions, P_ROOT. > > Right now only :out works as I cannot get the locations of other P:S and P:R > known to B. The single environment variable can only point at a single path, and > that path must include the s and r directories with all installed versions. > > How can I solve this problem? > Are there other packages which does something similar I might look at? > > Regards Simen >