GNU bug report logs - #54934
[PATCH 0/4] Fix broken packages by PyYAML upgrade.

Previous Next

Package: guix-patches;

Reported by: zimoun <zimon.toutoune <at> gmail.com>

Date: Thu, 14 Apr 2022 11:10: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 54934 in the body.
You can then email your comments to 54934 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 rekado <at> elephly.net, guix-patches <at> gnu.org:
bug#54934; Package guix-patches. (Thu, 14 Apr 2022 11:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to zimoun <zimon.toutoune <at> gmail.com>:
New bug report received and forwarded. Copy sent to rekado <at> elephly.net, guix-patches <at> gnu.org. (Thu, 14 Apr 2022 11:10:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: zimoun <zimon.toutoune <at> gmail.com>
Subject: [PATCH 0/4] Fix broken packages by PyYAML upgrade.
Date: Thu, 14 Apr 2022 13:08:49 +0200
Hi,

Currently, python-pyyaml-for-awscli is not used.  Its use had been removed by
commit 21cd4c704e.  Reuse the package to fix some others; waiting their
regular updates.

Note that the package orange is still broken.  Because
python-orange-canvas-core is broken.  However, note that:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix graph --path python-orange-canvas-core python-pyyaml
python-orange-canvas-core <at> 0.1.24
python-qasync <at> 0.22.0
python-pyqt <at> 5.15.2
qtbase <at> 5.15.2
gtk+@3.24.30
rest <at> 0.8.1
libsoup-minimal <at> 2.72.0
samba <at> 4.15.3
python-markdown <at> 3.3.4
python-pyyaml <at> 6.0
--8<---------------cut here---------------end--------------->8---

and update it to 0.1.26 is not enough, for instance.


zimoun (4):
  gnu: python-pyyaml-for-awscli: Rename and hide.
  gnu: docker-compose: Use python-pyyaml <at> 5.
  gnu: conan: Use python-pyyaml <at> 5.
  gnu: ganeti: Use python-pyyaml <at> 5.

 gnu/packages/docker.scm             |  2 +-
 gnu/packages/package-management.scm |  2 +-
 gnu/packages/python-xyz.scm         | 24 +++++++++++++-----------
 gnu/packages/virtualization.scm     |  2 +-
 4 files changed, 16 insertions(+), 14 deletions(-)


base-commit: 7d990e775e76c0a898c7d4b53691d1932fc0e6eb
-- 
2.35.1





Information forwarded to guix-patches <at> gnu.org:
bug#54934; Package guix-patches. (Thu, 14 Apr 2022 11:11:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: 54934 <at> debbugs.gnu.org
Cc: zimoun <zimon.toutoune <at> gmail.com>
Subject: [PATCH 2/4] gnu: docker-compose: Use python-pyyaml <at> 5.
Date: Thu, 14 Apr 2022 13:10:37 +0200
* gnu/packages/docker.scm (docker-compose)[inputs]: Replace python-pyyaml by
python-pyyaml-5.
---
 gnu/packages/docker.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm
index 3f52f4f8db..07731886ae 100644
--- a/gnu/packages/docker.scm
+++ b/gnu/packages/docker.scm
@@ -122,7 +122,7 @@ (define-public docker-compose
            python-docopt
            python-dotenv
            python-jsonschema
-           python-pyyaml
+           python-pyyaml-5
            python-requests
            python-six
            python-texttable
-- 
2.35.1





Information forwarded to guix-patches <at> gnu.org:
bug#54934; Package guix-patches. (Thu, 14 Apr 2022 11:11:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: 54934 <at> debbugs.gnu.org
Cc: zimoun <zimon.toutoune <at> gmail.com>
Subject: [PATCH 1/4] gnu: python-pyyaml-for-awscli: Rename and hide.
Date: Thu, 14 Apr 2022 13:10:36 +0200
* gnu/packages/python-xyz.scm (python-pyyaml-for-awscli): Rename variable to
'python-pyyaml-5', hide the package.
---
 gnu/packages/python-xyz.scm | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 36e4fe5898..1938b2bfad 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3941,17 +3941,19 @@ (define-public python2-pyyaml
           (base32
            "0pm440pmpvgv5rbbnm8hk4qga5a292kvlm1bh3x2nwr8pb5p8xv0")))))))
 
-(define-public python-pyyaml-for-awscli
-  (package
-    (inherit python-pyyaml)
-    (version "5.4.1")
-    (source
-     (origin
-       (method url-fetch)
-       (uri (pypi-uri "PyYAML" version))
-       (sha256
-        (base32
-         "0pm440pmpvgv5rbbnm8hk4qga5a292kvlm1bh3x2nwr8pb5p8xv0"))))))
+;;; Required by some packages not yet updated.
+(define-public python-pyyaml-5
+  (hidden-package
+   (package
+     (inherit python-pyyaml)
+     (version "5.4.1")
+     (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "PyYAML" version))
+        (sha256
+         (base32
+          "0pm440pmpvgv5rbbnm8hk4qga5a292kvlm1bh3x2nwr8pb5p8xv0")))))))
 
 (define-public python-vine
   (package
-- 
2.35.1





Information forwarded to guix-patches <at> gnu.org:
bug#54934; Package guix-patches. (Thu, 14 Apr 2022 11:11:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: 54934 <at> debbugs.gnu.org
Cc: zimoun <zimon.toutoune <at> gmail.com>
Subject: [PATCH 3/4] gnu: conan: Use python-pyyaml <at> 5.
Date: Thu, 14 Apr 2022 13:10:38 +0200
* gnu/packages/package-management.scm (conan)[propagated-inputs]: Replace
python-pyyaml by python-yyaml-5.
---
 gnu/packages/package-management.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm
index 9c5db0d608..092aa159a3 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -1183,7 +1183,7 @@ (define system ,(or (%current-target-system)
            python-pluginbase
            python-pygments
            python-pyjwt
-           python-pyyaml
+           python-pyyaml-5
            python-requests
            python-six
            python-tqdm
-- 
2.35.1





Information forwarded to guix-patches <at> gnu.org:
bug#54934; Package guix-patches. (Thu, 14 Apr 2022 11:11:03 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: 54934 <at> debbugs.gnu.org
Cc: zimoun <zimon.toutoune <at> gmail.com>
Subject: [PATCH 4/4] gnu: ganeti: Use python-pyyaml <at> 5.
Date: Thu, 14 Apr 2022 13:10:39 +0200
* gnu/packages/virtualization.scm (ganeti)[native-inputs]: Replace
python-pyyaml by python-pyyaml-5.
---
 gnu/packages/virtualization.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm
index f3396e7c94..bc2523d8ec 100644
--- a/gnu/packages/virtualization.scm
+++ b/gnu/packages/virtualization.scm
@@ -830,7 +830,7 @@ (define* (wrap? file #:rest _)
        ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
        ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
        ("python-mock" ,python-mock)
-       ("python-pyyaml" ,python-pyyaml)
+       ("python-pyyaml" ,python-pyyaml-5)
        ("openssh" ,openssh)
        ("procps" ,procps)
        ("shelltestrunner" ,shelltestrunner)
-- 
2.35.1





Information forwarded to guix-patches <at> gnu.org:
bug#54934; Package guix-patches. (Thu, 14 Apr 2022 13:21:01 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 54934 <at> debbugs.gnu.org
Subject: Re: [bug#54934] [PATCH 0/4] Fix broken packages by PyYAML upgrade.
Date: Thu, 14 Apr 2022 15:19:45 +0200
zimoun <zimon.toutoune <at> gmail.com> writes:

> Note that the package orange is still broken.  Because
> python-orange-canvas-core is broken.

I don’t understand.  It builds just fine here.  I tested on commit
b0dd06bd0caea46a852248ab48ab2e6aaff57752.

How is it broken?

-- 
Ricardo




Information forwarded to guix-patches <at> gnu.org:
bug#54934; Package guix-patches. (Thu, 14 Apr 2022 13:29:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 54934 <at> debbugs.gnu.org
Subject: Re: [bug#54934] [PATCH 0/4] Fix broken packages by PyYAML upgrade.
Date: Thu, 14 Apr 2022 15:28:07 +0200
On Thu, 14 Apr 2022 at 15:20, Ricardo Wurmus <rekado <at> elephly.net> wrote:

> > Note that the package orange is still broken.  Because
> > python-orange-canvas-core is broken.
>
> I don’t understand.  It builds just fine here.  I tested on commit
> b0dd06bd0caea46a852248ab48ab2e6aaff57752.

I have not tested on this one since it is very recent ;-)

CommitDate: Thu Apr 14 14:53:17 2022 +0200

but it fails with 7d990e775e76c0a898c7d4b53691d1932fc0e6eb.


> How is it broken?

Like this <https://ci.guix.gnu.org/build/644998/details>


Cheers,
simon




Information forwarded to guix-patches <at> gnu.org:
bug#54934; Package guix-patches. (Thu, 14 Apr 2022 14:02:01 GMT) Full text and rfc822 format available.

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

From: Ricardo Wurmus <rekado <at> elephly.net>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 54934 <at> debbugs.gnu.org
Subject: Re: [bug#54934] [PATCH 0/4] Fix broken packages by PyYAML upgrade.
Date: Thu, 14 Apr 2022 16:00:49 +0200
zimoun <zimon.toutoune <at> gmail.com> writes:

> On Thu, 14 Apr 2022 at 15:20, Ricardo Wurmus <rekado <at> elephly.net> wrote:
>
>> > Note that the package orange is still broken.  Because
>> > python-orange-canvas-core is broken.
>>
>> I don’t understand.  It builds just fine here.  I tested on commit
>> b0dd06bd0caea46a852248ab48ab2e6aaff57752.
>
> I have not tested on this one since it is very recent ;-)
>
> CommitDate: Thu Apr 14 14:53:17 2022 +0200
>
> but it fails with 7d990e775e76c0a898c7d4b53691d1932fc0e6eb.
>
>
>> How is it broken?
>
> Like this <https://ci.guix.gnu.org/build/644998/details>

I cannot reproduce this.  I also ran “guix build
/gnu/store/aj4xvw8shwjq9qpyfbswb71jk7axf26h-python-orange-canvas-core-0.1.24.drv” on ci.guix.gnu.org to
see if I can reproduce the failure there, but it succeeded.

-- 
Ricardo




Information forwarded to guix-patches <at> gnu.org:
bug#54934; Package guix-patches. (Thu, 14 Apr 2022 15:12:01 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Ricardo Wurmus <rekado <at> elephly.net>
Cc: 54934 <at> debbugs.gnu.org
Subject: Re: [bug#54934] [PATCH 0/4] Fix broken packages by PyYAML upgrade.
Date: Thu, 14 Apr 2022 17:07:05 +0200
Hi,

On Thu, 14 Apr 2022 at 16:00, Ricardo Wurmus <rekado <at> elephly.net> wrote:

> I cannot reproduce this.  I also ran “guix build
> /gnu/store/aj4xvw8shwjq9qpyfbswb71jk7axf26h-python-orange-canvas-core-0.1.24.drv” on ci.guix.gnu.org to
> see if I can reproduce the failure there, but it succeeded.

Well, it is orthogonal with the submission, but for the record:

--8<---------------cut here---------------start------------->8---
$ guix build /gnu/store/aj4xvw8shwjq9qpyfbswb71jk7axf26h-python-orange-canvas-core-0.1.24.drv\
     --no-grafts --check

[...]

test_context_menu_delete (orangecanvas.canvas.items.tests.test_graphicstextitem.TestGraphicsTextItem) ... Traceback (most recent call last):
  File "/tmp/guix-build-python-orange-canvas-core-0.1.24.drv-0/orange-canvas-core-0.1.24/orangecanvas/canvas/items/graphicstextitem.py", line 137, in contextMenuEvent
    QGraphicsTextItem_contextMenuEvent(self, event)
  File "/tmp/guix-build-python-orange-canvas-core-0.1.24.drv-0/orange-canvas-core-0.1.24/orangecanvas/canvas/items/graphicstextitem.py", line 144, in QGraphicsTextItem_contextMenuEvent
    menu = createStandardContextMenu(self, event.pos(), event.widget())
  File "/tmp/guix-build-python-orange-canvas-core-0.1.24.drv-0/orange-canvas-core-0.1.24/orangecanvas/canvas/items/graphicstextitem.py", line 290, in createStandardContextMenu
    enabled=canPaste(),
  File "/tmp/guix-build-python-orange-canvas-core-0.1.24.drv-0/orange-canvas-core-0.1.24/orangecanvas/canvas/items/graphicstextitem.py", line 187, in canPaste
    return mime.hasFormat("text/plain") or mime.hasFormat("text/html")
AttributeError: 'NoneType' object has no attribute 'hasFormat'
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-c" "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'))" "test") exit-status: #f term-signal: 6 stop-signal: #f> 
phase `check' failed after 1.6 seconds
command "python" "-c" "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'))" "test" failed with signal 6
builder for `/gnu/store/aj4xvw8shwjq9qpyfbswb71jk7axf26h-python-orange-canvas-core-0.1.24.drv' failed with exit code 1
build of /gnu/store/aj4xvw8shwjq9qpyfbswb71jk7axf26h-python-orange-canvas-core-0.1.24.drv failed
View build log at '/var/log/guix/drvs/aj/4xvw8shwjq9qpyfbswb71jk7axf26h-python-orange-canvas-core-0.1.24.drv.bz2'.
guix build: error: build of `/gnu/store/aj4xvw8shwjq9qpyfbswb71jk7axf26h-python-orange-canvas-core-0.1.24.drv' failed
--8<---------------cut here---------------end--------------->8---


Cheers,
simon




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Wed, 27 Apr 2022 22:12:02 GMT) Full text and rfc822 format available.

Notification sent to zimoun <zimon.toutoune <at> gmail.com>:
bug acknowledged by developer. (Wed, 27 Apr 2022 22:12:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: rekado <at> elephly.net, 54934-done <at> debbugs.gnu.org
Subject: Re: bug#54934: [PATCH 0/4] Fix broken packages by PyYAML upgrade.
Date: Thu, 28 Apr 2022 00:11:13 +0200
Hi,

zimoun <zimon.toutoune <at> gmail.com> skribis:

>   gnu: python-pyyaml-for-awscli: Rename and hide.
>   gnu: docker-compose: Use python-pyyaml <at> 5.
>   gnu: conan: Use python-pyyaml <at> 5.
>   gnu: ganeti: Use python-pyyaml <at> 5.

I had to adjust the first one (since python-pyyaml-for-awscli was
removed recently) and drop the last one (since ganeti was fixed in the
meantime), but at last the remaining 3 patches are now applied.

Thanks, and apologies for the delay!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 26 May 2022 11:24:07 GMT) Full text and rfc822 format available.

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

Previous Next


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