GNU bug report logs - #66597
[PATCH] gnu: Add sdl2-gamecontrollerdb.

Previous Next

Package: guix-patches;

Reported by: Evgeny Pisemsky <evgeny <at> pisemsky.com>

Date: Tue, 17 Oct 2023 18:21:01 UTC

Severity: normal

Tags: patch

Done: Liliana Marie Prikler <liliana.prikler <at> gmail.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 66597 in the body.
You can then email your comments to 66597 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#66597; Package guix-patches. (Tue, 17 Oct 2023 18:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Evgeny Pisemsky <evgeny <at> pisemsky.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 17 Oct 2023 18:21:02 GMT) Full text and rfc822 format available.

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

From: Evgeny Pisemsky <evgeny <at> pisemsky.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add sdl2-gamecontrollerdb.
Date: Tue, 17 Oct 2023 21:19:23 +0300
[0001-gnu-Add-sdl2-gamecontrollerdb.patch (text/x-patch, inline)]
From 40688a0f63e85f12a86fa2ccf28fc50150f3846d Mon Sep 17 00:00:00 2001
From: Evgeny Pisemsky <evgeny <at> pisemsky.com>
Date: Tue, 17 Oct 2023 19:10:10 +0300
Subject: [PATCH] gnu: Add sdl2-gamecontrollerdb.

* gnu/packages/game-development.scm (sdl2-gamecontrollerdb): New variable.
---
 gnu/packages/game-development.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index eb1d74d1e1..3400ca03dc 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -29,6 +29,7 @@
 ;;; Copyright © 2022 Jai Vetrivelan <jaivetrivelan <at> gmail.com>
 ;;; Copyright © 2022 dan <i <at> dan.games>
 ;;; Copyright © 2023 John Kehayias <john.kehayias <at> protonmail.com>
+;;; Copyright © 2023 Evgeny Pisemsky <evgeny <at> pisemsky.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -56,6 +57,7 @@ (define-module (gnu packages game-development)
   #:use-module (guix svn-download)
   #:use-module (guix utils)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system python)
   #:use-module (guix build-system scons)
@@ -3283,3 +3285,29 @@ (define-public bbcsdl
 allowing you to write utilities and games, use sound and graphics, perform
 calculations and create complete applications.")
     (license license:zlib)))
+
+(define-public sdl2-gamecontrollerdb
+  (let ((commit "6f3c4edcb5a2e2ed090ca8af40d2c0f00dcd77f6")
+        (revision "0"))
+    (package
+      (name "sdl2-gamecontrollerdb")
+      (version (git-version "0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/gabomdq/SDL_GameControllerDB")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1gciqc8qm2qgcjj5s9jpclznznsp6awl4ldrnj7g01chkcx0l6a3"))))
+      (build-system copy-build-system)
+      (arguments
+       '(#:install-plan '(("gamecontrollerdb.txt"
+                           "share/sdl2-gamecontrollerdb/"))))
+      (home-page "https://github.com/gabomdq/SDL_GameControllerDB")
+      (synopsis "SDL2 game controller database")
+      (description
+       "A community sourced database of game controller mappings to be used
+with SDL2 Game Controller functionality.")
+      (license license:zlib))))

base-commit: 018567adb7b2d31d0bd457983b755ec3063d08c6
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#66597; Package guix-patches. (Tue, 17 Oct 2023 20:05:01 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Evgeny Pisemsky <evgeny <at> pisemsky.com>
Cc: 66597 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add sdl2-gamecontrollerdb.
Date: Tue, 17 Oct 2023 22:04:16 +0200
Once more for the mailing list…

Am Dienstag, dem 17.10.2023 um 19:10 +0300 schrieb Evgeny Pisemsky:
> * gnu/packages/game-development.scm (sdl2-gamecontrollerdb): New
> variable.
> ---
>  gnu/packages/game-development.scm | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
> 
> diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-
> developm=
> ent.scm
> index eb1d74d1e1..3400ca03dc 100644
> --- a/gnu/packages/game-development.scm
> +++ b/gnu/packages/game-development.scm
> @@ -29,6 +29,7 @@
>  ;;; Copyright =C2=A9 2022 Jai Vetrivelan <jaivetrivelan <at> gmail.com>
>  ;;; Copyright =C2=A9 2022 dan <i <at> dan.games>
>  ;;; Copyright =C2=A9 2023 John Kehayias
> <john.kehayias <at> protonmail.com>
> +;;; Copyright =C2=A9 2023 Evgeny Pisemsky <evgeny <at> pisemsky.com>
>  ;;;
>  ;;; This file is part of GNU Guix.
>  ;;;
> @@ -56,6 +57,7 @@ (define-module (gnu packages game-development)
>    #:use-module (guix svn-download)
>    #:use-module (guix utils)
>    #:use-module (guix build-system cmake)
> +  #:use-module (guix build-system copy)
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system python)
>    #:use-module (guix build-system scons)
> @@ -3283,3 +3285,29 @@ (define-public bbcsdl
>  allowing you to write utilities and games, use sound and graphics,
> perform
>  calculations and create complete applications.")
>      (license license:zlib)))
This appears to be at the end of the file.  We typically prefer
somewhere in the middle (makes it harder to break the diffs),
especially if there's a topical fit.
> +
> +(define-public sdl2-gamecontrollerdb
> +  (let ((commit "6f3c4edcb5a2e2ed090ca8af40d2c0f00dcd77f6")
> +        (revision "0"))
> +    (package
> +      (name "sdl2-gamecontrollerdb")
> +      (version (git-version "0" revision commit))
> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +               (url
> "https://github.com/gabomdq/SDL_GameControllerDB")
> +               (commit commit)))
> +         (file-name (git-file-name name version))
> +         (sha256
> +          (base32
> "1gciqc8qm2qgcjj5s9jpclznznsp6awl4ldrnj7g01chkcx0l6a3"))=
> ))
> +      (build-system copy-build-system)
> +      (arguments
> +       '(#:install-plan '(("gamecontrollerdb.txt"
> +                           "share/sdl2-gamecontrollerdb/"))))
Is this destination documented somewhere?  Or should we just do
"/share/sdl2/" instead?
> +      (home-page "https://github.com/gabomdq/SDL_GameControllerDB")
> +      (synopsis "SDL2 game controller database")
> +      (description
> +       "A community sourced database of game controller mappings to
> be used
> +with SDL2 Game Controller functionality.")
The description a full sentence.  Often, we simply cheat with "this
package provides…"
> +      (license license:zlib))))
> 
> base-commit: 018567adb7b2d31d0bd457983b755ec3063d08c6
> --=20
> 2.41.0
Cheers






Information forwarded to guix-patches <at> gnu.org:
bug#66597; Package guix-patches. (Fri, 20 Oct 2023 22:47:02 GMT) Full text and rfc822 format available.

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

From: Evgeny Pisemsky <evgeny <at> pisemsky.com>
To: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Cc: 66597 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add sdl2-gamecontrollerdb.
Date: Sat, 21 Oct 2023 01:45:36 +0300
[Message part 1 (text/plain, inline)]
Hello!

The share path is not documented anywhere, I just used a package name to construct it.

There is no standard path where this database is expected to be, it must be specified.

I updated the patch with your recommendations and moved the package to the sdl module.

[0001-gnu-Add-sdl2-gamecontrollerdb.patch (text/x-patch, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#66597; Package guix-patches. (Sat, 21 Oct 2023 20:06:02 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Evgeny Pisemsky <evgeny <at> pisemsky.com>
Cc: 66597 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add sdl2-gamecontrollerdb.
Date: Sat, 21 Oct 2023 22:05:07 +0200
Am Samstag, dem 21.10.2023 um 01:45 +0300 schrieb Evgeny Pisemsky:

> +       "This package provides a community sourced database of game
> controller
> +mappings.  They supposed to be used with SDL2 Game Controller
> functionality.")
I've reworded this description locally to be grammatically correct and
also a bit snappier (the last one's my personal interpretation).

Otherwise LGTM so far.  Will build locally for testing purposes and
likely push next weekend.

Cheers




Reply sent to Liliana Marie Prikler <liliana.prikler <at> gmail.com>:
You have taken responsibility. (Fri, 27 Oct 2023 14:37:02 GMT) Full text and rfc822 format available.

Notification sent to Evgeny Pisemsky <evgeny <at> pisemsky.com>:
bug acknowledged by developer. (Fri, 27 Oct 2023 14:37:02 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: Evgeny Pisemsky <evgeny <at> pisemsky.com>
Cc: 66597-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add sdl2-gamecontrollerdb.
Date: Fri, 27 Oct 2023 16:35:42 +0200
Am Samstag, dem 21.10.2023 um 22:05 +0200 schrieb Liliana Marie
Prikler:
> Am Samstag, dem 21.10.2023 um 01:45 +0300 schrieb Evgeny Pisemsky:
> 
> > +       "This package provides a community sourced database of game
> > controller
> > +mappings.  They supposed to be used with SDL2 Game Controller
> > functionality.")
> I've reworded this description locally to be grammatically correct
> and also a bit snappier (the last one's my personal interpretation).
> 
> Otherwise LGTM so far.  Will build locally for testing purposes and
> likely push next weekend.
Pushed now.

Cheers




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 25 Nov 2023 12:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 208 days ago.

Previous Next


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