GNU bug report logs - #64870
[PATCH 0/1] gnu: picard: Update to 2.9.

Previous Next

Package: guix-patches;

Reported by: Hilton Chain <hako <at> ultrarare.space>

Date: Wed, 26 Jul 2023 10:22:02 UTC

Severity: normal

Tags: patch

Done: 宋文武 <iyzsong <at> envs.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 64870 in the body.
You can then email your comments to 64870 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#64870; Package guix-patches. (Wed, 26 Jul 2023 10:22:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hilton Chain <hako <at> ultrarare.space>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 26 Jul 2023 10:22:02 GMT) Full text and rfc822 format available.

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

From: Hilton Chain <hako <at> ultrarare.space>
To: guix-patches <at> gnu.org
Cc: Hilton Chain <hako <at> ultrarare.space>
Subject: [PATCH 0/1] gnu: picard: Update to 2.9.
Date: Wed, 26 Jul 2023 18:20:26 +0800
Hello Guix!

This patch updates picard to 2.9.  One test file (test_util_pipe.py) is deleted
since it fails in the build environment and I don't know how to fix it, the context
is given below.

Tests will succeed in the container spawned with "guix shell" with the following
commands:
--8<---------------cut here---------------start------------->8---
cd /tmp/
tar xf /gnu/store/fdm4a4mk5fygdvkcwc612k6k24zkkl2s-picard-2.9.tar.gz
cd picard-release-2.9/
guix shell -CD picard

export SETUPTOOLS_SHIM="import setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\\r\\n', '\\n');f.close();exec(compile(code, __file__, 'exec'))"

python -c "$SETUPTOOLS_SHIM" build && python -c "$SETUPTOOLS_SHIM" test
--8<---------------cut here---------------end--------------->8---

But for "guix build", one test fails and check phase hangs with the following
output:
--8<---------------cut here---------------start------------->8---
[...]
E: 09:46:44,831 util/pipe.read_from_pipe:244: pipe reader exception: ERROR: Pipe doesn't exist
E: 09:46:44,831 util/pipe._reader:346: Pipe file removed unexpectedly
E: 09:46:44,831 util/pipe.read_from_pipe:244: pipe reader exception: ERROR: Pipe doesn't exist
E: 09:46:44,831 util/pipe._reader:346: Pipe file removed unexpectedly
E: 09:46:44,832 util/pipe.read_from_pipe:244: pipe reader exception: ERROR: Pipe doesn't exist
E: 09:46:44,832 util/pipe._reader:346: Pipe file removed unexpectedly
.......s............................................................................................................................................................................................................................................s...........................................................................................................................s....................s.ss.ss.ss......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................s........s....s....s.............s.......s....s....s.........................................s.................s.......................................................................................................................................................................................................................................................................................................................................................................s..............ss......................s..............ss............s..............ss..................................s...s...........................s...s...........................s...s............................s...s............................s...s...........................s...s...........................s...s.................................s...s....................................s...s...........
======================================================================
FAIL: test_pipe_protocol (test.test_util_pipe.TestPipe)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/guix-build-picard-2.9.drv-0/picard-release-2.9/test/test_util_pipe.py", line 93, in test_pipe_protocol
    self.assertEqual(res, message,
AssertionError: '' != 'it'
+ it : Data is sent and read correctly

----------------------------------------------------------------------
Ran 2329 tests in 44.455s

FAILED (failures=1, skipped=72)
At least one test failed.
--8<---------------cut here---------------end--------------->8---

Thanks

Hilton Chain (1):
  gnu: picard: Update to 2.9.

 gnu/packages/music.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)


base-commit: ca133a7c4d8bf07618b17a614b872fb8538da77b
--
2.41.0




Information forwarded to guix-patches <at> gnu.org:
bug#64870; Package guix-patches. (Wed, 26 Jul 2023 10:23:02 GMT) Full text and rfc822 format available.

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

From: Hilton Chain <hako <at> ultrarare.space>
To: 64870 <at> debbugs.gnu.org
Cc: Hilton Chain <hako <at> ultrarare.space>
Subject: [PATCH 1/1] gnu: picard: Update to 2.9.
Date: Wed, 26 Jul 2023 18:22:46 +0800
* gnu/packages/music.scm (picard): Update to 2.9.
[arguments]<#:phases>: Add 'delete-failing-test.
---
 gnu/packages/music.scm | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 8656716fd3..f3a4bf68ce 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -3780,7 +3780,7 @@ (define-public pianobar
 (define-public picard
   (package
     (name "picard")
-    (version "2.8.5")
+    (version "2.9")
     (source (origin
               (method url-fetch)
               (uri (string-append
@@ -3788,7 +3788,7 @@ (define-public picard
                     "picard/picard-" version ".tar.gz"))
               (sha256
                (base32
-                "1kjl7iqgvvrv7mygsb7491cz872gm334489nyj0v8b79bxnzghdi"))))
+                "0afiziaq49sq1dx5r3qis4ymhhkrqlrkfnb6f7gcksj0kwljvsw9"))))
     (build-system python-build-system)
     (arguments
      (list
@@ -3805,7 +3805,13 @@ (define-public picard
                 (("pyfpcalc")
                  (string-append
                   "pyfpcalc', '"
-                  (assoc-ref inputs "chromaprint") "/bin/fpcalc"))))))))
+                  (assoc-ref inputs "chromaprint") "/bin/fpcalc")))))
+          (add-before 'check 'delete-failing-test
+            (lambda _
+              ;; FIXME: This test fails in build environment.
+              ;; util/pipe.read_from_pipe:244: pipe reader exception:
+              ;; ERROR: Pipe doesn't exist
+              (delete-file "test/test_util_pipe.py"))))))
     (native-inputs
      (list gettext-minimal python-dateutil))
     (inputs
-- 
2.41.0





Reply sent to 宋文武 <iyzsong <at> envs.net>:
You have taken responsibility. (Sun, 13 Aug 2023 08:04:03 GMT) Full text and rfc822 format available.

Notification sent to Hilton Chain <hako <at> ultrarare.space>:
bug acknowledged by developer. (Sun, 13 Aug 2023 08:04:03 GMT) Full text and rfc822 format available.

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

From: 宋文武 <iyzsong <at> envs.net>
To: Hilton Chain <hako <at> ultrarare.space>
Cc: 64870-done <at> debbugs.gnu.org
Subject: Re: bug#64870: [PATCH 0/1] gnu: picard: Update to 2.9.
Date: Sun, 13 Aug 2023 16:03:58 +0800
Hilton Chain <hako <at> ultrarare.space> writes:

> * gnu/packages/music.scm (picard): Update to 2.9.
> [arguments]<#:phases>: Add 'delete-failing-test.

Pushed, thank you!




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

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

Previous Next


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