diff options
-rw-r--r-- | meta/classes/image.bbclass | 5 | ||||
-rw-r--r-- | meta/classes/libc-package.bbclass | 9 | ||||
-rw-r--r-- | meta/conf/bitbake.conf | 4 | ||||
-rw-r--r-- | meta/conf/distro/include/default-distrovars.inc | 13 | ||||
-rw-r--r-- | meta/conf/distro/include/tclibc-glibc.inc | 19 | ||||
-rw-r--r-- | meta/recipes-core/glib-2.0/glib.inc | 2 | ||||
-rw-r--r-- | meta/recipes-core/glibc/glibc_2.29.bb | 3 | ||||
-rw-r--r-- | meta/recipes-core/libxml/libxml2_2.9.8.bb | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/mtools/mtools_4.0.19.bb | 2 | ||||
-rw-r--r-- | meta/recipes-extended/findutils/findutils_4.6.0.bb | 2 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/shadow.inc | 2 | ||||
-rw-r--r-- | meta/recipes-extended/shadow/shadow_4.6.bb | 2 |
12 files changed, 16 insertions, 49 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 11927f39f5..276d0d31f4 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -176,11 +176,6 @@ IMAGE_LINGUAS ?= "de-de fr-fr en-gb" | |||
176 | 176 | ||
177 | LINGUAS_INSTALL ?= "${@" ".join(map(lambda s: "locale-base-%s" % s, d.getVar('IMAGE_LINGUAS').split()))}" | 177 | LINGUAS_INSTALL ?= "${@" ".join(map(lambda s: "locale-base-%s" % s, d.getVar('IMAGE_LINGUAS').split()))}" |
178 | 178 | ||
179 | python () { | ||
180 | if not bb.utils.contains('DISTRO_FEATURES', 'libc-charsets libc-locale-code libc-locales', True, False, d): | ||
181 | d.setVar('IMAGE_LINGUAS', '') | ||
182 | } | ||
183 | |||
184 | # Prefer image, but use the fallback files for lookups if the image ones | 179 | # Prefer image, but use the fallback files for lookups if the image ones |
185 | # aren't yet available. | 180 | # aren't yet available. |
186 | PSEUDO_PASSWD = "${IMAGE_ROOTFS}:${STAGING_DIR_NATIVE}" | 181 | PSEUDO_PASSWD = "${IMAGE_ROOTFS}:${STAGING_DIR_NATIVE}" |
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 34c9151ae9..8859dad566 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass | |||
@@ -37,14 +37,11 @@ python __anonymous () { | |||
37 | d.setVar("DEPENDS", depends) | 37 | d.setVar("DEPENDS", depends) |
38 | d.setVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", "compile") | 38 | d.setVar("GLIBC_INTERNAL_USE_BINARY_LOCALE", "compile") |
39 | break | 39 | break |
40 | |||
41 | # try to fix disable charsets/locales/locale-code compile fail | ||
42 | if bb.utils.contains('DISTRO_FEATURES', 'libc-charsets libc-locales libc-locale-code', True, False, d): | ||
43 | d.setVar('PACKAGE_NO_GCONV', '0') | ||
44 | else: | ||
45 | d.setVar('PACKAGE_NO_GCONV', '1') | ||
46 | } | 40 | } |
47 | 41 | ||
42 | # try to fix disable charsets/locales/locale-code compile fail | ||
43 | PACKAGE_NO_GCONV ?= "0" | ||
44 | |||
48 | OVERRIDES_append = ":${TARGET_ARCH}-${TARGET_OS}" | 45 | OVERRIDES_append = ":${TARGET_ARCH}-${TARGET_OS}" |
49 | 46 | ||
50 | locale_base_postinst_ontarget() { | 47 | locale_base_postinst_ontarget() { |
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 435646a946..1c5369ec98 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -123,7 +123,7 @@ TUNE_ASARGS ??= "" | |||
123 | TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}" | 123 | TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}" |
124 | LIBCEXTENSION ??= "" | 124 | LIBCEXTENSION ??= "" |
125 | ABIEXTENSION ??= "" | 125 | ABIEXTENSION ??= "" |
126 | USE_NLS ??= "${@bb.utils.contains('DISTRO_FEATURES', 'libc-locale-code', 'yes', 'no', d)}" | 126 | USE_NLS ??= "yes" |
127 | SDKUSE_NLS ??= "yes" | 127 | SDKUSE_NLS ??= "yes" |
128 | 128 | ||
129 | TARGET_ARCH = "${TUNE_ARCH}" | 129 | TARGET_ARCH = "${TUNE_ARCH}" |
@@ -820,7 +820,7 @@ IMAGE_FEATURES += "${EXTRA_IMAGE_FEATURES}" | |||
820 | # Native distro features (will always be used for -native, even if they | 820 | # Native distro features (will always be used for -native, even if they |
821 | # are not enabled for target) | 821 | # are not enabled for target) |
822 | DISTRO_FEATURES_NATIVE ?= "x11 ipv6 xattr" | 822 | DISTRO_FEATURES_NATIVE ?= "x11 ipv6 xattr" |
823 | DISTRO_FEATURES_NATIVESDK ?= "x11 libc-charsets libc-locales libc-locale-code" | 823 | DISTRO_FEATURES_NATIVESDK ?= "x11" |
824 | 824 | ||
825 | # Normally target distro features will not be applied to native builds: | 825 | # Normally target distro features will not be applied to native builds: |
826 | # Native distro features on this list will use the target feature value | 826 | # Native distro features on this list will use the target feature value |
diff --git a/meta/conf/distro/include/default-distrovars.inc b/meta/conf/distro/include/default-distrovars.inc index 76edff6480..7a0baf3260 100644 --- a/meta/conf/distro/include/default-distrovars.inc +++ b/meta/conf/distro/include/default-distrovars.inc | |||
@@ -10,17 +10,8 @@ LOCALE_UTF8_ONLY ?= "0" | |||
10 | LOCALE_UTF8_IS_DEFAULT ?= "1" | 10 | LOCALE_UTF8_IS_DEFAULT ?= "1" |
11 | LOCALE_UTF8_IS_DEFAULT_class-nativesdk = "0" | 11 | LOCALE_UTF8_IS_DEFAULT_class-nativesdk = "0" |
12 | 12 | ||
13 | DISTRO_FEATURES_DEFAULT ?= "acl alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11" | 13 | DISTRO_FEATURES_DEFAULT ?= "acl alsa argp bluetooth ext2 ipv4 ipv6 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc x11" |
14 | DISTRO_FEATURES_LIBC_DEFAULT ?= "ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc-cxx-tests libc-catgets libc-charsets libc-crypt \ | 14 | DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT}" |
15 | libc-crypt-ufc libc-db-aliases libc-envz libc-fcvt libc-fmtmsg libc-fstab libc-ftraverse \ | ||
16 | libc-getlogin libc-idn libc-inet-anl libc-libm libc-locales libc-locale-code \ | ||
17 | libc-memusage libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams \ | ||
18 | libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc \ | ||
19 | libc-posix-wchar-io" | ||
20 | DISTRO_FEATURES_LIBC ?= "${DISTRO_FEATURES_LIBC_DEFAULT}" | ||
21 | DISTRO_FEATURES_LIBC_class-nativesdk = "${DISTRO_FEATURES_LIBC_DEFAULT}" | ||
22 | DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}" | ||
23 | |||
24 | IMAGE_FEATURES ?= "" | 15 | IMAGE_FEATURES ?= "" |
25 | 16 | ||
26 | WHITELIST_GPL-3.0 ?= "" | 17 | WHITELIST_GPL-3.0 ?= "" |
diff --git a/meta/conf/distro/include/tclibc-glibc.inc b/meta/conf/distro/include/tclibc-glibc.inc index abe619aaac..3246490997 100644 --- a/meta/conf/distro/include/tclibc-glibc.inc +++ b/meta/conf/distro/include/tclibc-glibc.inc | |||
@@ -22,17 +22,8 @@ LIBC_DEPENDENCIES = "libsegfault \ | |||
22 | glibc-dev \ | 22 | glibc-dev \ |
23 | glibc-utils \ | 23 | glibc-utils \ |
24 | glibc-thread-db \ | 24 | glibc-thread-db \ |
25 | ${@get_libc_locales_dependencies(d)}" | 25 | glibc-localedata-i18n \ |
26 | 26 | glibc-gconv-ibm850 \ | |
27 | LIBC_LOCALE_DEPENDENCIES = "\ | 27 | glibc-gconv-cp1252 \ |
28 | glibc-localedata-i18n \ | 28 | glibc-gconv-iso8859-1 \ |
29 | glibc-gconv-ibm850 \ | 29 | glibc-gconv-iso8859-15" |
30 | glibc-gconv-cp1252 \ | ||
31 | glibc-gconv-iso8859-1 \ | ||
32 | glibc-gconv-iso8859-15" | ||
33 | |||
34 | def get_libc_locales_dependencies(d): | ||
35 | if bb.utils.contains('DISTRO_FEATURES', 'libc-charsets libc-locale-code libc-locales', True, False, d): | ||
36 | return d.getVar('LIBC_LOCALE_DEPENDENCIES') or '' | ||
37 | else: | ||
38 | return '' | ||
diff --git a/meta/recipes-core/glib-2.0/glib.inc b/meta/recipes-core/glib-2.0/glib.inc index 6305f553b4..3c2440db0e 100644 --- a/meta/recipes-core/glib-2.0/glib.inc +++ b/meta/recipes-core/glib-2.0/glib.inc | |||
@@ -41,8 +41,6 @@ EXTRA_OEMESON_append_class-target = " ${@bb.utils.contains('GTKDOC_ENABLED', 'Tr | |||
41 | # meson's python configuration pokes into python3 configuration, so this provides the native config to it. | 41 | # meson's python configuration pokes into python3 configuration, so this provides the native config to it. |
42 | unset _PYTHON_SYSCONFIGDATA_NAME | 42 | unset _PYTHON_SYSCONFIGDATA_NAME |
43 | 43 | ||
44 | REQUIRED_DISTRO_FEATURES_libc-glibc = "${@'libc-charsets libc-locale-code libc-locales' if bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d) else ''}" | ||
45 | |||
46 | S = "${WORKDIR}/glib-${PV}" | 44 | S = "${WORKDIR}/glib-${PV}" |
47 | 45 | ||
48 | PACKAGECONFIG ??= "system-pcre libmount" | 46 | PACKAGECONFIG ??= "system-pcre libmount" |
diff --git a/meta/recipes-core/glibc/glibc_2.29.bb b/meta/recipes-core/glibc/glibc_2.29.bb index beddbffee2..bd8aa6d503 100644 --- a/meta/recipes-core/glibc/glibc_2.29.bb +++ b/meta/recipes-core/glibc/glibc_2.29.bb | |||
@@ -89,12 +89,11 @@ EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ | |||
89 | --enable-stackguard-randomization \ | 89 | --enable-stackguard-randomization \ |
90 | --disable-crypt \ | 90 | --disable-crypt \ |
91 | --with-default-link \ | 91 | --with-default-link \ |
92 | --enable-nscd \ | ||
92 | ${GLIBCPIE} \ | 93 | ${GLIBCPIE} \ |
93 | ${GLIBC_EXTRA_OECONF}" | 94 | ${GLIBC_EXTRA_OECONF}" |
94 | 95 | ||
95 | EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}" | 96 | EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}" |
96 | EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'libc-inet-anl', '--enable-nscd', '--disable-nscd', d)}" | ||
97 | |||
98 | 97 | ||
99 | do_patch_append() { | 98 | do_patch_append() { |
100 | bb.build.exec_func('do_fix_readlib_c', d) | 99 | bb.build.exec_func('do_fix_readlib_c', d) |
diff --git a/meta/recipes-core/libxml/libxml2_2.9.8.bb b/meta/recipes-core/libxml/libxml2_2.9.8.bb index 0e2461154b..62643bc764 100644 --- a/meta/recipes-core/libxml/libxml2_2.9.8.bb +++ b/meta/recipes-core/libxml/libxml2_2.9.8.bb | |||
@@ -42,8 +42,6 @@ inherit autotools pkgconfig binconfig-disabled ptest distro_features_check | |||
42 | 42 | ||
43 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3native', '', d)} | 43 | inherit ${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3native', '', d)} |
44 | 44 | ||
45 | REQUIRED_DISTRO_FEATURES_libc-glibc = "${@'libc-charsets libc-locale-code libc-locales' if bb.utils.contains('DISTRO_FEATURES', 'ptest', True, False, d) else ''}" | ||
46 | |||
47 | RDEPENDS_${PN}-ptest += "make ${@bb.utils.contains('PACKAGECONFIG', 'python', 'libgcc python3-core python3-logging python3-shell python3-stringold python3-threading python3-unittest ${PN}-python', '', d)}" | 45 | RDEPENDS_${PN}-ptest += "make ${@bb.utils.contains('PACKAGECONFIG', 'python', 'libgcc python3-core python3-logging python3-shell python3-stringold python3-threading python3-unittest ${PN}-python', '', d)}" |
48 | 46 | ||
49 | RDEPENDS_${PN}-python += "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3-core', '', d)}" | 47 | RDEPENDS_${PN}-python += "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3-core', '', d)}" |
diff --git a/meta/recipes-devtools/mtools/mtools_4.0.19.bb b/meta/recipes-devtools/mtools/mtools_4.0.19.bb index 9972762b4e..7d59d93a81 100644 --- a/meta/recipes-devtools/mtools/mtools_4.0.19.bb +++ b/meta/recipes-devtools/mtools/mtools_4.0.19.bb | |||
@@ -39,8 +39,6 @@ SRC_URI_append_class-native = " file://disable-hardcoded-configs.patch" | |||
39 | 39 | ||
40 | inherit autotools texinfo distro_features_check | 40 | inherit autotools texinfo distro_features_check |
41 | 41 | ||
42 | REQUIRED_DISTRO_FEATURES_libc-glibc = "libc-charsets libc-locale-code libc-locales" | ||
43 | |||
44 | EXTRA_OECONF = "--without-x" | 42 | EXTRA_OECONF = "--without-x" |
45 | 43 | ||
46 | BBCLASSEXTEND = "native nativesdk" | 44 | BBCLASSEXTEND = "native nativesdk" |
diff --git a/meta/recipes-extended/findutils/findutils_4.6.0.bb b/meta/recipes-extended/findutils/findutils_4.6.0.bb index 5e4ca94868..3b62ed9962 100644 --- a/meta/recipes-extended/findutils/findutils_4.6.0.bb +++ b/meta/recipes-extended/findutils/findutils_4.6.0.bb | |||
@@ -16,6 +16,6 @@ SRC_URI[md5sum] = "9936aa8009438ce185bea2694a997fc1" | |||
16 | SRC_URI[sha256sum] = "ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d" | 16 | SRC_URI[sha256sum] = "ded4c9f73731cd48fec3b6bdaccce896473b6d8e337e9612e16cf1431bb1169d" |
17 | 17 | ||
18 | # http://savannah.gnu.org/bugs/?27299 | 18 | # http://savannah.gnu.org/bugs/?27299 |
19 | CACHED_CONFIGUREVARS += "${@bb.utils.contains('DISTRO_FEATURES', 'libc-posix-clang-wchar', 'gl_cv_func_wcwidth_works=yes', '', d)}" | 19 | CACHED_CONFIGUREVARS += "gl_cv_func_wcwidth_works=yes" |
20 | 20 | ||
21 | EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort" | 21 | EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort" |
diff --git a/meta/recipes-extended/shadow/shadow.inc b/meta/recipes-extended/shadow/shadow.inc index 09c37ef8a3..2b20bdcb25 100644 --- a/meta/recipes-extended/shadow/shadow.inc +++ b/meta/recipes-extended/shadow/shadow.inc | |||
@@ -57,7 +57,7 @@ EXTRA_OECONF += "--without-audit \ | |||
57 | NSCDOPT = "" | 57 | NSCDOPT = "" |
58 | NSCDOPT_class-native = "--without-nscd" | 58 | NSCDOPT_class-native = "--without-nscd" |
59 | NSCDOPT_class-nativesdk = "--without-nscd" | 59 | NSCDOPT_class-nativesdk = "--without-nscd" |
60 | NSCDOPT_libc-glibc = "${@bb.utils.contains('DISTRO_FEATURES', 'libc-spawn', '--with-nscd', '--without-nscd', d)}" | 60 | NSCDOPT_libc-glibc = "--with-nscd" |
61 | 61 | ||
62 | PAM_PLUGINS = "libpam-runtime \ | 62 | PAM_PLUGINS = "libpam-runtime \ |
63 | pam-plugin-faildelay \ | 63 | pam-plugin-faildelay \ |
diff --git a/meta/recipes-extended/shadow/shadow_4.6.bb b/meta/recipes-extended/shadow/shadow_4.6.bb index 5675cb8cc9..c975395ff8 100644 --- a/meta/recipes-extended/shadow/shadow_4.6.bb +++ b/meta/recipes-extended/shadow/shadow_4.6.bb | |||
@@ -2,7 +2,7 @@ require shadow.inc | |||
2 | 2 | ||
3 | # Build falsely assumes that if --enable-libpam is set, we don't need to link against | 3 | # Build falsely assumes that if --enable-libpam is set, we don't need to link against |
4 | # libcrypt. This breaks chsh. | 4 | # libcrypt. This breaks chsh. |
5 | BUILD_LDFLAGS_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', bb.utils.contains('DISTRO_FEATURES', 'libc-crypt', '-lcrypt', '', d), '', d)}" | 5 | BUILD_LDFLAGS_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '-lcrypt', '', d)}" |
6 | 6 | ||
7 | BBCLASSEXTEND = "native nativesdk" | 7 | BBCLASSEXTEND = "native nativesdk" |
8 | 8 | ||