all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1.
@ 2022-01-21 23:13 Brice Waegeneire
  2022-01-21 23:23 ` [bug#53431] [PATCH 1/3] gnu: i2c-tools: Update to 4.3 Brice Waegeneire
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Brice Waegeneire @ 2022-01-21 23:13 UTC (permalink / raw)
  To: 53431

This patchset supersedes <https://bugs.gnu.org/48984>.

Brice Waegeneire (3):
  gnu: i2c-tools: Update to 4.3.
  gnu: ddcutil: Update to 1.2.1.
  gnu: ddcui: Update to 0.2.0.

 gnu/packages/admin.scm    |  2 +-
 gnu/packages/hardware.scm | 12 +++++++-----
 gnu/packages/linux.scm    | 33 +++++++++++++++++++++++++++------
 3 files changed, 35 insertions(+), 12 deletions(-)


base-commit: 98a322e02ef1d6c834fdb16a84162882245c0da2
-- 
2.34.0





^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#53431] [PATCH 1/3] gnu: i2c-tools: Update to 4.3.
  2022-01-21 23:13 [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1 Brice Waegeneire
@ 2022-01-21 23:23 ` Brice Waegeneire
  2022-01-22  3:38   ` [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1 Maxim Cournoyer
  2022-01-23  2:35 ` [bug#53431] " Maxim Cournoyer
  2022-02-12  9:17 ` [bug#53431] [PATCH 3/3] gnu: ddcui: Update to 0.2.0 Brice Waegeneire
  2 siblings, 1 reply; 7+ messages in thread
From: Brice Waegeneire @ 2022-01-21 23:23 UTC (permalink / raw)
  To: 53431

* gnu/packages/linux.scm (i2c-tools): Update to 4.3.
  [arguments]: Up case "prefix" make-flag and add "LDFLAGS".
  (i2c-tools-3): New variable.
* gnu/packages/admin.scm (novena-eeprom)[inputs]: Replace "i2c-tools" by
  "i2c-tools-3".
---
 gnu/packages/admin.scm |  2 +-
 gnu/packages/linux.scm | 33 +++++++++++++++++++++++++++------
 2 files changed, 28 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index ed66e358ea..88e514b0c6 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -4753,7 +4753,7 @@ (define-public novena-eeprom
                (install-file "novena-eeprom" out-bin)
                (install-file "novena-eeprom.8" out-share-man)))))))
     (inputs
-     (list i2c-tools))
+     (list i2c-tools-3))
     (synopsis "Novena EEPROM editor")
     (description "This package provides an editor for the Novena EEPROM.
 Novena boards contain a device-dependent descriptive EEPROM that defines
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index c044f2543d..e08eac1668 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -35,7 +35,7 @@
 ;;; Copyright © 2019 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
 ;;; Copyright © 2019, 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2019 Stefan Stefanović <stefanx2ovic@gmail.com>
-;;; Copyright © 2019, 2020, 2021 Brice Waegeneire <brice@waegenei.re>
+;;; Copyright © 2019-2022 Brice Waegeneire <brice@waegenei.re>
 ;;; Copyright © 2019 Kei Kebreau <kkebreau@posteo.net>
 ;;; Copyright © 2020, 2021 Oleg Pykhalov <go.wigust@gmail.com>
 ;;; Copyright © 2020 Pierre Neidhardt <mail@ambrevar.xyz>
@@ -4430,21 +4430,22 @@ (define-public iucode-tool
 (define-public i2c-tools
   (package
     (name "i2c-tools")
-    (version "3.1.1")
+    (version "4.3")
     (source (origin
               (method url-fetch)
               (uri (string-append
                     "http://jdelvare.nerim.net/mirror/i2c-tools/i2c-tools-"
-                    version ".tar.bz2"))
+                    version ".tar.xz"))
               (sha256
                (base32
-                "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"))))
+                "1y0fphjd5ah2j886x8i175r7viq0hmx666hyca0wi4dzrm290qxk"))))
     (build-system gnu-build-system)
     (arguments
      `(#:tests? #f                      ; no 'check' target
        #:make-flags
-       ,#~(list (string-append "prefix=" #$output)
-                (string-append "CC=" #$(cc-for-target)))
+       ,#~(list (string-append "PREFIX=" #$output)
+                (string-append "CC=" #$(cc-for-target))
+                (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib"))
        ;; No configure script.
        #:phases (modify-phases %standard-phases (delete 'configure))))
     (inputs
@@ -4458,6 +4459,26 @@ (define-public i2c-tools
 SMBus access.")
     (license license:gpl2+)))
 
+;; Needed for novena-eeprom
+(define-public i2c-tools-3
+  (package
+    (inherit i2c-tools)
+    (version "3.1.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "http://jdelvare.nerim.net/mirror/i2c-tools/i2c-tools-"
+                    version ".tar.bz2"))
+              (sha256
+               (base32
+                "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"))))
+    (arguments
+     `(#:make-flags
+       ,#~(list (string-append "prefix=" #$output)
+                (string-append "CC=" #$(cc-for-target)))
+       ,@(strip-keyword-arguments '(#:make-flags)
+                                  (package-arguments i2c-tools))))))
+
 (define-public xsensors
   (package
     (name "xsensors")
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1.
  2022-01-21 23:23 ` [bug#53431] [PATCH 1/3] gnu: i2c-tools: Update to 4.3 Brice Waegeneire
@ 2022-01-22  3:38   ` Maxim Cournoyer
  2022-03-06 21:42     ` Ludovic Courtès
  0 siblings, 1 reply; 7+ messages in thread
From: Maxim Cournoyer @ 2022-01-22  3:38 UTC (permalink / raw)
  To: Brice Waegeneire; +Cc: 53431

Hello Brice!

Brice Waegeneire <brice@waegenei.re> writes:

> * gnu/packages/linux.scm (i2c-tools): Update to 4.3.
>   [arguments]: Up case "prefix" make-flag and add "LDFLAGS".
                        ^ the         ^ make flag

[...]

> @@ -4430,21 +4430,22 @@ (define-public iucode-tool
>  (define-public i2c-tools
>    (package
>      (name "i2c-tools")
> -    (version "3.1.1")
> +    (version "4.3")
>      (source (origin
>                (method url-fetch)
>                (uri (string-append
>                      "http://jdelvare.nerim.net/mirror/i2c-tools/i2c-tools-"
> -                    version ".tar.bz2"))
> +                    version ".tar.xz"))
>                (sha256
>                 (base32
> -                "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"))))
> +                "1y0fphjd5ah2j886x8i175r7viq0hmx666hyca0wi4dzrm290qxk"))))
>      (build-system gnu-build-system)
>      (arguments
>       `(#:tests? #f                      ; no 'check' target
>         #:make-flags
> -       ,#~(list (string-append "prefix=" #$output)
> -                (string-append "CC=" #$(cc-for-target)))
> +       ,#~(list (string-append "PREFIX=" #$output)
> +                (string-append "CC=" #$(cc-for-target))
> +                (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib"))

Why is this ld directive needed?  They don't use it in Nix, for
instance.  A comment would be helpful.

>         ;; No configure script.
>         #:phases (modify-phases %standard-phases (delete 'configure))))
>      (inputs
> @@ -4458,6 +4459,26 @@ (define-public i2c-tools
>  SMBus access.")
>      (license license:gpl2+)))

Looking at the Nix package definition, they do some other things that we
don't have, which we perhaps should:

--8<---------------cut here---------------start------------->8---
  postPatch = ''
    substituteInPlace eeprom/decode-edid \
      --replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"

    substituteInPlace stub/i2c-stub-from-dump \
      --replace "/sbin/" ""
;--8<---------------cut here---------------end--------------->8---

They patch a reference to parse-edid and strip the '/sbin/' prefix from
some other place.

> +;; Needed for novena-eeprom
                              ^. (ending period)
> +(define-public i2c-tools-3
> +  (package
> +    (inherit i2c-tools)
> +    (version "3.1.1")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (string-append
> +                    "http://jdelvare.nerim.net/mirror/i2c-tools/i2c-tools-"
> +                    version ".tar.bz2"))
> +              (sha256
> +               (base32
> +                "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"))))
> +    (arguments
> +     `(#:make-flags
> +       ,#~(list (string-append "prefix=" #$output)
> +                (string-append "CC=" #$(cc-for-target)))
> +       ,@(strip-keyword-arguments '(#:make-flags)
> +                                  (package-arguments i2c-tools))))))
> +
>  (define-public xsensors
>    (package
>      (name "xsensors")

The rest LGTM!

Thanks,

Maxim




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1.
  2022-01-21 23:13 [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1 Brice Waegeneire
  2022-01-21 23:23 ` [bug#53431] [PATCH 1/3] gnu: i2c-tools: Update to 4.3 Brice Waegeneire
@ 2022-01-23  2:35 ` Maxim Cournoyer
  2022-02-12  9:17 ` [bug#53431] [PATCH 3/3] gnu: ddcui: Update to 0.2.0 Brice Waegeneire
  2 siblings, 0 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2022-01-23  2:35 UTC (permalink / raw)
  To: Brice Waegeneire; +Cc: 53431

Hi Brice,

Brice Waegeneire <brice@waegenei.re> writes:

> This patchset supersedes <https://bugs.gnu.org/48984>.
>
> Brice Waegeneire (3):
>   gnu: i2c-tools: Update to 4.3.
>   gnu: ddcutil: Update to 1.2.1.
>   gnu: ddcui: Update to 0.2.0.

It seems the patches for ddcutil and ddcui have yet to come.

Thanks,

Maxim




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#53431] [PATCH 3/3] gnu: ddcui: Update to 0.2.0.
  2022-01-21 23:13 [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1 Brice Waegeneire
  2022-01-21 23:23 ` [bug#53431] [PATCH 1/3] gnu: i2c-tools: Update to 4.3 Brice Waegeneire
  2022-01-23  2:35 ` [bug#53431] " Maxim Cournoyer
@ 2022-02-12  9:17 ` Brice Waegeneire
  2 siblings, 0 replies; 7+ messages in thread
From: Brice Waegeneire @ 2022-02-12  9:17 UTC (permalink / raw)
  To: 53431

* gnu/packages/hardware.scm (ddcui): Update to 0.2.0.
---
 gnu/packages/hardware.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/hardware.scm b/gnu/packages/hardware.scm
index e49dec49e0..f8c3cc5c57 100644
--- a/gnu/packages/hardware.scm
+++ b/gnu/packages/hardware.scm
@@ -226,7 +226,7 @@ (define-public ddcutil
 (define-public ddcui
   (package
     (name "ddcui")
-    (version "0.1.2")
+    (version "0.2.0")
     (source
      (origin
        (method git-fetch)
@@ -235,7 +235,7 @@ (define-public ddcui
              (commit (string-append "v" version))))
        (file-name (git-file-name name version))
        (sha256
-        (base32 "0myma1zw6dlygv3xbin662d91zcnwss10syf12q2fppkrd8qdgqf"))))
+        (base32 "0da56w5yfmd4zx44gwzx1r0y0hwwicr69wxr434l78z9c7j877kn"))))
     (build-system cmake-build-system)
     (arguments
      '(#:tests? #f))                    ; No test suite
-- 
2.34.0





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1.
  2022-01-22  3:38   ` [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1 Maxim Cournoyer
@ 2022-03-06 21:42     ` Ludovic Courtès
  2022-09-28 19:26       ` bug#53431: " Maxim Cournoyer
  0 siblings, 1 reply; 7+ messages in thread
From: Ludovic Courtès @ 2022-03-06 21:42 UTC (permalink / raw)
  To: Brice Waegeneire; +Cc: Maxim Cournoyer, 53431

Hi Brice,

Did you have a chance to look into this for a v2?

  https://issues.guix.gnu.org/53431

Ludo’.

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> Hello Brice!
>
> Brice Waegeneire <brice@waegenei.re> writes:
>
>> * gnu/packages/linux.scm (i2c-tools): Update to 4.3.
>>   [arguments]: Up case "prefix" make-flag and add "LDFLAGS".
>                         ^ the         ^ make flag
>
> [...]
>
>> @@ -4430,21 +4430,22 @@ (define-public iucode-tool
>>  (define-public i2c-tools
>>    (package
>>      (name "i2c-tools")
>> -    (version "3.1.1")
>> +    (version "4.3")
>>      (source (origin
>>                (method url-fetch)
>>                (uri (string-append
>>                      "http://jdelvare.nerim.net/mirror/i2c-tools/i2c-tools-"
>> -                    version ".tar.bz2"))
>> +                    version ".tar.xz"))
>>                (sha256
>>                 (base32
>> -                "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"))))
>> +                "1y0fphjd5ah2j886x8i175r7viq0hmx666hyca0wi4dzrm290qxk"))))
>>      (build-system gnu-build-system)
>>      (arguments
>>       `(#:tests? #f                      ; no 'check' target
>>         #:make-flags
>> -       ,#~(list (string-append "prefix=" #$output)
>> -                (string-append "CC=" #$(cc-for-target)))
>> +       ,#~(list (string-append "PREFIX=" #$output)
>> +                (string-append "CC=" #$(cc-for-target))
>> +                (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib"))
>
> Why is this ld directive needed?  They don't use it in Nix, for
> instance.  A comment would be helpful.
>
>>         ;; No configure script.
>>         #:phases (modify-phases %standard-phases (delete 'configure))))
>>      (inputs
>> @@ -4458,6 +4459,26 @@ (define-public i2c-tools
>>  SMBus access.")
>>      (license license:gpl2+)))
>
> Looking at the Nix package definition, they do some other things that we
> don't have, which we perhaps should:
>
> --8<---------------cut here---------------start------------->8---
>   postPatch = ''
>     substituteInPlace eeprom/decode-edid \
>       --replace "/usr/sbin/parse-edid" "${read-edid}/bin/parse-edid"
>
>     substituteInPlace stub/i2c-stub-from-dump \
>       --replace "/sbin/" ""
> ;--8<---------------cut here---------------end--------------->8---
>
> They patch a reference to parse-edid and strip the '/sbin/' prefix from
> some other place.
>
>> +;; Needed for novena-eeprom
>                               ^. (ending period)
>> +(define-public i2c-tools-3
>> +  (package
>> +    (inherit i2c-tools)
>> +    (version "3.1.1")
>> +    (source (origin
>> +              (method url-fetch)
>> +              (uri (string-append
>> +                    "http://jdelvare.nerim.net/mirror/i2c-tools/i2c-tools-"
>> +                    version ".tar.bz2"))
>> +              (sha256
>> +               (base32
>> +                "000pvg995qy1b15ks59gd0klri55hb33kqpg5czy84hw1pbdgm0l"))))
>> +    (arguments
>> +     `(#:make-flags
>> +       ,#~(list (string-append "prefix=" #$output)
>> +                (string-append "CC=" #$(cc-for-target)))
>> +       ,@(strip-keyword-arguments '(#:make-flags)
>> +                                  (package-arguments i2c-tools))))))
>> +
>>  (define-public xsensors
>>    (package
>>      (name "xsensors")
>
> The rest LGTM!
>
> Thanks,
>
> Maxim




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#53431: [PATCH 0/3] gnu: ddcutil: Update to 1.2.1.
  2022-03-06 21:42     ` Ludovic Courtès
@ 2022-09-28 19:26       ` Maxim Cournoyer
  0 siblings, 0 replies; 7+ messages in thread
From: Maxim Cournoyer @ 2022-09-28 19:26 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 53431-done, Brice Waegeneire

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

> Hi Brice,
>
> Did you have a chance to look into this for a v2?
>
>   https://issues.guix.gnu.org/53431

I see all components here are now at version past what was sent here,
thus I'm closing this ticket.

Thanks,

Maxim




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-09-28 19:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-21 23:13 [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1 Brice Waegeneire
2022-01-21 23:23 ` [bug#53431] [PATCH 1/3] gnu: i2c-tools: Update to 4.3 Brice Waegeneire
2022-01-22  3:38   ` [bug#53431] [PATCH 0/3] gnu: ddcutil: Update to 1.2.1 Maxim Cournoyer
2022-03-06 21:42     ` Ludovic Courtès
2022-09-28 19:26       ` bug#53431: " Maxim Cournoyer
2022-01-23  2:35 ` [bug#53431] " Maxim Cournoyer
2022-02-12  9:17 ` [bug#53431] [PATCH 3/3] gnu: ddcui: Update to 0.2.0 Brice Waegeneire

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.