unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [wip] Add python-gst. (Needs help!)
@ 2016-02-23 20:38 Christopher Allan Webber
  2016-02-24 19:43 ` Efraim Flashner
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Allan Webber @ 2016-02-23 20:38 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1726 bytes --]

This is the last piece of the puzzle to get all tests passing with
MediaGoblin and its Python dependencies, I believe.

Unfortunately, I can't get the package quite right.  Here's where it
fails:

Making install in overrides
make[2]: Entering directory '/tmp/guix-build-gst-python-1.6.1.drv-0/gst-python-1.6.1/gi/overrides'
make[3]: Entering directory '/tmp/guix-build-gst-python-1.6.1.drv-0/gst-python-1.6.1/gi/overrides'
 /gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/mkdir -p '/gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides'
 /gnu/store/x8dmdlrn5qn0wrbcnngj55y3ab73h0pp-bash-4.3.42/bin/bash ../../libtool   --mode=install /gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/install -c   _gi_gst.la '/gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides'
libtool: install: /gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/install -c .libs/_gi_gst.cpython-34m.so /gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides/_gi_gst.cpython-34m.so
/gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/install: cannot create regular file '/gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides/_gi_gst.cpython-34m.so': Permission denied
Makefile:428: recipe for target 'install-pygioverridesexecLTLIBRARIES' failed

So, no surprise that this fails... it's trying to install to another
package in the store.

There must be another way we do this for other gobject introspect using
packages?  Could someone help me out please?  I'd appreciate it!

 - Chris


[-- Attachment #2: 0001-wip-Add-python-gst.patch --]
[-- Type: text/x-patch, Size: 2381 bytes --]

From b324b6771de4255343a954d436d8f60ed56fec85 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
Date: Tue, 23 Feb 2016 12:34:56 -0800
Subject: [PATCH] [wip] Add python-gst

---
 gnu/packages/gstreamer.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/gstreamer.scm b/gnu/packages/gstreamer.scm
index f1dbc46..b061f46 100644
--- a/gnu/packages/gstreamer.scm
+++ b/gnu/packages/gstreamer.scm
@@ -3,6 +3,7 @@
 ;;; Copyright © 2014 John Darrington <jmd@gnu.org>
 ;;; Copyright © 2015 Sou Bunnbu <iyzsong@gmail.com>
 ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
+;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -35,6 +36,7 @@
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages libffi)
   #:use-module (gnu packages mp3)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages pulseaudio)
@@ -316,3 +318,31 @@ distribution problems in some jurisdictions, e.g. due to patent threats.")
      "This GStreamer plugin supports a large number of audio and video
 compression formats through the use of the libav library.")
     (license gpl2+)))
+
+(define-public python-gst
+  (package
+    (name "python-gst")
+    (version "1.6.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append
+                    "https://gstreamer.freedesktop.org/src/" name "/"
+                    name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "1w84pmvzki8fza10b6bx5zf1xb3r9x0nrsgfvlisybpx30p37giw"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("python" ,python)
+       ("gstreamer" ,gstreamer)
+       ("libffi" ,libffi)
+       ("gobject-introspection" ,gobject-introspection)))
+    (propagated-inputs
+     `(("python-pygobject" ,python-pygobject)))
+    (home-page "https://gstreamer.freedesktop.org/modules/gst-python.html")
+    (synopsis "GStreamer Python bindings supplement")
+    (description "GStreamer Python overrides for the gobject-introspection-based
+pygst bindings.")
+    (license lgpl2.0+)))
-- 
2.6.3


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [wip] Add python-gst. (Needs help!)
  2016-02-23 20:38 [wip] Add python-gst. (Needs help!) Christopher Allan Webber
@ 2016-02-24 19:43 ` Efraim Flashner
  0 siblings, 0 replies; 2+ messages in thread
From: Efraim Flashner @ 2016-02-24 19:43 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 2280 bytes --]

On Tue, 23 Feb 2016 12:38:07 -0800
Christopher Allan Webber <cwebber@dustycloud.org> wrote:

> This is the last piece of the puzzle to get all tests passing with
> MediaGoblin and its Python dependencies, I believe.
> 
> Unfortunately, I can't get the package quite right.  Here's where it
> fails:
> 
> Making install in overrides
> make[2]: Entering directory '/tmp/guix-build-gst-python-1.6.1.drv-0/gst-python-1.6.1/gi/overrides'
> make[3]: Entering directory '/tmp/guix-build-gst-python-1.6.1.drv-0/gst-python-1.6.1/gi/overrides'
>  /gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/mkdir -p '/gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides'
>  /gnu/store/x8dmdlrn5qn0wrbcnngj55y3ab73h0pp-bash-4.3.42/bin/bash ../../libtool   --mode=install /gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/install -c   _gi_gst.la '/gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides'
> libtool: install: /gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/install -c .libs/_gi_gst.cpython-34m.so /gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides/_gi_gst.cpython-34m.so
> /gnu/store/nl4g5nzfdy6fad6i1zgxp1gin5c73b47-coreutils-8.24/bin/install: cannot create regular file '/gnu/store/612jc932fk766brficmv11ddvgck6qgc-python-pygobject-3.18.0/lib/python3.4/site-packages/gi/overrides/_gi_gst.cpython-34m.so': Permission denied
> Makefile:428: recipe for target 'install-pygioverridesexecLTLIBRARIES' failed
> 
> So, no surprise that this fails... it's trying to install to another
> package in the store.
> 
> There must be another way we do this for other gobject introspect using
> packages?  Could someone help me out please?  I'd appreciate it!
> 
>  - Chris
> 

it's trying to install into pygobject's lib folder, so I'd take a look
at ./configure --help and see if there's a variable like PYGOBJECTLIB that
you can set to $out/lib.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-24 19:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-23 20:38 [wip] Add python-gst. (Needs help!) Christopher Allan Webber
2016-02-24 19:43 ` Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).