From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CN+WLL6Wrl8aWQAA0tVLHw (envelope-from ) for ; Fri, 13 Nov 2020 14:22:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sP1RKL6Wrl9CPQAAB5/wlQ (envelope-from ) for ; Fri, 13 Nov 2020 14:22:54 +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 118F59403C4 for ; Fri, 13 Nov 2020 14:22:53 +0000 (UTC) Received: from localhost ([::1]:48458 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdZyW-0002pY-So for larch@yhetil.org; Fri, 13 Nov 2020 09:22:52 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdZXa-00075N-Gv for bug-guix@gnu.org; Fri, 13 Nov 2020 08:55:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdZXa-00075e-7l for bug-guix@gnu.org; Fri, 13 Nov 2020 08:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kdZXa-0001Su-5s for bug-guix@gnu.org; Fri, 13 Nov 2020 08:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44619: [PATCH] Expose some functions for guix.el Resent-From: John Soo Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 13 Nov 2020 13:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44619 X-GNU-PR-Package: guix X-GNU-PR-Keywords: patch To: 44619@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16052756635576 (code B ref -1); Fri, 13 Nov 2020 13:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Nov 2020 13:54:23 +0000 Received: from localhost ([127.0.0.1]:47272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdZWw-0001Rs-UE for submit@debbugs.gnu.org; Fri, 13 Nov 2020 08:54:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:38518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdZWr-0001Rg-TH for submit@debbugs.gnu.org; Fri, 13 Nov 2020 08:54:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdZWq-0006sk-4z for bug-guix@gnu.org; Fri, 13 Nov 2020 08:54:17 -0500 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:36145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdZWn-0006qI-Mi for bug-guix@gnu.org; Fri, 13 Nov 2020 08:54:15 -0500 Received: by mail-pg1-x532.google.com with SMTP id t21so812329pgl.3 for ; Fri, 13 Nov 2020 05:54:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asu-edu.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=JcxPyT5WNVHL6ct/ulv38bJSztWJ161Q12v0MxXX/G8=; b=KaGy/3LMdpVRztTJbH4wgwR2VhxlnDsiX7R1AuOnuO4smeYlz4aGIZMshaZF07sLOS cGrl1K+82ih2Qphlj8iBpEnPBoy9xuG8NG91RDi/QiBAjlAknNzMQzXP+447avJIRWSa 26FduOxjv8On45PbvfrXJarIXSc5565mrgeFbBIUK7EgnqWoWLs+BZh6kRlEnJ/oStIs ebo5IIFPaaNbnjKILk4N35SNS4JkWni0YopjCoS31ZoBfPyNowaiqIeW7QZ8ed3Em7NY rCdj+nBsrsdpOhzjDDNavrBp/7mpHYOH4M9vyzG1s8S2OPOTIq47Z2JJUJOWEMyfKqCW sIRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=JcxPyT5WNVHL6ct/ulv38bJSztWJ161Q12v0MxXX/G8=; b=t1BQF+UdFip1uGQTTGdw6qhOE3OrNNxOm/S7dOSf7/hQqsAit7FRhDWiaZnp+ycv9R qrYkSEMwOmMXmDSw6MPK7K9Fl+4TODh8E0qSyNU/88zgjK/jBijz3RkGcl85gwggnceF s50u3zk+fKQTUdLQZxKWVjVbqNVbKCzeb2YyJtLte+yN2rq6F4schT9gW6uto9+E2uEL YjmYVxQDAYgiME7T0LW3eK7lByuv288KKkLaNsx40/F/Gd3dPZPTzVOlg2BSKfK2lgLB NUUphWX/XdYJpkJPuClpbMDfGUTDCTBBbQseCR5LUUgicYT3zr5Z1Lt7CCoVrVQBwNN0 387g== X-Gm-Message-State: AOAM532nu9loh8p5/VgEmRM2qoNcXgalc0xzL77I1dcoOY7eIYGmRN/f uNuv0zS5N9uxrbFkW1v/51l37c3lIGHuTw== X-Google-Smtp-Source: ABdhPJwRlt7E6z2y4D9YAy2UMfWBkS/1z/AuzWkItPhFWD712gUgEv45mkJBjM7qGjb3oKBpiPN2lw== X-Received: by 2002:a17:90a:9f85:: with SMTP id o5mr2989457pjp.63.1605275651179; Fri, 13 Nov 2020 05:54:11 -0800 (PST) Received: from ecenter ([2600:1700:83b0:8bd0::7a8]) by smtp.gmail.com with ESMTPSA id t26sm10983820pfl.72.2020.11.13.05.54.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 13 Nov 2020 05:54:10 -0800 (PST) From: John Soo Date: Fri, 13 Nov 2020 05:54:08 -0800 Message-ID: <87mtzlmkfz.fsf@asu.edu> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=jsoo1@asu.edu; helo=mail-pg1-x532.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Fri, 13 Nov 2020 09:22:46 -0500 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=asu-edu.20150623.gappssmtp.com header.s=20150623 header.b=KaGy/3LM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=asu.edu (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-Spam-Score: 0.09 X-TUID: ieQmv9kPUxm8 --=-=-= Content-Type: text/plain Hi Guix, guix.el Has been broken for quite some time because it depends on @@ for some modules. After some review, I came to the conclusion that all of the bindings it uses can be safely exposed. In general, it uses mostly bindings from guix scripts (pack, build, etc). Those bindings seem reasonable to expose since they give programmatic access to "API"s that the CLI user is most likely familiar with. Thanks! John --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-guix-pack-Expose-some-bindings-for-third-party-use.patch >From af50f2d398096f7f8bd4efd9255b5713f39104b2 Mon Sep 17 00:00:00 2001 From: John Soo Date: Thu, 12 Nov 2020 21:47:36 -0800 Subject: [PATCH 1/2] guix pack: Expose some bindings for third-party use. * guix/scripts/pack.scm (compressor-name, %compressors, %formats): Expose them. --- guix/scripts/pack.scm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/guix/scripts/pack.scm b/guix/scripts/pack.scm index 8e694edbbe..b6dfcb5f6a 100644 --- a/guix/scripts/pack.scm +++ b/guix/scripts/pack.scm @@ -58,11 +58,14 @@ #:use-module (srfi srfi-37) #:use-module (ice-9 match) #:export (compressor? + compressor-name + %compressors lookup-compressor self-contained-tarball docker-image squashfs-image + %formats guix-pack)) ;; Type of a compression tool. -- 2.29.1 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-guix-build-Expose-log-url-for-third-parties.patch >From 17344a2a6f68146c51368788dcdf3dd9193155e6 Mon Sep 17 00:00:00 2001 From: John Soo Date: Thu, 12 Nov 2020 21:54:45 -0800 Subject: [PATCH 2/2] guix build: Expose log-url for third parties. * guix/scripts/build.scm (log-url): Expose it. --- guix/scripts/build.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guix/scripts/build.scm b/guix/scripts/build.scm index f4a8af035b..41f21fa81d 100644 --- a/guix/scripts/build.scm +++ b/guix/scripts/build.scm @@ -57,7 +57,9 @@ #:use-module ((guix status) #:select (with-status-verbosity)) #:use-module ((guix progress) #:select (current-terminal-columns)) #:use-module ((guix build syscalls) #:select (terminal-columns)) - #:export (%standard-build-options + #:export (log-url + + %standard-build-options set-build-options-from-command-line set-build-options-from-command-line* show-build-options-help -- 2.29.1 --=-=-=--