Date   

Re: kcrash package compile issue

Zoran
 

CMake Error in src/CMakeLists.txt:

Imported target "KF5::WindowSystem" includes non-existent path
You somehow mixed Windows and Linux Cmake build systems. Not sure how...

Solution 1: fix on the fly current problem:
You should inspect the file: src/CMakeLists.txt and try to fix Windows
paths to match Linux paths.

Solution 2: delete the current Cmake setup and execute it from scratch:
Error should not happen, since you need to delete the Cmake setup and
do the whole thing from scratch.
1) configure <<===== This step causes you problems!
2) make
3) make install

Zee
_______


On Mon, Aug 30, 2021 at 6:10 AM sateesh m <sateesh0457@...> wrote:

Hi Team,

I am trying to build kcrash package. I got below error.Can anybody know how to fix this please guide me.

ERROR: kcrash-5.85.0-r0 do_configure: Execution of '/home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/temp/run.do_configure.12650' failed with exit code 1:

-- The C compiler identification is GNU 10.2.0

-- The CXX compiler identification is GNU 10.2.0

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working C compiler: /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot-native/usr/bin/riscv64-oe-linux/riscv64-oe-linux-gcc - skipped

-- Detecting C compile features

-- Detecting C compile features - done

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Check for working CXX compiler: /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot-native/usr/bin/riscv64-oe-linux/riscv64-oe-linux-g++ - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

--



Installing in /usr. Run /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/build/prefix.sh to set the environment for KCrash.

-- Looking for __GLIBC__

-- Looking for __GLIBC__ - found

-- Performing Test _OFFT_IS_64BIT

-- Performing Test _OFFT_IS_64BIT - Success

-- Performing Test HAVE_DATE_TIME

-- Performing Test HAVE_DATE_TIME - Success

-- Performing Test BSYMBOLICFUNCTIONS_AVAILABLE

-- Performing Test BSYMBOLICFUNCTIONS_AVAILABLE - Success

fatal: not a git repository (or any of the parent directories): .git

-- Found X11: /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot/usr/include

-- Looking for XOpenDisplay in /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot/usr/lib/libX11.so;/home/sateesh/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot/usr/lib/libXext.so

-- Looking for XOpenDisplay in /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot/usr/lib/libX11.so;/home/sateesh/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot/usr/lib/libXext.so - found

-- Looking for gethostbyname

-- Looking for gethostbyname - found

-- Looking for connect

-- Looking for connect - found

-- Looking for remove

-- Looking for remove - found

-- Looking for shmat

-- Looking for shmat - found

-- Looking for IceConnectionNumber in ICE

-- Looking for IceConnectionNumber in ICE - found

-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY

-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success

-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY

-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success

-- Performing Test COMPILER_HAS_DEPRECATED_ATTR

-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success

-- The following features have been enabled:



* Core Pattern Raising, Raising signals to kernel core patterns (iff the pattern is a process). You may wish to not install drkonqi if this can cause a UI conflict.



-- The following OPTIONAL packages have been found:



* X11



-- The following REQUIRED packages have been found:



* ECM (required version >= 5.85.0), Extra CMake Modules., <https://commits.kde.org/extra-cmake-modules>

* Qt5 (required version >= 5.15.0)

* Qt5Core (required version >= 5.15.0)

* KF5CoreAddons (required version >= 5.85.0)

* Qt5Gui (required version >= 5.15.0)

* KF5WindowSystem (required version >= 5.85.0)

* Qt5X11Extras (required version >= 5.15.0)



-- The following features have been disabled:



* QCH, API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)



-- Configuring done

CMake Error in src/CMakeLists.txt:

Imported target "KF5::WindowSystem" includes non-existent path



"/home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kwindowsystem/5.85.0-r0/recipe-sysroot/usr/include"



in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:



* The path was deleted, renamed, or moved to another location.



* An install or uninstall procedure did not complete successfully.



* The installation package was faulty and references files it does not

provide.







CMake Error in src/CMakeLists.txt:

Imported target "KF5::WindowSystem" includes non-existent path



"/home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kwindowsystem/5.85.0-r0/recipe-sysroot/usr/include"



in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:



* The path was deleted, renamed, or moved to another location.



* An install or uninstall procedure did not complete successfully.



* The installation package was faulty and references files it does not

provide.







-- Generating done

CMake Warning:

Manually-specified variables were not used by the project:



BUILD_DESIGNERPLUGIN

LIB_SUFFIX

OE_KF5_PATH_HOST_ROOT

OE_QMAKE_PATH_ARCHDATA

OE_QMAKE_PATH_BINS

OE_QMAKE_PATH_DATA

OE_QMAKE_PATH_DOCS

OE_QMAKE_PATH_EXAMPLES

OE_QMAKE_PATH_HEADERS

OE_QMAKE_PATH_HOST_BINS

OE_QMAKE_PATH_HOST_DATA

OE_QMAKE_PATH_HOST_LIBS

OE_QMAKE_PATH_HOST_PREFIX

OE_QMAKE_PATH_LIBEXECS

OE_QMAKE_PATH_LIBS

OE_QMAKE_PATH_PLUGINS

OE_QMAKE_PATH_PREFIX

OE_QMAKE_PATH_QML

OE_QMAKE_PATH_QT_ARCHDATA

OE_QMAKE_PATH_QT_BINS

OE_QMAKE_PATH_QT_DATA

OE_QMAKE_PATH_QT_DOCS

OE_QMAKE_PATH_QT_EXAMPLES

OE_QMAKE_PATH_QT_HEADERS

OE_QMAKE_PATH_QT_SETTINGS

OE_QMAKE_PATH_QT_TESTS

OE_QMAKE_PATH_QT_TRANSLATIONS

OE_QMAKE_PATH_SETTINGS

OE_QMAKE_PATH_TESTS

OE_QMAKE_PATH_TRANSLATIONS

PYTHON_EXECUTABLE

Python3_EXECUTABLE

Python_EXECUTABLE





CMake Generate step failed. Build files cannot be regenerated correctly.

WARNING: exit code 1 from a shell command.



ERROR: Logfile of failure stored in: /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/temp/log.do_configure.12650

--
Regards,
Sateesh


kcrash package compile issue

sateesh m
 

Hi Team,

             I am trying to build kcrash package. I got below error.Can anybody know how to fix this please guide me.

ERROR: kcrash-5.85.0-r0 do_configure: Execution of '/home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/temp/run.do_configure.12650' failed with exit code 1:

-- The C compiler identification is GNU 10.2.0

-- The CXX compiler identification is GNU 10.2.0

-- Detecting C compiler ABI info

-- Detecting C compiler ABI info - done

-- Check for working C compiler: /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot-native/usr/bin/riscv64-oe-linux/riscv64-oe-linux-gcc - skipped

-- Detecting C compile features

-- Detecting C compile features - done

-- Detecting CXX compiler ABI info

-- Detecting CXX compiler ABI info - done

-- Check for working CXX compiler: /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot-native/usr/bin/riscv64-oe-linux/riscv64-oe-linux-g++ - skipped

-- Detecting CXX compile features

-- Detecting CXX compile features - done

--

 

Installing in /usr. Run /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/build/prefix.sh to set the environment for KCrash.

-- Looking for __GLIBC__

-- Looking for __GLIBC__ - found

-- Performing Test _OFFT_IS_64BIT

-- Performing Test _OFFT_IS_64BIT - Success

-- Performing Test HAVE_DATE_TIME

-- Performing Test HAVE_DATE_TIME - Success

-- Performing Test BSYMBOLICFUNCTIONS_AVAILABLE

-- Performing Test BSYMBOLICFUNCTIONS_AVAILABLE - Success

fatal: not a git repository (or any of the parent directories): .git

-- Found X11: /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot/usr/include

-- Looking for XOpenDisplay in /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot/usr/lib/libX11.so;/home/sateesh/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot/usr/lib/libXext.so

-- Looking for XOpenDisplay in /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot/usr/lib/libX11.so;/home/sateesh/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/recipe-sysroot/usr/lib/libXext.so - found

-- Looking for gethostbyname

-- Looking for gethostbyname - found

-- Looking for connect

-- Looking for connect - found

-- Looking for remove

-- Looking for remove - found

-- Looking for shmat

-- Looking for shmat - found

-- Looking for IceConnectionNumber in ICE

-- Looking for IceConnectionNumber in ICE - found

-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY

-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success

-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY

-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success

-- Performing Test COMPILER_HAS_DEPRECATED_ATTR

-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success

-- The following features have been enabled:

 

* Core Pattern Raising, Raising signals to kernel core patterns (iff the pattern is a process). You may wish to not install drkonqi if this can cause a UI conflict.

 

-- The following OPTIONAL packages have been found:

 

* X11

 

-- The following REQUIRED packages have been found:

 

* ECM (required version >= 5.85.0), Extra CMake Modules., <https://commits.kde.org/extra-cmake-modules>

* Qt5 (required version >= 5.15.0)

* Qt5Core (required version >= 5.15.0)

* KF5CoreAddons (required version >= 5.85.0)

* Qt5Gui (required version >= 5.15.0)

* KF5WindowSystem (required version >= 5.85.0)

* Qt5X11Extras (required version >= 5.15.0)

 

-- The following features have been disabled:

 

* QCH, API documentation in QCH format (for e.g. Qt Assistant, Qt Creator & KDevelop)

 

-- Configuring done

CMake Error in src/CMakeLists.txt:

Imported target "KF5::WindowSystem" includes non-existent path

 

"/home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kwindowsystem/5.85.0-r0/recipe-sysroot/usr/include"

 

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

 

* The path was deleted, renamed, or moved to another location.

 

* An install or uninstall procedure did not complete successfully.

 

* The installation package was faulty and references files it does not

provide.

 

 

 

CMake Error in src/CMakeLists.txt:

Imported target "KF5::WindowSystem" includes non-existent path

 

"/home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kwindowsystem/5.85.0-r0/recipe-sysroot/usr/include"

 

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

 

* The path was deleted, renamed, or moved to another location.

 

* An install or uninstall procedure did not complete successfully.

 

* The installation package was faulty and references files it does not

provide.

 

 

 

-- Generating done

CMake Warning:

Manually-specified variables were not used by the project:

 

BUILD_DESIGNERPLUGIN

LIB_SUFFIX

OE_KF5_PATH_HOST_ROOT

OE_QMAKE_PATH_ARCHDATA

OE_QMAKE_PATH_BINS

OE_QMAKE_PATH_DATA

OE_QMAKE_PATH_DOCS

OE_QMAKE_PATH_EXAMPLES

OE_QMAKE_PATH_HEADERS

OE_QMAKE_PATH_HOST_BINS

OE_QMAKE_PATH_HOST_DATA

OE_QMAKE_PATH_HOST_LIBS

OE_QMAKE_PATH_HOST_PREFIX

OE_QMAKE_PATH_LIBEXECS

OE_QMAKE_PATH_LIBS

OE_QMAKE_PATH_PLUGINS

OE_QMAKE_PATH_PREFIX

OE_QMAKE_PATH_QML

OE_QMAKE_PATH_QT_ARCHDATA

OE_QMAKE_PATH_QT_BINS

OE_QMAKE_PATH_QT_DATA

OE_QMAKE_PATH_QT_DOCS

OE_QMAKE_PATH_QT_EXAMPLES

OE_QMAKE_PATH_QT_HEADERS

OE_QMAKE_PATH_QT_SETTINGS

OE_QMAKE_PATH_QT_TESTS

OE_QMAKE_PATH_QT_TRANSLATIONS

OE_QMAKE_PATH_SETTINGS

OE_QMAKE_PATH_TESTS

OE_QMAKE_PATH_TRANSLATIONS

PYTHON_EXECUTABLE

Python3_EXECUTABLE

Python_EXECUTABLE

 

 

CMake Generate step failed. Build files cannot be regenerated correctly.

WARNING: exit code 1 from a shell command.

 

ERROR: Logfile of failure stored in: /home/yocto/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/kcrash/5.85.0-r0/temp/log.do_configure.12650

--
Regards,
Sateesh


Re: Pyinstaller error in yocto #yocto

Robert Berger
 

Hi,

Please don't use screen shots, but pastebin instead. I already mentioned this on fb.

My comments are inline.

On 29/08/2021 13:48, yasminebenghozzi6@... wrote:
Hello,
I successfully installed pyinstaller in my yocto image , but while executing the command it doesn't work
It misses ldd.

It's here:

https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-core/glibc/glibc-package.inc

You might want to try something like:

IMAGE_INSTALL += "ldd"

Regards,

Robert


Pyinstaller error in yocto #yocto

yasminebenghozzi6@...
 

Hello,
I successfully installed pyinstaller in my yocto image , but while executing the command it doesn't work


Re: [oe][meta-security][PATCH] meta: Fix typos

Martin Jansa
 

Please merge this one.


On Wed, Aug 4, 2021 at 1:20 PM Martin Jansa via lists.yoctoproject.org <Martin.Jansa=gmail.com@...> wrote:
Acked-by: Martin Jansa <Martin.Jansa@...>

On Mon, Aug 2, 2021 at 11:02 AM George Liu <liuxiwei1013@...> wrote:
Fix the variable spelling errors
s/SKIP_META_SECUIRTY_SANITY_CHECK/SKIP_META_SECURITY_SANITY_CHECK

Signed-off-by: George Liu <liuxiwei@...>
---
 classes/sanity-meta-security.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/classes/sanity-meta-security.bbclass b/classes/sanity-meta-security.bbclass
index b6c6b9c..f9e2698 100644
--- a/classes/sanity-meta-security.bbclass
+++ b/classes/sanity-meta-security.bbclass
@@ -1,7 +1,7 @@
 addhandler security_bbappend_distrocheck
 security_bbappend_distrocheck[eventmask] = "bb.event.SanityCheck"
 python security_bbappend_distrocheck() {
-    skip_check = e.data.getVar('SKIP_META_SECUIRTY_SANITY_CHECK') == "1"
+    skip_check = e.data.getVar('SKIP_META_SECURITY_SANITY_CHECK') == "1"
     if 'security' not in e.data.getVar('DISTRO_FEATURES').split() and not skip_check:
         bb.warn("You have included the meta-security layer, but \
 'security' has not been enabled in your DISTRO_FEATURES. Some bbappend files \
--
2.30.2








Re: [meta-tpm][PATCH v2] README: fix mailing lists and a typo

Armin Kuster
 

merged
thanks

On 8/25/21 6:25 AM, Marta Rybczynska wrote:
A number of typo fixes:
- tmp->tpm in the DISTRO_FEATURES
- update the mailing list address as it was out of date
- update the distro name in the subject

Signed-off-by: Marta Rybczynska <rybczynska@...>
---
meta-tpm/README | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/meta-tpm/README b/meta-tpm/README
index 4441dd2..2b32a9f 100644
--- a/meta-tpm/README
+++ b/meta-tpm/README
@@ -5,7 +5,7 @@ The bbappend files for some recipes (e.g. linux-yocto) in this layer need
to have 'tpm' in DISTRO_FEATURES to have effect.
To enable them, add in configuration file the following line.

- DISTRO_FEATURES:append = " tmp"
+ DISTRO_FEATURES:append = " tpm"

If meta-tpm is included, but tpm is not enabled as a
distro feature a warning is printed at parse time:
@@ -57,15 +57,15 @@ other layers needed. e.g.:
Maintenance
-----------

-Send pull requests, patches, comments or questions to yocto@...
+Send pull requests, patches, comments or questions to yocto@...

When sending single patches, please using something like:
-'git send-email -1 --to yocto@... --subject-prefix=meta-security][PATCH'
+'git send-email -1 --to yocto@... --subject-prefix=meta-tpm][PATCH'

These values can be set as defaults for this repository:

-$ git config sendemail.to yocto@...
-$ git config format.subjectPrefix meta-security][PATCH
+$ git config sendemail.to yocto@...
+$ git config format.subjectPrefix meta-tpm][PATCH

Now you can just do 'git send-email origin/master' to send all local patches.


Re: [PATCH] meta-integrity: kernel-modsign: Change weak default value

Armin Kuster
 

merged
thanks

On 8/26/21 10:14 AM, Daiane Angolini wrote:
Assign a weak default value for MODSIGN_KEY_DIR so the other layers can
set a default value for them as well.

Signed-off-by: Daiane Angolini <daiane.angolini@...>
---
meta-integrity/classes/kernel-modsign.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-integrity/classes/kernel-modsign.bbclass b/meta-integrity/classes/kernel-modsign.bbclass
index cf5d3eb..093c358 100644
--- a/meta-integrity/classes/kernel-modsign.bbclass
+++ b/meta-integrity/classes/kernel-modsign.bbclass
@@ -2,7 +2,7 @@
# set explicitly in a local.conf before activating kernel-modsign.
# To use the insecure (because public) example keys, use
# MODSIGN_KEY_DIR = "${INTEGRITY_BASE}/data/debug-keys"
-MODSIGN_KEY_DIR ?= "MODSIGN_KEY_DIR_NOT_SET"
+MODSIGN_KEY_DIR ??= "MODSIGN_KEY_DIR_NOT_SET"

# Private key for modules signing. The default is okay when
# using the example key directory.



Re: [meta-hardening][PATCH] README: fix mailing lists

Armin Kuster
 

merged

thanks

On 8/24/21 11:20 PM, Marta Rybczynska wrote:
The address included in the meta-hardening documentation
does not work and was changed in other places in 2019.

Signed-off-by: Marta Rybczynska <rybczynska@...>
---
meta-hardening/README | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-hardening/README b/meta-hardening/README
index 37a0b7e..191253c 100644
--- a/meta-hardening/README
+++ b/meta-hardening/README
@@ -64,14 +64,14 @@ layers: meta-oe
Maintenance
-----------

-Send pull requests, patches, comments or questions to yocto@...
+Send pull requests, patches, comments or questions to yocto@...

When sending single patches, please using something like:
-'git send-email -1 --to yocto@... --subject-prefix=meta-hardening][PATCH'
+'git send-email -1 --to yocto@... --subject-prefix=meta-hardening][PATCH'

These values can be set as defaults for this repository:

-$ git config sendemail.to yocto@...
+$ git config sendemail.to yocto@...
$ git config format.subjectPrefix meta-hardening][PATCH

Now you can just do 'git send-email origin/master' to send all local patches.


Re: [meta-mingw] [PATCH] grpc: use the new PACKAGECONFIG to disable shared

Sinan Kaya <okaya@...>
 

On 8/27/2021 8:41 AM, Joshua Watt wrote:

@@ -1,5 +1,4 @@
  # doesn't build and not required
  DEPENDS:remove:mingw32 = "libnsl2"

This is good, thanks. Is the libnsl2 also tied to some feature? Perhaps
you can explain why it needs to be removed from MinGW
My research says libnsl is a soft requirement for c-ares.
GRPC assumes libnsl to be present and used by default.
However, it will build without it too.

https://www.linuxfromscratch.org/blfs/view/svn/basicnet/libnsl.html

We should be turning libnsl off if you want to enable GRPC's backward
compatibility mode. Maybe, because previous versions didn't support
libnsl.


c-ares
-------------
CMakeLists.txt:CARES_FUNCTION_IN_LIBRARY (gethostbyname nsl HAVE_LIBNSL)
CMakeLists.txt: LIST (APPEND CARES_DEPENDENT_LIBS nsl)


grpc
-------------
if(gRPC_BACKWARDS_COMPATIBILITY_MODE)
# See https://github.com/grpc/grpc/issues/17255
set(HAVE_LIBNSL OFF CACHE BOOL "avoid cares dependency on libnsl")
endif()

CMakeLists.txt:option(gRPC_BACKWARDS_COMPATIBILITY_MODE "Build libraries
that are binary compatible across a larger number of OS and libc
versions" OFF)
CMakeLists.txt:if(gRPC_BACKWARDS_COMPATIBILITY_MODE)


Re: Extensible SDK - runtime packages installation

d0ku
 

Ok, I was able to find the answer to the third point:

 Am I possibly missing some configuration steps? In Yocto environment the PATH gets expanded with `bin/perl-native` automatically, but I wasn't able to pinpoint what file/task actually does it.

The bolded sentence is not actually true. Adding perl-native to the DEPENDS of a recipe, does not cause it to be automatically picked up during the build. For this to happen the perlnative bbclass has to be inherited. Same design is in place for at least python, probably more packages.

This brings me to the followup question:
How can I mimic the perlnative or python3native behaviour on the eSDK level? Is this only possible via the devtool and recipes, and so can't be done "outside" of the Yocto environment, e.g. using ${CC} and ${CXX} variables?

Regards,
Jakub


[meta-security][PATCH 6/6] harden-image-minimal: fix useradd inherit

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@...>
---
.../recipes-core/images/harden-image-minimal.bb | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/meta-hardening/recipes-core/images/harden-image-minimal.bb b/meta-hardening/recipes-core/images/harden-image-minimal.bb
index c35c257..38771cd 100644
--- a/meta-hardening/recipes-core/images/harden-image-minimal.bb
+++ b/meta-hardening/recipes-core/images/harden-image-minimal.bb
@@ -10,7 +10,8 @@ LICENSE = "MIT"

IMAGE_ROOTFS_SIZE ?= "8192"

-inherit core-image extrausers
+inherit core-image
+IMAGE_CLASSES:append = " extrausers"

ROOT_DEFAULT_PASSWORD ?= "1SimplePw!"
DEFAULT_ADMIN_ACCOUNT ?= "myadmin"
@@ -19,7 +20,7 @@ DEFAULT_ADMIN_ACCOUNT_PASSWORD ?= "1SimplePw!"

EXTRA_USERS_PARAMS = "${@bb.utils.contains('DISABLE_ROOT', 'True', "usermod -L root;", "usermod -P '${ROOT_DEFAULT_PASSWORD}' root;", d)}"

-EXTRA_USERS_PARAMS += "useradd ${DEFAULT_ADMIN_ACCOUNT};"
-EXTRA_USERS_PARAMS += "groupadd ${DEFAULT_ADMIN_GROUP};"
-EXTRA_USERS_PARAMS += "usermod -P '${DEFAULT_ADMIN_ACCOUNT_PASSWORD}' ${DEFAULT_ADMIN_ACCOUNT};"
-EXTRA_USERS_PARAMS += "usermod -aG ${DEFAULT_ADMIN_GROUP} ${DEFAULT_ADMIN_ACCOUNT};"
+EXTRA_USERS_PARAMS:append = " useradd ${DEFAULT_ADMIN_ACCOUNT};"
+EXTRA_USERS_PARAMS:append = " groupadd ${DEFAULT_ADMIN_GROUP};"
+EXTRA_USERS_PARAMS:append = " usermod -P '${DEFAULT_ADMIN_ACCOUNT_PASSWORD}' ${DEFAULT_ADMIN_ACCOUNT};"
+EXTRA_USERS_PARAMS:append = " usermod -aG ${DEFAULT_ADMIN_GROUP} ${DEFAULT_ADMIN_ACCOUNT};"
--
2.25.1


[meta-security][PATCH 5/6] layer.conf: drop meta-rust

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@...>
---
meta-parsec/conf/layer.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta-parsec/conf/layer.conf b/meta-parsec/conf/layer.conf
index 86d41b2..2eeb71b 100644
--- a/meta-parsec/conf/layer.conf
+++ b/meta-parsec/conf/layer.conf
@@ -10,5 +10,5 @@ BBFILE_PRIORITY_parsec-layer = "5"

LAYERSERIES_COMPAT_parsec-layer = "honister"

-LAYERDEPENDS_parsec-layer = "core rust-layer clang-layer tpm-layer"
+LAYERDEPENDS_parsec-layer = "core clang-layer tpm-layer"
BBLAYERS_LAYERINDEX_NAME_parsec-layer = "meta-parsec"
--
2.25.1


[meta-security][PATCH 4/6] layer.conf: drop dynamic-layer

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@...>
---
conf/layer.conf | 4 ----
1 file changed, 4 deletions(-)

diff --git a/conf/layer.conf b/conf/layer.conf
index cdcfaee..ad9da56 100644
--- a/conf/layer.conf
+++ b/conf/layer.conf
@@ -16,7 +16,3 @@ LAYERDEPENDS_security = "core openembedded-layer perl-layer networking-layer met
# Sanity check for meta-security layer.
# Setting SKIP_META_SECURITY_SANITY_CHECK to "1" would skip the bbappend files check.
INHERIT += "sanity-meta-security"
-
-BBFILES_DYNAMIC += " \
-rust-layer:${LAYERDIR}/dynamic-layers/meta-rust/recipes-*/*/*.bb \
-"
--
2.25.1


[meta-security][PATCH 3/6] suricata: rust is in core

Armin Kuster
 

drop dynamic-layer

Signed-off-by: Armin Kuster <akuster808@...>
---
.../recipes-ids => recipes-ids}/suricata/files/fixup.patch | 0
.../recipes-ids => recipes-ids}/suricata/files/run-ptest | 0
.../recipes-ids => recipes-ids}/suricata/files/suricata.service | 0
.../recipes-ids => recipes-ids}/suricata/files/suricata.yaml | 0
.../recipes-ids => recipes-ids}/suricata/files/tmpfiles.suricata | 0
.../suricata/files/volatiles.03_suricata | 0
.../recipes-ids => recipes-ids}/suricata/libhtp_0.5.38.bb | 0
.../meta-rust/recipes-ids => recipes-ids}/suricata/suricata.inc | 0
.../recipes-ids => recipes-ids}/suricata/suricata_6.0.3.bb | 0
9 files changed, 0 insertions(+), 0 deletions(-)
rename {dynamic-layers/meta-rust/recipes-ids => recipes-ids}/suricata/files/fixup.patch (100%)
rename {dynamic-layers/meta-rust/recipes-ids => recipes-ids}/suricata/files/run-ptest (100%)
rename {dynamic-layers/meta-rust/recipes-ids => recipes-ids}/suricata/files/suricata.service (100%)
rename {dynamic-layers/meta-rust/recipes-ids => recipes-ids}/suricata/files/suricata.yaml (100%)
rename {dynamic-layers/meta-rust/recipes-ids => recipes-ids}/suricata/files/tmpfiles.suricata (100%)
rename {dynamic-layers/meta-rust/recipes-ids => recipes-ids}/suricata/files/volatiles.03_suricata (100%)
rename {dynamic-layers/meta-rust/recipes-ids => recipes-ids}/suricata/libhtp_0.5.38.bb (100%)
rename {dynamic-layers/meta-rust/recipes-ids => recipes-ids}/suricata/suricata.inc (100%)
rename {dynamic-layers/meta-rust/recipes-ids => recipes-ids}/suricata/suricata_6.0.3.bb (100%)

diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/files/fixup.patch b/recipes-ids/suricata/files/fixup.patch
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/files/fixup.patch
rename to recipes-ids/suricata/files/fixup.patch
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/files/run-ptest b/recipes-ids/suricata/files/run-ptest
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/files/run-ptest
rename to recipes-ids/suricata/files/run-ptest
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/files/suricata.service b/recipes-ids/suricata/files/suricata.service
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/files/suricata.service
rename to recipes-ids/suricata/files/suricata.service
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/files/suricata.yaml b/recipes-ids/suricata/files/suricata.yaml
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/files/suricata.yaml
rename to recipes-ids/suricata/files/suricata.yaml
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/files/tmpfiles.suricata b/recipes-ids/suricata/files/tmpfiles.suricata
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/files/tmpfiles.suricata
rename to recipes-ids/suricata/files/tmpfiles.suricata
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/files/volatiles.03_suricata b/recipes-ids/suricata/files/volatiles.03_suricata
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/files/volatiles.03_suricata
rename to recipes-ids/suricata/files/volatiles.03_suricata
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/libhtp_0.5.38.bb b/recipes-ids/suricata/libhtp_0.5.38.bb
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/libhtp_0.5.38.bb
rename to recipes-ids/suricata/libhtp_0.5.38.bb
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/suricata.inc b/recipes-ids/suricata/suricata.inc
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/suricata.inc
rename to recipes-ids/suricata/suricata.inc
diff --git a/dynamic-layers/meta-rust/recipes-ids/suricata/suricata_6.0.3.bb b/recipes-ids/suricata/suricata_6.0.3.bb
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-ids/suricata/suricata_6.0.3.bb
rename to recipes-ids/suricata/suricata_6.0.3.bb
--
2.25.1


[meta-security][PATCH 2/6] krill: Rust is in core now

Armin Kuster
 

drop dynamic-layer

Signed-off-by: Armin Kuster <akuster808@...>
---
.../krill/files/panic_workaround.patch | 0
.../recipes-security => recipes-security}/krill/krill.inc | 0
.../recipes-security => recipes-security}/krill/krill_0.9.1.bb | 0
3 files changed, 0 insertions(+), 0 deletions(-)
rename {dynamic-layers/meta-rust/recipes-security => recipes-security}/krill/files/panic_workaround.patch (100%)
rename {dynamic-layers/meta-rust/recipes-security => recipes-security}/krill/krill.inc (100%)
rename {dynamic-layers/meta-rust/recipes-security => recipes-security}/krill/krill_0.9.1.bb (100%)

diff --git a/dynamic-layers/meta-rust/recipes-security/krill/files/panic_workaround.patch b/recipes-security/krill/files/panic_workaround.patch
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-security/krill/files/panic_workaround.patch
rename to recipes-security/krill/files/panic_workaround.patch
diff --git a/dynamic-layers/meta-rust/recipes-security/krill/krill.inc b/recipes-security/krill/krill.inc
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-security/krill/krill.inc
rename to recipes-security/krill/krill.inc
diff --git a/dynamic-layers/meta-rust/recipes-security/krill/krill_0.9.1.bb b/recipes-security/krill/krill_0.9.1.bb
similarity index 100%
rename from dynamic-layers/meta-rust/recipes-security/krill/krill_0.9.1.bb
rename to recipes-security/krill/krill_0.9.1.bb
--
2.25.1


[meta-security][PATCH 1/6] dm-verity-img.bbclass: more overided fixups

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@...>
---
classes/dm-verity-img.bbclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/classes/dm-verity-img.bbclass b/classes/dm-verity-img.bbclass
index 16d395b..a0950da 100644
--- a/classes/dm-verity-img.bbclass
+++ b/classes/dm-verity-img.bbclass
@@ -63,8 +63,8 @@ verity_setup() {
VERITY_TYPES = "ext2.verity ext3.verity ext4.verity btrfs.verity"
IMAGE_TYPES += "${VERITY_TYPES}"
CONVERSIONTYPES += "verity"
-CONVERSION_CMD_verity = "verity_setup ${type}"
-CONVERSION_DEPENDS_verity = "cryptsetup-native"
+CONVERSION_CMD:verity = "verity_setup ${type}"
+CONVERSION_DEPENDS:verity = "cryptsetup-native"

python __anonymous() {
verity_image = d.getVar('DM_VERITY_IMAGE')
--
2.25.1


Re: [meta-mingw] [PATCH] grpc: use the new PACKAGECONFIG to disable shared

Joshua Watt
 

On 8/24/21 11:48 AM, Sinan Kaya wrote:
There is a new PACKAGECONFIG for grpc to allows us
to selectively enable/disable shared builds.

Signed-off-by: Sinan Kaya <okaya@...>
---
.../openembedded-layers/recipes-devtools/grpc/grpc_%.bbappend | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/dynamic-layers/openembedded-layers/recipes-devtools/grpc/grpc_%.bbappend b/dynamic-layers/openembedded-layers/recipes-devtools/grpc/grpc_%.bbappend
index dc0ea42..4cbd1a4 100644
--- a/dynamic-layers/openembedded-layers/recipes-devtools/grpc/grpc_%.bbappend
+++ b/dynamic-layers/openembedded-layers/recipes-devtools/grpc/grpc_%.bbappend
@@ -1,5 +1,4 @@
# doesn't build and not required
DEPENDS:remove:mingw32 = "libnsl2"
-EXTRA_OECMAKE:remove:mingw32 = "-DBUILD_SHARED_LIBS=ON"
-EXTRA_OECMAKE:append:mingw32 = " -DBUILD_SHARED_LIBS=OFF"
+PACKAGECONFIG:remove:mingw32 = "shared"
This is good, thanks. Is the libnsl2 also tied to some feature? Perhaps you can explain why it needs to be removed from MinGW


Re: [PATCH v2 ptest-runner 2/2] main: Do not return number of failed tests when calling ptest-runner

?ukasz Majewski
 

Hi Anibal,

Up till now ptest-runner2 returns number of failed tests with its
exit status code. Such use case is not recommended [1] and may cause
issues when there are more than 256 tests to be executed.

To alleviate this issue the number of total tests with number of
failed ones is printed before exit. To be more specific - failure of
tests (one or more) causes ptest-runner to provide exit code of 1.

One can test this change with executing:
./ptest-runner -d tests/data fail
Gentle ping on this patch.


Links:
[1] -
https://www.gnu.org/software/libc/manual/html_node/Exit-Status.html

Signed-off-by: Lukasz Majewski <lukma@...>
---
Changes for v2:
- When number of failed tests is N, the ptest-runner returns value of
1 to indicate error in the execution
---
main.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/main.c b/main.c
index 890bc6a..bcec844 100644
--- a/main.c
+++ b/main.c
@@ -220,6 +220,9 @@ main(int argc, char *argv[])
ptest_list_remove(run, opts.exclude[i], 1);

rc = run_ptests(run, opts, argv[0], stdout, stderr);
+ fprintf(stdout, "TOTAL: %d FAIL: %d\n",
ptest_list_length(run), rc);
+ if (rc > 0)
+ rc = 1;

ptest_list_free_all(&run);



Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@...


Re: building mbpoll

Josef Holzmayr
 

(re-adding list)

Am 27.08.2021 um 11:17 schrieb Ivan Riabtsov:
maybe mbpoll is not cloned? I found the custom-rts.c file on the
mbpoll website and try to search for it in the build directory, but I
can't find anything
my mbpoll_1.4.11.bb file:
SUMMARY = "bitbake-layers recipe"
DESCRIPTION = "mbpoll recipe"
LICENSE = "CLOSED"
SRC_URI = "git://github.com/epsilonrt/mbpoll"
SRCREV = "2bf602817370000e69221eb50c4ece813d10c0b4"
DEPENDS = "libmodbus"
S = "${WORKDIR}/git"
inherit pkgconfig cmake
again, any particular reason why you're poking the recipe by hand instead of just using devtool (which perfectly works in this case)? it would even give you a good start on the licenses, as well as not having missed the inherits.

Greetz


Re: building mbpoll

Josef Holzmayr
 

Howdy!

Am 27.08.2021 um 10:10 schrieb Ivan Riabtsov:
Hi All. i need to build mbpoll git://github.com/epsilonrt/mbpoll
I was created layer:
ivr@home-machine:~/work/yocto_orig/sources/meta-mbpoll/recipes-mbpoll/mbpoll
$ cat mbpoll_1.4.11.bb
SUMMARY = "bitbake-layers recipe"
DESCRIPTION = "mbpoll recipe"
LICENSE = "CLOSED"
SRC_URI = "git://github.com/epsilonrt/mbpoll"
SRCREV = "2b385d85d919138cefe79870c87c60eaa8b0d19c"
DEPENDS = "libmodbus"
if thats all of the recipe, then nothing will be built. you probably want to include at least the class for the buildsystem that you need, for example autotools, cmake, meson...

usually devtool is quite good at guessing that, so i'd suggest to start out with "devtool add"

Greetz

i was run:
rm -rf ./build/tmp ./build/sstate-cache ./build/deploy
and
bitbake mbpoll
i am trying to search for a package
ivr@home-machine:~/work/yocto_orig/build
$ find . -name 'mbpoll*.ipk'
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
but i have only debug and dev packages, not simple mbpoll_version.ipk
i try to run:
bitbake -c clean mbpoll --force
and
bitbake mbpoll --force
but the task is done in a 1 second and
$ find . -name 'mbpoll*.ipk'
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./tmp/work/cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi/mbpoll/1.4.11-r0/deploy-ipks/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dev_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
./deploy/ipk/cortexa7t2hf-neon-vfpv4/mbpoll-dbg_1.4.11-r0_cortexa7t2hf-neon-vfpv4.ipk
found nothing
please tell me what am I doing wrong? Maybe I created the layer incorrectly?

3241 - 3260 of 57800