GNU bug report logs

#41330 Patch to expose #:scheme-file-regexp in guile build system

PackageSource(s)Maintainer(s)
guix-patches PTS Buildd Popcon
Reply or subscribe to this bug. View this bug as an mbox, status mbox, or maintainer mbox

Report forwarded to guix-patches@gnu.org:
bug#41330; Package guix-patches. (Sat, 16 May 2020 16:36:01 GMT) (full text, mbox, link).


Acknowledgement sent to alex@komputilo.eu:
New bug report received and forwarded. Copy sent to guix-patches@gnu.org. (Sat, 16 May 2020 16:36:01 GMT) (full text, mbox, link).


Message #5 received at submit@debbugs.gnu.org (full text, mbox, reply):

From: Alex Sassmannshausen <alex@komputilo.eu>
To: "guix-patches\@gnu.org" <guix-patches@gnu.org>
Subject: Patch to expose #:scheme-file-regexp in guile build system
Date: Sat, 16 May 2020 15:37:47 +0200
[Message part 1 (text/plain, inline)]
Hello,

Please see proposition below.  Exposing this argument makes it possible
to only install specific scheme files in a project using the
guile-build-system.

WDYT?

Alex

[0001-build-system-guile-Expose-scheme-file-regexp.patch (text/x-diff, inline)]
From b798fef327c86b82f336e3fec0e96b791032f470 Mon Sep 17 00:00:00 2001
From: Alex Sassmannshausen <alex@komputilo.eu>
Date: Sat, 16 May 2020 15:32:45 +0200
Subject: [PATCH] build-system/guile: Expose #:scheme-file-regexp.

* guix/build-system/guile.scm (%scheme-file-regexp): New variable.
  (guile-build): Accept #:scheme-file-regexp and pass it on to builder.
---
 guix/build-system/guile.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/guix/build-system/guile.scm b/guix/build-system/guile.scm
index 3693014694..45e735b987 100644
--- a/guix/build-system/guile.scm
+++ b/guix/build-system/guile.scm
@@ -29,6 +29,10 @@
   #:export (%guile-build-system-modules
             guile-build-system))
 
+(define %scheme-file-regexp
+  ;; Regexp to match Scheme files.
+  "\\.(scm|sls)$")
+
 (define %guile-build-system-modules
   ;; Build-side modules imported by default.
   `((guix build guile-build-system)
@@ -80,6 +84,7 @@
                       (system (%current-system))
                       (source-directory ".")
                       not-compiled-file-regexp
+                      (scheme-file-regexp %scheme-file-regexp)
                       (compile-flags %compile-flags)
                       (imported-modules %guile-build-system-modules)
                       (modules '((guix build guile-build-system)
@@ -97,6 +102,7 @@
                                 (source
                                  source))
                     #:source-directory ,source-directory
+                    #:scheme-file-regexp ,scheme-file-regexp
                     #:not-compiled-file-regexp ,not-compiled-file-regexp
                     #:compile-flags ,compile-flags
                     #:phases ,phases
-- 
2.23.0


Information forwarded to guix-patches@gnu.org:
bug#41330; Package guix-patches. (Mon, 18 May 2020 12:32:01 GMT) (full text, mbox, link).


Message #8 received at 41330@debbugs.gnu.org (full text, mbox, reply):

From: Ludovic Courtès <ludo@gnu.org>
To: Alex Sassmannshausen <alex@komputilo.eu>
Cc: 41330@debbugs.gnu.org
Subject: Re: [bug#41330] Patch to expose #:scheme-file-regexp in guile build system
Date: Mon, 18 May 2020 14:30:57 +0200
Hi Alex,

Alex Sassmannshausen <alex@komputilo.eu> skribis:

>>From b798fef327c86b82f336e3fec0e96b791032f470 Mon Sep 17 00:00:00 2001
> From: Alex Sassmannshausen <alex@komputilo.eu>
> Date: Sat, 16 May 2020 15:32:45 +0200
> Subject: [PATCH] build-system/guile: Expose #:scheme-file-regexp.
>
> * guix/build-system/guile.scm (%scheme-file-regexp): New variable.
>   (guile-build): Accept #:scheme-file-regexp and pass it on to builder.

LGTM, dankon!  :-)

Ludo’.




Information forwarded to guix-patches@gnu.org:
bug#41330; Package guix-patches. (Mon, 18 May 2020 14:06:02 GMT) (full text, mbox, link).


Message #11 received at 41330@debbugs.gnu.org (full text, mbox, reply):

From: Alex Sassmannshausen <alex@komputilo.eu>
To: Ludovic Courtès <ludo@gnu.org>
Cc: 41330@debbugs.gnu.org
Subject: Re: [bug#41330] Patch to expose #:scheme-file-regexp in guile build system
Date: Mon, 18 May 2020 15:38:47 +0200
Saluton,

Ludovic Courtès <ludo@gnu.org> writes:

> Hi Alex,
>
> Alex Sassmannshausen <alex@komputilo.eu> skribis:
>
>>>From b798fef327c86b82f336e3fec0e96b791032f470 Mon Sep 17 00:00:00 2001
>> From: Alex Sassmannshausen <alex@komputilo.eu>
>> Date: Sat, 16 May 2020 15:32:45 +0200
>> Subject: [PATCH] build-system/guile: Expose #:scheme-file-regexp.
>>
>> * guix/build-system/guile.scm (%scheme-file-regexp): New variable.
>>   (guile-build): Accept #:scheme-file-regexp and pass it on to builder.
>
> LGTM, dankon!  :-)
>
> Ludo’.

Pushed now.

Thanks for the review!

Alex




Added tag(s) fixed. Request was from Ludovic Courtès <ludo@gnu.org> to control@debbugs.gnu.org. (Sat, 23 May 2020 13:55:02 GMT) (full text, mbox, link).


bug closed, send any further explanations to 41330@debbugs.gnu.org and alex@komputilo.eu Request was from Ludovic Courtès <ludo@gnu.org> to control@debbugs.gnu.org. (Sat, 23 May 2020 13:55:02 GMT) (full text, mbox, link).


bug archived. Request was from Debbugs Internal Request <help-debbugs@gnu.org> to internal_control@debbugs.gnu.org. (Sun, 21 Jun 2020 11:24:04 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Mon Nov 4 20:58:56 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.