diff options
author | Phil Blundell <philb@gnu.org> | 2004-07-09 14:24:29 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2004-07-09 14:24:29 +0000 |
commit | a42b4820c7ed49d5b806499f161aa8080466d693 (patch) | |
tree | 5bce3f15aa45e8d5646472cd077ef49302afae32 /glibc | |
parent | 9b9cbfa3f627409a0c77e10b0c944c88fd45157b (diff) |
fix up virtual-locale Provides.
generate SUPPORTED during do_install to avoid make spew going to terminal
BKrev: 40eeaa9dn12maCVWLDD9oPng6J6CeA
Diffstat (limited to 'glibc')
-rw-r--r-- | glibc/glibc_cvs.oe | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/glibc/glibc_cvs.oe b/glibc/glibc_cvs.oe index 7ed6e9ce2b..deaa2da34d 100644 --- a/glibc/glibc_cvs.oe +++ b/glibc/glibc_cvs.oe @@ -205,6 +205,7 @@ do_install() { install -m 0644 ${S}/sunrpc/rpcsvc/$h ${D}/${includedir}/rpcsvc/ done install -m 0644 ${WORKDIR}/etc/ld.so.conf ${D}/${sysconfdir}/ + make -f ${WORKDIR}/generate-supported.mk IN="${S}/localedata/SUPPORTED" OUT="${WORKDIR}/SUPPORTED" } locale_base_postinst() { @@ -249,7 +250,6 @@ python package_do_split_gconvs () { oe.data.setVar('PACKAGES', oe.data.getVar('PACKAGES', d) + ' glibc-gconv', d) - os.system(oe.data.expand("make -f ${WORKDIR}/generate-supported.mk IN=\"${S}/localedata/SUPPORTED\" OUT=\"${WORKDIR}/SUPPORTED\"", d)) f = open(os.path.join(oe.data.getVar('WORKDIR', d, 1), "SUPPORTED"), "r") supported = f.readlines() f.close() @@ -272,7 +272,11 @@ python package_do_split_gconvs () { pkgname = 'locale-base-' + legitimize_package_name(name) oe.data.setVar('RDEPENDS_%s' % pkgname, 'localedef glibc-localedata-%s glibc-charmap-%s' % (legitimize_package_name(locale), legitimize_package_name(encoding)), d) - oe.data.setVar('RPROVIDES_%s' % pkgname, 'virtual-locale-%s' % name) + rprovides = 'virtual-locale-%s' % legitimize_package_name(name) + m = re.match("(.*)_(.*)", name) + if m: + rprovides += ' virtual-locale-%s' % m.group(1) + oe.data.setVar('RPROVIDES_%s' % pkgname, rprovides, d) oe.data.setVar('PACKAGES', '%s %s' % (pkgname, oe.data.getVar('PACKAGES', d, 1)), d) oe.data.setVar('ALLOW_EMPTY_%s' % pkgname, '1', d) oe.data.setVar('pkg_postinst_%s' % pkgname, oe.data.getVar('locale_base_postinst', d, 1) % (locale, encoding), d) |