GNU bug report logs - #64288
[PATCH] gnu: python-msgspec: Regenerate autogenerated file.

Previous Next

Package: guix-patches;

Reported by: Vinicius Monego <monego <at> posteo.net>

Date: Sun, 25 Jun 2023 22:23:02 UTC

Severity: normal

Tags: patch

Done: Vinicius Monego <monego <at> posteo.net>

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 64288 in the body.
You can then email your comments to 64288 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#64288; Package guix-patches. (Sun, 25 Jun 2023 22:23:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vinicius Monego <monego <at> posteo.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 25 Jun 2023 22:23:02 GMT) Full text and rfc822 format available.

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

From: Vinicius Monego <monego <at> posteo.net>
To: guix-patches <at> gnu.org
Cc: Vinicius Monego <monego <at> posteo.net>
Subject: [PATCH] gnu: python-msgspec: Regenerate autogenerated file.
Date: Sun, 25 Jun 2023 22:21:53 +0000
* gnu/packages/serialization.scm (python-msgspec)[source]: Add a snippet to
delete autogenerated "msgspec/atof_consts.h".
[arguments]: Add new phase to regenerate that file.
---
 gnu/packages/serialization.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index 1f8c128eba..2d763e815e 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -628,6 +628,11 @@ (define-public python-msgspec
                     (url "https://github.com/jcrist/msgspec")
                     (commit version)))
               (file-name (git-file-name name version))
+              (modules '((guix build utils)))
+              (snippet
+               ;; Delete autogenerated file, regenerate in a phase.
+               '(begin
+                  (delete-file "msgspec/atof_consts.h")))
               (sha256
                (base32
                 "09q567klcv7ly60w9lqip2ffyhrij100ky9igh3p3vqwbml33zb3"))))
@@ -645,7 +650,12 @@ (define-public python-msgspec
                        (invoke "versioneer" "install")
                        (substitute* "setup.py"
                          (("version=versioneer.get_version\\(),")
-                          (format #f "version=~s," #$version))))))))
+                          (format #f "version=~s," #$version)))))
+                   (add-after 'versioneer 'atof-consts
+                     (lambda _
+                       (with-directory-excursion "scripts"
+                         ;; Regenerate the autogenerated file.
+                         (invoke "python" "generate_atof_consts.py")))))))
     (native-inputs (list python-attrs
                          python-gcovr
                          python-msgpack
-- 
2.34.1





Information forwarded to guix-patches <at> gnu.org:
bug#64288; Package guix-patches. (Tue, 18 Jul 2023 11:41:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Vinicius Monego <monego <at> posteo.net>
Cc: 64288 <at> debbugs.gnu.org
Subject: Re: bug#64288: [PATCH] gnu: python-msgspec: Regenerate
 autogenerated file.
Date: Tue, 18 Jul 2023 13:40:28 +0200
Hello,

Vinicius Monego <monego <at> posteo.net> skribis:

> * gnu/packages/serialization.scm (python-msgspec)[source]: Add a snippet to
> delete autogenerated "msgspec/atof_consts.h".
> [arguments]: Add new phase to regenerate that file.

Good catch, LGTM!

Ludo’.




Reply sent to Vinicius Monego <monego <at> posteo.net>:
You have taken responsibility. (Sat, 29 Jul 2023 18:44:02 GMT) Full text and rfc822 format available.

Notification sent to Vinicius Monego <monego <at> posteo.net>:
bug acknowledged by developer. (Sat, 29 Jul 2023 18:44:02 GMT) Full text and rfc822 format available.

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

From: Vinicius Monego <monego <at> posteo.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 64288-done <at> debbugs.gnu.org
Subject: Re: bug#64288: [PATCH] gnu: python-msgspec: Regenerate
 autogenerated file.
Date: Sat, 29 Jul 2023 18:43:28 +0000
Em ter, 2023-07-18 às 13:40 +0200, Ludovic Courtès escreveu:
> Hello,
> 
> Vinicius Monego <monego <at> posteo.net> skribis:
> 
> > * gnu/packages/serialization.scm (python-msgspec)[source]: Add a
> > snippet to
> > delete autogenerated "msgspec/atof_consts.h".
> > [arguments]: Add new phase to regenerate that file.
> 
> Good catch, LGTM!
> 
> Ludo’.

Applied, thanks.




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

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

Previous Next


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