PACKAGES_DYNAMIC: use regexp not glob

* bitbake uses PACKAGES_DYNAMIC as regexp
  ^ could make matching faster (and it will be more clear that we're expecting regexp not glob)
  * made all those last '-' optional, use .* (or nothing)
* use += instead of = in most cases to keep ${PN}-locale from
  bitbake.conf:PACKAGES_DYNAMIC = "^${PN}-locale-.*"

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Martin Jansa
2012-10-12 10:13:12 +02:00
committed by Koen Kooi
parent 4cd60deb11
commit 8402b7ac0f
17 changed files with 17 additions and 17 deletions
@@ -35,7 +35,7 @@ python populate_packages_prepend() {
PACKAGES =+ "${PN}-gtk"
PACKAGES_DYNAMIC = "libcanberra-*"
PACKAGES_DYNAMIC += "^libcanberra-.*"
FILES_${PN}-gtk = "\
${sysconfdir}/gconf \
@@ -73,5 +73,5 @@ python populate_packages_prepend() {
do_split_packages(d, plugindir, '(.*)\.so$', 'lcdd-driver-%s', 'LCDd driver for %s', prepend=True)
}
PACKAGES_DYNAMIC = "lcdd-driver-*"
PACKAGES_DYNAMIC += "^lcdd-driver-.*"
@@ -20,7 +20,7 @@ EXTRA_OECONF += "--with-plugins=none"
PACKAGES =+ "${PN}-core ${PN}-lxde ${PN}-gnome"
PACKAGES_DYNAMIC += "${PN}-theme-*"
PACKAGES_DYNAMIC += "^${PN}-theme-.*"
python populate_packages_prepend() {
theme_dir = bb.data.expand('${datadir}/themes/', d)
+1 -1
View File
@@ -119,4 +119,4 @@ python populate_packages_prepend() {
allow_links=True)
}
PACKAGES_DYNAMIC = "lib(av(codec|device|filter|format|util)|postproc)*"
PACKAGES_DYNAMIC += "^lib(av(codec|device|filter|format|util)|postproc).*"
+1 -1
View File
@@ -23,7 +23,7 @@ PACKAGES =+ "libfreerdp"
LEAD_SONAME = "libfreerdp.so"
FILES_libfreerdp = "${libdir}/lib*${SOLIBS}"
PACKAGES_DYNAMIC = "libfreerdp-plugin-*"
PACKAGES_DYNAMIC += "^libfreerdp-plugin-.*"
python populate_packages_prepend () {
freerdp_root = bb.data.expand('${libdir}/freerdp', d)
@@ -249,7 +249,7 @@ pkg_prerm_${PN}-slapd () {
update-rc.d $D openldap remove
}
PACKAGES_DYNAMIC = "openldap-backends openldap-backend-*"
PACKAGES_DYNAMIC += "^openldap-backends.* ^openldap-backend-.*"
python populate_packages_prepend () {
backend_dir = bb.data.expand('${libexecdir}/openldap', d)
+1 -1
View File
@@ -56,7 +56,7 @@ RRECOMMENDS_${PN} = "${PN}-data libpurple-plugin-ssl-gnutls libpurple-protocol-i
FILES_${PN}-data = "${datadir}/pixmaps ${datadir}/sounds ${datadir}/icons"
FILES_${PN}-dev += "${libdir}/${PN}/*.la"
PACKAGES_DYNAMIC = "libpurple-protocol-* libpurple-plugin-* pidgin-plugin-* finch-plugin-*"
PACKAGES_DYNAMIC += "^libpurple-protocol-.* ^libpurple-plugin-.* ^pidgin-plugin-.* ^finch-plugin-.*"
python populate_packages_prepend () {
pidgroot = bb.data.expand('${libdir}/pidgin', d)