GNU bug report logs - #78141
[PATCH] gnu: valgrind: update to 3.25.0.

Previous Next

Package: guix-patches;

Reported by: Zheng Junjie <z572 <at> z572.online>

Date: Tue, 29 Apr 2025 15:41:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 78141 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 code <at> greghogan.com, guix-patches <at> gnu.org:
bug#78141; Package guix-patches. (Tue, 29 Apr 2025 15:41:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Zheng Junjie <z572 <at> z572.online>:
New bug report received and forwarded. Copy sent to code <at> greghogan.com, guix-patches <at> gnu.org. (Tue, 29 Apr 2025 15:41:02 GMT) Full text and rfc822 format available.

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

From: Zheng Junjie <z572 <at> z572.online>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: valgrind: update to 3.25.0.
Date: Tue, 29 Apr 2025 23:39:36 +0800
* gnu/packages/valgrind.scm (valgrind-next): New variable.
(valgrind/interactive): Inherit from it.

Change-Id: If6e1f50e5574caa5fae61892afcc2b4e6ef7baa3
---
 gnu/packages/valgrind.scm | 32 +++++++++++++++++++++++++-------
 1 file changed, 25 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/valgrind.scm b/gnu/packages/valgrind.scm
index 1bf4975667f..1cdbcf16897 100644
--- a/gnu/packages/valgrind.scm
+++ b/gnu/packages/valgrind.scm
@@ -37,7 +37,7 @@ (define-module (gnu packages valgrind)
   #:use-module (gnu packages gdb)
   #:use-module (gnu packages perl))
 
-(define-public valgrind
+(define valgrind/pinned
   (package
     (name "valgrind")
     (version "3.22.0")
@@ -93,10 +93,28 @@ (define-public valgrind
     ;; Hide this variant so end users get the "interactive" Valgrind below.
     (properties '((hidden? . #t)))))
 
+(define-public valgrind-next
+  (package
+    (inherit valgrind/pinned)
+    (version "3.25.0")
+    (source (origin
+              (method url-fetch)
+              (uri (list (string-append "https://sourceware.org/pub/valgrind"
+                                        "/valgrind-" version ".tar.bz2")
+                         (string-append "ftp://sourceware.org/pub/valgrind"
+                                        "/valgrind-" version ".tar.bz2")))
+              (sha256
+               (base32
+                "1k3fb1vyx1b3vvwyql0ckg9n2lyw9dilbrhw1kcw0r3b3lln0pr9"))))
+    (supported-systems (fold delete %supported-systems
+                             '("i586-gnu" "x86_64-gnu"
+                               "armhf-linux")))))
+
+(define-public valgrind valgrind/pinned)
+
 (define-public valgrind/interactive
-  (package/inherit
-   valgrind
-   (inputs
-    ;; GDB is needed to provide a sane default for `--db-command'.
-    (list gdb `(,(canonical-package (libc-for-target)) "debug")))
-   (properties '())))
+  (package/inherit valgrind-next
+    (inputs
+     ;; GDB is needed to provide a sane default for `--db-command'.
+     (list gdb `(,(canonical-package (libc-for-target)) "debug")))
+    (properties '())))

base-commit: 32bc7695b50a2018f15618a86d7200fc8c3e2f58
-- 
2.49.0





Information forwarded to guix-patches <at> gnu.org:
bug#78141; Package guix-patches. (Tue, 29 Apr 2025 16:50:02 GMT) Full text and rfc822 format available.

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

From: Greg Hogan <code <at> greghogan.com>
To: Zheng Junjie <z572 <at> z572.online>
Cc: 78141 <at> debbugs.gnu.org
Subject: Re: [bug#78141] [PATCH] gnu: valgrind: update to 3.25.0.
Date: Tue, 29 Apr 2025 12:48:42 -0400
On Tue, Apr 29, 2025 at 11:41 AM Zheng Junjie <z572 <at> z572.online> wrote:
>
> * gnu/packages/valgrind.scm (valgrind-next): New variable.
> (valgrind/interactive): Inherit from it.
>
> Change-Id: If6e1f50e5574caa5fae61892afcc2b4e6ef7baa3
> ---
>  gnu/packages/valgrind.scm | 32 +++++++++++++++++++++++++-------
>  1 file changed, 25 insertions(+), 7 deletions(-)
>
> diff --git a/gnu/packages/valgrind.scm b/gnu/packages/valgrind.scm
> index 1bf4975667f..1cdbcf16897 100644
> --- a/gnu/packages/valgrind.scm
> +++ b/gnu/packages/valgrind.scm
> @@ -37,7 +37,7 @@ (define-module (gnu packages valgrind)
>    #:use-module (gnu packages gdb)
>    #:use-module (gnu packages perl))
>
> -(define-public valgrind
> +(define valgrind/pinned
>    (package
>      (name "valgrind")
>      (version "3.22.0")
> @@ -93,10 +93,28 @@ (define-public valgrind
>      ;; Hide this variant so end users get the "interactive" Valgrind below.
>      (properties '((hidden? . #t)))))
>
> +(define-public valgrind-next
> +  (package
> +    (inherit valgrind/pinned)
> +    (version "3.25.0")
> +    (source (origin
> +              (method url-fetch)
> +              (uri (list (string-append "https://sourceware.org/pub/valgrind"
> +                                        "/valgrind-" version ".tar.bz2")
> +                         (string-append "ftp://sourceware.org/pub/valgrind"
> +                                        "/valgrind-" version ".tar.bz2")))
> +              (sha256
> +               (base32
> +                "1k3fb1vyx1b3vvwyql0ckg9n2lyw9dilbrhw1kcw0r3b3lln0pr9"))))
> +    (supported-systems (fold delete %supported-systems
> +                             '("i586-gnu" "x86_64-gnu"
> +                               "armhf-linux")))))
> +
> +(define-public valgrind valgrind/pinned)

Should we simplify the package naming and instead change the dependent
packages to use valgrind/pinned? There only look to be ten to twenty
references. Then valgrind-next could be valgrind.

I do appreciate that this gives us a means to keep valgrind up-to-date
without mass package rebuilds, since I don't expect that we are
propagating valgrind.

> +
>  (define-public valgrind/interactive
> -  (package/inherit
> -   valgrind
> -   (inputs
> -    ;; GDB is needed to provide a sane default for `--db-command'.
> -    (list gdb `(,(canonical-package (libc-for-target)) "debug")))
> -   (properties '())))
> +  (package/inherit valgrind-next
> +    (inputs
> +     ;; GDB is needed to provide a sane default for `--db-command'.
> +     (list gdb `(,(canonical-package (libc-for-target)) "debug")))
> +    (properties '())))
>
> base-commit: 32bc7695b50a2018f15618a86d7200fc8c3e2f58
> --
> 2.49.0




Information forwarded to guix-patches <at> gnu.org:
bug#78141; Package guix-patches. (Tue, 29 Apr 2025 17:06:04 GMT) Full text and rfc822 format available.

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

From: Z572 <zhengjunjie <at> iscas.ac.cn>
To: Greg Hogan <code <at> greghogan.com>
Cc: Zheng Junjie <z572 <at> z572.online>, 78141 <at> debbugs.gnu.org
Subject: Re: [bug#78141] [PATCH] gnu: valgrind: update to 3.25.0.
Date: Wed, 30 Apr 2025 01:05:10 +0800
[Message part 1 (text/plain, inline)]
Greg Hogan <code <at> greghogan.com> writes:

> On Tue, Apr 29, 2025 at 11:41 AM Zheng Junjie <z572 <at> z572.online> wrote:
>>
>> * gnu/packages/valgrind.scm (valgrind-next): New variable.
>> (valgrind/interactive): Inherit from it.
>>
>> Change-Id: If6e1f50e5574caa5fae61892afcc2b4e6ef7baa3
>> ---
>>  gnu/packages/valgrind.scm | 32 +++++++++++++++++++++++++-------
>>  1 file changed, 25 insertions(+), 7 deletions(-)
>>
>> diff --git a/gnu/packages/valgrind.scm b/gnu/packages/valgrind.scm
>> index 1bf4975667f..1cdbcf16897 100644
>> --- a/gnu/packages/valgrind.scm
>> +++ b/gnu/packages/valgrind.scm
>> @@ -37,7 +37,7 @@ (define-module (gnu packages valgrind)
>>    #:use-module (gnu packages gdb)
>>    #:use-module (gnu packages perl))
>>
>> -(define-public valgrind
>> +(define valgrind/pinned
>>    (package
>>      (name "valgrind")
>>      (version "3.22.0")
>> @@ -93,10 +93,28 @@ (define-public valgrind
>>      ;; Hide this variant so end users get the "interactive" Valgrind below.
>>      (properties '((hidden? . #t)))))
>>
>> +(define-public valgrind-next
>> +  (package
>> +    (inherit valgrind/pinned)
>> +    (version "3.25.0")
>> +    (source (origin
>> +              (method url-fetch)
>> +              (uri (list (string-append "https://sourceware.org/pub/valgrind"
>> +                                        "/valgrind-" version ".tar.bz2")
>> +                         (string-append "ftp://sourceware.org/pub/valgrind"
>> +                                        "/valgrind-" version ".tar.bz2")))
>> +              (sha256
>> +               (base32
>> +                "1k3fb1vyx1b3vvwyql0ckg9n2lyw9dilbrhw1kcw0r3b3lln0pr9"))))
>> +    (supported-systems (fold delete %supported-systems
>> +                             '("i586-gnu" "x86_64-gnu"
>> +                               "armhf-linux")))))
>> +
>> +(define-public valgrind valgrind/pinned)
>
> Should we simplify the package naming and instead change the dependent
> packages to use valgrind/pinned? There only look to be ten to twenty
> references. Then valgrind-next could be valgrind.

The valgrind in the guix command line interface is actually
valgrind/interactive, if you try
`guix refresh -e '(@ (gnu packages valgrind) valgrind)'`

you can see
Building the following 347 packages would ensure 734 dependent packages
are rebuilt
....


So we need to simplify it in a team update.

>
> I do appreciate that this gives us a means to keep valgrind up-to-date
> without mass package rebuilds, since I don't expect that we are
> propagating valgrind.
>
>> +
>>  (define-public valgrind/interactive
>> -  (package/inherit
>> -   valgrind
>> -   (inputs
>> -    ;; GDB is needed to provide a sane default for `--db-command'.
>> -    (list gdb `(,(canonical-package (libc-for-target)) "debug")))
>> -   (properties '())))
>> +  (package/inherit valgrind-next
>> +    (inputs
>> +     ;; GDB is needed to provide a sane default for `--db-command'.
>> +     (list gdb `(,(canonical-package (libc-for-target)) "debug")))
>> +    (properties '())))
>>
>> base-commit: 32bc7695b50a2018f15618a86d7200fc8c3e2f58
>> --
>> 2.49.0
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 4 days ago.

Previous Next


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