[PATCH 2/2] gnu: python-gst: Fix build failure.

DoneSubmitted by Christopher Baines.
Details
One participant
  • Christopher Baines
Owner
unassigned
Severity
normal
C
C
Christopher Baines wrote on 14 Jul 2019 00:01
(address . guix-patches@gnu.org)
20190713220102.7416-2-mail@cbaines.net
Building python-gst fails with:
Unbound variable: python-version
Therefore, add python-build-system to #:modules so that it's imported, andgive it a prefix to avoid clashing with the gnu-build-system.
Also, simplify the code by using the site-packages function from thepython-build-system module.
* gnu/packages/gstreamer.scm (python-gst)[arguments]: Rework to fix buildfailure.--- gnu/packages/gstreamer.scm | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-)
Toggle diff (30 lines)diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scmindex b0f0b032b3..efb9a6f796 100644--- a/gnu/packages/gstreamer.scm+++ b/gnu/packages/gstreamer.scm@@ -431,17 +431,14 @@ compression formats through the use of the libav library.") "0f1d9rvy2qxlymmfzyknnfr5rz1vx69jv17gp7wnamc5s6p7mp2m")))) (build-system gnu-build-system) (arguments- ;; XXX: Factorize python-sitedir with python-build-system.- `(#:imported-modules (,@%gnu-build-system-modules+ `(#:modules ((guix build gnu-build-system)+ ((guix build python-build-system) #:prefix python:))+ #:imported-modules (,@%gnu-build-system-modules (guix build python-build-system)) #:configure-flags- (let* ((python (assoc-ref %build-inputs "python"))- (python-version (python-version python))- (python-sitedir (string-append- "lib/python" python-version "/site-packages")))- (list (string-append- "--with-pygi-overrides-dir=" %output "/" python-sitedir- "/gi/overrides")))))+ (list (string-append+ "--with-pygi-overrides-dir=" %output "/"+ (python:site-packages %build-inputs %outputs) "/gi/overrides")))) (native-inputs `(("pkg-config" ,pkg-config) ("python" ,python)))-- 2.22.0
C
C
Christopher Baines wrote on 14 Jul 2019 00:12
(address . 36642-done@debbugs.gnu.org)
87sgr9ziqz.fsf@cbaines.net
Closing, as this is a duplicate of [1].
1: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36641
-----BEGIN PGP SIGNATURE-----
iQKTBAEBCgB9FiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl0qV1RfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNFODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcACgkQXiijOwuE9XfoxQ/+KdInmaD4kNRBsw09A5GmOfvB3uqchjDkytjKeHzu/f9hW3I63+9vHKT8YaHlXTaxpNKKqLmoRFRjchy0JoFEJ+px5comwjuvH6kedjDiU4KF3zustjvhjqD30RFr0QUNds66rBuIKNZ+LGPbi/Mxz/raKf9QiDCxWTq7SC6r0GlhD3bTnQ19kghzyhACxAJlyZZDH2Ca1kEiJrdw16JkyRcMmVPdiqG8tCBfnkbQ36imSOTVZf/0QJRIlwiIcDvguE0awI89Ii/cAG2Mly48++HyTjTL3V5dXmq8BhE1h2ctHGNLNZJTqPMP5E1/uKhi4wzLzAQ64bV02aDzu8FE+JegBbN8QHzT0eLyspXfYLyJoIYRAf8EBvZOFKGUS8Gxhr26xnRMgWYeyBhbRxE1FH2JVZ2Oh8Sos9TeUYMb3St+1fdrInapoyDfKWoO3sKbG3iFZ2LY3LZrJCPEEu1+v/09F41iWys1Vn9/x6bs5wXKlCHGFP+5Pa7rSyucJKjITzbZzFj8W50AH0PQ/RknP1nvu6e0hldDveg9e1Z640PyQLLw8LNiznPgo5968+PwJrpSN03VgXrCSLi8lu5zLTb3rRBGzKy7MSMOxNr4Jh46VKYrUPY0wNUlLeZ0SiUjXPYBaegNjGnNwdDv5pVQlpec3ZYtmP4E8dLEY0SOCGc==/8Xx-----END PGP SIGNATURE-----
Closed
?
Your comment

This issue is archived.

To comment on this conversation send email to 36642@debbugs.gnu.org