* [warrior][PATCH 1/8] meson.bbclass: Remove the MESON_*_ARGS variables
2019-10-16 16:30 [warrior][PATCH 0/8] Backport relevant changes from Zeus Peter Kjellerstedt
@ 2019-10-16 16:30 ` Peter Kjellerstedt
2019-10-16 20:24 ` akuster808
2019-10-16 16:30 ` [warrior][PATCH 2/8] nativesdk-meson: Remove some unused variables Peter Kjellerstedt
` (8 subsequent siblings)
9 siblings, 1 reply; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-10-16 16:30 UTC (permalink / raw)
To: openembedded-core
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
The options in ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} are already passed
via ${CC}/${CXX} and there is no reason to pass them a second time. Thus
we can remove MESON_TOOLCHAIN_ARGS. And when it is removed, the other
MESON_*_ARGS variables revert to the standard CFLAGS, CXXFLAGS and
LDFLAGS, so just use them directly instead.
Apart from the obvious improvement with not passing a lot of options
twice, this also solves a problem where -pie would be passed on the
command line in a way that it would prevent building any dynamic
libraries using meson if using a toolchain that is not built with
--enable-default-pie and if security_flags.inc is used.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/classes/meson.bbclass | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
index 115d1aedcb..5c0139f02a 100644
--- a/meta/classes/meson.bbclass
+++ b/meta/classes/meson.bbclass
@@ -30,11 +30,6 @@ MESONOPTS = " --prefix ${prefix} \
-Dcpp_args='${BUILD_CPPFLAGS} ${BUILD_CXXFLAGS}' \
-Dcpp_link_args='${BUILD_LDFLAGS}'"
-MESON_TOOLCHAIN_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
-MESON_C_ARGS = "${MESON_TOOLCHAIN_ARGS} ${CFLAGS}"
-MESON_CPP_ARGS = "${MESON_TOOLCHAIN_ARGS} ${CXXFLAGS}"
-MESON_LINK_ARGS = "${MESON_TOOLCHAIN_ARGS} ${LDFLAGS}"
-
EXTRA_OEMESON_append = " ${PACKAGECONFIG_CONFARGS}"
MESON_CROSS_FILE = ""
@@ -76,7 +71,7 @@ def meson_endian(prefix, d):
bb.fatal("Cannot determine endianism for %s-%s" % (arch, os))
addtask write_config before do_configure
-do_write_config[vardeps] += "MESON_C_ARGS MESON_CPP_ARGS MESON_LINK_ARGS CC CXX LD AR NM STRIP READELF"
+do_write_config[vardeps] += "CC CXX LD AR NM STRIP READELF CFLAGS CXXFLAGS LDFLAGS"
do_write_config() {
# This needs to be Py to split the args into single-element lists
cat >${WORKDIR}/meson.cross <<EOF
@@ -93,10 +88,10 @@ llvm-config = 'llvm-config8.0.0'
[properties]
needs_exe_wrapper = true
-c_args = ${@meson_array('MESON_C_ARGS', d)}
-c_link_args = ${@meson_array('MESON_LINK_ARGS', d)}
-cpp_args = ${@meson_array('MESON_CPP_ARGS', d)}
-cpp_link_args = ${@meson_array('MESON_LINK_ARGS', d)}
+c_args = ${@meson_array('CFLAGS', d)}
+c_link_args = ${@meson_array('LDFLAGS', d)}
+cpp_args = ${@meson_array('CXXFLAGS', d)}
+cpp_link_args = ${@meson_array('LDFLAGS', d)}
gtkdoc_exe_wrapper = '${B}/gtkdoc-qemuwrapper'
[host_machine]
--
2.21.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [warrior][PATCH 1/8] meson.bbclass: Remove the MESON_*_ARGS variables
2019-10-16 16:30 ` [warrior][PATCH 1/8] meson.bbclass: Remove the MESON_*_ARGS variables Peter Kjellerstedt
@ 2019-10-16 20:24 ` akuster808
0 siblings, 0 replies; 16+ messages in thread
From: akuster808 @ 2019-10-16 20:24 UTC (permalink / raw)
To: Peter Kjellerstedt, openembedded-core
On 10/16/19 9:30 AM, Peter Kjellerstedt wrote:
> From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
>
> The options in ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} are already passed
> via ${CC}/${CXX} and there is no reason to pass them a second time. Thus
> we can remove MESON_TOOLCHAIN_ARGS. And when it is removed, the other
> MESON_*_ARGS variables revert to the standard CFLAGS, CXXFLAGS and
> LDFLAGS, so just use them directly instead.
the above is not a reason to backport to warrior
> Apart from the obvious improvement with not passing a lot of options
> twice, this also solves a problem where -pie would be passed on the
> command line in a way that it would prevent building any dynamic
> libraries using meson if using a toolchain that is not built with
> --enable-default-pie and if security_flags.inc is used.
but this is.
- armin
>
> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
> meta/classes/meson.bbclass | 15 +++++----------
> 1 file changed, 5 insertions(+), 10 deletions(-)
>
> diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
> index 115d1aedcb..5c0139f02a 100644
> --- a/meta/classes/meson.bbclass
> +++ b/meta/classes/meson.bbclass
> @@ -30,11 +30,6 @@ MESONOPTS = " --prefix ${prefix} \
> -Dcpp_args='${BUILD_CPPFLAGS} ${BUILD_CXXFLAGS}' \
> -Dcpp_link_args='${BUILD_LDFLAGS}'"
>
> -MESON_TOOLCHAIN_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
> -MESON_C_ARGS = "${MESON_TOOLCHAIN_ARGS} ${CFLAGS}"
> -MESON_CPP_ARGS = "${MESON_TOOLCHAIN_ARGS} ${CXXFLAGS}"
> -MESON_LINK_ARGS = "${MESON_TOOLCHAIN_ARGS} ${LDFLAGS}"
> -
> EXTRA_OEMESON_append = " ${PACKAGECONFIG_CONFARGS}"
>
> MESON_CROSS_FILE = ""
> @@ -76,7 +71,7 @@ def meson_endian(prefix, d):
> bb.fatal("Cannot determine endianism for %s-%s" % (arch, os))
>
> addtask write_config before do_configure
> -do_write_config[vardeps] += "MESON_C_ARGS MESON_CPP_ARGS MESON_LINK_ARGS CC CXX LD AR NM STRIP READELF"
> +do_write_config[vardeps] += "CC CXX LD AR NM STRIP READELF CFLAGS CXXFLAGS LDFLAGS"
> do_write_config() {
> # This needs to be Py to split the args into single-element lists
> cat >${WORKDIR}/meson.cross <<EOF
> @@ -93,10 +88,10 @@ llvm-config = 'llvm-config8.0.0'
>
> [properties]
> needs_exe_wrapper = true
> -c_args = ${@meson_array('MESON_C_ARGS', d)}
> -c_link_args = ${@meson_array('MESON_LINK_ARGS', d)}
> -cpp_args = ${@meson_array('MESON_CPP_ARGS', d)}
> -cpp_link_args = ${@meson_array('MESON_LINK_ARGS', d)}
> +c_args = ${@meson_array('CFLAGS', d)}
> +c_link_args = ${@meson_array('LDFLAGS', d)}
> +cpp_args = ${@meson_array('CXXFLAGS', d)}
> +cpp_link_args = ${@meson_array('LDFLAGS', d)}
> gtkdoc_exe_wrapper = '${B}/gtkdoc-qemuwrapper'
>
> [host_machine]
^ permalink raw reply [flat|nested] 16+ messages in thread
* [warrior][PATCH 2/8] nativesdk-meson: Remove some unused variables
2019-10-16 16:30 [warrior][PATCH 0/8] Backport relevant changes from Zeus Peter Kjellerstedt
2019-10-16 16:30 ` [warrior][PATCH 1/8] meson.bbclass: Remove the MESON_*_ARGS variables Peter Kjellerstedt
@ 2019-10-16 16:30 ` Peter Kjellerstedt
2019-10-16 16:30 ` [warrior][PATCH 3/8] devtool: Avoid failure for recipes with S == WORKDIR and no local files Peter Kjellerstedt
` (7 subsequent siblings)
9 siblings, 0 replies; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-10-16 16:30 UTC (permalink / raw)
To: openembedded-core
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/recipes-devtools/meson/nativesdk-meson_0.49.2.bb | 5 -----
1 file changed, 5 deletions(-)
diff --git a/meta/recipes-devtools/meson/nativesdk-meson_0.49.2.bb b/meta/recipes-devtools/meson/nativesdk-meson_0.49.2.bb
index 1549357a55..1756f342ce 100644
--- a/meta/recipes-devtools/meson/nativesdk-meson_0.49.2.bb
+++ b/meta/recipes-devtools/meson/nativesdk-meson_0.49.2.bb
@@ -16,11 +16,6 @@ def meson_endian(prefix, d):
else:
bb.fatal("Cannot determine endianism for %s-%s" % (arch, os))
-MESON_TOOLCHAIN_ARGS = "${BUILDSDK_CC_ARCH}${TOOLCHAIN_OPTIONS}"
-MESON_C_ARGS = "${MESON_TOOLCHAIN_ARGS} ${BUILDSDK_CFLAGS}"
-MESON_CPP_ARGS = "${MESON_TOOLCHAIN_ARGS} ${BUILDSDK_CXXFLAGS}"
-MESON_LINK_ARGS = "${MESON_TOOLCHAIN_ARGS} ${BUILDSDK_LDFLAGS}"
-
# The cross file logic is similar but not identical to that in meson.bbclass,
# since it's generating for an SDK rather than a cross-compile. Important
# differences are:
--
2.21.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* [warrior][PATCH 3/8] devtool: Avoid failure for recipes with S == WORKDIR and no local files
2019-10-16 16:30 [warrior][PATCH 0/8] Backport relevant changes from Zeus Peter Kjellerstedt
2019-10-16 16:30 ` [warrior][PATCH 1/8] meson.bbclass: Remove the MESON_*_ARGS variables Peter Kjellerstedt
2019-10-16 16:30 ` [warrior][PATCH 2/8] nativesdk-meson: Remove some unused variables Peter Kjellerstedt
@ 2019-10-16 16:30 ` Peter Kjellerstedt
2019-10-16 16:30 ` [warrior][PATCH 4/8] package_rpm.bbclass: Remove a misleading bb.note() Peter Kjellerstedt
` (6 subsequent siblings)
9 siblings, 0 replies; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-10-16 16:30 UTC (permalink / raw)
To: openembedded-core
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
When extracting the sources for a recipe that has S == WORKDIR and no
local files in the SRC_URI (which, e.g., can happen for a recipe with
a URI that has the unpack=false attribute), the extraction fails with
the following backtrace:
Traceback (most recent call last):
File ".../scripts/devtool", line 344, in <module>
ret = main()
File ".../scripts/devtool", line 331, in main
ret = args.func(args, config, basepath, workspace)
File ".../poky/scripts/lib/devtool/standard.py", line 762, in
modify
initial_rev, _ = _extract_source(srctree, args.keep_temp,
args.branch, False, config, basepath, workspace,
args.fixed_setup, rd, tinfoil, no_overrides=args.no_overrides)
File ".../poky/scripts/lib/devtool/standard.py", line 647, in
_extract_source
bb.process.run('git %s commit -a -m "Committing local file
symlinks\n\n%s"' % (' '.join(useroptions),
oe.patch.GitApplyTree.ignore_commit_prefix), cwd=srctree)
File ".../poky/bitbake/lib/bb/process.py", line 178, in run
raise ExecutionError(cmd, pipe.returncode, stdout, stderr)
bb.process.ExecutionError: Execution of 'git commit -a -m
"Committing local file symlinks
%% ignore"' failed with exit code 1:
On branch devtool
nothing to commit, working tree clean
This is because no files were found in the oe-local-files directory
and consequently no symbolic links were added using `git add`, but the
`git commit` command was still executed.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
scripts/lib/devtool/standard.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index aca74b1fc6..dcb6bf9540 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -637,9 +637,9 @@ def _extract_source(srctree, keep_temp, devbranch, sync, config, basepath, works
addfiles.append(os.path.join(relpth, fn))
if addfiles:
bb.process.run('git add %s' % ' '.join(addfiles), cwd=srctree)
- useroptions = []
- oe.patch.GitApplyTree.gitCommandUserOptions(useroptions, d=d)
- bb.process.run('git %s commit -a -m "Committing local file symlinks\n\n%s"' % (' '.join(useroptions), oe.patch.GitApplyTree.ignore_commit_prefix), cwd=srctree)
+ useroptions = []
+ oe.patch.GitApplyTree.gitCommandUserOptions(useroptions, d=d)
+ bb.process.run('git %s commit -m "Committing local file symlinks\n\n%s"' % (' '.join(useroptions), oe.patch.GitApplyTree.ignore_commit_prefix), cwd=srctree)
if is_kernel_yocto:
logger.info('Copying kernel config to srctree')
--
2.21.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* [warrior][PATCH 4/8] package_rpm.bbclass: Remove a misleading bb.note()
2019-10-16 16:30 [warrior][PATCH 0/8] Backport relevant changes from Zeus Peter Kjellerstedt
` (2 preceding siblings ...)
2019-10-16 16:30 ` [warrior][PATCH 3/8] devtool: Avoid failure for recipes with S == WORKDIR and no local files Peter Kjellerstedt
@ 2019-10-16 16:30 ` Peter Kjellerstedt
2019-10-16 16:30 ` [warrior][PATCH 5/8] tzdata: Correct the packaging of /etc/localtime and /etc/timezone Peter Kjellerstedt
` (5 subsequent siblings)
9 siblings, 0 replies; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-10-16 16:30 UTC (permalink / raw)
To: openembedded-core
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
It should have been removed in 3db9d865 (classes/package_rpm.bbclass:
Enhance diagnostic messages) when it was split in two new notes.
Also change the casing of two other notes to align them with the other
notes.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/classes/package_rpm.bbclass | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 1a64cb271a..b1b13e2a5a 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -409,7 +409,6 @@ python write_specfile () {
if not file_list and localdata.getVar('ALLOW_EMPTY', False) != "1":
bb.note("Not creating empty RPM package for %s" % splitname)
else:
- bb.note("Creating RPM package for %s" % splitname)
spec_files_top.append('%files')
if extra_pkgdata:
package_rpm_extra_pkgdata(splitname, spec_files_top, localdata)
@@ -418,7 +417,7 @@ python write_specfile () {
bb.note("Creating RPM package for %s" % splitname)
spec_files_top.extend(file_list)
else:
- bb.note("Creating EMPTY RPM Package for %s" % splitname)
+ bb.note("Creating empty RPM package for %s" % splitname)
spec_files_top.append('')
continue
@@ -510,7 +509,7 @@ python write_specfile () {
bb.note("Creating RPM package for %s" % splitname)
spec_files_bottom.extend(file_list)
else:
- bb.note("Creating EMPTY RPM Package for %s" % splitname)
+ bb.note("Creating empty RPM package for %s" % splitname)
spec_files_bottom.append('')
del localdata
--
2.21.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* [warrior][PATCH 5/8] tzdata: Correct the packaging of /etc/localtime and /etc/timezone
2019-10-16 16:30 [warrior][PATCH 0/8] Backport relevant changes from Zeus Peter Kjellerstedt
` (3 preceding siblings ...)
2019-10-16 16:30 ` [warrior][PATCH 4/8] package_rpm.bbclass: Remove a misleading bb.note() Peter Kjellerstedt
@ 2019-10-16 16:30 ` Peter Kjellerstedt
2019-10-16 16:30 ` [warrior][PATCH 6/8] devtool: finish: Keep patches ordered when updating bbappend Peter Kjellerstedt
` (4 subsequent siblings)
9 siblings, 0 replies; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-10-16 16:30 UTC (permalink / raw)
To: openembedded-core
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
During restructuring of the packaging in 2af4d6eb (tzdata: Install
everything by default), these two files remained in the tzdata
package, which is supposed to be empty. Move them to tzdata-core where
they belong.
Also simplify the definition of CONFFILES_tzdata-core. As its value
only takes effect for files that actually exist, there is no need to
complicate its definition by checking if a file is created before
adding it to the list of configuration files.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/recipes-extended/timezone/tzdata.bb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-extended/timezone/tzdata.bb b/meta/recipes-extended/timezone/tzdata.bb
index 82fe369baa..1e2d9bd1b9 100644
--- a/meta/recipes-extended/timezone/tzdata.bb
+++ b/meta/recipes-extended/timezone/tzdata.bb
@@ -147,6 +147,8 @@ FILES_tzdata-misc += "${datadir}/zoneinfo/Cuba \
RPROVIDES_tzdata-misc = "tzdata-misc"
FILES_tzdata-core += " \
+ ${sysconfdir}/localtime \
+ ${sysconfdir}/timezone \
${datadir}/zoneinfo/Pacific/Honolulu \
${datadir}/zoneinfo/America/Anchorage \
${datadir}/zoneinfo/America/Los_Angeles \
@@ -202,8 +204,7 @@ FILES_tzdata-core += " \
${datadir}/zoneinfo/iso3166.tab \
${datadir}/zoneinfo/Etc/*"
-CONFFILES_tzdata-core += "${@ "${sysconfdir}/timezone" if bb.utils.to_boolean(d.getVar('INSTALL_TIMEZONE_FILE')) else "" }"
-CONFFILES_tzdata-core += "${sysconfdir}/localtime"
+CONFFILES_tzdata-core = "${sysconfdir}/localtime ${sysconfdir}/timezone"
ALLOW_EMPTY_${PN} = "1"
RDEPENDS_${PN} = "${TZ_PACKAGES}"
--
2.21.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* [warrior][PATCH 6/8] devtool: finish: Keep patches ordered when updating bbappend
2019-10-16 16:30 [warrior][PATCH 0/8] Backport relevant changes from Zeus Peter Kjellerstedt
` (4 preceding siblings ...)
2019-10-16 16:30 ` [warrior][PATCH 5/8] tzdata: Correct the packaging of /etc/localtime and /etc/timezone Peter Kjellerstedt
@ 2019-10-16 16:30 ` Peter Kjellerstedt
2019-10-16 16:30 ` [warrior][PATCH 7/8] devtool: finish: Add suppport for the --no-clean option Peter Kjellerstedt
` (3 subsequent siblings)
9 siblings, 0 replies; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-10-16 16:30 UTC (permalink / raw)
To: openembedded-core
From: Niclas Svensson <niclass@axis.com>
The _get_patchset_revs() function returns the patches in an
OrderedDict to keep them ordered. However, this information was lost
when the patches were added to the bbappend file.
Signed-off-by: Niclas Svensson <niclas.svensson@axis.com>
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
scripts/lib/devtool/standard.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index dcb6bf9540..b944ec3966 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -1520,17 +1520,17 @@ def _update_recipe_patch(recipename, workspace, srctree, rd, appendlayerdir, wil
patches_dir, changed_revs)
logger.debug('Pre-filtering: update: %s, new: %s' % (dict(upd_p), dict(new_p)))
if filter_patches:
- new_p = {}
- upd_p = {k:v for k,v in upd_p.items() if k in filter_patches}
+ new_p = OrderedDict()
+ upd_p = OrderedDict((k,v) for k,v in upd_p.items() if k in filter_patches)
remove_files = [f for f in remove_files if f in filter_patches]
updatefiles = False
updaterecipe = False
destpath = None
srcuri = (rd.getVar('SRC_URI', False) or '').split()
if appendlayerdir:
- files = dict((os.path.join(local_files_dir, key), val) for
+ files = OrderedDict((os.path.join(local_files_dir, key), val) for
key, val in list(upd_f.items()) + list(new_f.items()))
- files.update(dict((os.path.join(patches_dir, key), val) for
+ files.update(OrderedDict((os.path.join(patches_dir, key), val) for
key, val in list(upd_p.items()) + list(new_p.items())))
if files or remove_files:
removevalues = None
--
2.21.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* [warrior][PATCH 7/8] devtool: finish: Add suppport for the --no-clean option
2019-10-16 16:30 [warrior][PATCH 0/8] Backport relevant changes from Zeus Peter Kjellerstedt
` (5 preceding siblings ...)
2019-10-16 16:30 ` [warrior][PATCH 6/8] devtool: finish: Keep patches ordered when updating bbappend Peter Kjellerstedt
@ 2019-10-16 16:30 ` Peter Kjellerstedt
2019-10-16 20:24 ` akuster808
2019-10-16 16:30 ` [warrior][PATCH 8/8] lib/oe/lsb: Make sure the distro ID is always lowercased Peter Kjellerstedt
` (2 subsequent siblings)
9 siblings, 1 reply; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-10-16 16:30 UTC (permalink / raw)
To: openembedded-core
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
This works just like the already existing --no-clean option to the
`devtool reset` command.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
scripts/lib/devtool/standard.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index b944ec3966..aeb9452a8a 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -1895,7 +1895,7 @@ def finish(args, config, basepath, workspace):
else:
raise DevtoolError('Source tree is not clean:\n\n%s\nEnsure you have committed your changes or use -f/--force if you are sure there\'s nothing that needs to be committed' % dirty)
- no_clean = False
+ no_clean = args.no_clean
tinfoil = setup_tinfoil(basepath=basepath, tracking=True)
try:
rd = parse_recipe(config, tinfoil, args.recipename, True)
@@ -2169,6 +2169,7 @@ def register_commands(subparsers, context):
parser_finish.add_argument('--mode', '-m', choices=['patch', 'srcrev', 'auto'], default='auto', help='Update mode (where %(metavar)s is %(choices)s; default is %(default)s)', metavar='MODE')
parser_finish.add_argument('--initial-rev', help='Override starting revision for patches')
parser_finish.add_argument('--force', '-f', action="store_true", help='Force continuing even if there are uncommitted changes in the source tree repository')
+ parser_finish.add_argument('--no-clean', '-n', action="store_true", help='Don\'t clean the sysroot to remove recipe output')
parser_finish.add_argument('--no-overrides', '-O', action="store_true", help='Do not handle other override branches (if they exist)')
parser_finish.add_argument('--dry-run', '-N', action="store_true", help='Dry-run (just report changes instead of writing them)')
parser_finish.add_argument('--force-patch-refresh', action="store_true", help='Update patches in the layer even if they have not been modified (useful for refreshing patch context)')
--
2.21.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* Re: [warrior][PATCH 7/8] devtool: finish: Add suppport for the --no-clean option
2019-10-16 16:30 ` [warrior][PATCH 7/8] devtool: finish: Add suppport for the --no-clean option Peter Kjellerstedt
@ 2019-10-16 20:24 ` akuster808
2019-10-17 13:10 ` Peter Kjellerstedt
0 siblings, 1 reply; 16+ messages in thread
From: akuster808 @ 2019-10-16 20:24 UTC (permalink / raw)
To: Peter Kjellerstedt, openembedded-core
On 10/16/19 9:30 AM, Peter Kjellerstedt wrote:
> From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
>
> This works just like the already existing --no-clean option to the
> `devtool reset` command.
what problem is this solving in warrior?
-a rmin
>
> Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
> scripts/lib/devtool/standard.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
> index b944ec3966..aeb9452a8a 100644
> --- a/scripts/lib/devtool/standard.py
> +++ b/scripts/lib/devtool/standard.py
> @@ -1895,7 +1895,7 @@ def finish(args, config, basepath, workspace):
> else:
> raise DevtoolError('Source tree is not clean:\n\n%s\nEnsure you have committed your changes or use -f/--force if you are sure there\'s nothing that needs to be committed' % dirty)
>
> - no_clean = False
> + no_clean = args.no_clean
> tinfoil = setup_tinfoil(basepath=basepath, tracking=True)
> try:
> rd = parse_recipe(config, tinfoil, args.recipename, True)
> @@ -2169,6 +2169,7 @@ def register_commands(subparsers, context):
> parser_finish.add_argument('--mode', '-m', choices=['patch', 'srcrev', 'auto'], default='auto', help='Update mode (where %(metavar)s is %(choices)s; default is %(default)s)', metavar='MODE')
> parser_finish.add_argument('--initial-rev', help='Override starting revision for patches')
> parser_finish.add_argument('--force', '-f', action="store_true", help='Force continuing even if there are uncommitted changes in the source tree repository')
> + parser_finish.add_argument('--no-clean', '-n', action="store_true", help='Don\'t clean the sysroot to remove recipe output')
> parser_finish.add_argument('--no-overrides', '-O', action="store_true", help='Do not handle other override branches (if they exist)')
> parser_finish.add_argument('--dry-run', '-N', action="store_true", help='Dry-run (just report changes instead of writing them)')
> parser_finish.add_argument('--force-patch-refresh', action="store_true", help='Update patches in the layer even if they have not been modified (useful for refreshing patch context)')
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [warrior][PATCH 7/8] devtool: finish: Add suppport for the --no-clean option
2019-10-16 20:24 ` akuster808
@ 2019-10-17 13:10 ` Peter Kjellerstedt
0 siblings, 0 replies; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-10-17 13:10 UTC (permalink / raw)
To: akuster808, openembedded-core@lists.openembedded.org
> -----Original Message-----
> From: akuster808 <akuster808@gmail.com>
> Sent: den 16 oktober 2019 22:25
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; openembedded-
> core@lists.openembedded.org
> Subject: Re: [OE-core] [warrior][PATCH 7/8] devtool: finish: Add
> suppport for the --no-clean option
>
> On 10/16/19 9:30 AM, Peter Kjellerstedt wrote:
> > From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> >
> > This works just like the already existing --no-clean option to the
> > `devtool reset` command.
> what problem is this solving in warrior?
> -a rmin
Keeping the development tools in sync with master so one can use the
same options when working regardless of if one is working with Warrior
or Zeus. Since it does not affect what is built and goes into the rootfs,
it should not be a problem that it technically is a new feature.
//Peter
> >
> > Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> > Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> > ---
> > scripts/lib/devtool/standard.py | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/scripts/lib/devtool/standard.py
> b/scripts/lib/devtool/standard.py
> > index b944ec3966..aeb9452a8a 100644
> > --- a/scripts/lib/devtool/standard.py
> > +++ b/scripts/lib/devtool/standard.py
> > @@ -1895,7 +1895,7 @@ def finish(args, config, basepath, workspace):
> > else:
> > raise DevtoolError('Source tree is not
> clean:\n\n%s\nEnsure you have committed your changes or use -f/--force
> if you are sure there\'s nothing that needs to be committed' % dirty)
> >
> > - no_clean = False
> > + no_clean = args.no_clean
> > tinfoil = setup_tinfoil(basepath=basepath, tracking=True)
> > try:
> > rd = parse_recipe(config, tinfoil, args.recipename, True)
> > @@ -2169,6 +2169,7 @@ def register_commands(subparsers, context):
> > parser_finish.add_argument('--mode', '-m', choices=['patch',
> 'srcrev', 'auto'], default='auto', help='Update mode (where %(metavar)s
> is %(choices)s; default is %(default)s)', metavar='MODE')
> > parser_finish.add_argument('--initial-rev', help='Override
> starting revision for patches')
> > parser_finish.add_argument('--force', '-f', action="store_true",
> help='Force continuing even if there are uncommitted changes in the
> source tree repository')
> > + parser_finish.add_argument('--no-clean', '-n',
> action="store_true", help='Don\'t clean the sysroot to remove recipe
> output')
> > parser_finish.add_argument('--no-overrides', '-O',
> action="store_true", help='Do not handle other override branches (if
> they exist)')
> > parser_finish.add_argument('--dry-run', '-N',
> action="store_true", help='Dry-run (just report changes instead of
> writing them)')
> > parser_finish.add_argument('--force-patch-refresh',
> action="store_true", help='Update patches in the layer even if they
> have not been modified (useful for refreshing patch context)')
^ permalink raw reply [flat|nested] 16+ messages in thread
* [warrior][PATCH 8/8] lib/oe/lsb: Make sure the distro ID is always lowercased
2019-10-16 16:30 [warrior][PATCH 0/8] Backport relevant changes from Zeus Peter Kjellerstedt
` (6 preceding siblings ...)
2019-10-16 16:30 ` [warrior][PATCH 7/8] devtool: finish: Add suppport for the --no-clean option Peter Kjellerstedt
@ 2019-10-16 16:30 ` Peter Kjellerstedt
2019-10-16 17:02 ` ✗ patchtest: failure for Backport relevant changes from Zeus Patchwork
2019-10-27 8:19 ` [warrior][PATCH 0/8] " akuster808
9 siblings, 0 replies; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-10-16 16:30 UTC (permalink / raw)
To: openembedded-core
From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
In commit 8689e561 (lib/oe/lsb: attempt to ensure consistent distro id
regardless of source), the distro ID returned by
oe.lsb.distro_identifier() was lowercased, but only if a release
version is also present.
This changes the code to always lowercase the distro ID, including the
default distro ID "unknown", which is used if no other ID can be
identified.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
meta/lib/oe/lsb.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/meta/lib/oe/lsb.py b/meta/lib/oe/lsb.py
index 4f2b419edc..43e46380d7 100644
--- a/meta/lib/oe/lsb.py
+++ b/meta/lib/oe/lsb.py
@@ -110,12 +110,12 @@ def distro_identifier(adjust_hook=None):
if adjust_hook:
distro_id, release = adjust_hook(distro_id, release)
if not distro_id:
- return "Unknown"
- # Filter out any non-alphanumerics
- distro_id = re.sub(r'\W', '', distro_id)
+ return "unknown"
+ # Filter out any non-alphanumerics and convert to lowercase
+ distro_id = re.sub(r'\W', '', distro_id).lower()
if release:
- id_str = '{0}-{1}'.format(distro_id.lower(), release)
+ id_str = '{0}-{1}'.format(distro_id, release)
else:
id_str = distro_id
return id_str.replace(' ','-').replace('/','-')
--
2.21.0
^ permalink raw reply related [flat|nested] 16+ messages in thread* ✗ patchtest: failure for Backport relevant changes from Zeus
2019-10-16 16:30 [warrior][PATCH 0/8] Backport relevant changes from Zeus Peter Kjellerstedt
` (7 preceding siblings ...)
2019-10-16 16:30 ` [warrior][PATCH 8/8] lib/oe/lsb: Make sure the distro ID is always lowercased Peter Kjellerstedt
@ 2019-10-16 17:02 ` Patchwork
2019-10-27 8:19 ` [warrior][PATCH 0/8] " akuster808
9 siblings, 0 replies; 16+ messages in thread
From: Patchwork @ 2019-10-16 17:02 UTC (permalink / raw)
To: Peter Kjellerstedt; +Cc: openembedded-core
== Series Details ==
Series: Backport relevant changes from Zeus
Revision: 1
URL : https://patchwork.openembedded.org/series/20503/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is
an automated response. Several tests have been executed on the proposed
series by patchtest resulting in the following failures:
* Issue Errors in your Python code were encountered [test_pylint]
Suggested fix Correct the lines introduced by your patch
Output Please, fix the listed issues:
scripts/lib/devtool/standard.py does not exist
If you believe any of these test results are incorrect, please reply to the
mailing list (openembedded-core@lists.openembedded.org) raising your concerns.
Otherwise we would appreciate you correcting the issues and submitting a new
version of the patchset if applicable. Please ensure you add/increment the
version number when sending the new version (i.e. [PATCH] -> [PATCH v2] ->
[PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [warrior][PATCH 0/8] Backport relevant changes from Zeus
2019-10-16 16:30 [warrior][PATCH 0/8] Backport relevant changes from Zeus Peter Kjellerstedt
` (8 preceding siblings ...)
2019-10-16 17:02 ` ✗ patchtest: failure for Backport relevant changes from Zeus Patchwork
@ 2019-10-27 8:19 ` akuster808
2019-11-03 15:17 ` Peter Kjellerstedt
9 siblings, 1 reply; 16+ messages in thread
From: akuster808 @ 2019-10-27 8:19 UTC (permalink / raw)
To: Peter Kjellerstedt, openembedded-core
Peter,
On 10/16/19 9:30 AM, Peter Kjellerstedt wrote:
> This patch set contains backports of our changes from Zeus that are
> relevant for Warrior.
>
> //Peter
>
> The following changes since commit 79a850a10a4b88a6d20d607b322542f947874323:
>
> conf/poky: add Fedora 30 and Opensuse Leap 15.1 to supported distributions (2019-10-14 09:49:27 +0100)
>
> are available in the Git repository at:
>
> git://push.yoctoproject.org/poky-contrib pkj/warrior_sync
The series is causing build failures.
https://errors.yoctoproject.org/Errors/Details/274748/
https://errors.yoctoproject.org/Errors/Details/274757/
I have not had the time to figure out which ones giving I have been
working on a different build failure. So if you could double check them,
that would be great.
regards,
Armin
>
> Niclas Svensson (1):
> devtool: finish: Keep patches ordered when updating bbappend
>
> Peter Kjellerstedt (7):
> meson.bbclass: Remove the MESON_*_ARGS variables
> nativesdk-meson: Remove some unused variables
> devtool: Avoid failure for recipes with S == WORKDIR and no local
> files
> package_rpm.bbclass: Remove a misleading bb.note()
> tzdata: Correct the packaging of /etc/localtime and /etc/timezone
> devtool: finish: Add suppport for the --no-clean option
> lib/oe/lsb: Make sure the distro ID is always lowercased
>
> meta/classes/meson.bbclass | 15 +++++----------
> meta/classes/package_rpm.bbclass | 5 ++---
> meta/lib/oe/lsb.py | 8 ++++----
> .../meson/nativesdk-meson_0.49.2.bb | 5 -----
> meta/recipes-extended/timezone/tzdata.bb | 5 +++--
> scripts/lib/devtool/standard.py | 17 +++++++++--------
> 6 files changed, 23 insertions(+), 32 deletions(-)
>
^ permalink raw reply [flat|nested] 16+ messages in thread* Re: [warrior][PATCH 0/8] Backport relevant changes from Zeus
2019-10-27 8:19 ` [warrior][PATCH 0/8] " akuster808
@ 2019-11-03 15:17 ` Peter Kjellerstedt
2019-11-05 21:59 ` Peter Kjellerstedt
0 siblings, 1 reply; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-11-03 15:17 UTC (permalink / raw)
To: akuster808, openembedded-core@lists.openembedded.org
> -----Original Message-----
> From: akuster808 <akuster808@gmail.com>
> Sent: den 27 oktober 2019 09:20
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; openembedded-
> core@lists.openembedded.org
> Subject: Re: [OE-core] [warrior][PATCH 0/8] Backport relevant changes
> from Zeus
>
> Peter,
>
>
> On 10/16/19 9:30 AM, Peter Kjellerstedt wrote:
> > This patch set contains backports of our changes from Zeus that are
> > relevant for Warrior.
> >
> > //Peter
> >
> > The following changes since commit
> 79a850a10a4b88a6d20d607b322542f947874323:
> >
> > conf/poky: add Fedora 30 and Opensuse Leap 15.1 to supported
> distributions (2019-10-14 09:49:27 +0100)
> >
> > are available in the Git repository at:
> >
> > git://push.yoctoproject.org/poky-contrib pkj/warrior_sync
>
> The series is causing build failures.
>
> https://errors.yoctoproject.org/Errors/Details/274748/
>
> https://errors.yoctoproject.org/Errors/Details/274757/
>
> I have not had the time to figure out which ones giving I have been
> working on a different build failure. So if you could double check
> them,
> that would be great.
>
> regards,
> Armin
The problems are caused by the "meson.bbclass: Remove the MESON_*_ARGS
variables" change. I have not had time to look into why it breaks yet,
but I can reproduce it so it should hopefully not be too hard to figure
it out once I have a little time.
//Peter
> > Niclas Svensson (1):
> > devtool: finish: Keep patches ordered when updating bbappend
> >
> > Peter Kjellerstedt (7):
> > meson.bbclass: Remove the MESON_*_ARGS variables
> > nativesdk-meson: Remove some unused variables
> > devtool: Avoid failure for recipes with S == WORKDIR and no local
> > files
> > package_rpm.bbclass: Remove a misleading bb.note()
> > tzdata: Correct the packaging of /etc/localtime and /etc/timezone
> > devtool: finish: Add suppport for the --no-clean option
> > lib/oe/lsb: Make sure the distro ID is always lowercased
> >
> > meta/classes/meson.bbclass | 15 +++++----------
> > meta/classes/package_rpm.bbclass | 5 ++---
> > meta/lib/oe/lsb.py | 8 ++++----
> > .../meson/nativesdk-meson_0.49.2.bb | 5 -----
> > meta/recipes-extended/timezone/tzdata.bb | 5 +++--
> > scripts/lib/devtool/standard.py | 17 +++++++++------
> --
> > 6 files changed, 23 insertions(+), 32 deletions(-)
> >
>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: [warrior][PATCH 0/8] Backport relevant changes from Zeus
2019-11-03 15:17 ` Peter Kjellerstedt
@ 2019-11-05 21:59 ` Peter Kjellerstedt
0 siblings, 0 replies; 16+ messages in thread
From: Peter Kjellerstedt @ 2019-11-05 21:59 UTC (permalink / raw)
To: akuster808, openembedded-core@lists.openembedded.org
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org <openembedded-core-
> bounces@lists.openembedded.org> On Behalf Of Peter Kjellerstedt
> Sent: den 3 november 2019 16:18
> To: akuster808 <akuster808@gmail.com>; openembedded-
> core@lists.openembedded.org
> Subject: Re: [OE-core] [warrior][PATCH 0/8] Backport relevant changes from
> Zeus
>
> > -----Original Message-----
> > From: akuster808 <akuster808@gmail.com>
> > Sent: den 27 oktober 2019 09:20
> > To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>; openembedded-
> > core@lists.openembedded.org
> > Subject: Re: [OE-core] [warrior][PATCH 0/8] Backport relevant changes
> > from Zeus
> >
> > Peter,
> >
> >
> > On 10/16/19 9:30 AM, Peter Kjellerstedt wrote:
> > > This patch set contains backports of our changes from Zeus that are
> > > relevant for Warrior.
> > >
> > > //Peter
> > >
> > > The following changes since commit
> > 79a850a10a4b88a6d20d607b322542f947874323:
> > >
> > > conf/poky: add Fedora 30 and Opensuse Leap 15.1 to supported
> > distributions (2019-10-14 09:49:27 +0100)
> > >
> > > are available in the Git repository at:
> > >
> > > git://push.yoctoproject.org/poky-contrib pkj/warrior_sync
> >
> > The series is causing build failures.
> >
> > https://errors.yoctoproject.org/Errors/Details/274748/
> >
> > https://errors.yoctoproject.org/Errors/Details/274757/
> >
> > I have not had the time to figure out which ones giving I have been
> > working on a different build failure. So if you could double check
> > them,
> > that would be great.
> >
> > regards,
> > Armin
>
> The problems are caused by the "meson.bbclass: Remove the MESON_*_ARGS
> variables" change. I have not had time to look into why it breaks yet,
> but I can reproduce it so it should hopefully not be too hard to figure
> it out once I have a little time.
>
> //Peter
Ok, I have figured it out now. It turns out that the change to
meson.bbclass uncovered a misuse of the meson.cross file. Over a year
ago, Ross changed meson_array() to return a string instead of an array
if only one argument is specified. This was for the benefit of cross
tools specified in the meson.cross file, however it also affected
properties. Up until now there has always been more than one argument
for all properties so this did not change anything. However, my change
to meson.bbclass to remove some unnecessary arguments caused the
c_link_args for nativesdk to be left with only one argument.
Support for specifying a property as a string instead of a list was
added to meson in version 0.50, which is why there never was a problem
with Zeus due to the change to meson.bbclass. I have now backported
the relevant part from meson 0.50 and included it in my patch series.
//Peter
> > > Niclas Svensson (1):
> > > devtool: finish: Keep patches ordered when updating bbappend
> > >
> > > Peter Kjellerstedt (7):
> > > meson.bbclass: Remove the MESON_*_ARGS variables
> > > nativesdk-meson: Remove some unused variables
> > > devtool: Avoid failure for recipes with S == WORKDIR and no local
> > > files
> > > package_rpm.bbclass: Remove a misleading bb.note()
> > > tzdata: Correct the packaging of /etc/localtime and /etc/timezone
> > > devtool: finish: Add suppport for the --no-clean option
> > > lib/oe/lsb: Make sure the distro ID is always lowercased
> > >
> > > meta/classes/meson.bbclass | 15 +++++----------
> > > meta/classes/package_rpm.bbclass | 5 ++---
> > > meta/lib/oe/lsb.py | 8 ++++----
> > > .../meson/nativesdk-meson_0.49.2.bb | 5 -----
> > > meta/recipes-extended/timezone/tzdata.bb | 5 +++--
> > > scripts/lib/devtool/standard.py | 17 +++++++++------
> > --
> > > 6 files changed, 23 insertions(+), 32 deletions(-)
^ permalink raw reply [flat|nested] 16+ messages in thread