GNU bug report logs - #52730
[PATCH] gnu: gst-plugins/selection: Make #:configure-flags optional.

Previous Next

Package: guix-patches;

Reported by: Jack Hill <jackhill <at> jackhill.us>

Date: Wed, 22 Dec 2021 03:36:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 52730 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#52730; Package guix-patches. (Wed, 22 Dec 2021 03:36:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jack Hill <jackhill <at> jackhill.us>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 22 Dec 2021 03:36:01 GMT) Full text and rfc822 format available.

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

From: Jack Hill <jackhill <at> jackhill.us>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: gst-plugins/selection: Make #:configure-flags optional.
Date: Tue, 21 Dec 2021 22:34:42 -0500
* gnu/packages/gstreamer.scm (gst-plugins/selection): Provide the empyt list
as a default value for #:configure-flags.
---
 gnu/packages/gstreamer.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index 87adb7c92a..1f6a56e30d 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -1034,7 +1034,7 @@ (define-public gst-editing-services
     (license license:gpl2+)))
 
 (define-public gst-plugins/selection
-  (lambda* (pkg #:key plugins configure-flags)
+  (lambda* (pkg #:key plugins (configure-flags '()))
     "Build PKG with only PLUGINS enabled.  Optionally, if CONFIGURE-FLAGS are
 given, also pass them to the build system instead of the ones used by PKG."
     (package/inherit pkg
-- 
2.34.0





Information forwarded to guix-patches <at> gnu.org:
bug#52730; Package guix-patches. (Fri, 24 Dec 2021 00:45:02 GMT) Full text and rfc822 format available.

Message #8 received at 52730 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Jack Hill <jackhill <at> jackhill.us>, 52730 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: gst-plugins/selection: Make #:configure-flags
 optional.
Date: Fri, 24 Dec 2021 01:44:22 +0100
Hi,

Am Dienstag, dem 21.12.2021 um 22:34 -0500 schrieb Jack Hill:
> * gnu/packages/gstreamer.scm (gst-plugins/selection): Provide the
> empyt list as a default value for #:configure-flags.
The current implementation ought to copy pre-existing configure-flags
as-is if you don't supply flags on your own.  I personally believe
that's preferable over an empty value, that will probably be reset. 
WDYT?




Information forwarded to guix-patches <at> gnu.org:
bug#52730; Package guix-patches. (Fri, 24 Dec 2021 05:18:02 GMT) Full text and rfc822 format available.

Message #11 received at 52730 <at> debbugs.gnu.org (full text, mbox):

From: Jack Hill <jackhill <at> jackhill.us>
To: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Cc: 52730 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: gst-plugins/selection: Make #:configure-flags
 optional.
Date: Fri, 24 Dec 2021 00:17:16 -0500 (EST)

On Fri, 24 Dec 2021, Liliana Marie Prikler wrote:

> Hi,
>
> Am Dienstag, dem 21.12.2021 um 22:34 -0500 schrieb Jack Hill:
>> * gnu/packages/gstreamer.scm (gst-plugins/selection): Provide the
>> empyt list as a default value for #:configure-flags.

> The current implementation ought to copy pre-existing configure-flags
> as-is if you don't supply flags on your own.  I personally believe
> that's preferable over an empty value, that will probably be reset.
> WDYT?

Yes, I agree that the current implementation ought to, but it doesn't. 
Instead it complains:

"""
ice-9/psyntax.scm:2794:12: In procedure syntax-violation:
Syntax error:
unknown location: quote: bad syntax in form quote
"""

I'll see about a v2.

Thanks!
Jack




Information forwarded to guix-patches <at> gnu.org:
bug#52730; Package guix-patches. (Fri, 24 Dec 2021 06:38:02 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jack Hill <jackhill <at> jackhill.us>
To: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Cc: guix-patches <at> gnu.org, 52730 <at> debbugs.gnu.org
Subject: Re: [bug#52730] [PATCH] gnu: gst-plugins/selection: Make
 #:configure-flags optional.
Date: Fri, 24 Dec 2021 01:37:17 -0500 (EST)
On Fri, 24 Dec 2021, Jack Hill wrote:

>
>
> On Fri, 24 Dec 2021, Liliana Marie Prikler wrote:
>
>> Hi,
>> 
>> Am Dienstag, dem 21.12.2021 um 22:34 -0500 schrieb Jack Hill:
>>> * gnu/packages/gstreamer.scm (gst-plugins/selection): Provide the
>>> empyt list as a default value for #:configure-flags.
>
>> The current implementation ought to copy pre-existing configure-flags
>> as-is if you don't supply flags on your own.  I personally believe
>> that's preferable over an empty value, that will probably be reset.
>> WDYT?
>
> Yes, I agree that the current implementation ought to, but it doesn't. 
> Instead it complains:
>
> """
> ice-9/psyntax.scm:2794:12: In procedure syntax-violation:
> Syntax error:
> unknown location: quote: bad syntax in form quote
> """
>
> I'll see about a v2.

I've looked at it for a little bit now, but I'm afraid that I'm stuck. I 
tried setting the default to #f (which may have been happening implicitly 
anyway):

```
(define-public gst-plugins/selection
  (lambda* (pkg #:key plugins (configure-flags #f))
    "Build PKG with only PLUGINS enabled.  Optionally, if CONFIGURE-FLAGS are
given, also pass them to the build system instead of the ones used by PKG."
    (package/inherit pkg
      (arguments
       (substitute-keyword-arguments (package-arguments pkg)
         ((#:configure-flags flags `(,@(or configure-flags '())))
          `(append
            (list
             ,@(map (lambda (plugin)
                      (string-append "-D" plugin "=enabled"))
                    plugins))
            (list ,@(or configure-flags flags))))
          ((#:phases phases)
           `(modify-phases ,phases
              (add-after 'unpack 'disable-auto-plugins
                (lambda _
                  (substitute* "meson_options.txt"
                    (("'auto'") "'disabled'")))))))))))
```

but that still gives me the "bad syntax in form quote" message. I can keep 
thinking about it, but if someone else knows the solution, I'd be happy to 
learn from you :)

Best,
Jack




Information forwarded to guix-patches <at> gnu.org:
bug#52730; Package guix-patches. (Fri, 24 Dec 2021 06:38:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#52730; Package guix-patches. (Fri, 24 Dec 2021 07:57:02 GMT) Full text and rfc822 format available.

Message #20 received at 52730 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Jack Hill <jackhill <at> jackhill.us>
Cc: 52730 <at> debbugs.gnu.org
Subject: Re: [bug#52730] [PATCH] gnu: gst-plugins/selection: Make
 #:configure-flags optional.
Date: Fri, 24 Dec 2021 08:56:21 +0100
Hi Jack,

Am Freitag, dem 24.12.2021 um 01:37 -0500 schrieb Jack Hill:
> On Fri, 24 Dec 2021, Jack Hill wrote:
> 
> I've looked at it for a little bit now, but I'm afraid that I'm
> stuck. I tried setting the default to #f (which may have been
> happening implicitly anyway):
Yes, if you don't supply an optional argument in Guile (or I guess in
Scheme generally), that argument gets #f as value.

> ```
> (define-public gst-plugins/selection
>    (lambda* (pkg #:key plugins (configure-flags #f))
>      "Build PKG with only PLUGINS enabled.  Optionally, if CONFIGURE-
> FLAGS are
> given, also pass them to the build system instead of the ones used by
> PKG."
>      (package/inherit pkg
>        (arguments
>         (substitute-keyword-arguments (package-arguments pkg)
>           ((#:configure-flags flags `(,@(or configure-flags '())))
>            `(append
>              (list
>               ,@(map (lambda (plugin)
>                        (string-append "-D" plugin "=enabled"))
>                      plugins))
>              (list ,@(or configure-flags flags))))
>            ((#:phases phases)
>             `(modify-phases ,phases
>                (add-after 'unpack 'disable-auto-plugins
>                  (lambda _
>                    (substitute* "meson_options.txt"
>                      (("'auto'") "'disabled'")))))))))))
> ```
> 
> but that still gives me the "bad syntax in form quote" message. I can
> keep thinking about it, but if someone else knows the solution, I'd
> be happy to learn from you :)
I swear this used to work before the c-u-f merge.  There might be a
problem mixing this with gexps or something I didn't account for back
then.





Information forwarded to guix-patches <at> gnu.org:
bug#52730; Package guix-patches. (Tue, 16 Aug 2022 19:47:02 GMT) Full text and rfc822 format available.

Message #23 received at 52730 <at> debbugs.gnu.org (full text, mbox):

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Jack Hill <jackhill <at> jackhill.us>
Cc: 52730 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: gst-plugins/selection: Make #:configure-flags
 optional.
Date: Tue, 16 Aug 2022 21:46:31 +0200
Hi Jack,

Am Freitag, dem 24.12.2021 um 00:17 -0500 schrieb Jack Hill:
> On Fri, 24 Dec 2021, Liliana Marie Prikler wrote:
> 
> > Hi,
> > 
> > Am Dienstag, dem 21.12.2021 um 22:34 -0500 schrieb Jack Hill:
> > > * gnu/packages/gstreamer.scm (gst-plugins/selection): Provide the
> > > empyt list as a default value for #:configure-flags.
> 
> > The current implementation ought to copy pre-existing configure-
> > flags
> > as-is if you don't supply flags on your own.  I personally believe
> > that's preferable over an empty value, that will probably be reset.
> > WDYT?
> 
> Yes, I agree that the current implementation ought to, but it
> doesn't. 
> Instead it complains:
> 
> """
> ice-9/psyntax.scm:2794:12: In procedure syntax-violation:
> Syntax error:
> unknown location: quote: bad syntax in form quote
> """
Is this still an issue?  Also try staging, which has gstreamer 1.20 and
some gexp-improvements for gst-plugins/selection.

Cheers




Information forwarded to guix-patches <at> gnu.org:
bug#52730; Package guix-patches. (Mon, 22 Jan 2024 16:38:01 GMT) Full text and rfc822 format available.

Message #26 received at 52730 <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Jack Hill <jackhill <at> jackhill.us>
Cc: Liliana Marie Prikler <liliana.prikler <at> gmail.com>, 52730 <at> debbugs.gnu.org
Subject: Re: [bug#52730] [PATCH] gnu: gst-plugins/selection: Make
 #:configure-flags optional.
Date: Mon, 22 Jan 2024 11:36:56 -0500
Hello Jack,

Liliana Marie Prikler <liliana.prikler <at> gmail.com> writes:

> Hi Jack,
>
> Am Freitag, dem 24.12.2021 um 00:17 -0500 schrieb Jack Hill:
>> On Fri, 24 Dec 2021, Liliana Marie Prikler wrote:
>> 
>> > Hi,
>> > 
>> > Am Dienstag, dem 21.12.2021 um 22:34 -0500 schrieb Jack Hill:
>> > > * gnu/packages/gstreamer.scm (gst-plugins/selection): Provide the
>> > > empyt list as a default value for #:configure-flags.
>> 
>> > The current implementation ought to copy pre-existing configure-
>> > flags
>> > as-is if you don't supply flags on your own.  I personally believe
>> > that's preferable over an empty value, that will probably be reset.
>> > WDYT?
>> 
>> Yes, I agree that the current implementation ought to, but it
>> doesn't. 
>> Instead it complains:
>> 
>> """
>> ice-9/psyntax.scm:2794:12: In procedure syntax-violation:
>> Syntax error:
>> unknown location: quote: bad syntax in form quote
>> """
> Is this still an issue?  Also try staging, which has gstreamer 1.20 and
> some gexp-improvements for gst-plugins/selection.

Ping :-)

-- 
Thanks,
Maxim




This bug report was last modified 88 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.