From d9178f91517c97da8b249186e221c73a3bee1aa3 Mon Sep 17 00:00:00 2001 From: Rene Wagner Date: Mon, 6 Mar 2006 21:11:18 +0000 Subject: glibc, package.bbclass: generate old-style binary locales at build time using qemu. based on a patch originally written by Phil Blundell. fixes hh.org Bug #1385 (localedef OOM issue). - running localedef (in qemu...) for every locale takes a while. set BINARY_LOCALE_ARCHES = "" to avoid the new behaviour. --- classes/package.bbclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'classes/package.bbclass') diff --git a/classes/package.bbclass b/classes/package.bbclass index ab1cea37c0..d32cf53828 100644 --- a/classes/package.bbclass +++ b/classes/package.bbclass @@ -68,7 +68,7 @@ python package_mapping_rename_hook () { } -def do_split_packages(d, root, file_regex, output_pattern, description, postinst=None, recursive=False, hook=None, extra_depends=None, aux_files_pattern=None, postrm=None, allow_dirs=False, prepend=False, match_path=False): +def do_split_packages(d, root, file_regex, output_pattern, description, postinst=None, recursive=False, hook=None, extra_depends=None, aux_files_pattern=None, postrm=None, allow_dirs=False, prepend=False, match_path=False, aux_files_pattern_verbatim=None): import os, os.path, bb dvar = bb.data.getVar('D', d, 1) @@ -125,6 +125,12 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst the_files.append(fp % on) else: the_files.append(aux_files_pattern % on) + if aux_files_pattern_verbatim: + if type(aux_files_pattern_verbatim) is list: + for fp in aux_files_pattern_verbatim: + the_files.append(fp % m.group(1)) + else: + the_files.append(aux_files_pattern_verbatim % m.group(1)) bb.data.setVar('FILES_' + pkg, " ".join(the_files), d) if extra_depends != '': the_depends = bb.data.getVar('RDEPENDS_' + pkg, d, 1) -- cgit v1.2.3