GNU bug report logs - #69502
[PATCH] gnu: sdl2: Update to 2.30.0.

Previous Next

Package: guix-patches;

Reported by: dan <i <at> dan.games>

Date: Sat, 2 Mar 2024 09:08:01 UTC

Severity: normal

Tags: patch

Done: John Kehayias <john.kehayias <at> protonmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 69502 in the body.
You can then email your comments to 69502 AT debbugs.gnu.org in the normal way.

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#69502; Package guix-patches. (Sat, 02 Mar 2024 09:08:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to dan <i <at> dan.games>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 02 Mar 2024 09:08:01 GMT) Full text and rfc822 format available.

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

From: dan <i <at> dan.games>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: sdl2: Update to 2.30.0.
Date: Sat,  2 Mar 2024 17:06:42 +0800
* gnu/packages/sdl.scm (sdl2): Update to 2.30.0.

Change-Id: I6c029cc5732e286816550871e519d79b1a13e70f
---
 gnu/packages/sdl.scm | 32 +++++++++++++++++---------------
 1 file changed, 17 insertions(+), 15 deletions(-)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 3a4aafcaa7..2bb41b9ca2 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -15,7 +15,7 @@
 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust <at> gmail.com>
 ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
 ;;; Copyright © 2023 Evgeny Pisemsky <evgeny <at> pisemsky.com>
-;;; Copyright © 2023 dan <i <at> dan.games>
+;;; Copyright © 2023, 2024 dan <i <at> dan.games>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -118,30 +118,32 @@ (define-public sdl2
   (package
     (inherit sdl)
     (name "sdl2")
-    (version "2.28.5")
-    (source (origin
-              (method url-fetch)
-              (uri
-               (string-append "https://libsdl.org/release/SDL2-"
-                              version ".tar.gz"))
-              (sha256
-               (base32
-                "1r36cspzv6h8abiqbbkrgm17g975p9wiziir2xabj3721dyv6b1k"))))
+    (version "2.30.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://libsdl.org/release/SDL2-" version
+                           ".tar.gz"))
+       (sha256
+        (base32 "1c27ci93j4kgxdmpflaww8kwnz58b1chyp1i34almyp0away9qin"))))
     (arguments
      (substitute-keyword-arguments (package-arguments sdl)
        ((#:configure-flags flags)
         #~(append '("--disable-wayland-shared" "--enable-video-kmsdrm"
                     "--disable-kmsdrm-shared")
                   #$flags))
-       ((#:make-flags flags ''())
+       ((#:make-flags flags
+         ''())
         #~(cons*
            ;; SDL dlopens libudev and libvulkan, so make sure they are in
            ;; rpath. This overrides the LDFLAG set in sdl’s configure-flags,
            ;; which isn’t necessary as sdl2 includes Mesa by default.
            (string-append "LDFLAGS=-Wl,-rpath,"
-                          #$(this-package-input "eudev") "/lib"
+                          #$(this-package-input "eudev")
+                          "/lib"
                           ",-rpath,"
-                          #$(this-package-input "vulkan-loader") "/lib")
+                          #$(this-package-input "vulkan-loader")
+                          "/lib")
            #$flags))))
     (inputs
      ;; SDL2 needs to be built with ibus support otherwise some systems
@@ -150,11 +152,11 @@ (define-public sdl2
      ;; For more information, see: https://dev.solus-project.com/T1721
      (modify-inputs (package-inputs sdl)
        (append dbus
-               eudev                    ;for discovering input devices
+               eudev ;for discovering input devices
                glib
                ibus-minimal
                libxkbcommon
-               libxcursor               ;enables X11 cursor support
+               libxcursor ;enables X11 cursor support
                vulkan-loader
                wayland
                wayland-protocols)))

base-commit: 4a0549be52f3f46fbce61342d8de30f7b83130c5
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#69502; Package guix-patches. (Wed, 06 Mar 2024 05:48:02 GMT) Full text and rfc822 format available.

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

From: John Kehayias <john.kehayias <at> protonmail.com>
To: dan <i <at> dan.games>
Cc: 69502 <at> debbugs.gnu.org
Subject: Re: [bug#69502] [PATCH] gnu: sdl2: Update to 2.30.0.
Date: Wed, 06 Mar 2024 05:46:51 +0000
Hi dan,

On Sat, Mar 02, 2024 at 05:06 PM, dan wrote:

> * gnu/packages/sdl.scm (sdl2): Update to 2.30.0.
>
> Change-Id: I6c029cc5732e286816550871e519d79b1a13e70f
> ---
>  gnu/packages/sdl.scm | 32 +++++++++++++++++---------------
>  1 file changed, 17 insertions(+), 15 deletions(-)
>
> diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
> index 3a4aafcaa7..2bb41b9ca2 100644
> --- a/gnu/packages/sdl.scm
> +++ b/gnu/packages/sdl.scm
> @@ -15,7 +15,7 @@
>  ;;; Copyright © 2020 Oleg Pykhalov <go.wigust <at> gmail.com>
>  ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
>  ;;; Copyright © 2023 Evgeny Pisemsky <evgeny <at> pisemsky.com>
> -;;; Copyright © 2023 dan <i <at> dan.games>
> +;;; Copyright © 2023, 2024 dan <i <at> dan.games>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -118,30 +118,32 @@ (define-public sdl2
>    (package
>      (inherit sdl)
>      (name "sdl2")
> -    (version "2.28.5")
> -    (source (origin
> -              (method url-fetch)
> -              (uri
> -               (string-append "https://libsdl.org/release/SDL2-"
> -                              version ".tar.gz"))
> -              (sha256
> -               (base32
> -                "1r36cspzv6h8abiqbbkrgm17g975p9wiziir2xabj3721dyv6b1k"))))
> +    (version "2.30.0")
> +    (source
> +     (origin
> +       (method url-fetch)
> +       (uri (string-append "https://libsdl.org/release/SDL2-" version
> +                           ".tar.gz"))
> +       (sha256
> +        (base32 "1c27ci93j4kgxdmpflaww8kwnz58b1chyp1i34almyp0away9qin"))))

I'm guessing the slight style change is from guix style, which can be
fine (here seems okay to me and more typical), but

>      (arguments
>       (substitute-keyword-arguments (package-arguments sdl)
>         ((#:configure-flags flags)
>          #~(append '("--disable-wayland-shared" "--enable-video-kmsdrm"
>                      "--disable-kmsdrm-shared")
>                    #$flags))
> -       ((#:make-flags flags ''())
> +       ((#:make-flags flags
> +         ''())
>          #~(cons*
>             ;; SDL dlopens libudev and libvulkan, so make sure they are in
>             ;; rpath. This overrides the LDFLAG set in sdl’s configure-flags,
>             ;; which isn’t necessary as sdl2 includes Mesa by default.
>             (string-append "LDFLAGS=-Wl,-rpath,"
> -                          #$(this-package-input "eudev") "/lib"
> +                          #$(this-package-input "eudev")
> +                          "/lib"
>                            ",-rpath,"
> -                          #$(this-package-input "vulkan-loader") "/lib")
> +                          #$(this-package-input "vulkan-loader")
> +                          "/lib")
>             #$flags))))
>      (inputs
>       ;; SDL2 needs to be built with ibus support otherwise some systems
> @@ -150,11 +152,11 @@ (define-public sdl2
>       ;; For more information, see: https://dev.solus-project.com/T1721
>       (modify-inputs (package-inputs sdl)
>         (append dbus
> -               eudev                    ;for discovering input devices
> +               eudev ;for discovering input devices
>                 glib
>                 ibus-minimal
>                 libxkbcommon
> -               libxcursor               ;enables X11 cursor support
> +               libxcursor ;enables X11 cursor support
>                 vulkan-loader
>                 wayland
>                 wayland-protocols)))
>
> base-commit: 4a0549be52f3f46fbce61342d8de30f7b83130c5

these last changes all seem superfluous to me, not really improving the
style. I don't think guix lint had any issues before, so I think we can
drop these more random changes after the source change to reduce noise
for this commit. Otherwise LGTM and I can take it on mesa-updates soon
(next week when I'm back).

Thanks!
John





Information forwarded to guix-patches <at> gnu.org:
bug#69502; Package guix-patches. (Wed, 06 Mar 2024 06:39:02 GMT) Full text and rfc822 format available.

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

From: dan <i <at> dan.games>
To: John Kehayias <john.kehayias <at> protonmail.com>
Cc: 69502 <at> debbugs.gnu.org
Subject: Re: [bug#69502] [PATCH] gnu: sdl2: Update to 2.30.0.
Date: Wed, 6 Mar 2024 14:37:18 +0800
Hi John,

On 3/6/2024 1:46 PM, John Kehayias wrote:
> I'm guessing the slight style change is from guix style, which can be
> fine (here seems okay to me and more typical), but
 > ...
> these last changes all seem superfluous to me, not really improving the
> style.

I ran guix style on sdl2 and that's the result. I'm not sure if I should 
stick to the result of guix style or it's better to not introduce any 
style change and only update needed things. I can send a v2 update if it 
would be easier for you.

-- 
dan






Information forwarded to guix-patches <at> gnu.org:
bug#69502; Package guix-patches. (Mon, 25 Mar 2024 01:06:01 GMT) Full text and rfc822 format available.

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

From: John Kehayias <john.kehayias <at> protonmail.com>
To: dan <i <at> dan.games>
Cc: 69502 <at> debbugs.gnu.org
Subject: Re: [bug#69502] [PATCH] gnu: sdl2: Update to 2.30.0.
Date: Mon, 25 Mar 2024 01:04:21 +0000
Hi Dan,

On Wed, Mar 06, 2024 at 02:37 PM, dan wrote:

> Hi John,
>
> On 3/6/2024 1:46 PM, John Kehayias wrote:
>> I'm guessing the slight style change is from guix style, which can be
>> fine (here seems okay to me and more typical), but
>   > ...
>> these last changes all seem superfluous to me, not really improving the
>> style.
>
> I ran guix style on sdl2 and that's the result. I'm not sure if I should
> stick to the result of guix style or it's better to not introduce any
> style change and only update needed things. I can send a v2 update if it
> would be easier for you.

Yeah, guix style is not perfect. I don't think it gets used as much as
would be needed to iron out some rough spots either.

In this case, as a simple upgrade to a package, I would normally just
run 'guix lint' on it (if that). Unless there is some clearly
unfavorable style, or a commit to update to e.g. gexps, I would just
leave an existing package as is.

So, I would say just a patch with the version upgrade here would be
cleaner. I will finally get mesa-updates building, including this
patch, in the next few days.

Thanks!

John





Information forwarded to guix-patches <at> gnu.org:
bug#69502; Package guix-patches. (Mon, 25 Mar 2024 03:35:02 GMT) Full text and rfc822 format available.

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

From: dan <i <at> dan.games>
To: John Kehayias <john.kehayias <at> protonmail.com>
Cc: 69502 <at> debbugs.gnu.org
Subject: Re: [bug#69502] [PATCH] gnu: sdl2: Update to 2.30.0.
Date: Mon, 25 Mar 2024 11:33:14 +0800
Hi John,

On 3/25/2024 9:04 AM, John Kehayias wrote:
> In this case, as a simple upgrade to a package, I would normally just
> run 'guix lint' on it (if that). Unless there is some clearly
> unfavorable style, or a commit to update to e.g. gexps, I would just
> leave an existing package as is.
> 
> So, I would say just a patch with the version upgrade here would be
> cleaner. I will finally get mesa-updates building, including this
> patch, in the next few days.

Sure, I'll send an update on this tomorrow.

-- 
dan





Information forwarded to guix-patches <at> gnu.org:
bug#69502; Package guix-patches. (Tue, 26 Mar 2024 13:32:02 GMT) Full text and rfc822 format available.

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

From: dan <i <at> dan.games>
To: 69502 <at> debbugs.gnu.org
Cc: john.kehayias <at> protonmail.com
Subject: [PATCH mesa-updates v2] gnu: sdl2: Update to 2.30.1.
Date: Tue, 26 Mar 2024 09:28:54 +0800
* gnu/packages/sdl.scm (sdl2): Update to 2.30.1.

Change-Id: I0417cfaa0af55df63f731efad420de9f2b81a3d9
---
 gnu/packages/sdl.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
index 3a4aafcaa7..d3a0e33b19 100644
--- a/gnu/packages/sdl.scm
+++ b/gnu/packages/sdl.scm
@@ -15,7 +15,7 @@
 ;;; Copyright © 2020 Oleg Pykhalov <go.wigust <at> gmail.com>
 ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
 ;;; Copyright © 2023 Evgeny Pisemsky <evgeny <at> pisemsky.com>
-;;; Copyright © 2023 dan <i <at> dan.games>
+;;; Copyright © 2023, 2024 dan <i <at> dan.games>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -118,7 +118,7 @@ (define-public sdl2
   (package
     (inherit sdl)
     (name "sdl2")
-    (version "2.28.5")
+    (version "2.30.1")
     (source (origin
               (method url-fetch)
               (uri
@@ -126,7 +126,7 @@ (define-public sdl2
                               version ".tar.gz"))
               (sha256
                (base32
-                "1r36cspzv6h8abiqbbkrgm17g975p9wiziir2xabj3721dyv6b1k"))))
+                "0fj7gxc7rlzzrafnx9nmf7ws3paxy583fmx7bcbavi6gr3xmy881"))))
     (arguments
      (substitute-keyword-arguments (package-arguments sdl)
        ((#:configure-flags flags)

base-commit: f3a9c701ac18ba9023f6d96629f9d8bb2df67a40
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#69502; Package guix-patches. (Wed, 27 Mar 2024 05:28:02 GMT) Full text and rfc822 format available.

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

From: John Kehayias <john.kehayias <at> protonmail.com>
To: dan <i <at> dan.games>
Cc: 69502 <at> debbugs.gnu.org
Subject: Re: [PATCH mesa-updates v2] gnu: sdl2: Update to 2.30.1.
Date: Wed, 27 Mar 2024 05:17:20 +0000
Hi Dan,

On Tue, Mar 26, 2024 at 09:28 AM, dan wrote:

> * gnu/packages/sdl.scm (sdl2): Update to 2.30.1.
>
> Change-Id: I0417cfaa0af55df63f731efad420de9f2b81a3d9
> ---
>  gnu/packages/sdl.scm | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
> index 3a4aafcaa7..d3a0e33b19 100644
> --- a/gnu/packages/sdl.scm
> +++ b/gnu/packages/sdl.scm
> @@ -15,7 +15,7 @@
>  ;;; Copyright © 2020 Oleg Pykhalov <go.wigust <at> gmail.com>
>  ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
>  ;;; Copyright © 2023 Evgeny Pisemsky <evgeny <at> pisemsky.com>
> -;;; Copyright © 2023 dan <i <at> dan.games>
> +;;; Copyright © 2023, 2024 dan <i <at> dan.games>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -118,7 +118,7 @@ (define-public sdl2
>    (package
>      (inherit sdl)
>      (name "sdl2")
> -    (version "2.28.5")
> +    (version "2.30.1")
>      (source (origin
>                (method url-fetch)
>                (uri
> @@ -126,7 +126,7 @@ (define-public sdl2
>                                version ".tar.gz"))
>                (sha256
>                 (base32
> -                "1r36cspzv6h8abiqbbkrgm17g975p9wiziir2xabj3721dyv6b1k"))))
> +                "0fj7gxc7rlzzrafnx9nmf7ws3paxy583fmx7bcbavi6gr3xmy881"))))
>      (arguments
>       (substitute-keyword-arguments (package-arguments sdl)
>         ((#:configure-flags flags)
>
> base-commit: f3a9c701ac18ba9023f6d96629f9d8bb2df67a40

Thanks, applied on my local mesa-updates, not quite ready to push it
live but building has gone fine so far.

John





Reply sent to John Kehayias <john.kehayias <at> protonmail.com>:
You have taken responsibility. (Thu, 18 Apr 2024 04:45:03 GMT) Full text and rfc822 format available.

Notification sent to dan <i <at> dan.games>:
bug acknowledged by developer. (Thu, 18 Apr 2024 04:45:04 GMT) Full text and rfc822 format available.

Message #28 received at 69502-done <at> debbugs.gnu.org (full text, mbox):

From: John Kehayias <john.kehayias <at> protonmail.com>
To: dan <i <at> dan.games>
Cc: 69502-done <at> debbugs.gnu.org
Subject: Re: [PATCH mesa-updates v2] gnu: sdl2: Update to 2.30.1.
Date: Thu, 18 Apr 2024 04:44:11 +0000
On Wed, Mar 27, 2024 at 01:16 AM, John Kehayias wrote:

> Hi Dan,
>
> On Tue, Mar 26, 2024 at 09:28 AM, dan wrote:
>
>> * gnu/packages/sdl.scm (sdl2): Update to 2.30.1.
>>
>> Change-Id: I0417cfaa0af55df63f731efad420de9f2b81a3d9
>> ---
>>  gnu/packages/sdl.scm | 6 +++---
>>  1 file changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/gnu/packages/sdl.scm b/gnu/packages/sdl.scm
>> index 3a4aafcaa7..d3a0e33b19 100644
>> --- a/gnu/packages/sdl.scm
>> +++ b/gnu/packages/sdl.scm
>> @@ -15,7 +15,7 @@
>>  ;;; Copyright © 2020 Oleg Pykhalov <go.wigust <at> gmail.com>
>>  ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
>>  ;;; Copyright © 2023 Evgeny Pisemsky <evgeny <at> pisemsky.com>
>> -;;; Copyright © 2023 dan <i <at> dan.games>
>> +;;; Copyright © 2023, 2024 dan <i <at> dan.games>
>>  ;;;
>>  ;;; This file is part of GNU Guix.
>>  ;;;
>> @@ -118,7 +118,7 @@ (define-public sdl2
>>    (package
>>      (inherit sdl)
>>      (name "sdl2")
>> -    (version "2.28.5")
>> +    (version "2.30.1")
>>      (source (origin
>>                (method url-fetch)
>>                (uri
>> @@ -126,7 +126,7 @@ (define-public sdl2
>>                                version ".tar.gz"))
>>                (sha256
>>                 (base32
>> -                "1r36cspzv6h8abiqbbkrgm17g975p9wiziir2xabj3721dyv6b1k"))))
>> +                "0fj7gxc7rlzzrafnx9nmf7ws3paxy583fmx7bcbavi6gr3xmy881"))))
>>      (arguments
>>       (substitute-keyword-arguments (package-arguments sdl)
>>         ((#:configure-flags flags)
>>
>> base-commit: f3a9c701ac18ba9023f6d96629f9d8bb2df67a40
>
> Thanks, applied on my local mesa-updates, not quite ready to push it
> live but building has gone fine so far.
>
> John

Done with f7c259b2659cbd752ce5e1bcd2c2d66188295967 and in master with
2d5736cc3e869fadd2592cc13a8d332fac63b144

Thanks!
John





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 16 May 2024 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified today.

Previous Next


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