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 767618 - Package produced by cerbero misses some include folders
Package produced by cerbero misses some include folders
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: cerbero
git master
Other Linux
: Normal normal
: 1.9.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-06-13 18:32 UTC by Gregoire
Modified: 2016-06-22 07:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add codecparsers include folder to devel tarball (572 bytes, patch)
2016-06-14 16:26 UTC, Gregoire
none Details | Review
Add codecparsers include folder to devel tarball (update 1) (879 bytes, patch)
2016-06-14 16:38 UTC, Gregoire
none Details | Review
Add codecparsers include folder to devel tarball (update 2) (1.21 KB, patch)
2016-06-22 04:49 UTC, Gregoire
none Details | Review
Add all missing includes folder to devel tarball (1.54 KB, patch)
2016-06-22 04:58 UTC, Gregoire
none Details | Review
Add codecparsers include folder to devel tarball (update 3) (1.49 KB, patch)
2016-06-22 07:18 UTC, Gregoire
committed Details | Review

Description Gregoire 2016-06-13 18:32:24 UTC
When compiling gstreamer 1.9 with cerbero:

./cerbero-uninstalled -c config/cross-android-armv7.cbc package gstreamer-1.0

it produces gstreamer-1.0-android-armv7-1.9.0.1.tar.bz2

This tarball doesn't include the folders include/gstreamer-1.0/gst/[basecamerabinsrc, codecparsers, insertbin, interfaces, uridownloader, validate] while those folders are present in cerbero/build/dist/android_armv7/include/gstreamer-1.0/gst
Comment 1 Nicolas Dufresne (ndufresne) 2016-06-13 19:32:57 UTC
This isn't clear, there should be two tarballs, one with the runtime and the other, -devel, with all the headers and static lib (the first one is not that useful on android). Note that we voluntarily don't publish unstable APIs, some of what you listed is part of it.
Comment 2 Gregoire 2016-06-13 19:37:00 UTC
I get two tarballs indeed, not exactly the name you are describing:
gstreamer-1.0-android-armv7-1.9.0.1-runtime.tar.bz2
gstreamer-1.0-android-armv7-1.9.0.1.tar.bz2

So if I want the unstable APIs, how should I do it? Is there an option in cerbero to produce tarball with unstable APIs?
Comment 3 Nicolas Dufresne (ndufresne) 2016-06-13 19:53:11 UTC
Ah, sorry, indeed. I notice that some of the unstable API is exposed, so it's likely just a bug indeed. If you'd like to help, you can fix it by adding the requires folder and files to the "files_plugins_devel" in recipes/gst-plugins-bad-1.0.recipe. Split each library in it's own patch, so we can discuss if we want or not those library to be exposed.
Comment 4 Gregoire 2016-06-13 20:01:15 UTC
I compared gstreamer-1.0-android-armv7-1.9.0.1.tar.bz2 and include/gstreamer-1.0/gst/ to find the folders that were not there.

Actually, I'm only interested by codecparsers which (though it's "unstable") would deserve to be in the tarball.
Comment 5 Sebastian Dröge (slomo) 2016-06-13 20:04:04 UTC
Do you want to provide a patch?
Comment 6 Gregoire 2016-06-14 06:45:47 UTC
I honestly don't know where to patch. The recipe doesn't have any "include folder", only libraries. Or the library (or whatever it is) is included because my application does compile while using codecparsers/gsth264parser.h after just adding manually the header file. I will add the file manually through a script.
Comment 7 Nicolas Dufresne (ndufresne) 2016-06-14 14:37:44 UTC
(In reply to Gregoire from comment #6)
> I honestly don't know where to patch. The recipe doesn't have any "include
> folder", only libraries. Or the library (or whatever it is) is included
> because my application does compile while using codecparsers/gsth264parser.h
> after just adding manually the header file. I will add the file manually
> through a script.

I already told you in comment 3 that the variable "files_plugins_devel" list the folders and file to include in the development package.
Comment 8 Gregoire 2016-06-14 16:26:10 UTC
Created attachment 329810 [details] [review]
Add codecparsers include folder to devel tarball
Comment 9 Nicolas Dufresne (ndufresne) 2016-06-14 16:31:59 UTC
Review of attachment 329810 [details] [review]:

There should be a .pc file no ?
Comment 10 Gregoire 2016-06-14 16:38:45 UTC
Created attachment 329811 [details] [review]
Add codecparsers include folder to devel tarball (update 1)
Comment 11 Gregoire 2016-06-14 16:50:42 UTC
I only added codecparsers as I don't know if the other folders as relevant as this one.
Comment 12 Sebastian Dröge (slomo) 2016-06-17 08:08:19 UTC
Comment on attachment 329811 [details] [review]
Add codecparsers include folder to devel tarball (update 1)

Please attach a "git format-patch" style patch for this :) And if we're doing this now anyway, maybe let's add all -bad libraries in one go? The other ones are all as relevant as codecparsers for external code (i.e. usually not)
Comment 13 Gregoire 2016-06-17 13:52:01 UTC
+1. It would make sense to add everything as the warning when for unstable apis is already pretty aggressive (which is fine). At least, having all those folders enable some applications to compile.
Comment 14 Sebastian Dröge (slomo) 2016-06-21 08:24:59 UTC
Gregoire, can you update your patch?
Comment 15 Gregoire 2016-06-22 04:49:13 UTC
Created attachment 330178 [details] [review]
Add codecparsers include folder to devel tarball (update 2)

Is it the patch format you desire? I'm not sure of the other folders.
Comment 16 Gregoire 2016-06-22 04:58:23 UTC
Created attachment 330179 [details] [review]
Add all missing includes folder to devel tarball
Comment 17 Sebastian Dröge (slomo) 2016-06-22 06:59:09 UTC
Review of attachment 330179 [details] [review]:

::: recipes/gst-plugins-bad-1.0.recipe
@@ +65,3 @@
+        'lib/pkgconfig/gstreamer-codecparsers-1.0.pc',
+        'lib/pkgconfig/gstreamer-insertbin-1.0.pc',
+        'lib/pkgconfig/gst-validate-1.0.pc'

This comes from gst-validate, not gst-plugins-bad. Remove this one, and then it looks good :)

Any reason why you didn't include adaptivedemux and uridownloader?
Comment 18 Gregoire 2016-06-22 07:18:25 UTC
Created attachment 330185 [details] [review]
Add codecparsers include folder to devel tarball (update 3)

There is no "*uridownloader*.pc" but the include folder is there.
Comment 19 Gregoire 2016-06-22 07:19:15 UTC
Comment on attachment 330185 [details] [review]
Add codecparsers include folder to devel tarball (update 3)

Should I remove validate in include too or just the pc?
Comment 20 Sebastian Dröge (slomo) 2016-06-22 07:22:12 UTC
commit 8bfa83b0e9f1cbe27b9bc3ab4c5e745d01a9eafd
Author: Gregoire Gentil <gregoire@gentil.com>
Date:   Wed Jun 22 00:16:53 2016 -0700

    Adding missing include folders for distribution package
    
    https://bugzilla.gnome.org/show_bug.cgi?id=767618