GNU bug report logs - #57495
[PATCH] gnu: Add steam-devices-udev-rules.

Previous Next

Package: guix-patches;

Reported by: Morgan.J.Smith <at> outlook.com

Date: Tue, 30 Aug 2022 19:07:02 UTC

Severity: normal

Tags: patch

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Maxime Devos <maximedevos <at> telenet.be>
To: Morgan.J.Smith <at> outlook.com, 57495 <at> debbugs.gnu.org
Subject: [bug#57495] [PATCH] gnu: Add steam-devices-udev-rules.
Date: Wed, 31 Aug 2022 17:55:41 +0200
[Message part 1 (text/plain, inline)]
On 30-08-2022 21:01, Morgan.J.Smith <at> outlook.com wrote:
> From: Morgan Smith <Morgan.J.Smith <at> outlook.com>
>
> * gnu/packages/games.scm (steam-devices-udev-rules): New variable.
> ---
>   gnu/packages/games.scm | 23 +++++++++++++++++++++++
>   1 file changed, 23 insertions(+)
>
> diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
> index fe66343a4c..f8c6b86cf7 100644
> --- a/gnu/packages/games.scm
> +++ b/gnu/packages/games.scm
> @@ -12591,3 +12591,26 @@ (define-public freerct
>   Should they go unwise, a theme park plunge into chaos with vandalizing guests
>   and unsafe rides.  Which path will you take?")
>       (license license:gpl2)))
> +
> +(define-public steam-devices-udev-rules
> +  (package
> +    (name "steam-devices-udev-rules")
> +    (version "1.0.0.61")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url "https://github.com/ValveSoftware/steam-devices")
> +                    (commit (string-append "v" version))))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +                "1m4zcrz83p41lz7wxzqc62fsx00rfrai996psfjv7vjvjlyqj0mx"))))

I have taken a look at the rules, and noticed:

https://github.com/ValveSoftware/steam-devices/blob/d87ef558408c5e7a1a793d738db4c9dc2cb5f8fa/60-steam-input.rules#L55

KERNEL=="input*", ATTRS{name}=="Lic Pro Controller", 
RUN{program}+="/bin/sh -c 'udevadm test-builtin uaccess 
/sys/%p/../../hidraw/hidraw*'"

/bin/sh and udevadm will need to patched (with substitute*) to guarantee 
that sh and udevadm will be found.

Greetings,
Maxime.
[OpenPGP_0x49E3EE22191725EE.asc (application/pgp-keys, attachment)]
[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 2 years and 276 days ago.

Previous Next


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