--- Begin Message ---
Subject: |
[core-updates] Python-gst fails its test suite |
Date: |
Wed, 10 Jul 2024 15:37:15 -0400 |
On core-updates commit 378e1d9b69b030a, python-gst fails its test suite
like this:
------
======================================================================
FAIL: testPropertyMarshalling (test_types.TestFraction)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/tmp/guix-build-python-gst-1.22.3.drv-0/gst-python-1.22.3/testsuite/common.py",
line 98, in tearDown
self.gcverify()
File
"/tmp/guix-build-python-gst-1.22.3.drv-0/gst-python-1.22.3/testsuite/common.py",
line 81, in gcverify
self.assertFalse(leaked, leaked)
AssertionError: [<__gi__.GstRawVideoParse object at 0x7ffff66a55c0
(GstRawVideoParse at 0x787820)>] is not false : [<__gi__.GstRawVideoParse
object at 0x7ffff66a55c0 (GstRawVideoParse at 0x787820)>]
======================================================================
FAIL: testPropertyMarshalling (test_types.TestValueArray)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/tmp/guix-build-python-gst-1.22.3.drv-0/gst-python-1.22.3/testsuite/common.py",
line 98, in tearDown
self.gcverify()
File
"/tmp/guix-build-python-gst-1.22.3.drv-0/gst-python-1.22.3/testsuite/common.py",
line 81, in gcverify
self.assertFalse(leaked, leaked)
AssertionError: [<__gi__.GstRawVideoParse object at 0x7ffff66a55c0
(GstRawVideoParse at 0x78b6c0)>] is not false : [<__gi__.GstRawVideoParse
object at 0x7ffff66a55c0 (GstRawVideoParse at 0x78b6c0)>]
----------------------------------------------------------------------
Ran 32 tests in 1.179s
FAILED (failures=2, errors=32)
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
3/3 Test plugins OK 0.32s
Summary of Failures:
2/3 Test fundamentals FAIL 1.45s exit status 1
Ok: 2
Expected Fail: 0
Fail: 1
Unexpected Pass: 0
Skipped: 0
Timeout: 0
Full log written to
/tmp/guix-build-python-gst-1.22.3.drv-0/build/meson-logs/testlog.txt
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "meson" arguments: ("test"
"--print-errorlogs" "-t" "0") exit-status: 1 term-signal: #f stop-signal: #f>
phase `check' failed after 2.9 seconds
command "meson" "test" "--print-errorlogs" "-t" "0" failed with status 1
build process 6 exited with status 256
builder for `/gnu/store/qdqxmq3y1w03d5v3736r5f0cw4wz9alz-python-gst-1.22.3.drv'
failed with exit code 1
build of /gnu/store/qdqxmq3y1w03d5v3736r5f0cw4wz9alz-python-gst-1.22.3.drv
failed
View build log at
'/var/log/guix/drvs/qd/qxmq3y1w03d5v3736r5f0cw4wz9alz-python-gst-1.22.3.drv.gz'.
------
I've attached the testlog.txt. Any ideas?
testlog.txt
Description: Text document
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#72042: [PATCH 1/1] gnu: python-gst: Fix build. |
Date: |
Thu, 05 Sep 2024 19:14:23 +0400 |
On 2024-09-02 21:38, Remco van 't Veer wrote:
> * gnu/packages/glib.scm: Add package python-pygobject-3.48.
> * gnu/packages/gstreamer.scm (python-gst) [inputs]:
> Use python-pygobject-3.48 to fix tests.
>
> Change-Id: I3038b85db67ff354a6d77708fa4fd7c63aa6732c
> ---
> gnu/packages/glib.scm | 15 +++++++++++++++
> gnu/packages/gstreamer.scm | 3 ++-
> 2 files changed, 17 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm
> index 9827856f32..d6275ea63e 100644
> --- a/gnu/packages/glib.scm
> +++ b/gnu/packages/glib.scm
> @@ -20,6 +20,7 @@
> ;;; Copyright © 2022 Petr Hodina <phodina@protonmail.com>
> ;;; Copyright © 2023 Saku Laesvuori <saku@laesvuori.fi>
> ;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
> +;;; Copyright © 2024 Remco van 't Veer <remco@remworks.net>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -1077,6 +1078,20 @@ (define-public python-pygobject
> '((upstream-name . "pygobject")))
> (license license:lgpl2.1+)))
>
> +(define-public python-pygobject-3.48
> + (package
> + (inherit python-pygobject)
> + (version "3.48.2")
> + (source
> + (origin
> + (inherit (package-source python-pygobject))
> + (uri (string-append "mirror://gnome/sources/pygobject/"
> + (version-major+minor version)
> + "/pygobject-" version ".tar.xz"))
> + (sha256
> + (base32
> + "19yii8lydnjw225k4gclhn8hya7caiginqi0mj9a0cdym6sax507"))))))
> +
> (define-public perl-glib
> (package
> (name "perl-glib")
> diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
> index ad08285181..66978fc2bc 100644
> --- a/gnu/packages/gstreamer.scm
> +++ b/gnu/packages/gstreamer.scm
> @@ -11,6 +11,7 @@
> ;;; Copyright © 2020 Liliana Marie Prikler <liliana.prikler@gmail.com>
> ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
> ;;; Copyright © 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
> +;;; Copyright © 2024 Remco van 't Veer <remco@remworks.net>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -1126,7 +1127,7 @@ (define-public python-gst
> (native-inputs
> (list pkg-config python))
> (propagated-inputs
> - (list gst-plugins-base python-pygobject))
> + (list gst-plugins-base python-pygobject-3.48))
> (home-page "https://gstreamer.freedesktop.org/")
> (synopsis "GStreamer GObject Introspection overrides for Python")
> (description
Thank you! Applied the fix, pushed as
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=7d2ced8d6d
--
Best regards,
Andrew Tropin
signature.asc
Description: PGP signature
--- End Message ---