Date   

Re: poky dhcpcd failed build

 

On Tue, 8 Sep 2020 at 07:26, Yocto <yocto@...> wrote:

w
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:73: dhcpcd] Error 1
| make[1]: Leaving directory
'/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/dhcpcd-9.1.4/src'
| make: *** [Makefile:24: all] Error 2
| WARNING:
/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983:190
exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
| #1: bbfatal_log,
/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983,
line 190
| #2: die,
/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983,
line 165
| #3: oe_runmake,
/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983,
line 160
| #4: autotools_do_compile,
/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983,
line 155
| #5: do_compile,
/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983,
line 150
| #6: main,
/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983,
line 194
|
| Backtrace (metadata-relative locations):
| #1: bbfatal_log,
/var/home/dingo/overc/poky/meta/classes/logging.bbclass, line 72
| #2: die, /var/home/dingo/overc/poky/meta/classes/base.bbclass, line 56
| #3: oe_runmake,
/var/home/dingo/overc/poky/meta/classes/base.bbclass, line 65
| #4: autotools_do_compile,
/var/home/dingo/overc/poky/meta/classes/autotools.bbclass, line 243
| #5: do_compile, autogenerated, line 2
ERROR: Task
(/var/home/dingo/overc/poky/meta/recipes-connectivity/dhcpcd/dhcpcd_9.1.4.bb:do_compile)
failed with exit code '1'
Sorry to be blunt, but this email is meaningless. Please give some
context and use a name other than "Yocto". You're not likely to get
any helpful replies from an email like this.

--
Paul Barker
Konsulko Group


do_rootfs: Could not invoke dnf

majid.nasiry65@...
 

Hello
I trying to create an image but when I add a library (opendnp3) to image I got below error.

DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', '/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', '/home/majid/myir-imx-manifest/sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/dnf/dnf_4.2.2.bb:do_populate_sysroot', '/home/majid/myir-imx-manifest/sources/meta-myir/meta-bsp/recipes-security/optee-imx/optee-os_3.7.0.imx.bb:do_populate_sysroot', '/home/majid/myir-imx-manifest/sources/meta-myir/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2019.04.bb:do_populate_sysroot', '/home/majid/myir-imx-manifest/sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.30.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/opkg/opkg_0.4.1.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/createrepo-c/createrepo-c_0.15.0.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-support/bmap-tools/bmap-tools_3.5.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.45.3.bb:do_populate_sysroot', '/home/majid/myir-imx-manifest/sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.1.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.44.bb:do_populate_sysroot', 'virtual:native:/home/majid/myir-imx-manifest/sources/poky/meta/recipes-devtools/rpm/rpm_4.14.2.1.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['update-rc.d-native', 'qemuwrapper-cross', 'ldconfig-native', 'pbzip2-native', 'dnf-native', 'optee-os', 'u-boot-imx', 'cross-localedef-native', 'opkg-native', 'createrepo-c-native', 'bmap-tools-native', 'pigz-native', 'prelink-native', 'e2fsprogs-native', 'depmodwrapper-cross', 'pseudo-native', 'opkg-utils-native', 'makedevs-native', 'mklibs-native', 'rpm-native', 'systemd-systemctl-native', 'shadow-native', 'quilt-native', 'qemu-native', 'kmod-native', 'bzip2-native', 'python3-native', 'ninja-native', 'gettext-minimal-native', 'librepo-native', 'libcomps-native', 'cmake-native', 'libdnf-native', 'python3-iniparse-native', 'gcc-runtime', 'glibc', 'libtool-native', 'autoconf-native', 'gnu-config-native', 'automake-native', 'libsolv-native', 'pkgconfig-native', 'libarchive-native', 'curl-native', 'expat-native', 'file-native', 'sqlite3-native', 'zlib-native', 'xz-native', 'glib-2.0-native', 'libxml2-native', 'libmodulemd-native', 'openssl-native', 'python3-setuptools-native', 'python3-six-native', 'binutils-native', 'elfutils-native', 'texinfo-dummy-native', 'util-linux-native', 'attr-native', 'perl-native', 'dbus-native', 'nss-native', 'popt-native', 'db-native', 'debianutils-native', 'gtk-doc-native', 'gdbm-native', 'libtirpc-native', 'libffi-native', 'libnsl2-native', 'readline-native', 're2c-native', 'gpgme-native', 'libcheck-native', 'ncurses-native', 'gobject-introspection-native', 'swig-native', 'json-c-native', 'libgcc', 'linux-libc-headers', 'm4-native', 'lzo-native', 'libpcre-native', 'gettext-native', 'meson-native', 'libyaml-native', 'unzip-native', 'flex-native', 'libcap-ng-native', 'nspr-native', 'libgpg-error-native', 'libassuan-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing python function do_rootfs
NOTE: Initializing intercept dir for /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs
DEBUG: Collected intercepts:
  /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/delay_to_first_boot
  /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/postinst_intercept
  /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_font_cache
  /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_gio_module_cache
  /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_gtk_icon_cache
  /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_gtk_immodules_cache
  /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_pixbuf_cache
  /home/majid/myir-imx-manifest/sources/poky/scripts/postinst-intercepts/update_udev_hwdb
 
NOTE: ###### Generate rootfs #######
NOTE: Executing '/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/recipe-sysroot-native/usr/bin/createrepo_c --update -q /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo' ...
NOTE: Running /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs --setopt=logdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/temp --repofrompath=oe-repo,/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo makecache --refresh
DEBUG: DNF version: 4.2.2
cachedir: /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo
Making cache files for all metadata files.
oe-repo: has expired and will be refreshed.
repo: downloading from remote: oe-repo
oe-repo                                         127 MB/s | 1.3 MB     00:00    
not found other for: 
not found modules for: 
not found deltainfo for: 
not found updateinfo for: 
oe-repo: using metadata from Tue 08 Sep 2020 09:48:47 AM UTC.
Last metadata expiration check: 0:00:01 ago on Tue 08 Sep 2020 09:48:47 AM UTC.
No module defaults found
Metadata cache created.
 
NOTE: Running /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs --setopt=logdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/temp --repofrompath=oe-repo,/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo --nogpgcheck install locale-base-en-us locale-base-en-gb psplash start-service myir-rc-local staticip-network packagegroup-core-boot packagegroup-base-extended ppp-quectel u-boot-imx-fw-utils opendnp3 packagegroup-core-nfs-server alsa-utils packagegroup-core-ssh-dropbear packagegroup-fsl-optee-imx run-postinsts
ERROR: Could not invoke dnf. Command '/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/etc/yum.repos.d --installroot=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs --setopt=logdir=/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/temp --repofrompath=oe-repo,/home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo --nogpgcheck install locale-base-en-us locale-base-en-gb psplash start-service myir-rc-local staticip-network packagegroup-core-boot packagegroup-base-extended ppp-quectel u-boot-imx-fw-utils opendnp3 packagegroup-core-nfs-server alsa-utils packagegroup-core-ssh-dropbear packagegroup-fsl-optee-imx run-postinsts' returned 1:
DNF version: 4.2.2
cachedir: /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /home/majid/myir-imx-manifest/build/tmp/work/myd_y6ull14x14-poky-linux-gnueabi/myir-image-core/1.0-r0/oe-rootfs-repo
repo: using cache for: oe-repo
not found other for: 
not found modules for: 
not found deltainfo for: 
not found updateinfo for: 
oe-repo: using metadata from Tue 08 Sep 2020 09:48:47 AM UTC.
Last metadata expiration check: 0:00:01 ago on Tue 08 Sep 2020 09:48:47 AM UTC.
No module defaults found
No match for argument: opendnp3
Error: Unable to find a match
 
DEBUG: Python function do_rootfs finished

What is the problem?

Regards


[meta-security][PATCH] nss: update patch to fix do_patch error

Chen Qi
 

Currently sssd's do_patch task fails. Update the patch to fix this problem.

Signed-off-by: Chen Qi <Qi.Chen@...>
---
...s-Collision-with-external-nss-symbol.patch | 155 +++++++++---------
1 file changed, 78 insertions(+), 77 deletions(-)

diff --git a/recipes-security/sssd/files/0001-nss-Collision-with-external-nss-symbol.patch b/recipes-security/sssd/files/0001-nss-Collision-with-external-nss-symbol.patch
index bf79f65..c319269 100644
--- a/recipes-security/sssd/files/0001-nss-Collision-with-external-nss-symbol.patch
+++ b/recipes-security/sssd/files/0001-nss-Collision-with-external-nss-symbol.patch
@@ -1,77 +1,78 @@
-+From a069e4186a3cb482226005d4bc73c6fb3dd35c79 Mon Sep 17 00:00:00 2001
-+From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@...>
-+Date: Thu, 27 Feb 2020 06:50:40 +0100
-+Subject: [PATCH] nss: Collision with external nss symbol
-+MIME-Version: 1.0
-+Content-Type: text/plain; charset=UTF-8
-+Content-Transfer-Encoding: 8bit
-+
-+One of our internal static function names started
-+to collide with external nss symbol. Additional
-+sss_ suffix was added to avoid the collision.
-+
-+This is needed to unblock Fedora Rawhide's
-+SSSD build.
-+
-+Reviewed-by: Pavel Březina <pbrezina@...>
-+
-+Upstream-Status: Backport [https://github.com/SSSD/sssd.git]
-+Signed-off-by: Hongxu Jia <hongxu.jia@...>
-+---
-+ src/responder/nss/nss_cmd.c | 18 ++++++++++--------
-+ 1 file changed, 10 insertions(+), 8 deletions(-)
-+
-+diff --git a/src/responder/nss/nss_cmd.c b/src/responder/nss/nss_cmd.c
-+index 25e663e..a4d4cfc 100644
-+--- a/src/responder/nss/nss_cmd.c
-++++ b/src/responder/nss/nss_cmd.c
-+@@ -728,11 +728,13 @@ done:
-+ talloc_free(cmd_ctx);
-+ }
-+
-+-static void nss_setnetgrent_done(struct tevent_req *subreq);
-++static void sss_nss_setnetgrent_done(struct tevent_req *subreq);
-+
-+-static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
-+- enum cache_req_type type,
-+- nss_protocol_fill_packet_fn fill_fn)
-++/* This function's name started to collide with external nss symbol,
-++ * so it has additional sss_* prefix unlike other functions here. */
-++static errno_t sss_nss_setnetgrent(struct cli_ctx *cli_ctx,
-++ enum cache_req_type type,
-++ nss_protocol_fill_packet_fn fill_fn)
-+ {
-+ struct nss_ctx *nss_ctx;
-+ struct nss_state_ctx *state_ctx;
-+@@ -774,7 +776,7 @@ static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
-+ goto done;
-+ }
-+
-+- tevent_req_set_callback(subreq, nss_setnetgrent_done, cmd_ctx);
-++ tevent_req_set_callback(subreq, sss_nss_setnetgrent_done, cmd_ctx);
-+
-+ ret = EOK;
-+
-+@@ -787,7 +789,7 @@ done:
-+ return EOK;
-+ }
-+
-+-static void nss_setnetgrent_done(struct tevent_req *subreq)
-++static void sss_nss_setnetgrent_done(struct tevent_req *subreq)
-+ {
-+ struct nss_cmd_ctx *cmd_ctx;
-+ errno_t ret;
-+@@ -1037,8 +1039,8 @@ static errno_t nss_cmd_initgroups_ex(struct cli_ctx *cli_ctx)
-+
-+ static errno_t nss_cmd_setnetgrent(struct cli_ctx *cli_ctx)
-+ {
-+- return nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME,
-+- nss_protocol_fill_setnetgrent);
-++ return sss_nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME,
-++ nss_protocol_fill_setnetgrent);
-+ }
-+
-+ static errno_t nss_cmd_getnetgrent(struct cli_ctx *cli_ctx)
-+--
-+2.21.0
-+
+From 05c315100a70d3372e891e9a0ea981a875b2ec90 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@...>
+Date: Thu, 27 Feb 2020 06:50:40 +0100
+Subject: [PATCH] nss: Collision with external nss symbol
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+One of our internal static function names started
+to collide with external nss symbol. Additional
+sss_ suffix was added to avoid the collision.
+
+This is needed to unblock Fedora Rawhide's
+SSSD build.
+
+Reviewed-by: Pavel Březina <pbrezina@...>
+
+Upstream-Status: Backport [https://github.com/SSSD/sssd.git]
+Signed-off-by: Hongxu.jia@...
+Signed-off-by: Qi.Chen@...
+---
+ src/responder/nss/nss_cmd.c | 18 ++++++++++--------
+ 1 file changed, 10 insertions(+), 8 deletions(-)
+
+diff --git a/src/responder/nss/nss_cmd.c b/src/responder/nss/nss_cmd.c
+index 25e663ed5..a4d4cfc0b 100644
+--- a/src/responder/nss/nss_cmd.c
++++ b/src/responder/nss/nss_cmd.c
+@@ -728,11 +728,13 @@ done:
+ talloc_free(cmd_ctx);
+ }
+
+-static void nss_setnetgrent_done(struct tevent_req *subreq);
++static void sss_nss_setnetgrent_done(struct tevent_req *subreq);
+
+-static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
+- enum cache_req_type type,
+- nss_protocol_fill_packet_fn fill_fn)
++/* This function's name started to collide with external nss symbol,
++ * so it has additional sss_* prefix unlike other functions here. */
++static errno_t sss_nss_setnetgrent(struct cli_ctx *cli_ctx,
++ enum cache_req_type type,
++ nss_protocol_fill_packet_fn fill_fn)
+ {
+ struct nss_ctx *nss_ctx;
+ struct nss_state_ctx *state_ctx;
+@@ -774,7 +776,7 @@ static errno_t nss_setnetgrent(struct cli_ctx *cli_ctx,
+ goto done;
+ }
+
+- tevent_req_set_callback(subreq, nss_setnetgrent_done, cmd_ctx);
++ tevent_req_set_callback(subreq, sss_nss_setnetgrent_done, cmd_ctx);
+
+ ret = EOK;
+
+@@ -787,7 +789,7 @@ done:
+ return EOK;
+ }
+
+-static void nss_setnetgrent_done(struct tevent_req *subreq)
++static void sss_nss_setnetgrent_done(struct tevent_req *subreq)
+ {
+ struct nss_cmd_ctx *cmd_ctx;
+ errno_t ret;
+@@ -1037,8 +1039,8 @@ static errno_t nss_cmd_initgroups_ex(struct cli_ctx *cli_ctx)
+
+ static errno_t nss_cmd_setnetgrent(struct cli_ctx *cli_ctx)
+ {
+- return nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME,
+- nss_protocol_fill_setnetgrent);
++ return sss_nss_setnetgrent(cli_ctx, CACHE_REQ_NETGROUP_BY_NAME,
++ nss_protocol_fill_setnetgrent);
+ }
+
+ static errno_t nss_cmd_getnetgrent(struct cli_ctx *cli_ctx)
+--
+2.21.0
+
--
2.21.0


Re: poky dhcpcd failed build

Yocto
 


On 9/8/20 1:24 PM, Yocto wrote:
w
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:73: dhcpcd] Error 1
| make[1]: Leaving directory '/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/dhcpcd-9.1.4/src'
| make: *** [Makefile:24: all] Error 2
| WARNING: /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983:190 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
|     #1: bbfatal_log, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 190
|     #2: die, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 165
|     #3: oe_runmake, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 160
|     #4: autotools_do_compile, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 155
|     #5: do_compile, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 150
|     #6: main, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 194
|
| Backtrace (metadata-relative locations):
|     #1: bbfatal_log, /var/home/dingo/overc/poky/meta/classes/logging.bbclass, line 72
|     #2: die, /var/home/dingo/overc/poky/meta/classes/base.bbclass, line 56
|     #3: oe_runmake, /var/home/dingo/overc/poky/meta/classes/base.bbclass, line 65
|     #4: autotools_do_compile, /var/home/dingo/overc/poky/meta/classes/autotools.bbclass, line 243
|     #5: do_compile, autogenerated, line 2
ERROR: Task (/var/home/dingo/overc/poky/meta/recipes-connectivity/dhcpcd/dhcpcd_9.1.4.bb:do_compile) failed with exit code '1'

gcc/x86_64-overc-linux/10.2.0/ld: privsep-root.o: in function `ps_root_dogetifaddrs':
| /usr/src/debug/dhcpcd/9.1.4-r0/dhcpcd-9.1.4/src/privsep-root.c:374: undefined reference to `ALIGN'
| /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/recipe-sysroot-native/usr/bin/x86_64-overc-linux/../../libexec/x86_64-overc-linux/gcc/x86_64-overc-linux/10.2.0/ld: /usr/src/debug/dhcpcd/9.1.4-r0/dhcpcd-9.1.4/src/privsep-root.c:375: undefined reference to `ALIGN'
| /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/recipe-sysroot-native/usr/bin/x86_64-overc-linux/../../libexec/x86_64-overc-linux/gcc/x86_64-overc-linux/10.2.0/ld: /usr/src/debug/dhcpcd/9.1.4-r0/dhcpcd-9.1.4/src/privsep-root.c:376: undefined reference to `ALIGN'
| /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/recipe-sysroot-native/usr/bin/x86_64-overc-linux/../../libexec/x86_64-overc-linux/gcc/x86_64-overc-linux/10.2.0/ld: /usr/src/debug/dhcpcd/9.1.4-r0/dhcpcd-9.1.4/src/privsep-root.c:378: undefined reference to `ALIGN'
| /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/recipe-sysroot-native/usr/bin/x86_64-overc-linux/../../libexec/x86_64-overc-linux/gcc/x86_64-overc-linux/10.2.0/ld: /usr/src/debug/dhcpcd/9.1.4-r0/dhcpcd-9.1.4/src/privsep-root.c:380: undefined reference to `ALIGN'
| /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/recipe-sysroot-native/usr/bin/x86_64-overc-linux/../../libexec/x86_64-overc-linux/gcc/x86_64-overc-linux/10.2.0/ld: privsep-root.o:/usr/src/debug/dhcpcd/9.1.4-r0/dhcpcd-9.1.4/src/privsep-root.c:382: more undefined references to `ALIGN' follow
| collect2: error: ld returned 1 exit status





    


poky dhcpcd failed build

Yocto
 

w
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:73: dhcpcd] Error 1
| make[1]: Leaving directory '/var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/dhcpcd-9.1.4/src'
| make: *** [Makefile:24: all] Error 2
| WARNING: /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983:190 exit 1 from 'exit 1'
| WARNING: Backtrace (BB generated script):
|     #1: bbfatal_log, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 190
|     #2: die, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 165
|     #3: oe_runmake, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 160
|     #4: autotools_do_compile, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 155
|     #5: do_compile, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 150
|     #6: main, /var/home/dingo/overc/build/tmp/work/corei7-64-overc-linux/dhcpcd/9.1.4-r0/temp/run.do_compile.3649983, line 194
|
| Backtrace (metadata-relative locations):
|     #1: bbfatal_log, /var/home/dingo/overc/poky/meta/classes/logging.bbclass, line 72
|     #2: die, /var/home/dingo/overc/poky/meta/classes/base.bbclass, line 56
|     #3: oe_runmake, /var/home/dingo/overc/poky/meta/classes/base.bbclass, line 65
|     #4: autotools_do_compile, /var/home/dingo/overc/poky/meta/classes/autotools.bbclass, line 243
|     #5: do_compile, autogenerated, line 2
ERROR: Task (/var/home/dingo/overc/poky/meta/recipes-connectivity/dhcpcd/dhcpcd_9.1.4.bb:do_compile) failed with exit code '1'


[meta-security][PATCH] trousers: Fix the problem that do_package fails when multilib is enabled.

zhengruoqin
 

The following error will occur when multilib is enabled:
ERROR: trousers-0.3.14+gitAUTOINC+e74dd1d967-r0 do_package: QA Issue: trousers: Files/directories were installed but not shipped in any package:
/lib
/lib/systemd
/lib/systemd/system
/lib/systemd/system/tcsd.service

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@...>
---
meta-tpm/recipes-tpm/trousers/trousers_git.bb | 2 ++
1 file changed, 2 insertions(+)

diff --git a/meta-tpm/recipes-tpm/trousers/trousers_git.bb b/meta-tpm/recipes-tpm/trousers/trousers_git.bb
index 992e7f2..27b4e2f 100644
--- a/meta-tpm/recipes-tpm/trousers/trousers_git.bb
+++ b/meta-tpm/recipes-tpm/trousers/trousers_git.bb
@@ -104,6 +104,8 @@ FILES_${PN}-doc = " \
${mandir}/man8 \
"

+FILES_${PN} += "${systemd_unitdir}/*"
+
INITSCRIPT_NAME = "trousers"
INITSCRIPT_PARAMS = "start 99 2 3 4 5 . stop 19 0 1 6 ."

--
2.25.1


[meta-selinux][PATCH] audit: Fix compile bug

zhengruoqin
 

The following error occurred during compile:
ausearch-common.h:53: multiple definition of `event_node_list'

Header definitions need to be external when building with -fno-common.

Signed-off-by: Zheng Ruoqin <zhengrq.fnst@...>
---
...ns-need-to-be-external-when-building.patch | 26 +++++++++++++++++++
recipes-security/audit/audit_2.8.5.bb | 1 +
2 files changed, 27 insertions(+)
create mode 100644 recipes-security/audit/audit/0001-Header-definitions-need-to-be-external-when-building.patch

diff --git a/recipes-security/audit/audit/0001-Header-definitions-need-to-be-external-when-building.patch b/recipes-security/audit/audit/0001-Header-definitions-need-to-be-external-when-building.patch
new file mode 100644
index 0000000..209d8cf
--- /dev/null
+++ b/recipes-security/audit/audit/0001-Header-definitions-need-to-be-external-when-building.patch
@@ -0,0 +1,26 @@
+From 017e6c6ab95df55f34e339d2139def83e5dada1f Mon Sep 17 00:00:00 2001
+From: Steve Grubb <sgrubb@...>
+Date: Fri, 10 Jan 2020 21:13:50 -0500
+Subject: [PATCH] Header definitions need to be external when building with
+ -fno-common (which is default in GCC 10) - Tony Jones
+
+---
+ src/ausearch-common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/ausearch-common.h b/src/ausearch-common.h
+index 6669203..3040547 100644
+--- a/src/ausearch-common.h
++++ b/src/ausearch-common.h
+@@ -50,7 +50,7 @@ extern pid_t event_pid;
+ extern int event_exact_match;
+ extern uid_t event_uid, event_euid, event_loginuid;
+ extern const char *event_tuid, *event_teuid, *event_tauid;
+-slist *event_node_list;
++extern slist *event_node_list;
+ extern const char *event_comm;
+ extern const char *event_filename;
+ extern const char *event_hostname;
+--
+2.25.1
+
diff --git a/recipes-security/audit/audit_2.8.5.bb b/recipes-security/audit/audit_2.8.5.bb
index af36ed5..e3e5ddd 100644
--- a/recipes-security/audit/audit_2.8.5.bb
+++ b/recipes-security/audit/audit_2.8.5.bb
@@ -11,6 +11,7 @@ SRC_URI = "git://github.com/linux-audit/${BPN}-userspace.git;branch=2.8_maintena
file://Add-substitue-functions-for-strndupa-rawmemchr.patch \
file://Fixed-swig-host-contamination-issue.patch \
file://0001-lib-i386_table.h-add-new-syscall.patch \
+ file://0001-Header-definitions-need-to-be-external-when-building.patch \
file://auditd \
file://auditd.service \
file://audit-volatile.conf \
--
2.25.1


Re: [meta-security][PATCH] dhcp: remove bbappend file

Chen Qi
 

On 09/08/2020 12:46 AM, akuster808 wrote:
This patch set is for meta-selinux

-armin
Thanks. I've sent out a new patch, changing the title to use 'meta-selinux'.

Regards,
Chen Qi

On 9/6/20 10:14 PM, Chen Qi wrote:
dhcp has been removed, thus removing its bbappend file.

Signed-off-by: Chen Qi <Qi.Chen@...>
---
recipes-connectivity/dhcp/dhcp_%.bbappend | 1 -
recipes-connectivity/dhcp/dhcp_selinux.inc | 3 --
recipes-connectivity/dhcp/files/init-server | 52 ---------------------
3 files changed, 56 deletions(-)
delete mode 100644 recipes-connectivity/dhcp/dhcp_%.bbappend
delete mode 100644 recipes-connectivity/dhcp/dhcp_selinux.inc
delete mode 100644 recipes-connectivity/dhcp/files/init-server

diff --git a/recipes-connectivity/dhcp/dhcp_%.bbappend b/recipes-connectivity/dhcp/dhcp_%.bbappend
deleted file mode 100644
index 7719d3b..0000000
--- a/recipes-connectivity/dhcp/dhcp_%.bbappend
+++ /dev/null
@@ -1 +0,0 @@
-require ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', '${BPN}_selinux.inc', '', d)}
diff --git a/recipes-connectivity/dhcp/dhcp_selinux.inc b/recipes-connectivity/dhcp/dhcp_selinux.inc
deleted file mode 100644
index 08389f1..0000000
--- a/recipes-connectivity/dhcp/dhcp_selinux.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-inherit selinux
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
diff --git a/recipes-connectivity/dhcp/files/init-server b/recipes-connectivity/dhcp/files/init-server
deleted file mode 100644
index a0e901a..0000000
--- a/recipes-connectivity/dhcp/files/init-server
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-#
-# $Id: dhcp3-server.init.d,v 1.4 2003/07/13 19:12:41 mdz Exp $
-#
-
-test -f /usr/sbin/dhcpd || exit 0
-
-# It is not safe to start if we don't have a default configuration...
-if [ ! -f /etc/default/dhcp-server ]; then
- echo "/etc/default/dhcp-server does not exist! - Aborting..."
- exit 0
-fi
-
-# Read init script configuration (so far only interfaces the daemon
-# should listen on.)
-. /etc/default/dhcp-server
-
-# Restorecon for /var/lib/dhcp/{dhcpd.leases,dhcpd6.leases}
-restorecon_dhcpd_leases(){
- test ! -x /sbin/restorecon || for x in dhcpd.leases dhcpd6.leases; do
- [ -f /var/lib/dhcp/$x ] && /sbin/restorecon -F /var/lib/dhcp/$x
- done
-}
-
-case "$1" in
- start)
- echo -n "Starting DHCP server: "
- test -d /var/lib/dhcp/ || mkdir -p /var/lib/dhcp/
- test -f /var/lib/dhcp/dhcpd.leases || touch /var/lib/dhcp/dhcpd.leases
- restorecon_dhcpd_leases
- start-stop-daemon -S -x /usr/sbin/dhcpd -- -q $INTERFACES -user dhcp -group dhcp
- echo "."
- ;;
- stop)
- echo -n "Stopping DHCP server: dhcpd3"
- start-stop-daemon -K -x /usr/sbin/dhcpd
- echo "."
- ;;
- restart | force-reload)
- $0 stop
- sleep 2
- $0 start
- if [ "$?" != "0" ]; then
- exit 1
- fi
- ;;
- *)
- echo "Usage: /etc/init.d/dhcp-server {start|stop|restart|force-reload}"
- exit 1
-esac
-
-exit 0


[meta-selinux][PATCH] dhcp: remove bbappend file

Chen Qi
 

Issue: LINUXEXEC-9571

dhcp has been removed, thus removing its bbappend file.

(LOCAL REV: NOT UPSTREAM) -- sent to yocto on 20200907

Signed-off-by: Chen Qi <Qi.Chen@...>
---
recipes-connectivity/dhcp/dhcp_%.bbappend | 1 -
recipes-connectivity/dhcp/dhcp_selinux.inc | 3 --
recipes-connectivity/dhcp/files/init-server | 52 ---------------------
3 files changed, 56 deletions(-)
delete mode 100644 recipes-connectivity/dhcp/dhcp_%.bbappend
delete mode 100644 recipes-connectivity/dhcp/dhcp_selinux.inc
delete mode 100644 recipes-connectivity/dhcp/files/init-server

diff --git a/recipes-connectivity/dhcp/dhcp_%.bbappend b/recipes-connectivity/dhcp/dhcp_%.bbappend
deleted file mode 100644
index 7719d3b..0000000
--- a/recipes-connectivity/dhcp/dhcp_%.bbappend
+++ /dev/null
@@ -1 +0,0 @@
-require ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', '${BPN}_selinux.inc', '', d)}
diff --git a/recipes-connectivity/dhcp/dhcp_selinux.inc b/recipes-connectivity/dhcp/dhcp_selinux.inc
deleted file mode 100644
index 08389f1..0000000
--- a/recipes-connectivity/dhcp/dhcp_selinux.inc
+++ /dev/null
@@ -1,3 +0,0 @@
-inherit selinux
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
diff --git a/recipes-connectivity/dhcp/files/init-server b/recipes-connectivity/dhcp/files/init-server
deleted file mode 100644
index a0e901a..0000000
--- a/recipes-connectivity/dhcp/files/init-server
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-#
-# $Id: dhcp3-server.init.d,v 1.4 2003/07/13 19:12:41 mdz Exp $
-#
-
-test -f /usr/sbin/dhcpd || exit 0
-
-# It is not safe to start if we don't have a default configuration...
-if [ ! -f /etc/default/dhcp-server ]; then
- echo "/etc/default/dhcp-server does not exist! - Aborting..."
- exit 0
-fi
-
-# Read init script configuration (so far only interfaces the daemon
-# should listen on.)
-. /etc/default/dhcp-server
-
-# Restorecon for /var/lib/dhcp/{dhcpd.leases,dhcpd6.leases}
-restorecon_dhcpd_leases(){
- test ! -x /sbin/restorecon || for x in dhcpd.leases dhcpd6.leases; do
- [ -f /var/lib/dhcp/$x ] && /sbin/restorecon -F /var/lib/dhcp/$x
- done
-}
-
-case "$1" in
- start)
- echo -n "Starting DHCP server: "
- test -d /var/lib/dhcp/ || mkdir -p /var/lib/dhcp/
- test -f /var/lib/dhcp/dhcpd.leases || touch /var/lib/dhcp/dhcpd.leases
- restorecon_dhcpd_leases
- start-stop-daemon -S -x /usr/sbin/dhcpd -- -q $INTERFACES -user dhcp -group dhcp
- echo "."
- ;;
- stop)
- echo -n "Stopping DHCP server: dhcpd3"
- start-stop-daemon -K -x /usr/sbin/dhcpd
- echo "."
- ;;
- restart | force-reload)
- $0 stop
- sleep 2
- $0 start
- if [ "$?" != "0" ]; then
- exit 1
- fi
- ;;
- *)
- echo "Usage: /etc/init.d/dhcp-server {start|stop|restart|force-reload}"
- exit 1
-esac
-
-exit 0
--
2.21.0


Re: Multiconfig question

Robert Berger
 

Hi,

Please see my comments in-line

On 07/09/2020 17:53, Eil?s N? Fhlannag?in wrote:
Assuming this:
bitbake multiconfig:ConfigA:core-image-foo multiconfig:ConfigB:core-image-bar
Is there a way during or before the rootfs of ConfigB:core-image-bar
to tell what else was run during execution?
What I'm trying to do is set an mcdepends in ConfigB:core-image-bar to
magically know everything else it was built with.
Does core-image-foo depend on core-image-bar or the other way around?

I have something like that:

mc:imx6q-phytec-mira-rdk-nand-resy-virt:core-image-minimal-virt-docker-ce-telegraf-prebuilt-mc

which depends on

mc:container-arm-v7-resy-container:app-container-image-telegraf-prebuilt-oci

So the container image is being built and put into the rootfs of the imx6q image. (without saying this explicitly on the command line).

I use buildinfo for the container rootfs and the native rootfs so I know which layers and which settings were used to build them and I can even check this in runtime.

-b
Regards,

Robert


[PATCH][autobuilder-helper][zeus 32/32] scripts/utils: Ensure buildtools tarball hash matches any supplied value

Richard Purdie
 

Signed-off-by: Richard Purdie <richard.purdie@...>
---
scripts/utils.py | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)

diff --git a/scripts/utils.py b/scripts/utils.py
index 10e3cc1..46346fb 100644
--- a/scripts/utils.py
+++ b/scripts/utils.py
@@ -378,6 +378,25 @@ def getcomparisonbranch(ourconfig, reponame, branchname):
return branchname, None
return None, None

+def sha256_file(filename):
+ """
+ Return the hex string representation of the 256-bit SHA checksum of
+ filename.
+ """
+ import hashlib
+ import mmap
+
+ method = hashlib.sha256()
+ with open(filename, "rb") as f:
+ try:
+ with mmap.mmap(f.fileno(), 0, access=mmap.ACCESS_READ) as mm:
+ for chunk in iter(lambda: mm.read(8192), b''):
+ method.update(chunk)
+ except ValueError:
+ # You can't mmap() an empty file so silence this exception
+ pass
+ return method.hexdigest()
+
def setup_buildtools_tarball(ourconfig, workername, btdir):
bttarball = None
if "buildtools" in ourconfig and workername:
@@ -389,6 +408,9 @@ def setup_buildtools_tarball(ourconfig, workername, btdir):

btenv = None
if bttarball:
+ sha256 = None
+ if ";" in bttarball:
+ bttarball, sha256 = bttarball.split(";")
btdir = os.path.abspath(btdir)
if not os.path.exists(btdir):
btdlpath = getconfig("BASE_SHAREDDIR", ourconfig) + "/buildtools/" + os.path.basename(bttarball)
@@ -401,6 +423,10 @@ def setup_buildtools_tarball(ourconfig, workername, btdir):
with open(btlock, 'a+') as lf:
fileno = lf.fileno()
fcntl.flock(fileno, fcntl.LOCK_EX)
+ if sha256 and os.path.exists(btdlpath):
+ dl_sha256 = sha256_file(btdlpath)
+ if dl_sha256 != sha256:
+ os.unlink(btdlpath)
if not os.path.exists(btdlpath):
if bttarball.startswith("/"):
subprocess.check_call(["cp", bttarball, btdlpath])
--
2.25.1


[PATCH][autobuilder-helper][zeus 31/32] scripts/utils: Ensuring new logging is flushed from buffers

Richard Purdie
 

Signed-off-by: Richard Purdie <richard.purdie@...>
---
scripts/utils.py | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/scripts/utils.py b/scripts/utils.py
index 1dfc9a2..10e3cc1 100644
--- a/scripts/utils.py
+++ b/scripts/utils.py
@@ -233,18 +233,24 @@ def fetchgitrepo(clonedir, repo, params, stashdir):
branch = params["branch"]
revision = params["revision"]
print("Checking for stash at: " + stashdir + "/" + repo)
+ flush()
if os.path.exists(stashdir + "/" + repo):
print("Cloning from stash to %s..." % sharedrepo)
+ flush()
subprocess.check_call(["git", "clone", "file://%s/%s" % (stashdir, repo), "%s/%s" % (clonedir, repo)])
subprocess.check_call(["git", "remote", "rm", "origin"], cwd=sharedrepo)
subprocess.check_call(["git", "remote", "add", "origin", params["url"]], cwd=sharedrepo)
print("Updating from origin...")
+ flush()
subprocess.check_call(["git", "fetch", "origin"], cwd=sharedrepo)
subprocess.check_call(["git", "fetch", "origin", "-t"], cwd=sharedrepo)
else:
print("Cloning from origin to %s..." % sharedrepo)
+ flush()
subprocess.check_call(["git", "clone", params["url"], sharedrepo])

+ print("Updating checkout...")
+ flush()
subprocess.check_call(["git", "checkout", branch], cwd=sharedrepo)
# git reset revision==HEAD won't help, we need to reset onto the potentially fetched origin branch
subprocess.check_call(["git", "reset", "origin/" + branch, "--hard"], cwd=sharedrepo)
--
2.25.1


[PATCH][autobuilder-helper][zeus 30/32] scripts/utils: Add more logging for fetchgitrepo

Richard Purdie
 

Signed-off-by: Richard Purdie <richard.purdie@...>
---
scripts/utils.py | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/scripts/utils.py b/scripts/utils.py
index ec43832..1dfc9a2 100644
--- a/scripts/utils.py
+++ b/scripts/utils.py
@@ -232,13 +232,17 @@ def fetchgitrepo(clonedir, repo, params, stashdir):
sharedrepo = "%s/%s" % (clonedir, repo)
branch = params["branch"]
revision = params["revision"]
+ print("Checking for stash at: " + stashdir + "/" + repo)
if os.path.exists(stashdir + "/" + repo):
+ print("Cloning from stash to %s..." % sharedrepo)
subprocess.check_call(["git", "clone", "file://%s/%s" % (stashdir, repo), "%s/%s" % (clonedir, repo)])
subprocess.check_call(["git", "remote", "rm", "origin"], cwd=sharedrepo)
subprocess.check_call(["git", "remote", "add", "origin", params["url"]], cwd=sharedrepo)
+ print("Updating from origin...")
subprocess.check_call(["git", "fetch", "origin"], cwd=sharedrepo)
subprocess.check_call(["git", "fetch", "origin", "-t"], cwd=sharedrepo)
else:
+ print("Cloning from origin to %s..." % sharedrepo)
subprocess.check_call(["git", "clone", params["url"], sharedrepo])

subprocess.check_call(["git", "checkout", branch], cwd=sharedrepo)
--
2.25.1


[PATCH][autobuilder-helper][zeus 29/32] config.json: Build buildtools-extended-tarball for x86_64 and aarch64

Richard Purdie
 

Signed-off-by: Richard Purdie <richard.purdie@...>
---
config.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.json b/config.json
index 2218891..ab6943b 100644
--- a/config.json
+++ b/config.json
@@ -595,7 +595,7 @@
"MACHINE" : "qemux86-64",
"step1" : {
"SDKMACHINE" : "x86_64",
- "BBTARGETS" : "buildtools-tarball uninative-tarball"
+ "BBTARGETS" : "buildtools-tarball buildtools-extended-tarball uninative-tarball"
},
"step2" : {
"SDKMACHINE" : "i686",
@@ -603,7 +603,7 @@
},
"step3" : {
"SDKMACHINE" : "aarch64",
- "BBTARGETS" : "uninative-tarball"
+ "BBTARGETS" : "buildtools-tarball buildtools-extended-tarball uninative-tarball"
}
},
"build-appliance" : {
--
2.25.1


[PATCH][autobuilder-helper][zeus 28/32] config.json: Update buildtools config

Richard Purdie
 

Need to use buildtools on centos8 and fedora32 as they lack makeinfo
as part of the default install now.

Also use buildtools to standard and extended as appropriate.

Signed-off-by: Richard Purdie <richard.purdie@...>
---
config.json | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/config.json b/config.json
index 516e050..2218891 100644
--- a/config.json
+++ b/config.json
@@ -8,9 +8,8 @@
"BUILD_HISTORY_DIRECTPUSH" : ["poky:morty", "poky:pyro", "poky:rocko", "poky:sumo", "poky:thud", "poky:warrior", "poky:zeus", "poky:master"],
"BUILD_HISTORY_FORKPUSH" : {"poky-contrib:ross/mut" : "poky:master", "poky:master-next" : "poky:master"},

- "BUILDTOOLS_URL_TEMPLOCAL" : "/srv/autobuilder/autobuilder.yoctoproject.org/pub/non-release/20200309-15/buildtools/x86_64-buildtools-extended-nativesdk-standalone-3.0+snapshot-20200309.sh",
- "BUILDTOOLS_URL_TEMPLOCAL2" : "http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-3.1_M3/buildtools/x86_64-buildtools-extended-nativesdk-standalone-3.0+snapshot-20200315.sh",
- "BUILDTOOLS_URL" : "http://downloads.yoctoproject.org/releases/yocto/milestones/yocto-3.2_M1/buildtools/x86_64-buildtools-extended-nativesdk-standalone-3.1+snapshot-20200617.sh",
+ "BUILDTOOLS_URL" : "/srv/autobuilder/autobuilder.yoctoproject.org/pub/non-release/20200907-11/buildtools/x86_64-buildtools-nativesdk-standalone-3.0.4.sh;f0c06b2cfd2f5d92ef5fb592f4d726f9ad270d83d7846f817a08abfd017d159d",
+ "BUILDTOOLS_URL_EXT" : "/srv/autobuilder/autobuilder.yoctoproject.org/pub/non-release/20200907-11/buildtools/x86_64-buildtools-extended-nativesdk-standalone-3.0.4.sh;a5fea6b64109a604f3718dfb2a7b5ad32402d13ed5472d9d791e7bf9900621bd",

"REPO_STASH_DIR" : "${BASE_HOMEDIR}/git/mirror",
"TRASH_DIR" : "${BASE_HOMEDIR}/git/trash",
@@ -963,6 +962,11 @@
"buildtools" : {
"debian8*" : "${BUILDTOOLS_URL}",
"centos7*" : "${BUILDTOOLS_URL}",
+ "centos8*" : "${BUILDTOOLS_URL_EXT}",
+ "debian10*" : "${BUILDTOOLS_URL_EXT}",
+ "tumbleweed*" : "${BUILDTOOLS_URL_EXT}",
+ "fedora31*" : "${BUILDTOOLS_URL_EXT}",
+ "fedora32*" : "${BUILDTOOLS_URL_EXT}",
"perf-centos7*" : "${BUILDTOOLS_URL}"
}
}
--
2.25.1


[PATCH][autobuilder-helper][zeus 27/32] scripts/send-qa-email: Update to dedicated push capable domain

Richard Purdie
 

From: Michael Halstead <mhalstead@...>

Signed-off-by: Michael Halstead <mhalstead@...>
Signed-off-by: Richard Purdie <richard.purdie@...>
---
scripts/send-qa-email | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/send-qa-email b/scripts/send-qa-email
index abc17e2..f38c876 100755
--- a/scripts/send-qa-email
+++ b/scripts/send-qa-email
@@ -70,10 +70,10 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir:
elif basebranch:
cloneopts = ["--branch", basebranch]
try:
- subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "5"] + cloneopts)
+ subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "5"] + cloneopts)
except subprocess.CalledProcessError:
print("No comparision branch found, falling back to master")
- subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "5"])
+ subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "5"])

# If the base comparision branch isn't present regression comparision won't work
# at least until we can tell the tool to ignore internal branch information
--
2.25.1


[PATCH][autobuilder-helper][zeus 26/32] send-qa-email: Fix stable branch test result history issues

Richard Purdie
 

On stable release branch builds, it will clone "master" since comparebranch
is None. It will then fail to push since there is already a dunfell
branch upstream with changes on which it needs to rebase on top of.
The change to use shallow clones significantly increases this problem.

To fix this, fall back to cloning basebranch by name, then master
if it doesn't exist.

Signed-off-by: Richard Purdie <richard.purdie@...>
---
scripts/send-qa-email | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/scripts/send-qa-email b/scripts/send-qa-email
index b4d4cec..abc17e2 100755
--- a/scripts/send-qa-email
+++ b/scripts/send-qa-email
@@ -55,8 +55,8 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir:
if comparebranch:
extraopts = extraopts + " --branch2 %s" % (comparebranch)
elif basebranch:
- print("No comparision branch found, comparing to master")
- extraopts = extraopts + " --branch2 master"
+ print("No comparision branch found, comparing to %s" % basebranch)
+ extraopts = extraopts + " --branch2 %s" % basebranch

report = subprocess.check_output([resulttool, "report", args.results_dir])
with open(args.results_dir + "/testresult-report.txt", "wb") as f:
@@ -64,7 +64,16 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir:

tempdir = tempfile.mkdtemp(prefix='sendqaemail.')
try:
- subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "5"])
+ cloneopts = []
+ if comparebranch:
+ cloneopts = ["--branch", comparebranch]
+ elif basebranch:
+ cloneopts = ["--branch", basebranch]
+ try:
+ subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "5"] + cloneopts)
+ except subprocess.CalledProcessError:
+ print("No comparision branch found, falling back to master")
+ subprocess.check_call(["git", "clone", "git@...:yocto-testresults", tempdir, "--depth", "5"])

# If the base comparision branch isn't present regression comparision won't work
# at least until we can tell the tool to ignore internal branch information
--
2.25.1


[PATCH][autobuilder-helper][zeus 25/32] build-perf/send-qa-email: Fallback to master as a comparision branch

Richard Purdie
 

Signed-off-by: Richard Purdie <richard.purdie@...>
---
scripts/build-perf-test-wrapper | 3 +++
scripts/send-qa-email | 3 +++
2 files changed, 6 insertions(+)

diff --git a/scripts/build-perf-test-wrapper b/scripts/build-perf-test-wrapper
index e7b24ad..660ef82 100755
--- a/scripts/build-perf-test-wrapper
+++ b/scripts/build-perf-test-wrapper
@@ -185,6 +185,9 @@ if git_repo:
basebranch, comparebranch = utils.getcomparisonbranch(ourconfig, args.repo, args.branch)
if comparebranch:
extraopts = extraopts + " --branch2 %s" % (comparebranch)
+ else:
+ print("No comparision branch found, comparing to master")
+ extraopts = extraopts + " --branch2 master"

print("\nGenerating test report")
open(report_txt, "w").close()
diff --git a/scripts/send-qa-email b/scripts/send-qa-email
index a265a7c..b4d4cec 100755
--- a/scripts/send-qa-email
+++ b/scripts/send-qa-email
@@ -54,6 +54,9 @@ if 'poky' in repos and os.path.exists(resulttool) and args.results_dir:
extraopts = " --branch %s --commit %s" % (branch, revision)
if comparebranch:
extraopts = extraopts + " --branch2 %s" % (comparebranch)
+ elif basebranch:
+ print("No comparision branch found, comparing to master")
+ extraopts = extraopts + " --branch2 master"

report = subprocess.check_output([resulttool, "report", args.results_dir])
with open(args.results_dir + "/testresult-report.txt", "wb") as f:
--
2.25.1


[PATCH][autobuilder-helper][zeus 24/32] scripts/utils.py: Convert md5sum to sha256sum for layer tarballs

Richard Purdie
 

From: Vineela <vineela.tummalapalli@...>

Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@...>
Signed-off-by: Richard Purdie <richard.purdie@...>
(cherry picked from commit 3aefa5a763125c760813a8f8434c574ecd3ca99b)
Signed-off-by: Steve Sakoman <steve@...>
---
scripts/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/utils.py b/scripts/utils.py
index d7b9ae7..ec43832 100644
--- a/scripts/utils.py
+++ b/scripts/utils.py
@@ -251,7 +251,7 @@ def publishrepo(clonedir, repo, publishdir):
revision = subprocess.check_output(["git", "rev-parse", "HEAD"], cwd=sharedrepo).decode('utf-8').strip()
archive_name = repo + "-" + revision + ".tar.bz2"
subprocess.check_call("git archive --format=tar HEAD --prefix=" + repo + "/ | bzip2 -c > " + archive_name, shell=True, cwd=sharedrepo)
- subprocess.check_call("md5sum " + archive_name + " >> " + archive_name + ".md5sum", shell=True, cwd=sharedrepo)
+ subprocess.check_call("sha256sum " + archive_name + " >> " + archive_name + ".sha256sum", shell=True, cwd=sharedrepo)
mkdir(publishdir)
subprocess.check_call("rsync -av " + archive_name + "* " + publishdir, shell=True, cwd=sharedrepo)

--
2.25.1


[PATCH][autobuilder-helper][zeus 23/32] publish-artefacts: Improve sha256 checksum handling

Richard Purdie
 

From: "Tummalapalli, Vineela" <vineela.tummalapalli@...>

The existing checksum files were encoding full paths. This patch changes
this to use just the filename which allows relocation of the directories
and is more appropriate for sharing over http.

Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@...>
Signed-off-by: Richard Purdie <richard.purdie@...>
(cherry picked from commit 835ac325a4ed3e421a5a9bfd7c75f552ae2103cf)
Signed-off-by: Steve Sakoman <steve@...>
---
scripts/publish-artefacts | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/scripts/publish-artefacts b/scripts/publish-artefacts
index a2625d7..8c6653c 100755
--- a/scripts/publish-artefacts
+++ b/scripts/publish-artefacts
@@ -5,10 +5,14 @@ target=$3

sha256sums(){
dest=$1
- for x in `find $dest -maxdepth 5 -type f`; do
- if [ ${x##*.} != sha256sum ]; then
- sha256sum $x >> $x.sha256sum
- fi
+ for x in `find -L $dest -maxdepth 5 -type f`; do
+ for w in $x;do
+ if [ ${w##*.} != sha256sum ]; then
+ shasum=`sha256sum $w | awk '{print $1}'`
+ filename=${w##*/}
+ echo $shasum $filename >> $w.sha256sum
+ fi
+ done
done
}

--
2.25.1

8141 - 8160 of 58636