After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732126 - cerbero: Add graphene recipe
cerbero: Add graphene recipe
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: packages
git master
Other Linux
: Normal enhancement
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-06-23 19:21 UTC by Lubosz Sarnecki
Modified: 2015-02-23 22:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add graphene recipe (2.03 KB, patch)
2014-06-23 19:21 UTC, Lubosz Sarnecki
none Details | Review
Add gdk-pixbuf as dependency (762 bytes, patch)
2014-06-23 19:22 UTC, Lubosz Sarnecki
none Details | Review
patch adding graphene (3.29 KB, patch)
2014-07-28 13:32 UTC, Lubosz Sarnecki
needs-work Details | Review
add graphene recipe (3.28 KB, patch)
2014-08-20 19:46 UTC, Lubosz Sarnecki
needs-work Details | Review
patch adding graphene (3.49 KB, patch)
2014-09-24 10:42 UTC, Lubosz Sarnecki
committed Details | Review
Revert "Revert "recipes: add graphene"" (3.82 KB, patch)
2015-02-23 21:41 UTC, Xavier Claessens
committed Details | Review
Graphene: Update to current git commit (898 bytes, patch)
2015-02-23 21:42 UTC, Xavier Claessens
committed Details | Review
Graphene: enable static build (766 bytes, patch)
2015-02-23 22:13 UTC, Xavier Claessens
committed Details | Review

Description Lubosz Sarnecki 2014-06-23 19:21:36 UTC
Created attachment 279066 [details] [review]
Add graphene recipe

graphene is used in master gst-plugins-bad as optional dependency.
This patch adds support to build it in cerbero.

When "--enable-introspection" is passed, graphene needs current gi master, so I disabled it in "prepare" for now. The setting of self.config.variants.gi seems only to change the one recipe and does not affect the others.
Modifying the configure_tpl was not possible.
Comment 1 Lubosz Sarnecki 2014-06-23 19:22:33 UTC
Created attachment 279067 [details] [review]
Add gdk-pixbuf as dependency

librsvg needed gdk-pixbuf for me
Comment 2 Andoni Morales 2014-06-24 14:17:29 UTC
There are 2 recipes for librsvg, one that builds the pixbuf loader and one that doesn't. The later should not depend on gdk-pixbuf IIRC.

Your patch still needs some work:
  * list the new plugin in the recipe
  * add it to -bad-static too
  * add the graphene libraries to the correspoding package.
Comment 3 Lubosz Sarnecki 2014-07-28 13:32:34 UTC
Created attachment 281868 [details] [review]
patch adding graphene

added to as dependency to static plugins.
added graphene to base system
Comment 4 Sebastian Dröge (slomo) 2014-08-03 08:47:04 UTC
Review of attachment 281868 [details] [review]:

::: recipes/graphene.recipe
@@ +5,3 @@
+    name = 'graphene'
+    remotes = {'origin': 'https://github.com/ebassi/graphene.git'}
+    commit = 'origin/master'

commit should be origin/0.99.1 or whatever the tag for the 0.99.1 release is called
Comment 5 Lubosz Sarnecki 2014-08-20 19:46:43 UTC
Created attachment 283998 [details] [review]
add graphene recipe

use 0.99.2 release
Comment 6 Sebastian Dröge (slomo) 2014-09-12 14:39:00 UTC
Comment on attachment 283998 [details] [review]
add graphene recipe

The patch does not apply to latest git master. And maybe we should first add it not to base-system but to wherever it is required (libgstgl? gl plugin?)

Also please add a link to the bug to the commit message at the end
Comment 7 Lubosz Sarnecki 2014-09-24 10:42:50 UTC
Created attachment 286966 [details] [review]
patch adding graphene

Rebased to current master and moved to packages/gstreamer-1.0-system.package.
Comment 8 Sebastian Dröge (slomo) 2014-09-25 08:21:20 UTC
commit a71a20507f1c4d47a532103faacd40b3abd36514
Author: Lubosz Sarnecki <lubosz@gmail.com>
Date:   Sat Jun 21 14:31:52 2014 +0200

    recipes: add graphene
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732126
Comment 9 Sebastian Dröge (slomo) 2014-09-25 08:43:38 UTC
Fails the build on Android ARM: https://jenkins.arracacha.collabora.co.uk/job/cerbero-android/1790/console

raphene-alloc.c: In function 'graphene_alloc':
In file included from graphene-config.h:38:0,
                 from graphene-types.h:32,
                 from graphene-matrix.h:27,
                 from graphene-matrix.c:35:
/home/jenkins/workspace/cerbero-android/workdir/android-ndk-r9d/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.8/include/arm_neon.h:32:2: error: #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h
 #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h


However neon must only be used conditionally at runtime, not all Android devices have neon.
Comment 10 Sebastian Dröge (slomo) 2014-09-25 08:53:08 UTC
Also fails on OSX and Windows. I reported some bugs against graphene, and also updated the recipe to a later git commit which should fix the OSX problem.
Comment 11 Sebastian Dröge (slomo) 2014-12-17 09:54:03 UTC
Lubosz, should we try again with the latest version?
Comment 12 Lubosz Sarnecki 2014-12-17 13:34:59 UTC
Android support has been merged:
https://github.com/ebassi/graphene/issues/12

I guess the cerbero patch still applies?
Comment 13 Xavier Claessens 2015-02-23 21:41:53 UTC
Created attachment 297718 [details] [review]
Revert "Revert "recipes: add graphene""

This reverts commit 5be16706ac3d3bfe927448275b74ceb0f3016ad7.

Conflicts:
	recipes/gst-plugins-bad-1.0-static.recipe
	recipes/gst-plugins-bad-1.0.recipe
Comment 14 Xavier Claessens 2015-02-23 21:42:01 UTC
Created attachment 297719 [details] [review]
Graphene: Update to current git commit

Windows build has been fixed in latest commit.
Comment 15 Xavier Claessens 2015-02-23 21:42:26 UTC
latest git master builds fine on windows and android, just tested it.
Comment 16 Xavier Claessens 2015-02-23 22:13:34 UTC
Created attachment 297721 [details] [review]
Graphene: enable static build
Comment 17 Nicolas Dufresne (ndufresne) 2015-02-23 22:21:05 UTC
Thanks,
commit e73f16e3fa307e37d475806365effa50c8027488
Author: Xavier Claessens <xavier.claessens@collabora.com>
Date:   Mon Feb 23 17:12:58 2015 -0500

    Graphene: enable static build
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732126

commit ff84fb8100bbd2bba92e0e0a8f66b599c06ab064
Author: Xavier Claessens <xavier.claessens@collabora.com>
Date:   Mon Feb 23 16:30:13 2015 -0500

    Graphene: Update to current git commit
    
    Windows build has been fixed in latest commit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732126

commit feebe71723f25e2a995c78072fa51b17e0abc235
Author: Xavier Claessens <xavier.claessens@collabora.com>
Date:   Mon Feb 23 16:28:35 2015 -0500

    Revert "Revert "recipes: add graphene""
    
    This reverts commit 5be16706ac3d3bfe927448275b74ceb0f3016ad7.
    
    Conflicts:
        recipes/gst-plugins-bad-1.0-static.recipe
        recipes/gst-plugins-bad-1.0.recipe
    
    https://bugzilla.gnome.org/show_bug.cgi?id=732126