Re: [yocto] Perl populate sysroot fails (yocto 2.0.3)

2020-10-06 Thread Khem Raj
Please find which other recipe is creating /usr/lib/perl5 directory,
perhaps you can look through builddir for that. I think we had this
kind of sysroot clash with libhugetlbfs and as a workaround may be add
DEPENDS = "perl"  in that recipe to pre-empt the clash.

On Tue, Oct 6, 2020 at 1:36 PM Varangu-Booth, Valen
 wrote:
>
> Hi all,
>
> I'm trying to re-create a build that was previously made by someone else (in 
> an effort to reproduce an exact old build). This is based on Yocto 2.0.3.
> I'm encountering an issue in do_populate_sysroot for Perl, where it fails 
> because /usr/lib/perl5 already exists. (See details below:)
>
> Exception: CalledProcessError: Command 'cd 
> YOCTO_ROOT/build/tmp/work/corei7-64-poky-linux/perl/5.22.0-r0/sysroot-destdir;
>  find . -type d -print | tar -cf - -C 
> YOCTO_ROOT/build/tmp/work/corei7-64-poky-linux/perl/5.22.0-r0/sysroot-destdir 
> -p --files-from - --no-recursion | tar -xf - -C 
> YOCTO_ROOT/build/tmp/sysroots/intel-corei7-64' returned non-zero exit status 
> 2 with output tar: ./usr/lib/perl5: Cannot create symlink to 'perl': File 
> exists
> tar: ./usr/lib/perl5: Cannot create symlink to 'perl': File exists
> tar: ./usr/lib/perl5: Cannot create symlink to 'perl': File exists
>
> The issue seems to always occur when the sstate-cache is present, so 
> do_populate_sysroot_setscene fails first, then it tries to build from scratch 
> and do_populate_sysroot fails as well.
> I have seen it in a completely fresh build as well, though this seems 
> intermittent (or I haven't yet nailed down what changes when it does/doesn't 
> happen).
>
> It seems like somehow some recipe ahead of Perl is putting something in 
> /usr/lib/perl5 and perhaps some kind of race condition caused this to be 
> intermittent?
>
> Any input would be greatly appreciated, eventually I will get this onto a 
> newer version of Yocto but first I need to be able to reliably re-create this 
> exact build.
> 
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50941): https://lists.yoctoproject.org/g/yocto/message/50941
Mute This Topic: https://lists.yoctoproject.org/mt/77349492/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Perl populate sysroot fails (yocto 2.0.3)

2020-10-06 Thread Varangu-Booth, Valen
Hi all,

I'm trying to re-create a build that was previously made by someone else (in an 
effort to reproduce an exact old build). This is based on Yocto 2.0.3.
I'm encountering an issue in do_populate_sysroot for Perl, where it fails 
because /usr/lib/perl5 already exists. (See details below:)

Exception: CalledProcessError: Command 'cd 
YOCTO_ROOT/build/tmp/work/corei7-64-poky-linux/perl/5.22.0-r0/sysroot-destdir; 
find . -type d -print | tar -cf - -C 
YOCTO_ROOT/build/tmp/work/corei7-64-poky-linux/perl/5.22.0-r0/sysroot-destdir 
-p --files-from - --no-recursion | tar -xf - -C 
YOCTO_ROOT/build/tmp/sysroots/intel-corei7-64' returned non-zero exit status 2 
with output tar: ./usr/lib/perl5: Cannot create symlink to 'perl': File exists
tar: ./usr/lib/perl5: Cannot create symlink to 'perl': File exists
tar: ./usr/lib/perl5: Cannot create symlink to 'perl': File exists

The issue seems to always occur when the sstate-cache is present, so 
do_populate_sysroot_setscene fails first, then it tries to build from scratch 
and do_populate_sysroot fails as well.
I have seen it in a completely fresh build as well, though this seems 
intermittent (or I haven't yet nailed down what changes when it does/doesn't 
happen).

It seems like somehow some recipe ahead of Perl is putting something in 
/usr/lib/perl5 and perhaps some kind of race condition caused this to be 
intermittent?

Any input would be greatly appreciated, eventually I will get this onto a newer 
version of Yocto but first I need to be able to reliably re-create this exact 
build.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50940): https://lists.yoctoproject.org/g/yocto/message/50940
Mute This Topic: https://lists.yoctoproject.org/mt/77349492/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Automated script to know all the Recipes details

2020-10-06 Thread Paul Eggleton
Hi there

On Friday, 2 October 2020 01:16:15 NZDT Yocto_user wrote:
> Hi, do we have any automated script that we can run in Yocto 3.0 Zues
> release or any general release to get all these information of all the
> packages installed in a particular Yocto release: 
> 1. Name
> 2. Version
> 3. Homepage link of the Recipes from where it was downloaded.

So if you're familiar with Python you could fairly quickly write a script to 
iterate over recipes and get these values using tinfoil:

  https://wiki.yoctoproject.org/wiki/TipsAndTricks/Tinfoil

Cheers,
Paul




-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50939): https://lists.yoctoproject.org/g/yocto/message/50939
Mute This Topic: https://lists.yoctoproject.org/mt/77238094/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] Yocto Project Status WW40'20

2020-10-06 Thread Stephen Jolley
Current Dev Position: YP 3.2 M4

Next Deadline: YP 3.2 M4 Feature Freeze - Now

 

Next Team Meetings:

*   Bug Triage meeting Thursday Oct. 8TH at 7:30am PDT (
 https://zoom.us/j/454367603)
*   Monthly Project Meeting Tuesday Oct. 6th at 8am PDT (
 https://zoom.us/j/990892712)
*   Weekly Engineering Sync Tuesday Oct. 15th at 8am PDT (
 https://zoom.us/j/990892712)
*   Twitch -  See https://www.twitch.tv/theyoctojester

 

Key Status/Updates:

*   YP M3 has been released
*   YP 3.1.3 is out of QA, there were questions about a failing ptest
but those are due to a test issue, not a regression so its likely to be
released imminently.
*   We are now due to build M4 rc1. The builds will happen when the
current pseudo issues are resolved to a suitable conclusion for the release.
*   As mentioned above, there is a continued concern about file mode
corruption issues in pseudo. We do now have patches which reduce the
corruption window by orders of magnitude by they don't entirely remove the
potential race. Test builds have been seeing issues in wic in particular and
testing is ongoing to try and identify and fix the remaining issues.
*   Unfortunately, intermittent autobuilder issues are still occurring,
whilst reducing in frequency and number, possibly due to less frequency full
rebuilds. You can see the list of failures we're continuing to see by
searching for the "AB-INT" tag in bugzilla:

https://bugzilla.yoctoproject.org/buglist.cgi?quicksearch=AB-INT

Help with any of these would be much appreciated, unfortunately it is
proving hard to find anyone interested in helping figure these out and they
significantly hamper our testing.

 

Ways to contribute:

*   There are bugs identified as possible for newcomers to the project:

https://wiki.yoctoproject.org/wiki/Newcomers
*   There are bugs that are currently unassigned for YP 3.2. See:

https://wiki.yoctoproject.org/wiki/Bug_Triage#Medium.2B_3.2_Unassigned_Enhan
cements.2FBugs
*   We'd welcome new maintainers for recipes in OE-Core. Please see the
list at:

http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/conf/distro/include/main
tainers.inc and discuss with the existing maintainer, or ask on the OE-Core
mailing list. We will likely move a chunk of these to "Unassigned" soon to
help facilitate this.

 

YP 3.2 Milestone Dates:

*   YP 3.2 M3 was released.
*   YP 3.2 M4 build date 2020/10/5
*   YP 3.2 M4 Release date 2020/10/30

 

Planned upcoming dot releases:

*   YP 3.1.3 is out of QA and should release soon.
*   YP 3.1.4 build date 2020/11/2
*   YP 3.1.4 release date 2020/11/13

 

Tracking Metrics:

*   WDD 2498 (last week 2481) (

https://wiki.yoctoproject.org/charts/combo.html)
*   Poky Patch Metrics  

*   Total patches found: 1271 (last week 1270)
*   Patches in the Pending State: 493 (39%) [last week 493 (39%)]

 

The Yocto Project's technical governance is through its Technical Steering
Committee, more information is available at:

 
https://wiki.yoctoproject.org/wiki/TSC

 

The Status reports are now stored on the wiki at:

https://wiki.yoctoproject.org/wiki/Weekly_Status

 

[If anyone has suggestions for other information you'd like to see on this
weekly status update, let us know!]

 

Thanks,

 

Stephen K. Jolley

Yocto Project Program Manager

*Cell:(208) 244-4460

* Email:  sjolley.yp...@gmail.com
 

 


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50937): https://lists.yoctoproject.org/g/yocto/message/50937
Mute This Topic: https://lists.yoctoproject.org/mt/77342322/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-security][PATCH 3/3] suricata: fix compiling on gcc10

2020-10-06 Thread akuster
Signed-off-by: Armin Kuster 
---
 recipes-ids/suricata/suricata_4.1.8.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-ids/suricata/suricata_4.1.8.bb 
b/recipes-ids/suricata/suricata_4.1.8.bb
index 9b7122b..135871c 100644
--- a/recipes-ids/suricata/suricata_4.1.8.bb
+++ b/recipes-ids/suricata/suricata_4.1.8.bb
@@ -14,7 +14,7 @@ SRC_URI += " \
 
 inherit autotools-brokensep pkgconfig python3-dir systemd ptest
 
-CFLAGS += "-D_DEFAULT_SOURCE"
+CFLAGS += "-D_DEFAULT_SOURCE -fcommon"
 
 CACHED_CONFIGUREVARS = "ac_cv_header_htp_htp_h=yes 
ac_cv_lib_htp_htp_conn_create=yes \
 ac_cv_path_HAVE_WGET=no ac_cv_path_HAVE_CURL=no "
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50936): https://lists.yoctoproject.org/g/yocto/message/50936
Mute This Topic: https://lists.yoctoproject.org/mt/77340080/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-security][PATCH 1/3] apparmor: update to 3.0

2020-10-06 Thread akuster
skip ptest for now, on todo list for fix.
Runtime test pass

remove patch now included in update: 
0001-regression-tests-Don-t-build-syscall_sysctl-if-missi.patch

Signed-off-by: Armin Kuster 
---
 .../{apparmor_2.13.4.bb => apparmor_3.0.bb}   | 62 +---
 ...Update-make-check-to-select-tools-ba.patch | 91 ++
 .../0001-apparmor-fix-manpage-order.patch | 43 +
 ...-Don-t-build-syscall_sysctl-if-missi.patch | 96 ---
 recipes-mac/AppArmor/files/functions  |  2 +-
 5 files changed, 158 insertions(+), 136 deletions(-)
 rename recipes-mac/AppArmor/{apparmor_2.13.4.bb => apparmor_3.0.bb} (70%)
 create mode 100644 
recipes-mac/AppArmor/files/0001-Revert-profiles-Update-make-check-to-select-tools-ba.patch
 create mode 100644 
recipes-mac/AppArmor/files/0001-apparmor-fix-manpage-order.patch
 delete mode 100644 
recipes-mac/AppArmor/files/0001-regression-tests-Don-t-build-syscall_sysctl-if-missi.patch

diff --git a/recipes-mac/AppArmor/apparmor_2.13.4.bb 
b/recipes-mac/AppArmor/apparmor_3.0.bb
similarity index 70%
rename from recipes-mac/AppArmor/apparmor_2.13.4.bb
rename to recipes-mac/AppArmor/apparmor_3.0.bb
index 6ba1ea8..9c98199 100644
--- a/recipes-mac/AppArmor/apparmor_2.13.4.bb
+++ b/recipes-mac/AppArmor/apparmor_3.0.bb
@@ -11,10 +11,10 @@ SECTION = "admin"
 LICENSE = "GPLv2 & GPLv2+ & BSD-3-Clause & LGPLv2.1+"
 LIC_FILES_CHKSUM = "file://${S}/LICENSE;md5=fd57a4b0bc782d7b80fd431f10bbf9d0"
 
-DEPENDS = "bison-native apr gettext-native coreutils-native"
+DEPENDS = "bison-native apr gettext-native coreutils-native swig-native"
 
 SRC_URI = " \
-git://gitlab.com/apparmor/apparmor.git;protocol=https;branch=apparmor-2.13 
\
+git://gitlab.com/apparmor/apparmor.git;protocol=https;branch=apparmor-3.0 \
 file://disable_perl_h_check.patch \
 file://crosscompile_perl_bindings.patch \
 file://apparmor.rc \
@@ -23,32 +23,31 @@ SRC_URI = " \
 file://apparmor.service \
 file://0001-Makefile.am-suppress-perllocal.pod.patch \
 file://run-ptest \
-file://0001-regression-tests-Don-t-build-syscall_sysctl-if-missi.patch \
+file://0001-apparmor-fix-manpage-order.patch \
+file://0001-Revert-profiles-Update-make-check-to-select-tools-ba.patch \
 "
 
-SRCREV = "df0ac742f7a1146181d8734d03334494f2015134"
+SRCREV = "5d51483bfecf556183558644dc8958135397a7e2"
 S = "${WORKDIR}/git"
 
 PARALLEL_MAKE = ""
 
 COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*"
 
-inherit pkgconfig autotools-brokensep update-rc.d python3native perlnative 
ptest cpan manpages systemd features_check
+inherit pkgconfig autotools-brokensep update-rc.d python3native perlnative 
cpan systemd features_check bash-completion
+
 REQUIRED_DISTRO_FEATURES = "apparmor"
 
-PACKAGECONFIG ??= "python perl aa-decode"
+PACKAGECONFIG ?= "python perl aa-decode"
 PACKAGECONFIG[manpages] = "--enable-man-pages, --disable-man-pages"
-PACKAGECONFIG[python] = "--with-python, --without-python, python3 swig-native"
-PACKAGECONFIG[perl] = "--with-perl, --without-perl, perl perl-native 
swig-native"
+PACKAGECONFIG[python] = "--with-python, --without-python, python3 , 
python3-core python3-modules"
+PACKAGECONFIG[perl] = "--with-perl, --without-perl, "
 PACKAGECONFIG[apache2] = ",,apache2,"
 PACKAGECONFIG[aa-decode] = ",,,bash"
 
-PAMLIB="${@bb.utils.contains('DISTRO_FEATURES', 'pam', '1', '0', d)}"
-HTTPD="${@bb.utils.contains('PACKAGECONFIG', 'apache2', '1', '0', d)}"
-
 python() {
 if 'apache2' in d.getVar('PACKAGECONFIG').split() and \
-'webserver' not in d.getVar('BBFILE_COLLECTIONS').split():
+   'webserver' not in d.getVar('BBFILE_COLLECTIONS').split():
 raise bb.parse.SkipRecipe('Requires meta-webserver to be present.')
 }
 
@@ -64,24 +63,18 @@ do_configure() {
 }
 
 do_compile () {
-# Fixes:
-# | sed -ie 's///g' Makefile.perl
-# | sed: -e expression #1, char 0: no previous regular expression
-#| Makefile:478: recipe for target 'Makefile.perl' failed
 sed -i "s@sed -ie 's///g' Makefile.perl@@" 
${S}/libraries/libapparmor/swig/perl/Makefile
-
-
 oe_runmake -C ${B}/libraries/libapparmor
 oe_runmake -C ${B}/binutils
 oe_runmake -C ${B}/utils
 oe_runmake -C ${B}/parser
 oe_runmake -C ${B}/profiles
 
-if test -z "${HTTPD}" ; then
+if ${@bb.utils.contains('PACKAGECONFIG','apache2','true','false', d)}; then
 oe_runmake -C ${B}/changehat/mod_apparmor
 fi
 
-if test -z "${PAMLIB}" ; then
+if ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'true', 'false', d)}; 
then
 oe_runmake -C ${B}/changehat/pam_apparmor
 fi
 }
@@ -95,31 +88,21 @@ do_install () {
 oe_runmake -C ${B}/parser DESTDIR="${D}" install
 oe_runmake -C ${B}/profiles DESTDIR="${D}" install
 
-# If perl is disabled this script won't be any good
-if ! ${@bb.utils.contains('PACKAGECONFIG','perl','true','false', d)}; then
-rm -f ${D}${sbindir}/aa-notify
-fi
-
 if ! 

[yocto] [meta-security][PATCH 2/3] packagegroup-core-security: apparmor 3.0 ptest does not build

2020-10-06 Thread akuster
for now skip apparmor ptest

Signed-off-by: Armin Kuster 
---
 recipes-core/packagegroup/packagegroup-core-security.bb | 1 -
 1 file changed, 1 deletion(-)

diff --git a/recipes-core/packagegroup/packagegroup-core-security.bb 
b/recipes-core/packagegroup/packagegroup-core-security.bb
index 9546e0f..1a55c1b 100644
--- a/recipes-core/packagegroup/packagegroup-core-security.bb
+++ b/recipes-core/packagegroup/packagegroup-core-security.bb
@@ -87,6 +87,5 @@ RDEPENDS_packagegroup-meta-security-ptest-packages = "\
 suricata-ptest \
 tripwire-ptest \
 python3-fail2ban-ptest \
-${@bb.utils.contains("DISTRO_FEATURES", "apparmor", "apparmor-ptest", 
"",d)} \
 ${@bb.utils.contains("DISTRO_FEATURES", "smack", "smack-ptest", "",d)} \
 "
-- 
2.17.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50935): https://lists.yoctoproject.org/g/yocto/message/50935
Mute This Topic: https://lists.yoctoproject.org/mt/77340079/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] Kernel panic after failing to load libssl.so.1.0.0 #kernel

2020-10-06 Thread aravind . chittapur
Copying libssl.so.1.0.0 to boot initrd image solved the problem.

Thanks,
Aravind

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#50933): https://lists.yoctoproject.org/g/yocto/message/50933
Mute This Topic: https://lists.yoctoproject.org/mt/77212937/21656
Mute #kernel:https://lists.yoctoproject.org/g/yocto/mutehashtag/kernel
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-