From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qFjCFH4fu2MtaAEAbAwnHQ (envelope-from ) for ; Sun, 08 Jan 2023 20:54:38 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GGrJE34fu2M0dAAAG6o9tA (envelope-from ) for ; Sun, 08 Jan 2023 20:54:38 +0100 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 1195A1882F for ; Sun, 8 Jan 2023 20:54:37 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pEbjx-0001iK-Rr; Sun, 08 Jan 2023 14:53:57 -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 1pEbjv-0001hr-Pq for guix-devel@gnu.org; Sun, 08 Jan 2023 14:53:55 -0500 Received: from mx1.riseup.net ([198.252.153.129]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEbjt-0004jP-A9 for guix-devel@gnu.org; Sun, 08 Jan 2023 14:53:55 -0500 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4Nqnnq5j51zDqYj; Sun, 8 Jan 2023 19:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1673207631; bh=hYjLNfdRXxfQ5BrdYnjDTW/tsN5UE02DTJ/f0yyv5ow=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=IrGkn4dGiaik/g7COCUw4LpCwQZbj/LFU0xPLpyheIFMymd/HzmAoRvcYIJzaMwVK 2a2bYXEtuupgGTwsCl3fnEHLZqelwHjSr0xZJPFnXgp7OTzGpR+S7mVQDYmyHuuzo2 YJtcPRnmCG2Acc+H6M5XuqyvD0LQ+tsZpSm2m9q0= X-Riseup-User-ID: E62D7C013700EF79CA84B581F4CA74C44184A81CE0D04C3393BCB51C1DC365AB Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4Nqnnq0tSGz5vXJ; Sun, 8 Jan 2023 19:53:50 +0000 (UTC) References: <867cxxxgfv.fsf@riseup.net> <663DEABC-D27B-4E6F-B0E8-4B2ADF609F4A@lepiller.eu> From: Csepp To: Julien Lepiller Cc: Csepp , Guix Devel , pukkamustard Subject: Re: Packaging OCaml repositories that define multiple packages? Date: Sun, 08 Jan 2023 20:52:29 +0100 In-reply-to: <663DEABC-D27B-4E6F-B0E8-4B2ADF609F4A@lepiller.eu> Message-ID: <86fsck6bw4.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=198.252.153.129; envelope-from=raingloom@riseup.net; helo=mx1.riseup.net 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1673207678; 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=m9v88W+c9CEJsSitV+meTKmDBQoyv7f7diCfuesP3NQ=; b=hsCirou+Hfsi4rlCdavoi3nXwzGNuDFj8awOjV41ZaptutN0X04Ta9nJRk+XOgIqqyvfCX RRM5YpU2R43VBXv1q6zXIZf/QQYLTM9KIPWxQkZRyqcvuOkp8GNGknxlQ5eObv3B+rcRHJ kiSy7dNoYU4OKIUshYn968tufhX1yUlleJk9wsPs3uuW696NflWvI9S+PbwWxR2Agj3aIy rN+W3XYpHSz5DkHbuwVLPtNs73DOSzcL+dm3UDzdUyosdGF5X6Ha0KMrEzJDwwpSKSaUEp 84xMe31nRc4LvVQtPd98KfdcSEr+C0/3vU96gmezsx8b/arNNlS4D+4p4MJxRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=IrGkn4dG; 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=riseup.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1673207678; a=rsa-sha256; cv=none; b=duLifnQjUetg+XaI3sdfcTpFbFZ9gv08IzQHqextD3tsb/RJyGwg7set7KF5lsJvwwenjO sEt15plmR5J1q8ikR0V2g/s5LMAdcY4S5Hh6igYSCJhZUgIhLjBv1vlwLWApcDu4RHhn/z ND3O5I0WRG8ClJfZuxp4HFOYB94fRAHihkyEZwX1SxeqYzV8xqP5ahSHGFBYmb3qgHFZ0c VXtwz0i+7f1NNwd2Io8fm9utfsbA7CYdJ8FjMdp6tv8LQYDTLfRyxjyoC/W1Wq5I96Aban vT83XCeMG4uxUp8t8Y/VHDZfTio7AGLm3GQVLhUUICgBsqJoTN/sS/N/dLO1sg== X-Spam-Score: -3.86 X-Migadu-Queue-Id: 1195A1882F Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=IrGkn4dG; 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=riseup.net X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.86 X-TUID: VIEOHnk7gNEF Thanks! Yeah, the alias solution was not pretty. Guess I'll use inherits and set the package argument. Julien Lepiller writes: > The importer will not support such a package. As you say, it wants to > build them separately because they are separate opam packages. So, > either we build them separately too, or we build all at once. > > If we build all at once, that's fine. You could name the package > ocaml-mirage and not use any #:package argument. Dune will then build > all packages from the repository. > > One issue with that is that the importer will not know about it and will = try > to import subpackages again whenever a packages depends on it, instead > of using ocaml-mirage. > > I don't like the alias solution, though it should work, since the importer > would see them. > > Le 8 janvier 2023 15:04:35 GMT+01:00, Csepp > a =C3=A9crit : > > I'm going through my MirageOS commits for what is hopefully > the last > time before I send the patches and I realized that a problem that I > thought was isolated is a lot more widespread than I thought. > > As an example look at https://github.com/mirage/mirage/ > > It defines functoria, functoria-runtime, mirage, and mirage-runtime. > > It is possible to build all 4 as one package. > > The opam importer seems to not be able to handle situations like this, > since it defines a new package for each sub-package. > > How should I proceed? I definitely want to merge all redundant packages > into one, but then what? How should the package description reflect > this? What should the package be named when it corresponds to 4 OPAM > packages at once? > > For now I defined a few aliases for cases like this, but I'm not sure if > this is ideal. They look like this (made up but possible example): > (define ocaml-mirage ocaml-mirage-runtime)