From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id muDqEfFD3GC3SwAAgWs5BA (envelope-from ) for ; Wed, 30 Jun 2021 12:14:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id IHSCDPFD3GAlSAAAbx9fmQ (envelope-from ) for ; Wed, 30 Jun 2021 10:14:09 +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 8951C16971 for ; Wed, 30 Jun 2021 12:14:08 +0200 (CEST) Received: from localhost ([::1]:35170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyXEN-0007rs-5G for larch@yhetil.org; Wed, 30 Jun 2021 06:14:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyXEI-0007rk-C0 for guix-patches@gnu.org; Wed, 30 Jun 2021 06:14:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44959) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyXEI-0006FT-4k for guix-patches@gnu.org; Wed, 30 Jun 2021 06:14:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyXEH-0000eI-W5 for guix-patches@gnu.org; Wed, 30 Jun 2021 06:14:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49149] [PATCH 0/7] Add deb format for guix pack. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Jun 2021 10:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49149 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxim Cournoyer Cc: 49149@debbugs.gnu.org Received: via spool by 49149-submit@debbugs.gnu.org id=B49149.16250479942429 (code B ref 49149); Wed, 30 Jun 2021 10:14:01 +0000 Received: (at 49149) by debbugs.gnu.org; 30 Jun 2021 10:13:14 +0000 Received: from localhost ([127.0.0.1]:56505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyXDV-0000d6-LK for submit@debbugs.gnu.org; Wed, 30 Jun 2021 06:13:13 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyXDU-0000co-2N for 49149@debbugs.gnu.org; Wed, 30 Jun 2021 06:13:12 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33922) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyXDO-0005dy-T4; Wed, 30 Jun 2021 06:13:06 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=42584 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyXDO-0006m9-LZ; Wed, 30 Jun 2021 06:13:06 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20210624044049.17906-1-maxim.cournoyer@gmail.com> <20210624044049.17906-4-maxim.cournoyer@gmail.com> Date: Wed, 30 Jun 2021 12:13:05 +0200 In-Reply-To: <20210624044049.17906-4-maxim.cournoyer@gmail.com> (Maxim Cournoyer's message of "Thu, 24 Jun 2021 00:40:46 -0400") Message-ID: <87lf6roe32.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625048048; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=cyqzNfAD7WXRlO8jzu7ZjyW8a4mRFYdJM/emD8Y0vXE=; b=Sb3H5kV8nZX18m8boiLtkqkD/LXn85uooF+EtSReLZ45FQC3qlqFaQr/iV8o7vwJMe37O9 ijEJ4iwYJj2T4eS9Q7QT2otSu3nqrNq84hhjgBrse9AYyA7qx10wTogN1NgSYfd+Bh56M0 U5+UsJo6JAn8or15JxibrnzMwRpXgcxysldrLy2ir5mFvlegS+mAb+/vCmfFWcZksBONGk ZaEsfDh8bvMQ3r7txAAKKzX3hzH8MGd8q22b7N3hzTbe+YwAt8L8scrJy6tpOQWBS99KSl v3wVPRL3udZNaDgVMdgX/eqgM6X4NFOc1gPdJWulgOTvP8dSe9lOm/PhZnf3cQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625048048; a=rsa-sha256; cv=none; b=MHtYJLO6CQW795nuGgEHW8qN38m/FEJ3jkzKW1xJJ+3Sw/YKF6EzCB866pqexr54zdJDbE apNIifn+VmklWngFTj6SezMjWt30xz0EYTML5Ay2DhcChpihlalhfFsC+twmThaBC+HXiz hWmKI0lLKtZD6MHIIxtbiCwfqv0mAyUniYjpxADBXnfYnOx76jd/1mh/0IzStX/Qfuz3tz qBQ7M8hXSFYeK7um66DGplaJQVTLE1Y6H6zD5r8Kn2oaWV9ETGI/2jh22dhLZOWZFx+J/U zNGO/+Sg2M95RACOXhibRK3ZlFeGixZKWt1hXduV48DVinxKwi+WdTaNICgK7w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.92 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 8951C16971 X-Spam-Score: -2.92 X-Migadu-Scanner: scn1.migadu.com X-TUID: 1GXTMwCLgkr6 Maxim Cournoyer skribis: > Instead of just naming them by their pack type, add information from the > package(s) they contain to make it easier to differentiate them. > > * guix/scripts/pack.scm (define-with-source): New macro. > (manifest->friendly-name): Extract procedure from ... > (docker-image): ... here, now defined via the above macro. Adjust REPOSI= TORY > argument value accordingly. > (guix-pack): Derive NAME using MANIFEST->FRIENDLY-NAME. [...] > - (define tag > - ;; Compute a meaningful "repository" name, which will show= up in > - ;; the output of "docker images". > - (let ((manifest (profile-manifest #$profile))) > - (let loop ((names (map manifest-entry-name > - (manifest-entries manifest)))) > - (define str (string-join names "-")) > - (if (< (string-length str) 40) > - str > - (match names > - ((_) str) > - ((names ... _) (loop names))))))) ;drop one entry I think this should not be factorized because the requirements are very Docker-dependent. Once factorized, it becomes easy to overlook this. Ludo=E2=80=99.