* [PATCH 0/7] A few core changes from mel.conf
@ 2015-08-24 22:18 Christopher Larson
2015-08-24 22:18 ` [PATCH 1/7] image.bbclass: re-run do_rootfs when feature packages change Christopher Larson
` (6 more replies)
0 siblings, 7 replies; 10+ messages in thread
From: Christopher Larson @ 2015-08-24 22:18 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
These all touch core files, so please review these carefully.
The following changes since commit c38acd720b3f6ffbeb544063692eb471dada8593:
binconfig-disabled: write an message to stderr to help confused developers (2015-08-19 17:57:58 +0100)
are available in the git repository at:
git://github.com/kergoth/openembedded-core core-changes
https://github.com/kergoth/openembedded-core/tree/core-changes
Christopher Larson (7):
image.bbclass: re-run do_rootfs when feature packages change
update-rc.d.bbclass: explicitly dep on initscripts
nativesdk.bbclass: set sbindir to bindir
bitbake.conf: add MIRROR vars to SRC_URI vardeps
bitbake.conf: unexport SHELL
bitbake.conf: set USE_NLS based on DISTRO_FEATURES
bitbake.conf: set PATCHRESOLVE to noop by default
meta/classes/image.bbclass | 2 ++
meta/classes/nativesdk.bbclass | 1 +
meta/classes/update-rc.d.bbclass | 4 +---
meta/conf/bitbake.conf | 28 +++++++++++++++++++++++++---
4 files changed, 29 insertions(+), 6 deletions(-)
--
2.2.1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/7] image.bbclass: re-run do_rootfs when feature packages change
2015-08-24 22:18 [PATCH 0/7] A few core changes from mel.conf Christopher Larson
@ 2015-08-24 22:18 ` Christopher Larson
2015-08-24 22:18 ` [PATCH 2/7] update-rc.d.bbclass: explicitly dep on initscripts Christopher Larson
` (5 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Christopher Larson @ 2015-08-24 22:18 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
Currently, FEATURE_PACKAGE_<feature> isn't in any vardeps, so changing the
packages for a feature won't change the checksum for do_rootfs. Rather than
explicitly adding those to vardeps, just use the expanded form of
FEATURE_INSTALL and FEATURE_INSTALL_OPTIONAL, so the actual list of packages
from the features goes into the checksum.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/classes/image.bbclass | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index ff2ed0d..4e66535 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -32,7 +32,9 @@ ROOTFS_BOOTSTRAP_INSTALL = "${@bb.utils.contains("IMAGE_FEATURES", "package-mana
# packages to install from features
FEATURE_INSTALL = "${@' '.join(oe.packagegroup.required_packages(oe.data.typed_value('IMAGE_FEATURES', d), d))}"
+FEATURE_INSTALL[vardepvalue] = "${FEATURE_INSTALL}"
FEATURE_INSTALL_OPTIONAL = "${@' '.join(oe.packagegroup.optional_packages(oe.data.typed_value('IMAGE_FEATURES', d), d))}"
+FEATURE_INSTALL_OPTIONAL[vardepvalue] = "${FEATURE_INSTALL_OPTIONAL}"
# Define some very basic feature package groups
FEATURE_PACKAGES_package-management = "${ROOTFS_PKGMANAGE}"
--
2.2.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/7] update-rc.d.bbclass: explicitly dep on initscripts
2015-08-24 22:18 [PATCH 0/7] A few core changes from mel.conf Christopher Larson
2015-08-24 22:18 ` [PATCH 1/7] image.bbclass: re-run do_rootfs when feature packages change Christopher Larson
@ 2015-08-24 22:18 ` Christopher Larson
2015-08-24 22:18 ` [PATCH 3/7] nativesdk.bbclass: set sbindir to bindir Christopher Larson
` (4 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Christopher Larson @ 2015-08-24 22:18 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
update-rc.d doesn't just want an initscripts package, it wants
initscripts-functions. In the case where VIRTUAL-RUNTIME_initscripts is set to
nothing, update-rc.d still needs initscripts-functions to satisfy its runtime
dependencies. Further, we shouldn't be using a *runtime* virtual in a *build
time* variable. This should resolve image creation failures with
configurations without sysv initscripts when a recipe inherits update-rc.d and
doesn't inherit systemd.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/classes/update-rc.d.bbclass | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/meta/classes/update-rc.d.bbclass b/meta/classes/update-rc.d.bbclass
index 6a08315..2a0a74a 100644
--- a/meta/classes/update-rc.d.bbclass
+++ b/meta/classes/update-rc.d.bbclass
@@ -1,8 +1,6 @@
UPDATERCPN ?= "${PN}"
-DEPENDS_append_class-target = " update-rc.d-native update-rc.d"
-VIRTUAL-RUNTIME_initscripts ?= "initscripts"
-DEPENDS_append_class-target = " ${VIRTUAL-RUNTIME_initscripts}"
+DEPENDS_append_class-target = " update-rc.d-native update-rc.d initscripts"
UPDATERCD = "update-rc.d"
UPDATERCD_class-cross = ""
UPDATERCD_class-native = ""
--
2.2.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/7] nativesdk.bbclass: set sbindir to bindir
2015-08-24 22:18 [PATCH 0/7] A few core changes from mel.conf Christopher Larson
2015-08-24 22:18 ` [PATCH 1/7] image.bbclass: re-run do_rootfs when feature packages change Christopher Larson
2015-08-24 22:18 ` [PATCH 2/7] update-rc.d.bbclass: explicitly dep on initscripts Christopher Larson
@ 2015-08-24 22:18 ` Christopher Larson
2015-08-24 22:18 ` [PATCH 4/7] bitbake.conf: add MIRROR vars to SRC_URI vardeps Christopher Larson
` (3 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Christopher Larson @ 2015-08-24 22:18 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
The sbindir vs bindir separation really doesn't mean much in this context, and
toolchain-scripts.bbclass doesn't add sbindir to the PATH, so set the former
to the latter.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/classes/nativesdk.bbclass | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/classes/nativesdk.bbclass b/meta/classes/nativesdk.bbclass
index 30bcdfe..f74da62 100644
--- a/meta/classes/nativesdk.bbclass
+++ b/meta/classes/nativesdk.bbclass
@@ -56,6 +56,7 @@ base_prefix = "${SDKPATHNATIVE}"
prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
exec_prefix = "${SDKPATHNATIVE}${prefix_nativesdk}"
baselib = "lib"
+sbindir = "${bindir}"
export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${libdir}/pkgconfig"
export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
--
2.2.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/7] bitbake.conf: add MIRROR vars to SRC_URI vardeps
2015-08-24 22:18 [PATCH 0/7] A few core changes from mel.conf Christopher Larson
` (2 preceding siblings ...)
2015-08-24 22:18 ` [PATCH 3/7] nativesdk.bbclass: set sbindir to bindir Christopher Larson
@ 2015-08-24 22:18 ` Christopher Larson
2015-08-25 8:51 ` Richard Purdie
2015-08-24 22:18 ` [PATCH 5/7] bitbake.conf: unexport SHELL Christopher Larson
` (2 subsequent siblings)
6 siblings, 1 reply; 10+ messages in thread
From: Christopher Larson @ 2015-08-24 22:18 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
Changes to what mirror we happen to fetch from shouldn't cause rebuilds.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/conf/bitbake.conf | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 21f1698..1407c5f 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -581,6 +581,23 @@ SAVANNAH_GNU_MIRROR = "http://download.savannah.gnu.org/releases"
SAVANNAH_NONGNU_MIRROR = "http://download.savannah.nongnu.org/releases"
CPAN_MIRROR = "http://search.cpan.org/CPAN"
+SRC_URI[vardeps] += "\
+ APACHE_MIRROR \
+ CPAN_MIRROR \
+ DEBIAN_MIRROR \
+ GENTOO_MIRROR \
+ GNOME_GIT \
+ GNOME_MIRROR \
+ GNU_MIRROR \
+ GPE_MIRROR \
+ KERNELORG_MIRROR \
+ SAVANNAH_GNU_MIRROR \
+ SAVANNAH_NONGNU_MIRROR \
+ SOURCEFORGE_MIRROR \
+ XLIBS_MIRROR \
+ XORG_MIRROR \
+"
+
# You can use the mirror of your country to get faster downloads by putting
# export DEBIAN_MIRROR = "ftp://ftp.de.debian.org/debian/pool"
# into your local.conf
--
2.2.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 5/7] bitbake.conf: unexport SHELL
2015-08-24 22:18 [PATCH 0/7] A few core changes from mel.conf Christopher Larson
` (3 preceding siblings ...)
2015-08-24 22:18 ` [PATCH 4/7] bitbake.conf: add MIRROR vars to SRC_URI vardeps Christopher Larson
@ 2015-08-24 22:18 ` Christopher Larson
2015-08-24 22:18 ` [PATCH 6/7] bitbake.conf: set USE_NLS based on DISTRO_FEATURES Christopher Larson
2015-08-24 22:18 ` [PATCH 7/7] bitbake.conf: set PATCHRESOLVE to noop by default Christopher Larson
6 siblings, 0 replies; 10+ messages in thread
From: Christopher Larson @ 2015-08-24 22:18 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
The user's shell shouldn't be allowed to affect the build (and it can break
the flock command and possibly more, if the user's shell isn't POSIX
compliant).
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/conf/bitbake.conf | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 1407c5f..4250ca5 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -780,6 +780,11 @@ TARGET_ARCH[unexport] = "1"
# (breaks sysvinit at least)
DISTRO[unexport] = "1"
+# Make sure SHELL isn't exported
+# (can break any number of things if the user's shell isn't POSIX-compliant,
+# including the flock command). The user's shell shouldn't affect our builds.
+SHELL[unexport] = "1"
+
# Used by canadian-cross to handle string conversions on TARGET_ARCH where needed
TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH', True).replace("_", "-")}"
--
2.2.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 6/7] bitbake.conf: set USE_NLS based on DISTRO_FEATURES
2015-08-24 22:18 [PATCH 0/7] A few core changes from mel.conf Christopher Larson
` (4 preceding siblings ...)
2015-08-24 22:18 ` [PATCH 5/7] bitbake.conf: unexport SHELL Christopher Larson
@ 2015-08-24 22:18 ` Christopher Larson
2015-08-24 22:18 ` [PATCH 7/7] bitbake.conf: set PATCHRESOLVE to noop by default Christopher Larson
6 siblings, 0 replies; 10+ messages in thread
From: Christopher Larson @ 2015-08-24 22:18 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
If our libc doesn't support locales, we don't need gettext nls bits enabled.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/conf/bitbake.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 4250ca5..0ef185d 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -114,7 +114,7 @@ TUNE_ASARGS ??= ""
TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}"
LIBCEXTENSION ??= ""
ABIEXTENSION ??= ""
-USE_NLS ??= "yes"
+USE_NLS ??= "${@bb.utils.contains('DISTRO_FEATURES', 'libc-locale-code', 'yes', 'no', d)}"
SDKUSE_NLS ??= "yes"
TARGET_ARCH = "${TUNE_ARCH}"
--
2.2.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 7/7] bitbake.conf: set PATCHRESOLVE to noop by default
2015-08-24 22:18 [PATCH 0/7] A few core changes from mel.conf Christopher Larson
` (5 preceding siblings ...)
2015-08-24 22:18 ` [PATCH 6/7] bitbake.conf: set USE_NLS based on DISTRO_FEATURES Christopher Larson
@ 2015-08-24 22:18 ` Christopher Larson
6 siblings, 0 replies; 10+ messages in thread
From: Christopher Larson @ 2015-08-24 22:18 UTC (permalink / raw)
To: openembedded-core; +Cc: Christopher Larson
From: Christopher Larson <chris_larson@mentor.com>
Automatically spawning a devshell, rather than doing so on demand, is
questionable default behavior, and is potentially problematic in headless
builds. Further, there are problems with the patch resolver today. Default to
noop, and the user can always opt-in to use of the patch resolver by setting
PATCHRESOLVE to user.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
---
meta/conf/bitbake.conf | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 0ef185d..be681cb 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -483,8 +483,8 @@ export LC_ALL = "C"
##################################################################
# Patch handling.
##################################################################
-PATCHTOOL = 'quilt'
-PATCHRESOLVE = 'user'
+PATCHTOOL = "quilt"
+PATCHRESOLVE = "noop"
##################################################################
# Build flags and options.
--
2.2.1
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 4/7] bitbake.conf: add MIRROR vars to SRC_URI vardeps
2015-08-24 22:18 ` [PATCH 4/7] bitbake.conf: add MIRROR vars to SRC_URI vardeps Christopher Larson
@ 2015-08-25 8:51 ` Richard Purdie
2015-08-25 14:24 ` Christopher Larson
0 siblings, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2015-08-25 8:51 UTC (permalink / raw)
To: Christopher Larson; +Cc: Christopher Larson, openembedded-core
On Mon, 2015-08-24 at 15:18 -0700, Christopher Larson wrote:
> From: Christopher Larson <chris_larson@mentor.com>
>
> Changes to what mirror we happen to fetch from shouldn't cause rebuilds.
>
> Signed-off-by: Christopher Larson <chris_larson@mentor.com>
> ---
> meta/conf/bitbake.conf | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 21f1698..1407c5f 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -581,6 +581,23 @@ SAVANNAH_GNU_MIRROR = "http://download.savannah.gnu.org/releases"
> SAVANNAH_NONGNU_MIRROR = "http://download.savannah.nongnu.org/releases"
> CPAN_MIRROR = "http://search.cpan.org/CPAN"
>
> +SRC_URI[vardeps] += "\
> + APACHE_MIRROR \
> + CPAN_MIRROR \
> + DEBIAN_MIRROR \
> + GENTOO_MIRROR \
> + GNOME_GIT \
> + GNOME_MIRROR \
> + GNU_MIRROR \
> + GPE_MIRROR \
> + KERNELORG_MIRROR \
> + SAVANNAH_GNU_MIRROR \
> + SAVANNAH_NONGNU_MIRROR \
> + SOURCEFORGE_MIRROR \
> + XLIBS_MIRROR \
> + XORG_MIRROR \
> +"
Do you mean vardeps here? Don't you want to exclude them?
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 4/7] bitbake.conf: add MIRROR vars to SRC_URI vardeps
2015-08-25 8:51 ` Richard Purdie
@ 2015-08-25 14:24 ` Christopher Larson
0 siblings, 0 replies; 10+ messages in thread
From: Christopher Larson @ 2015-08-25 14:24 UTC (permalink / raw)
To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 1732 bytes --]
On Tue, Aug 25, 2015 at 1:51 AM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:
> On Mon, 2015-08-24 at 15:18 -0700, Christopher Larson wrote:
> > From: Christopher Larson <chris_larson@mentor.com>
> >
> > Changes to what mirror we happen to fetch from shouldn't cause rebuilds.
> >
> > Signed-off-by: Christopher Larson <chris_larson@mentor.com>
> > ---
> > meta/conf/bitbake.conf | 17 +++++++++++++++++
> > 1 file changed, 17 insertions(+)
> >
> > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> > index 21f1698..1407c5f 100644
> > --- a/meta/conf/bitbake.conf
> > +++ b/meta/conf/bitbake.conf
> > @@ -581,6 +581,23 @@ SAVANNAH_GNU_MIRROR = "
> http://download.savannah.gnu.org/releases"
> > SAVANNAH_NONGNU_MIRROR = "http://download.savannah.nongnu.org/releases"
> > CPAN_MIRROR = "http://search.cpan.org/CPAN"
> >
> > +SRC_URI[vardeps] += "\
> > + APACHE_MIRROR \
> > + CPAN_MIRROR \
> > + DEBIAN_MIRROR \
> > + GENTOO_MIRROR \
> > + GNOME_GIT \
> > + GNOME_MIRROR \
> > + GNU_MIRROR \
> > + GPE_MIRROR \
> > + KERNELORG_MIRROR \
> > + SAVANNAH_GNU_MIRROR \
> > + SAVANNAH_NONGNU_MIRROR \
> > + SOURCEFORGE_MIRROR \
> > + XLIBS_MIRROR \
> > + XORG_MIRROR \
> > +"
>
> Do you mean vardeps here? Don't you want to exclude them?
Err, yes, that should obviously be vardepsexclude. I recreated it rather
than copying and pasting it from mel since I wanted to use a current list
of mirrors from that file, and clearly typoed/thinko'd. Thanks, will fix.
--
Christopher Larson
kergoth at gmail dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
[-- Attachment #2: Type: text/html, Size: 2757 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-08-25 14:25 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-24 22:18 [PATCH 0/7] A few core changes from mel.conf Christopher Larson
2015-08-24 22:18 ` [PATCH 1/7] image.bbclass: re-run do_rootfs when feature packages change Christopher Larson
2015-08-24 22:18 ` [PATCH 2/7] update-rc.d.bbclass: explicitly dep on initscripts Christopher Larson
2015-08-24 22:18 ` [PATCH 3/7] nativesdk.bbclass: set sbindir to bindir Christopher Larson
2015-08-24 22:18 ` [PATCH 4/7] bitbake.conf: add MIRROR vars to SRC_URI vardeps Christopher Larson
2015-08-25 8:51 ` Richard Purdie
2015-08-25 14:24 ` Christopher Larson
2015-08-24 22:18 ` [PATCH 5/7] bitbake.conf: unexport SHELL Christopher Larson
2015-08-24 22:18 ` [PATCH 6/7] bitbake.conf: set USE_NLS based on DISTRO_FEATURES Christopher Larson
2015-08-24 22:18 ` [PATCH 7/7] bitbake.conf: set PATCHRESOLVE to noop by default Christopher Larson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox