GNU bug report logs - #63473
[PATCH] gnu: praat: Update to 6.3.10.

Previous Next

Package: guix-patches;

Reported by: "Preston M. Firestone" <firestone.preston <at> gmail.com>

Date: Fri, 12 May 2023 22:11:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

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 63473 in the body.
You can then email your comments to 63473 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#63473; Package guix-patches. (Fri, 12 May 2023 22:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Preston M. Firestone" <firestone.preston <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 12 May 2023 22:11:02 GMT) Full text and rfc822 format available.

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

From: "Preston M. Firestone" <firestone.preston <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: "Preston M. Firestone" <firestone.preston <at> gmail.com>
Subject: [PATCH] gnu: praat: Update to 6.3.10.
Date: Fri, 12 May 2023 17:09:33 -0500
* gnu/packages/language.scm (praat): Update to 6.3.10.
[arguments]: Use make-flags to set CC to gcc. Add tests and remove broken
one. Remove final #t from all lambdas.
[inputs]: Update to gtk+3 and reformat.
---
 gnu/packages/language.scm | 34 +++++++++++++++++++++-------------
 1 file changed, 21 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 36968ad11c..530842d2c8 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -850,37 +850,45 @@ (define-public link-grammar
 (define-public praat
   (package
     (name "praat")
-    (version "6.1.30")
+    (version "6.3.10")
     (source (origin
               (method git-fetch)
               (uri (git-reference
-                     (url "https://github.com/praat/praat")
-                     (commit (string-append "v" version))))
+                    (url "https://github.com/praat/praat")
+                    (commit (string-append "v" version))))
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1pjfifyv3wjn68l3i2dr83xm75nf2kxvfxrk9qqbmwz58p183jw4"))))
+                "0kwv0p2bn2x5h0c61rymm87icqqwnbj699awgc5afl4qp53azci8"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:tests? #f                      ; no test target
+     '(#:make-flags
+       ;; For some reason this variable doesn't properly percolate down to the
+       ;; recursive subcalls of make despite being defined in makefile.defs,
+       ;; which is sourced by all the other makefiles. Setting it as a flag
+       ;; guarantees that the right compiler is called every time.
+       '("-E" "CC = gcc")
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'remove-problem-tests
+           (lambda _
+             ;; FIXME: Why doesn't this test pass?
+             (delete-file "test/sys/graphicsText.praat")))
          (replace 'configure
            (lambda _
-             (copy-file "makefiles/makefile.defs.linux.pulse" "makefile.defs")
-             #t))
+             (copy-file "makefiles/makefile.defs.linux.pulse" "makefile.defs")))
+         (replace 'check
+           (lambda _
+             ;; Run only the tests that don't require a GUI.
+             (invoke "./praat" "--run" "test/runAllTests_batch.praat")))
          (replace 'install
            (lambda* (#:key outputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))
                     (bin (string-append out "/bin")))
                (mkdir-p bin)
-               (copy-file "praat" (string-append bin "/praat")))
-             #t)))))
+               (copy-file "praat" (string-append bin "/praat"))))))))
     (inputs
-     `(("alsa-lib" ,alsa-lib)
-       ("gtk" ,gtk+-2)
-       ("jack" ,jack-1)
-       ("publesaudio" ,pulseaudio)))
+     (list alsa-lib gtk+ jack-1 pulseaudio))
     (native-inputs
      (list pkg-config))
     (home-page "https://www.fon.hum.uva.nl/praat/")

base-commit: b4e5844700b2304bfde451322feb5797bf0c6179
prerequisite-patch-id: e1af5f52c721c7905ea34bdbbd20dfac5190126e
prerequisite-patch-id: 14803245981fe2f3cdfb052d35c41dad2fec89d1
-- 
2.39.2





Information forwarded to guix-patches <at> gnu.org:
bug#63473; Package guix-patches. (Wed, 21 Jun 2023 12:01:02 GMT) Full text and rfc822 format available.

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

From: Preston Miller Firestone <firestone.preston <at> gmail.com>
To: 63473 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: praat: Update to 6.3.10.
Date: Wed, 21 Jun 2023 07:00:02 -0500
Hi all,

Bumping this patch to hopefully get attention. The praat package
currently in the main distribution is broken and has been for several
weeks; it would be wonderful if this patch could be applied.

Preston




Information forwarded to guix-patches <at> gnu.org:
bug#63473; Package guix-patches. (Mon, 26 Jun 2023 04:26:02 GMT) Full text and rfc822 format available.

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

From: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
To: "Preston M. Firestone" <firestone.preston <at> gmail.com>, 
 63473 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: praat: Update to 6.3.10.
Date: Mon, 26 Jun 2023 06:25:00 +0200
Hi Preston,

Am Freitag, dem 12.05.2023 um 17:09 -0500 schrieb Preston M. Firestone:
> * gnu/packages/language.scm (praat): Update to 6.3.10.
> [arguments]: Use make-flags to set CC to gcc. Add tests and remove
> broken
> one. Remove final #t from all lambdas.
You're mixing functional and style changes in ways that aren't really
necessary.  IMHO, it's better to split the patch in two.

Either way, separate this log into one log per argument, i.e. one for
#:tests?, one for #:make-flags and one for #:phases.
“Remove final #t…” ought to be “Drop trailing #t.”
> [inputs]: Update to gtk+3 and reformat.
Should be “Replace gtk+-2 with gtk+.”
> ---
>  gnu/packages/language.scm | 34 +++++++++++++++++++++-------------
>  1 file changed, 21 insertions(+), 13 deletions(-)
> 
> diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
> index 36968ad11c..530842d2c8 100644
> --- a/gnu/packages/language.scm
> +++ b/gnu/packages/language.scm
> @@ -850,37 +850,45 @@ (define-public link-grammar
>  (define-public praat
>    (package
>      (name "praat")
> -    (version "6.1.30")
> +    (version "6.3.10")
>      (source (origin
>                (method git-fetch)
>                (uri (git-reference
> -                     (url "https://github.com/praat/praat")
> -                     (commit (string-append "v" version))))
> +                    (url "https://github.com/praat/praat")
> +                    (commit (string-append "v" version))))
>                (file-name (git-file-name name version))
>                (sha256
>                 (base32
> -               
> "1pjfifyv3wjn68l3i2dr83xm75nf2kxvfxrk9qqbmwz58p183jw4"))))
> +               
> "0kwv0p2bn2x5h0c61rymm87icqqwnbj699awgc5afl4qp53azci8"))))
>      (build-system gnu-build-system)
>      (arguments
> -     `(#:tests? #f                      ; no test target
> +     '(#:make-flags
> +       ;; For some reason this variable doesn't properly percolate
> down to the
> +       ;; recursive subcalls of make despite being defined in
> makefile.defs,
> +       ;; which is sourced by all the other makefiles. Setting it as
> a flag
> +       ;; guarantees that the right compiler is called every time.
> +       '("-E" "CC = gcc")
You should use (cc-for-target) as CC here.  Don't bother with the
spaces between the variable and it's values, those are more likely to
introduce faults than to prevent them.
>         #:phases
>         (modify-phases %standard-phases
> +         (add-after 'unpack 'remove-problem-tests
> +           (lambda _
> +             ;; FIXME: Why doesn't this test pass?
> +             (delete-file "test/sys/graphicsText.praat")))
The canonical name for such a phase is ‘delete-failing-tests’
>           (replace 'configure
>             (lambda _
> -             (copy-file "makefiles/makefile.defs.linux.pulse"
> "makefile.defs")
> -             #t))
> +             (copy-file "makefiles/makefile.defs.linux.pulse"
> "makefile.defs")))
> +         (replace 'check
> +           (lambda _
> +             ;; Run only the tests that don't require a GUI.
> +             (invoke "./praat" "--run"
> "test/runAllTests_batch.praat")))
>           (replace 'install
>             (lambda* (#:key outputs #:allow-other-keys)
>               (let* ((out (assoc-ref outputs "out"))
>                      (bin (string-append out "/bin")))
>                 (mkdir-p bin)
> -               (copy-file "praat" (string-append bin "/praat")))
> -             #t)))))
> +               (copy-file "praat" (string-append bin
> "/praat"))))))))
>      (inputs
> -     `(("alsa-lib" ,alsa-lib)
> -       ("gtk" ,gtk+-2)
> -       ("jack" ,jack-1)
> -       ("publesaudio" ,pulseaudio)))
> +     (list alsa-lib gtk+ jack-1 pulseaudio))
>      (native-inputs
>       (list pkg-config))
>      (home-page "https://www.fon.hum.uva.nl/praat/")
Cheers

PS: Sorry for the second mail, I misspelled debbugs on the first.

Information forwarded to guix-patches <at> gnu.org:
bug#63473; Package guix-patches. (Mon, 26 Jun 2023 05:54:02 GMT) Full text and rfc822 format available.

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

From: Juliana Sims <juli <at> incana.org>
To: 63473 <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: praat: Update to 6.3.10.
Date: Mon, 26 Jun 2023 01:52:57 -0400
Hi Preston,

Would it be possible to split some of these changes into separate 
patches? For example, rewriting the style of the inputs field and 
removing the #t's could be in their own patch. Ideally any changes not 
strictly related to the update should be in a separate patch from the 
changes strictly necessary for the update, and each patch should 
contain one logically-related set of changes.

Related, were you able to fix the build of the old version? If so, 
could you commit that fix as the first in a patch series?

> + ;; FIXME: Why doesn't this test pass?
It seems like this is answered later by
> + ;; Run only the tests that don't require a GUI.
and if that's the case the first comment could be changed. Also, you 
can get X during build with xorg-server-for-tests as a native-input and 
a build stage like this one from the geary package defintion:
```
(add-before 'check 'setup-xvfb
 (lambda _
   (system "Xvfb :1 &")
   (setenv "DISPLAY" ":1")))
```
While I don't know that such an addition will resolve the failing test, 
it might be worth trying.

Everything else seems to look fine. You may want to run guix style -S 
arguments to port it to g-expressions while you're here, but I don't 
think that's strictly necessary, just preferred.

All the best,
Juli






Information forwarded to guix-patches <at> gnu.org:
bug#63473; Package guix-patches. (Mon, 26 Jun 2023 17:43:01 GMT) Full text and rfc822 format available.

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

From: "Preston M. Firestone" <firestone.preston <at> gmail.com>
To: 63473 <at> debbugs.gnu.org
Cc: "Preston M. Firestone" <firestone.preston <at> gmail.com>
Subject: [PATCH 1/4] gnu: praat: Update to 6.1.49.
Date: Mon, 26 Jun 2023 12:42:14 -0500
Version 6.1.30 of praat can't be built with GCC. Version 6.1.49 patches
this. See https://github.com/praat/praat/pull/1622 for more information.

-- >8 --
* gnu/packages/language.scm (praat): Update to 6.1.49.
  [inputs]: Replace gtk+-2 with gtk+.
---
 gnu/packages/language.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 27a6ebf329..87ab60eba1 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -854,7 +854,7 @@ (define-public link-grammar
 (define-public praat
   (package
     (name "praat")
-    (version "6.1.30")
+    (version "6.1.49")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -863,7 +863,7 @@ (define-public praat
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "1pjfifyv3wjn68l3i2dr83xm75nf2kxvfxrk9qqbmwz58p183jw4"))))
+                "17ymrnvwvb08x61ygqlnfzzvggz937miix7rnk8vscrznywhh4jc"))))
     (build-system gnu-build-system)
     (arguments
      `(#:tests? #f                      ; no test target
@@ -882,7 +882,7 @@ (define-public praat
              #t)))))
     (inputs
      `(("alsa-lib" ,alsa-lib)
-       ("gtk" ,gtk+-2)
+       ("gtk" ,gtk+)
        ("jack" ,jack-1)
        ("publesaudio" ,pulseaudio)))
     (native-inputs

base-commit: 1bc878ded2ea349384da6a72d4b8326c63c794b4
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#63473; Package guix-patches. (Mon, 26 Jun 2023 17:43:02 GMT) Full text and rfc822 format available.

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

From: "Preston M. Firestone" <firestone.preston <at> gmail.com>
To: 63473 <at> debbugs.gnu.org
Cc: "Preston M. Firestone" <firestone.preston <at> gmail.com>
Subject: [PATCH 2/4] gnu: praat: Update to 6.3.10.
Date: Mon, 26 Jun 2023 12:42:15 -0500
* gnu/packages/language.scm (praat): Update to 6.3.10.
  [make-flags]: Use (cc-for-target).
---
 gnu/packages/language.scm | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 87ab60eba1..fc33e6f42e 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -854,7 +854,7 @@ (define-public link-grammar
 (define-public praat
   (package
     (name "praat")
-    (version "6.1.49")
+    (version "6.3.10")
     (source (origin
               (method git-fetch)
               (uri (git-reference
@@ -863,10 +863,11 @@ (define-public praat
               (file-name (git-file-name name version))
               (sha256
                (base32
-                "17ymrnvwvb08x61ygqlnfzzvggz937miix7rnk8vscrznywhh4jc"))))
+                "0kwv0p2bn2x5h0c61rymm87icqqwnbj699awgc5afl4qp53azci8"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:tests? #f                      ; no test target
+     `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
+       #:tests? #f                      ; no test target
        #:phases
        (modify-phases %standard-phases
          (replace 'configure
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#63473; Package guix-patches. (Mon, 26 Jun 2023 17:43:02 GMT) Full text and rfc822 format available.

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

From: "Preston M. Firestone" <firestone.preston <at> gmail.com>
To: 63473 <at> debbugs.gnu.org
Cc: "Preston M. Firestone" <firestone.preston <at> gmail.com>
Subject: [PATCH 3/4] gnu: praat: Add tests to praat.
Date: Mon, 26 Jun 2023 12:42:16 -0500
* gnu/packages/language.scm (praat): Run non-graphical tests.
---
 gnu/packages/language.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index fc33e6f42e..11fc17b427 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -867,13 +867,21 @@ (define-public praat
     (build-system gnu-build-system)
     (arguments
      `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
-       #:tests? #f                      ; no test target
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'delete-failing-tests
+           (lambda _
+             (delete-file "test/sys/graphicsText.praat")
+             #t))
          (replace 'configure
            (lambda _
              (copy-file "makefiles/makefile.defs.linux.pulse" "makefile.defs")
              #t))
+         (replace 'check
+           (lambda _
+             (invoke "./praat" "--run"
+                     "test/runAllTests_batch.praat")
+             #t))
          (replace 'install
            (lambda* (#:key outputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#63473; Package guix-patches. (Mon, 26 Jun 2023 17:43:03 GMT) Full text and rfc822 format available.

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

From: "Preston M. Firestone" <firestone.preston <at> gmail.com>
To: 63473 <at> debbugs.gnu.org
Cc: "Preston M. Firestone" <firestone.preston <at> gmail.com>
Subject: [PATCH 4/4] gnu: praat: Fix style
Date: Mon, 26 Jun 2023 12:42:17 -0500
* gnu/packages/language.scm (praat):
  [arguments]: Use g-exps.
  [#:phases]: Drop trailing #t.
  [inputs]: Use new format.
---
 gnu/packages/language.scm | 60 ++++++++++++++++++---------------------
 1 file changed, 27 insertions(+), 33 deletions(-)

diff --git a/gnu/packages/language.scm b/gnu/packages/language.scm
index 11fc17b427..758fb4f336 100644
--- a/gnu/packages/language.scm
+++ b/gnu/packages/language.scm
@@ -858,47 +858,41 @@ (define-public praat
     (source (origin
               (method git-fetch)
               (uri (git-reference
-                     (url "https://github.com/praat/praat")
-                     (commit (string-append "v" version))))
+                    (url "https://github.com/praat/praat")
+                    (commit (string-append "v" version))))
               (file-name (git-file-name name version))
               (sha256
                (base32
                 "0kwv0p2bn2x5h0c61rymm87icqqwnbj699awgc5afl4qp53azci8"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:make-flags (list (string-append "CC=" ,(cc-for-target)))
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'delete-failing-tests
-           (lambda _
-             (delete-file "test/sys/graphicsText.praat")
-             #t))
-         (replace 'configure
-           (lambda _
-             (copy-file "makefiles/makefile.defs.linux.pulse" "makefile.defs")
-             #t))
-         (replace 'check
-           (lambda _
-             (invoke "./praat" "--run"
-                     "test/runAllTests_batch.praat")
-             #t))
-         (replace 'install
-           (lambda* (#:key outputs #:allow-other-keys)
-             (let* ((out (assoc-ref outputs "out"))
-                    (bin (string-append out "/bin")))
-               (mkdir-p bin)
-               (copy-file "praat" (string-append bin "/praat")))
-             #t)))))
-    (inputs
-     `(("alsa-lib" ,alsa-lib)
-       ("gtk" ,gtk+)
-       ("jack" ,jack-1)
-       ("publesaudio" ,pulseaudio)))
-    (native-inputs
-     (list pkg-config))
+     (list #:make-flags #~(list (string-append "CC="
+                                               #$(cc-for-target)))
+           #:phases #~(modify-phases %standard-phases
+                        (add-after 'unpack 'delete-failing-tests
+                          (lambda _
+                            (delete-file "test/sys/graphicsText.praat")))
+                        (replace 'configure
+                          (lambda _
+                            (copy-file "makefiles/makefile.defs.linux.pulse"
+                                       "makefile.defs")))
+                        (replace 'check
+                          (lambda _
+                            (invoke "./praat" "--run"
+                                    "test/runAllTests_batch.praat")))
+                        (replace 'install
+                          (lambda* (#:key outputs #:allow-other-keys)
+                            (let* ((out (assoc-ref outputs "out"))
+                                   (bin (string-append out "/bin")))
+                              (mkdir-p bin)
+                              (copy-file "praat"
+                                         (string-append bin "/praat"))))))))
+    (inputs (list alsa-lib gtk+ jack-1 pulseaudio))
+    (native-inputs (list pkg-config))
     (home-page "https://www.fon.hum.uva.nl/praat/")
     (synopsis "Doing phonetics by computer")
-    (description "Praat is a tool to perform phonetics tasks.  It can do speech
+    (description
+     "Praat is a tool to perform phonetics tasks.  It can do speech
 analysis (pitch, formant, intensity, ...), speech synthesis, labelling, segmenting
 and manipulation.")
     (license license:gpl2+)))
-- 
2.40.1





Information forwarded to guix-patches <at> gnu.org:
bug#63473; Package guix-patches. (Mon, 26 Jun 2023 17:54:02 GMT) Full text and rfc822 format available.

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

From: Preston Miller Firestone <firestone.preston <at> gmail.com>
To: 63473 <at> debbugs.gnu.org
Subject: [PATCH] gnu: praat: Update to 6.3.10.
Date: Mon, 26 Jun 2023 12:53:39 -0500
Hi Juli and Liliana,

Thank you for the feedback and help. I have reformatted the patch as a
series. Let me know whether there's anything else that needs fixing.

Thanks,

Preston




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 07 Aug 2023 14:22:01 GMT) Full text and rfc822 format available.

Notification sent to "Preston M. Firestone" <firestone.preston <at> gmail.com>:
bug acknowledged by developer. (Mon, 07 Aug 2023 14:22:01 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Preston Miller Firestone <firestone.preston <at> gmail.com>
Cc: 63473-done <at> debbugs.gnu.org
Subject: Re: bug#63473: [PATCH] gnu: praat: Update to 6.3.10.
Date: Mon, 07 Aug 2023 16:21:40 +0200
Hi Preston,

Preston Miller Firestone <firestone.preston <at> gmail.com> skribis:

> Thank you for the feedback and help. I have reformatted the patch as a
> series. Let me know whether there's anything else that needs fixing.

Finally applied, thank you!

Ludo’.




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

This bug report was last modified 231 days ago.

Previous Next


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