From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id MCvzH7taNmBHfQAA0tVLHw (envelope-from ) for ; Wed, 24 Feb 2021 13:55:07 +0000 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 SA28G7taNmCUMwAAbx9fmQ (envelope-from ) for ; Wed, 24 Feb 2021 13:55:07 +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 964C12530C for ; Wed, 24 Feb 2021 14:55:06 +0100 (CET) Received: from localhost ([::1]:50064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEud7-0007zV-ND for larch@yhetil.org; Wed, 24 Feb 2021 08:55:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEuTO-0002SE-Jn for bug-guix@gnu.org; Wed, 24 Feb 2021 08:45:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEuTO-0001LS-A1 for bug-guix@gnu.org; Wed, 24 Feb 2021 08:45:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lEuTO-0002BH-5V for bug-guix@gnu.org; Wed, 24 Feb 2021 08:45:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46650: Extending package transformation options Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 24 Feb 2021 13:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46650 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 46650-submit@debbugs.gnu.org id=B46650.16141742558315 (code B ref 46650); Wed, 24 Feb 2021 13:45:02 +0000 Received: (at 46650) by debbugs.gnu.org; 24 Feb 2021 13:44:15 +0000 Received: from localhost ([127.0.0.1]:33908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEuSd-0002A3-Fg for submit@debbugs.gnu.org; Wed, 24 Feb 2021 08:44:15 -0500 Received: from mail-qk1-f170.google.com ([209.85.222.170]:35925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lEuSb-00029q-J7 for 46650@debbugs.gnu.org; Wed, 24 Feb 2021 08:44:14 -0500 Received: by mail-qk1-f170.google.com with SMTP id v206so2108516qkb.3 for <46650@debbugs.gnu.org>; Wed, 24 Feb 2021 05:44:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ep4gLNA73cCYMEH7XIP3SwRNbJ4V4EAFTUFqYcfn59c=; b=mY5Who4ZcJ5ZP1JJPos/Te8dLj8jZ+W3jCzEdLhTqqFlPQc//uBX+PMlFK/m1VmaO9 Q0OusNdHiI7BnihcrqD26lDiwYOLFG0NopQAO+eq0pVqvm8VNPByoOchA6Lu5c8gN1JC hxj06KnbZf5JA9Ohwlkw02KCHfIDglyDbxQUWC23Rd04mwqzw/d5zoZcPTJ9S1PIcPr2 Y5r2/uUfQrf6EwEgag9VKvMXoni6F3CKv0DUdovlkTQWQDk7UQByHakRTne3wM3uCUC9 4mAeIjj3iU3Nctd4dS61Sn2hItBlELkZgrpJ8+sVN45P9up/wxidEhNcQZoVoGLxqI51 ZeEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ep4gLNA73cCYMEH7XIP3SwRNbJ4V4EAFTUFqYcfn59c=; b=TkjRlt2IlgmHmvhv3ld30vzTsBUOpQTDezwBbU9CgBoVZQDv7kOl55xn/CuSShzqqB oWmwrXmCZdzy6vujc2Ke233jzEccLpkFpxSZYB2mpcp9z+AGSdy+N6GKqUUfFVyV0Dpc CPpYIyQ8c11DC6GG757T3DVxPH5n96eG0yOwr9yLlP88o4UNItzjMqFua1c0m1PjOL6A DbRa0smKJxnELLiWp0Q9cius4bHY03WWwwQhBG4lwe9Upro6nbIH0kTLlEV6EJqrlsO+ 19Ilz7BSFaRdv+FiI/sqbkPVVe1AaPU1vm0R1a+oSj623j9G46f3K7vGb2n/NCHtNv0x uEEQ== X-Gm-Message-State: AOAM533j7VoiqP5FjBCHRoxaGsgHR9QNh56rLyasbPNwkZV+U/OOoarU tnOzOjHwSrvRessy/NOxcYeEAF8LT3KLUjwpSuc= X-Google-Smtp-Source: ABdhPJxfBpv7RcyzjwDAechfN60HmtFexqIRNIjrF7s4sC4CbJval8UBQHWs8Hkb5MEi422SQXBh6MG6Ux3+7Cceid8= X-Received: by 2002:a05:620a:908:: with SMTP id v8mr31921311qkv.201.1614174247844; Wed, 24 Feb 2021 05:44:07 -0800 (PST) MIME-Version: 1.0 References: <87h7m6j0yi.fsf@gnu.org> <86pn0qtofg.fsf@gmail.com> <87sg5l3ekn.fsf@gnu.org> In-Reply-To: <87sg5l3ekn.fsf@gnu.org> From: zimoun Date: Wed, 24 Feb 2021 14:43:56 +0100 Message-ID: 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 46650@debbugs.gnu.org, Carl Dong Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.27 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=mY5Who4Z; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 964C12530C X-Spam-Score: -1.27 X-Migadu-Scanner: scn0.migadu.com X-TUID: v7Ynq+BVIP4p Hi Ludo, On Wed, 24 Feb 2021 at 12:11, Ludovic Court=C3=A8s wrote: > > On Sat, 20 Feb 2021 at 14:57, Ludovic Court=C3=A8s wrote= : > > > >> Guix as returned by =E2=80=98guix pull=E2=80=99 and =E2=80=98guix time= -machine=E2=80=99 depends on > >> GnuTLS. So here, we have a special case: to build Guix itself, you ne= ed > >> to build GnuTLS first, and there=E2=80=99s no way to pass =E2=80=98--w= ithout-tests=E2=80=99 at > >> that level. > >> > >> I=E2=80=99m not sure how to change that because unfortunately, =E2=80= =98guix pull=E2=80=99 and > >> =E2=80=98time-machine=E2=80=99 don=E2=80=99t even know that Guix depen= ds on GnuTLS; only the > >> target Guix knows about this. :-/ > > > > If =C2=AB=E2=80=9Cguix pull=E2=80=9D and =E2=80=99time-machine=E2=80= =99 don=E2=80=99t even know that Guix depends on > > GnuTLS=C2=BB and =C2=ABto build Guix itself, you need to build GnuTLS f= irst=C2=BB, how > > does it work? How does =C2=AByou=C2=BB know that they needs to build G= nuTLS > > first? > > =E2=80=98guix pull=E2=80=99 builds Guix using the method implemented in (= guix self). > The entry point there is =E2=80=98compiled-guix=E2=80=99, which returns a= compiled Guix. Thanks. It perfectly answer to my question. :-) > It=E2=80=99s not a package so the package API doesn=E2=80=99t apply. I am confused. The 'specification->package' returns a regular package, right?. And then, --8<---------------cut here---------------start------------->8--- (define gnutls (specification->package "gnutls")) (define dependencies (append-map transitive-package-dependencies (list guile-gcrypt gnutls guile-git guile-avahi guile-json guile-semver guile-ssh guile-sqlite3 guile-zlib guile-lzlib guile-zstd))) --8<---------------cut here---------------end--------------->8--- So here, a transformation could be applied. For example, build all the dependencies without testing them; at the 'define gnutls' (&co) step or in the map. Why not? Well, just to be able to travel back in time if some expiration changed. Cheers, simon