gst-plugins: fixed pattern for meta package dependencies.
PATCH 1/1 gst-plugins: fixed pattern for meta package dependencies.
This fixes package name matching so that gst-plugins-*-meta packages include all the plugin ones. The current matching implementation doesn't make meta packages depend on gst-plugins with 'locale' and 'dev' in their names (f.e. gstfbdevsink).
--- recipes/gstreamer/gst-plugins.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
recipes/gstreamer/gst-plugins.inc +1 -1
@@ -33,7 +33,7 @@ python populate_packages_prepend () { metapkg_rdepends = [] packages = bb.data.getVar('PACKAGES', d, 1).split() for pkg in packages[1:]: - if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.count('dev') and not pkg.count( 'locale' ): + if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-locale'): metapkg_rdepends.append(pkg) bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d)
Signature · 1 line
1.6.3.1
Quoted 4 lines · Ihar Hrachyshka
This fixes package name matching so that gst-plugins-*-meta packages include all the plugin ones. The current matching implementation doesn't make meta packages depend on gst-plugins with 'locale' and 'dev' in their names (f.e. gstfbdevsink).
This patch looks OK, but you need to bump PR for the affected recipes as well. (Someone will probably mention INC_PR soon ;))
regards,
Koen
Quoted 18 lines
Signed-off-by Ihar Hrachyshka <[email protected]>--- recipes/gstreamer/gst-plugins.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)recipes/gstreamer/gst-plugins.inc +1
-1@@ -33,7 +33,7 @@ python populate_packages_prepend () { metapkg_rdepends = [] packages = bb.data.getVar('PACKAGES', d, 1).split() for pkg in packages[1:]: - if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.count('dev') and not pkg.count( 'locale' ): + if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-locale'): metapkg_rdepends.append(pkg) bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d)
+1 for INC_PR :-)
Quoted 44 lines · Koen Kooi
Quoted 5 lines · Ihar Hrachyshka
This fixes package name matching so that gst-plugins-*-meta packages include all the plugin ones. The current matching implementation doesn't make meta packages depend on gst-plugins with 'locale' and 'dev' in their names (f.e. gstfbdevsink).
This patch looks OK, but you need to bump PR for the affected recipes as well. (Someone will probably mention
INC_PRsoon ;))regards,
Koen
Quoted 14 lines
Signed-off-by Ihar Hrachyshka <[email protected]>---
recipes/gstreamer/gst-plugins.inc | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)recipes/gstreamer/gst-plugins.inc +0
-0@@ -33,7 +33,7 @@ python populate_packages_prepend () {metapkg_rdepends = []
packages =bb.data.getVar('PACKAGES', d, 1).split() for pkg in packages[1:]:Quoted 8 lines
- if not pkg in blacklist and not pkg in
metapkg_rdependsand notpkg.count('dev')and notpkg.count( 'locale' ):
+ if not pkg in blacklist and not pkg inmetapkg_rdependsand notpkg.endswith('-dev')and notpkg.endswith('-locale'):
metapkg_rdepends.append(pkg) bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends),
d)
bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d)_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 9 lines · Koen Kooi
Quoted 5 lines · Ihar Hrachyshka
This fixes package name matching so that gst-plugins-*-meta packages include all the plugin ones. The current matching implementation doesn't make meta packages depend on gst-plugins with 'locale' and 'dev' in their names (f.e. gstfbdevsink).
This patch looks OK, but you need to bump PR for the affected recipes as well. (Someone will probably mention
INC_PRsoon ;))
Ok, I'll resend it in a while.
Quoted 35 lines
regards,
Koen
Quoted 14 lines
Signed-off-by Ihar Hrachyshka <[email protected]>---
recipes/gstreamer/gst-plugins.inc | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)recipes/gstreamer/gst-plugins.inc +0
-0@@ -33,7 +33,7 @@ python populate_packages_prepend () {metapkg_rdepends = []
packages =bb.data.getVar('PACKAGES', d, 1).split() for pkg in packages[1:]:Quoted 8 lines
- if not pkg in blacklist and not pkg in
metapkg_rdependsand notpkg.count('dev')and notpkg.count( 'locale' ):
+ if not pkg in blacklist and not pkg inmetapkg_rdependsand notpkg.endswith('-dev')and notpkg.endswith('-locale'):
metapkg_rdepends.append(pkg) bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends),
d)
bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d)_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
PATCH 1/1 gst-plugins: fixed pattern for meta package dependencies.
In reply to Koen KooiThis fixes package name matching so that gst-plugins-*-meta packages include all the plugin ones. The current matching implementation doesn't make meta packages depend on gst-plugins with 'locale' and 'dev' in their names (f.e. gstfbdevsink). Also use INC_PR for gstremer-plugins as requested on ML.
--- recipes/gstreamer/gst-plugins-bad_0.10.11.bb | 2 ++ recipes/gstreamer/gst-plugins-bad_0.10.6.bb | 3 ++- recipes/gstreamer/gst-plugins-base_0.10.17.bb | 2 ++ recipes/gstreamer/gst-plugins-base_0.10.22.bb | 2 ++ recipes/gstreamer/gst-plugins-base_0.10.23.bb | 2 ++ recipes/gstreamer/gst-plugins-good_0.10.13.bb | 2 +- recipes/gstreamer/gst-plugins-good_0.10.14.bb | 2 ++ recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb | 3 ++- recipes/gstreamer/gst-plugins-ugly_0.10.10.bb | 2 +- recipes/gstreamer/gst-plugins-ugly_0.10.11.bb | 2 ++ recipes/gstreamer/gst-plugins.inc | 4 +++- 11 files changed, 21 insertions(+), 5 deletions(-)
recipes/gstreamer/gst-plugins-bad_0.10.11.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + SRC_URI += "file://vorbisenc.h file://vorbisdec.h \ file://ivorbis-thumb.patch;patch=1" DEPENDS += "gst-plugins-base directfb"
recipes/gstreamer/gst-plugins-bad_0.10.6.bb +2 -1
@@ -1,5 +1,6 @@ require gst-plugins.inc -PR = "r2" + +PR = "${INC_PR}.1" SRC_URI += "file://vorbisenc.h file://vorbisdec.h \ file://gst-plugins-directfb-fix.patch;patch=1;pnum=2 \
recipes/gstreamer/gst-plugins-base_0.10.17.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + PROVIDES += "gst-plugins" # gst-plugins-base only builds the alsa plugin
recipes/gstreamer/gst-plugins-base_0.10.22.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + PROVIDES += "gst-plugins" PR = "r2"
recipes/gstreamer/gst-plugins-base_0.10.23.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + PROVIDES += "gst-plugins" # gst-plugins-base only builds the alsa plugin
recipes/gstreamer/gst-plugins-good_0.10.13.bb +1 -1
@@ -1,6 +1,6 @@ require gst-plugins.inc -PR = "r1" +PR = "${INC_PR}.1" inherit gconf
recipes/gstreamer/gst-plugins-good_0.10.14.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + inherit gconf EXTRA_OECONF += " --enable-experimental --enable-gst_v4l2 --enable-gconftool --enable-external --with-check=no"
recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb +2 -1
@@ -1,7 +1,8 @@ require gst-plugins.inc DEPENDS += "gst-plugins-base libsidplay" PROVIDES += "gst-plugin-sid" -PR = "r5" + +PR = "${INC_PR}.1" SRC_URI = "\ http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.bz2 \
recipes/gstreamer/gst-plugins-ugly_0.10.10.bb +1 -1
@@ -1,6 +1,6 @@ require gst-plugins.inc -PR = "r1" +PR = "${INC_PR}.1" DEPENDS += "gst-plugins-base mpeg2dec libsidplay"
recipes/gstreamer/gst-plugins-ugly_0.10.11.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + DEPENDS += "gst-plugins-base mpeg2dec libsidplay" SRC_URI += "\
recipes/gstreamer/gst-plugins.inc +3 -1
@@ -3,6 +3,8 @@ DESCRIPTION = "Plugins for GStreamer" DEPENDS = "gstreamer libmikmod liboil libogg tremor libvorbis" DEPENDS += "${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad libid3tag', d)}" +INC_PR = "r5" + PACKAGES_DYNAMIC = "gst-plugin-*" SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.bz2"
@@ -33,7 +35,7 @@ python populate_packages_prepend () { metapkg_rdepends = [] packages = bb.data.getVar('PACKAGES', d, 1).split() for pkg in packages[1:]: - if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.count('dev') and not pkg.count( 'locale' ): + if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-locale'): metapkg_rdepends.append(pkg) bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d)
Signature · 1 line
1.6.3.1
I just got that locale packages _don't_ end with 'locale'. Resending reworked patch.
Quoted 169 lines · Ihar Hrachyshka
This fixes package name matching so that gst-plugins-*-meta packages include all the plugin ones. The current matching implementation doesn't make meta packages depend on gst-plugins with 'locale' and 'dev' in their names (f.e. gstfbdevsink). Also use
INC_PRfor gstremer-plugins as requested on ML.Signed-off-by Ihar Hrachyshka <[email protected]>---
recipes/gstreamer/gst-plugins-bad_0.10.11.bb | 2 ++ recipes/gstreamer/gst-plugins-bad_0.10.6.bb | 3 ++-recipes/gstreamer/gst-plugins-base_0.10.17.bb | 2 ++ recipes/gstreamer/gst-plugins-base_0.10.22.bb | 2 ++ recipes/gstreamer/gst-plugins-base_0.10.23.bb | 2 ++ recipes/gstreamer/gst-plugins-good_0.10.13.bb | 2 +- recipes/gstreamer/gst-plugins-good_0.10.14.bb | 2 ++recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb | 3 ++- recipes/gstreamer/gst-plugins-ugly_0.10.10.bb | 2 +- recipes/gstreamer/gst-plugins-ugly_0.10.11.bb | 2 ++ recipes/gstreamer/gst-plugins.inc | 4 +++-
11 files changed, 21 insertions(+), 5 deletions(-)recipes/gstreamer/gst-plugins-bad_0.10.11.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-bad_0.10.11.bb +2
-0+PR = "${INC_PR}.1" +SRC_URI += "file://vorbisenc.h file://vorbisdec.h \
file://ivorbis-thumb.patch;patch=1" DEPENDS += "gst-plugins-base directfb"recipes/gstreamer/gst-plugins-bad_0.10.6.bb +0
-0@@ -1,5 +1,6 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-bad_0.10.6.bb +2
-1-PR = "r2" + +PR = "${INC_PR}.1"SRC_URI += "file://vorbisenc.h file://vorbisdec.h \
file://gst-plugins-directfb-fix.patch;patch=1;pnum=2 \recipes/gstreamer/gst-plugins-base_0.10.17.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-base_0.10.17.bb +2
-0+PR = "${INC_PR}.1" +PROVIDES += "gst-plugins"
# gst-plugins-base only builds the alsa pluginrecipes/gstreamer/gst-plugins-base_0.10.22.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-base_0.10.22.bb +2
-0+PR = "${INC_PR}.1" +PROVIDES += "gst-plugins"
PR = "r2"
recipes/gstreamer/gst-plugins-base_0.10.23.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-base_0.10.23.bb +2
-0+PR = "${INC_PR}.1" +PROVIDES += "gst-plugins"
# gst-plugins-base only builds the alsa pluginrecipes/gstreamer/gst-plugins-good_0.10.13.bb +0
-0@@ -1,6 +1,6 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-good_0.10.13.bb +1
-1-PR = "r1" +PR = "${INC_PR}.1"inherit gconf
recipes/gstreamer/gst-plugins-good_0.10.14.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-good_0.10.14.bb +2
-0+PR = "${INC_PR}.1" +inherit gconf
EXTRA_OECONF += " --enable-experimental --enable-gst_v4l2 --enable-gconftool --enable-external --with-check=no"
recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb +0
-0@@ -1,7 +1,8 @@require gst-plugins.inc
DEPENDS += "gst-plugins-base libsidplay"
PROVIDES += "gst-plugin-sid"recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb +2
-1-PR = "r5" + +PR = "${INC_PR}.1"SRC_URI = "\
http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.bz2 \recipes/gstreamer/gst-plugins-ugly_0.10.10.bb +0
-0@@ -1,6 +1,6 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-ugly_0.10.10.bb +1
-1-PR = "r1" +PR = "${INC_PR}.1"DEPENDS += "gst-plugins-base mpeg2dec libsidplay"
recipes/gstreamer/gst-plugins-ugly_0.10.11.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-ugly_0.10.11.bb +2
-0+PR = "${INC_PR}.1" +DEPENDS += "gst-plugins-base mpeg2dec libsidplay"
SRC_URI += "\
recipes/gstreamer/gst-plugins.inc +0
-0@@ -3,6 +3,8 @@ DESCRIPTION = "Plugins for GStreamer"DEPENDS = "gstreamer libmikmod liboil libogg tremor libvorbis"
DEPENDS += "${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad libid3tag', d)}"recipes/gstreamer/gst-plugins.inc +2
-0+INC_PR = "r5" +PACKAGES_DYNAMIC = "gst-plugin-*"
SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.bz2"
recipes/gstreamer/gst-plugins.inc +0
-0@@ -33,7 +35,7 @@ python populate_packages_prepend () {metapkg_rdepends = []
packages =bb.data.getVar('PACKAGES', d, 1).split()
for pkg in packages[1:]:
- if not pkg in blacklist and not pkg inmetapkg_rdependsand notpkg.count('dev')and notpkg.count( 'locale' ):
+ if not pkg in blacklist and not pkg inmetapkg_rdependsand notpkg.endswith('-dev')and notpkg.endswith('-locale'):
metapkg_rdepends.append(pkg)
bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d)
bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d)
--
1.6.3.1
Quoted 2 lines · Ihar Hrachyshka
I just got that locale packages _don't_ end with 'locale'. Resending reworked patch.
*facepalm* I just realized the same *after* applying the patch. Oops...
Quoted 177 lines
Quoted 166 lines · Ihar Hrachyshka
This fixes package name matching so that gst-plugins-*-meta packages include all the plugin ones. The current matching implementation doesn't make meta packages depend on gst-plugins with 'locale' and 'dev' in their names (f.e. gstfbdevsink). Also use
INC_PRfor gstremer-plugins as requested on ML.Signed-off-by Ihar Hrachyshka<[email protected]>--- recipes/gstreamer/gst-plugins-bad_0.10.11.bb | 2 ++ recipes/gstreamer/gst-plugins-bad_0.10.6.bb | 3 ++- recipes/gstreamer/gst-plugins-base_0.10.17.bb | 2 ++ recipes/gstreamer/gst-plugins-base_0.10.22.bb | 2 ++ recipes/gstreamer/gst-plugins-base_0.10.23.bb | 2 ++ recipes/gstreamer/gst-plugins-good_0.10.13.bb | 2 +- recipes/gstreamer/gst-plugins-good_0.10.14.bb | 2 ++ recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb | 3 ++- recipes/gstreamer/gst-plugins-ugly_0.10.10.bb | 2 +- recipes/gstreamer/gst-plugins-ugly_0.10.11.bb | 2 ++ recipes/gstreamer/gst-plugins.inc | 4 +++- 11 files changed, 21 insertions(+), 5 deletions(-)recipes/gstreamer/gst-plugins-bad_0.10.11.bb +2
-0@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + SRC_URI += "file://vorbisenc.h file://vorbisdec.h \ file://ivorbis-thumb.patch;patch=1" DEPENDS += "gst-plugins-base directfb"recipes/gstreamer/gst-plugins-bad_0.10.6.bb +2
-1@@ -1,5 +1,6 @@ require gst-plugins.inc -PR = "r2" + +PR = "${INC_PR}.1" SRC_URI += "file://vorbisenc.h file://vorbisdec.h \ file://gst-plugins-directfb-fix.patch;patch=1;pnum=2 \recipes/gstreamer/gst-plugins-base_0.10.17.bb +2
-0@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + PROVIDES += "gst-plugins" # gst-plugins-base only builds the alsa pluginrecipes/gstreamer/gst-plugins-base_0.10.22.bb +2
-0@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + PROVIDES += "gst-plugins" PR = "r2"recipes/gstreamer/gst-plugins-base_0.10.23.bb +2
-0@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + PROVIDES += "gst-plugins" # gst-plugins-base only builds the alsa pluginrecipes/gstreamer/gst-plugins-good_0.10.13.bb +1
-1@@ -1,6 +1,6 @@ require gst-plugins.inc -PR = "r1" +PR = "${INC_PR}.1" inherit gconfrecipes/gstreamer/gst-plugins-good_0.10.14.bb +2
-0@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + inherit gconf EXTRA_OECONF += " --enable-experimental --enable-gst_v4l2 --enable-gconftool --enable-external --with-check=no"recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb +2
-1@@ -1,7 +1,8 @@ require gst-plugins.inc DEPENDS += "gst-plugins-base libsidplay" PROVIDES += "gst-plugin-sid" -PR = "r5" + +PR = "${INC_PR}.1" SRC_URI = "\ http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.bz2 \recipes/gstreamer/gst-plugins-ugly_0.10.10.bb +1
-1@@ -1,6 +1,6 @@ require gst-plugins.inc -PR = "r1" +PR = "${INC_PR}.1" DEPENDS += "gst-plugins-base mpeg2dec libsidplay"recipes/gstreamer/gst-plugins-ugly_0.10.11.bb +2
-0@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + DEPENDS += "gst-plugins-base mpeg2dec libsidplay" SRC_URI += "\recipes/gstreamer/gst-plugins.inc +3
-2@@ -3,6 +3,8 @@ DESCRIPTION = "Plugins for GStreamer" DEPENDS = "gstreamer libmikmod liboil libogg tremor libvorbis" DEPENDS += "${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad libid3tag', d)}" +INC_PR = "r5" + PACKAGES_DYNAMIC = "gst-plugin-*" SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.bz2"@@ -33,7 +35,7 @@ python populate_packages_prepend () { metapkg_rdepends = [] packages = bb.data.getVar('PACKAGES', d, 1).split() for pkg in packages[1:]: - if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.count('dev') and not pkg.count( 'locale' ): + if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-locale'): metapkg_rdepends.append(pkg) bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d) --Quoted 3 lines
1.6.3.1
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 6 lines · Koen Kooi
Quoted 3 lines · Ihar Hrachyshka
I just got that locale packages _don't_ end with 'locale'. Resending reworked patch.
*facepalm* I just realized the same *after* applying the patch. Oops...
Just fix it by yourself.
Quoted 206 lines
Quoted 190 lines
Quoted 186 lines · Ihar Hrachyshka
This fixes package name matching so that gst-plugins-*-meta packages include all the plugin ones. The current matching implementation doesn't make meta packages depend on gst-plugins with 'locale' and 'dev' in their names (f.e. gstfbdevsink). Also use
INC_PRfor gstremer-plugins as requested on ML.Signed-off-by Ihar Hrachyshka<[email protected]>---
recipes/gstreamer/gst-plugins-bad_0.10.11.bb | 2 ++ recipes/gstreamer/gst-plugins-bad_0.10.6.bb | 3 ++-recipes/gstreamer/gst-plugins-base_0.10.17.bb | 2 ++ recipes/gstreamer/gst-plugins-base_0.10.22.bb | 2 ++ recipes/gstreamer/gst-plugins-base_0.10.23.bb | 2 ++ recipes/gstreamer/gst-plugins-good_0.10.13.bb | 2 +- recipes/gstreamer/gst-plugins-good_0.10.14.bb | 2 ++recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb | 3 ++- recipes/gstreamer/gst-plugins-ugly_0.10.10.bb | 2 +- recipes/gstreamer/gst-plugins-ugly_0.10.11.bb | 2 ++ recipes/gstreamer/gst-plugins.inc | 4 +++-
11 files changed, 21 insertions(+), 5 deletions(-)recipes/gstreamer/gst-plugins-bad_0.10.11.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-bad_0.10.11.bb +2
-0+PR = "${INC_PR}.1" +SRC_URI += "file://vorbisenc.h file://vorbisdec.h \
file://ivorbis-thumb.patch;patch=1" DEPENDS += "gst-plugins-base directfb"recipes/gstreamer/gst-plugins-bad_0.10.6.bb +0
-0@@ -1,5 +1,6 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-bad_0.10.6.bb +2
-1-PR = "r2" + +PR = "${INC_PR}.1"SRC_URI += "file://vorbisenc.h file://vorbisdec.h \
file://gst-plugins-directfb-fix.patch;patch=1;pnum=2 \recipes/gstreamer/gst-plugins-base_0.10.17.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-base_0.10.17.bb +2
-0+PR = "${INC_PR}.1" +PROVIDES += "gst-plugins"
# gst-plugins-base only builds the alsa pluginrecipes/gstreamer/gst-plugins-base_0.10.22.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-base_0.10.22.bb +2
-0+PR = "${INC_PR}.1" +PROVIDES += "gst-plugins"
PR = "r2"
recipes/gstreamer/gst-plugins-base_0.10.23.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-base_0.10.23.bb +2
-0+PR = "${INC_PR}.1" +PROVIDES += "gst-plugins"
# gst-plugins-base only builds the alsa pluginrecipes/gstreamer/gst-plugins-good_0.10.13.bb +0
-0@@ -1,6 +1,6 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-good_0.10.13.bb +1
-1-PR = "r1" +PR = "${INC_PR}.1"inherit gconf
recipes/gstreamer/gst-plugins-good_0.10.14.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-good_0.10.14.bb +2
-0+PR = "${INC_PR}.1" +inherit gconf
EXTRA_OECONF += " --enable-experimental --enable-gst_v4l2 --enable-gconftool --enable-external --with-check=no"
recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb +0
-0@@ -1,7 +1,8 @@require gst-plugins.inc
DEPENDS += "gst-plugins-base libsidplay"
PROVIDES += "gst-plugin-sid"recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb +2
-1-PR = "r5" + +PR = "${INC_PR}.1"SRC_URI = "\
http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.bz2
\recipes/gstreamer/gst-plugins-ugly_0.10.10.bb +0
-0@@ -1,6 +1,6 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-ugly_0.10.10.bb +1
-1-PR = "r1" +PR = "${INC_PR}.1"DEPENDS += "gst-plugins-base mpeg2dec libsidplay"
recipes/gstreamer/gst-plugins-ugly_0.10.11.bb +0
-0@@ -1,5 +1,7 @@require gst-plugins.inc
recipes/gstreamer/gst-plugins-ugly_0.10.11.bb +2
-0+PR = "${INC_PR}.1" +DEPENDS += "gst-plugins-base mpeg2dec libsidplay"
SRC_URI += "\
recipes/gstreamer/gst-plugins.inc +0
-0@@ -3,6 +3,8 @@ DESCRIPTION = "Plugins for GStreamer"DEPENDS = "gstreamer libmikmod liboil libogg tremor libvorbis" DEPENDS += "${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad libid3tag', d)}"
recipes/gstreamer/gst-plugins.inc +2
-0+INC_PR = "r5" +PACKAGES_DYNAMIC = "gst-plugin-*"
SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.bz2"
recipes/gstreamer/gst-plugins.inc +0
-0@@ -33,7 +35,7 @@ python populate_packages_prepend () {metapkg_rdepends = []
packages =bb.data.getVar('PACKAGES', d, 1).split() for pkg in packages[1:]:
- if not pkg in blacklist and not pkg inmetapkg_rdependsand notpkg.count('dev')and notpkg.count( 'locale' ):
+ if not pkg in blacklist and not pkg inmetapkg_rdependsand notpkg.endswith('-dev')and notpkg.endswith('-locale'):
metapkg_rdepends.append(pkg) bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends),
d)
bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d) --Quoted 8 lines
Quoted 3 lines
1.6.3.1
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
PATCH 1/1 gst-plugins: fixed pattern for meta package dependencies.
In reply to Ihar HrachyshkaThis fixes package name matching so that gst-plugins-*-meta packages include all the plugin ones. The current matching implementation doesn't make meta packages depend on gst-plugins with 'locale' and 'dev' in their names (f.e. gstfbdevsink). Also use INC_PR for gstremer-plugins as requested on ML.
--- recipes/gstreamer/gst-plugins-bad_0.10.11.bb | 2 ++ recipes/gstreamer/gst-plugins-bad_0.10.6.bb | 3 ++- recipes/gstreamer/gst-plugins-base_0.10.17.bb | 2 ++ recipes/gstreamer/gst-plugins-base_0.10.22.bb | 2 ++ recipes/gstreamer/gst-plugins-base_0.10.23.bb | 2 ++ recipes/gstreamer/gst-plugins-good_0.10.13.bb | 2 +- recipes/gstreamer/gst-plugins-good_0.10.14.bb | 2 ++ recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb | 3 ++- recipes/gstreamer/gst-plugins-ugly_0.10.10.bb | 2 +- recipes/gstreamer/gst-plugins-ugly_0.10.11.bb | 2 ++ recipes/gstreamer/gst-plugins.inc | 4 +++- 11 files changed, 21 insertions(+), 5 deletions(-)
recipes/gstreamer/gst-plugins-bad_0.10.11.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + SRC_URI += "file://vorbisenc.h file://vorbisdec.h \ file://ivorbis-thumb.patch;patch=1" DEPENDS += "gst-plugins-base directfb"
recipes/gstreamer/gst-plugins-bad_0.10.6.bb +2 -1
@@ -1,5 +1,6 @@ require gst-plugins.inc -PR = "r2" + +PR = "${INC_PR}.1" SRC_URI += "file://vorbisenc.h file://vorbisdec.h \ file://gst-plugins-directfb-fix.patch;patch=1;pnum=2 \
recipes/gstreamer/gst-plugins-base_0.10.17.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + PROVIDES += "gst-plugins" # gst-plugins-base only builds the alsa plugin
recipes/gstreamer/gst-plugins-base_0.10.22.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + PROVIDES += "gst-plugins" PR = "r2"
recipes/gstreamer/gst-plugins-base_0.10.23.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + PROVIDES += "gst-plugins" # gst-plugins-base only builds the alsa plugin
recipes/gstreamer/gst-plugins-good_0.10.13.bb +1 -1
@@ -1,6 +1,6 @@ require gst-plugins.inc -PR = "r1" +PR = "${INC_PR}.1" inherit gconf
recipes/gstreamer/gst-plugins-good_0.10.14.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + inherit gconf EXTRA_OECONF += " --enable-experimental --enable-gst_v4l2 --enable-gconftool --enable-external --with-check=no"
recipes/gstreamer/gst-plugins-ugly-sid_0.10.7.bb +2 -1
@@ -1,7 +1,8 @@ require gst-plugins.inc DEPENDS += "gst-plugins-base libsidplay" PROVIDES += "gst-plugin-sid" -PR = "r5" + +PR = "${INC_PR}.1" SRC_URI = "\ http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-${PV}.tar.bz2 \
recipes/gstreamer/gst-plugins-ugly_0.10.10.bb +1 -1
@@ -1,6 +1,6 @@ require gst-plugins.inc -PR = "r1" +PR = "${INC_PR}.1" DEPENDS += "gst-plugins-base mpeg2dec libsidplay"
recipes/gstreamer/gst-plugins-ugly_0.10.11.bb +2 -0
@@ -1,5 +1,7 @@ require gst-plugins.inc +PR = "${INC_PR}.1" + DEPENDS += "gst-plugins-base mpeg2dec libsidplay" SRC_URI += "\
recipes/gstreamer/gst-plugins.inc +3 -1
@@ -3,6 +3,8 @@ DESCRIPTION = "Plugins for GStreamer" DEPENDS = "gstreamer libmikmod liboil libogg tremor libvorbis" DEPENDS += "${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad libid3tag', d)}" +INC_PR = "r5" + PACKAGES_DYNAMIC = "gst-plugin-*" SRC_URI = "http://gstreamer.freedesktop.org/src/${PN}/${PN}-${PV}.tar.bz2"
@@ -33,7 +35,7 @@ python populate_packages_prepend () { metapkg_rdepends = [] packages = bb.data.getVar('PACKAGES', d, 1).split() for pkg in packages[1:]: - if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.count('dev') and not pkg.count( 'locale' ): + if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.count('locale'): metapkg_rdepends.append(pkg) bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d)
Signature · 1 line
1.6.3.1
recipes/gstreamer/gst-plugins.inc python populate_packages_prepend () { · line 39
Quoted 6 lines
recipes/gstreamer/gst-plugins.inc +1
-1for pkg in packages[1:]: - if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.count('dev') and not pkg.count( 'locale' ): + if not pkg in blacklist and not pkg in metapkg_rdepends and not pkg.endswith('-dev') and not pkg.endswith('-locale'): metapkg_rdepends.append(pkg) bb.data.setVar('RDEPENDS_' + metapkg, ' '.join(metapkg_rdepends), d) bb.data.setVar('DESCRIPTION_' + metapkg, pn + ' meta package', d)
This kind of matching on the package name is a bit unwholesome in general. It would be better to handle these excluded packages by maintaining them in the blacklist at the point where they're actually created, rather than trying to recreate that information again after the fact.
For the -dev ones, that's easy: you can just add a hook function that operates on the local blacklist variable. For the locale things it might be slightly more complicated since that logic is in package.bbclass, but I think it should still be relatively straightforward to get it to expose a list of the locale packages that it's generated.
p.
Quoted 5 lines · Phil Blundell
This kind of matching on the package name is a bit unwholesome in general. It would be better to handle these excluded packages by maintaining them in the blacklist at the point where they're actually created, rather than trying to recreate that information again after the fact.
Or, actually, in this specific case, just maintain a positive list of the plugin packages that you _do_ want the metapackage to depend on, and make it depend on those packages alone rather than starting from ${PACKAGES} and filtering things out.
p.
Quoted 11 lines · Phil Blundell
Quoted 5 lines · Phil Blundell
This kind of matching on the package name is a bit unwholesome in general. It would be better to handle these excluded packages by maintaining them in the blacklist at the point where they're actually created, rather than trying to recreate that information again after the fact.
Or, actually, in this specific case, just maintain a positive list of the plugin packages that you _do_ want the metapackage to depend on, and make it depend on those packages alone rather than starting from ${PACKAGES} and filtering things out.
I think -meta package should depend on *all* the plugins. That's what -meta is made for. I think it's not very efficient to test every new gst-plugins-* release if there are any new or obsolete plugins there.
Quoted 10 lines
p.
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 8 lines · Ihar Hrachyshka
Quoted 7 lines · Phil Blundell
Quoted 5 lines · Phil Blundell
This kind of matching on the package name is a bit unwholesome in general. It would be better to handle these excluded packages by maintaining them in the blacklist at the point where they're actually created, rather than trying to recreate that information again after the fact.
Quoted 8 lines
Quoted 4 lines
Or, actually, in this specific case, just maintain a positive list of the plugin packages that you _do_ want the metapackage to depend on, and make it depend on those packages alone rather than starting from ${PACKAGES} and filtering things out.
I think -meta package should depend on *all* the plugins. That's what -meta is made for. I think it's not very efficient to test every new gst-plugins-* release if there are any new or obsolete plugins there.
Yes, indeed, clearly -meta should depend on all the plugins: as you say, that's exactly what it's for. The point I was making was that, rather than starting with ${PACKAGES} (i.e. all the subpackages) and trying to find suitable heuristics to take out the things that aren't plugins, you would be better off just computing a list of packages that _are_ plugins and using that directly.
p.