Date   

Re: #yocto #yocto

Khem Raj
 

On 7/22/21 11:26 PM, sateesh m wrote:
Hi Guys,
              I am facing below error while compiling consul package. can anybody know this issue please suggest me.
ERROR: consul-git-r0 do_compile: Execution of '/home/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/consul/git-r0/temp/run.do_compile.26832' failed with exit code 2:
internal/unsafeheader
unicode/utf16
container/list
internal/cpu
crypto/internal/subtle
crypto/subtle
vendor/golang.org/x/crypto/cryptobyte/asn1
internal/nettrace
vendor/golang.org/x/crypto/internal/subtle
internal/race
unicode/utf8
runtime/internal/atomic
sync/atomic
internal/testlog
runtime/internal/sys
runtime/internal/math
internal/bytealg
encoding
unicode
math/bits
math
runtime
internal/reflectlite
sync
errors
internal/singleflight
sort
math/rand
strconv
internal/oserror
io
vendor/golang.org/x/net/dns/dnsmessage
container/heap
crypto/rc4
reflect
strings
bytes
syscall
hash
crypto
crypto/internal/randutil
crypto/hmac
hash/crc32
vendor/golang.org/x/crypto/hkdf
bufio
vendor/golang.org/x/text/transform
path
text/tabwriter
regexp/syntax
encoding/base32
html
hash/crc64
hash/fnv
internal/fmtsort
hash/adler32
encoding/binary
regexp
time
internal/syscall/unix
internal/syscall/execenv
encoding/base64
crypto/cipher
crypto/sha512
crypto/ed25519/internal/edwards25519
crypto/md5
crypto/aes
crypto/des
context
crypto/sha1
internal/poll
crypto/sha256
encoding/pem
vendor/golang.org/x/crypto/chacha20
vendor/golang.org/x/crypto/poly1305
vendor/golang.org/x/crypto/chacha20poly1305
os
fmt
path/filepath
net
io/ioutil
encoding/json
encoding/hex
vendor/golang.org/x/net/http2/hpack
mime
mime/quotedprintable
vendor/golang.org/x/crypto/curve25519
os/signal
log
compress/flate
vendor/golang.org/x/text/unicode/norm
vendor/golang.org/x/text/unicode/bidi
compress/gzip
runtime/debug
net/http/internal
math/big
net/textproto
net/url
go/token
compress/lzw
encoding/gob
os/exec
github.com/hashicorp/consul/vendor/golang.org/x/net/internal/socket
vendor/golang.org/x/text/secure/bidirule
vendor/golang.org/x/net/idna
github.com/hashicorp/consul/vendor/golang.org/x/sys/unix
flag
runtime/trace
testing
os/user
encoding/asn1
crypto/elliptic
text/template/parse
crypto/rand
vendor/golang.org/x/crypto/cryptobyte
crypto/ed25519
crypto/rsa
crypto/dsa
crypto/x509/pkix
mime/multipart
vendor/golang.org/x/net/http/httpproxy
vendor/golang.org/x/net/http/httpguts
internal/lazyregexp
go/scanner
crypto/ecdsa
text/template
compress/zlib
crypto/x509
go/ast
archive/tar
github.com/hashicorp/consul/vendor/github.com/boltdb/bolt
html/template
github.com/hashicorp/consul/vendor/github.com/shirou/gopsutil/host
go/parser
go/doc
crypto/tls
net/mail
log/syslog
encoding/xml
# github.com/hashicorp/consul/vendor/golang.org/x/net/internal/socket
src/github.com/hashicorp/consul/vendor/golang.org/x/net/internal/socket/cmsghdr.go:9:10: undefined: cmsghdr
src/github.com/hashicorp/consul/vendor/golang.org/x/net/internal/socket/cmsghdr.go:10:10: undefined: cmsghdr
src/github.com/hashicorp/consul/vendor/golang.org/x/net/internal/socket/cmsghdr.go:11:10: undefined: cmsghdr
src/github.com/hashicorp/consul/vendor/golang.org/x/net/internal/socket/mmsghdr_unix.go:11:17: undefined: mmsghdr
encoding/csv
net/http/httptrace
internal/profile
runtime/pprof
net/http
# github.com/hashicorp/consul/vendor/github.com/shirou/gopsutil/host
src/github.com/hashicorp/consul/vendor/github.com/shirou/gopsutil/host/host_linux.go:208:22: undefined: sizeOfUtmp
src/github.com/hashicorp/consul/vendor/github.com/shirou/gopsutil/host/host_linux.go:213:14: undefined: sizeOfUtmp
src/github.com/hashicorp/consul/vendor/github.com/shirou/gopsutil/host/host_linux.go:215:9: undefined: utmp
# github.com/hashicorp/consul/vendor/github.com/boltdb/bolt
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/bolt_unix.go:62:15: undefined: maxMapSize
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/bucket.go:135:15: undefined: brokenUnaligned
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/db.go:101:13: undefined: maxMapSize
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/db.go:317:12: undefined: maxMapSize
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/db.go:335:10: undefined: maxMapSize
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/db.go:336:8: undefined: maxMapSize
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/freelist.go:169:19: undefined: maxAllocSize
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/freelist.go:176:14: undefined: maxAllocSize
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/freelist.go:204:17: undefined: maxAllocSize
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/freelist.go:207:7: undefined: maxAllocSize
src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/freelist.go:207:7: too many errors
expvar
net/http/httptest
net/rpc
net/http/httputil
net/http/cookiejar
# github.com/hashicorp/consul/vendor/golang.org/x/sys/unix
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_linux_gc.go:10:6: missing function body
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_linux_gc.go:14:6: missing function body
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:12:6: missing function body
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:13:6: missing function body
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:14:6: missing function body
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_unix_gc.go:15:6: missing function body
net/http/pprof
WARNING: exit code 2 from a shell command.
ERROR: Logfile of failure stored in: /home/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/consul/git-r0/temp/log.do_compile.26832
--
Regards,
Sateesh


Re: HOW To resolve : Files/directories were installed but not shipped in any package:

Randy MacLeod
 

On 2021-07-27 5:44 a.m., Alexander Raih wrote:
After modify recipe with using my repo I have this error after rebuild.
How to resolve this ?
As the log says, either don't install the file or delete them.
There are many commits that you can look at as examples:

http://cgit.openembedded.org/openembedded-core/log/?qt=grep&q=Files%2Fdirectories+were+installed+but+not+shipped+in+any+package%3A

../Randy

log:
ERROR: phosphor-user-manager-1.0+gitAUTOINC+5a6e836a71-r1
 do_package: QA Issue: phosphor-user-manager: Files/directories were installed but not shipped in any package:
  /dbus-1
  /usr/share
  /usr/share/phosphor-certificate-manager
  /usr/share/phosphor-certificate-manager/nslcd
  /dbus-1/system.d
  /dbus-1/system.d/phosphor-nslcd-cert-config.conf
  /lib/systemd/system/multi-user.target.wants

/lib/systemd/system/multi-user.target.wants/phosphor-certificate-manager@...
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
phosphor-user-manager: 8 installed and not shipped files. [installed-vs-shipped]
ERROR: phosphor-user-manager-1.0+gitAUTOINC+5a6e836a71-r1 do_package: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /home/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-user-manager/1.0+gitAUTOINC+5a6e836a71-r1/temp/log.do_package.224136
ERROR: Task (/home/openbmc/meta-phosphor/recipes-phosphor/users/phosphor-user-manager_git.bb <https://urldefense.com/v3/__http://phosphor-user-manager_git.bb__;!!AjveYdw8EvQ!MvGlXySEg6aHLl15FbgtAXUiU8QigCQo5SNkyuUXMhj_8Q2A8rmCrbs5IP8O2f-oPpObZg$>:do_package) failed with exit code '1'

--
# Randy MacLeod
# Wind River Linux


[meta-security][PATCH 2/2] clamav: fix branch name and update

Armin Kuster
 

They dropped the dev branch for rel. Update to tip.
Refresh patches

Signed-off-by: Armin Kuster <akuster808@...>
---
recipes-scanners/clamav/clamav_0.104.0.bb | 6 +++---
recipes-scanners/clamav/files/fix_systemd_socket.patch | 4 ++--
recipes-scanners/clamav/files/headers_fixup.patch | 8 ++++----
recipes-scanners/clamav/files/oe_cmake_fixup.patch | 2 +-
4 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/recipes-scanners/clamav/clamav_0.104.0.bb b/recipes-scanners/clamav/clamav_0.104.0.bb
index 4f20309..5759ddd 100644
--- a/recipes-scanners/clamav/clamav_0.104.0.bb
+++ b/recipes-scanners/clamav/clamav_0.104.0.bb
@@ -8,10 +8,10 @@ DEPENDS = "glibc llvm libtool db openssl zlib curl libxml2 bison pcre2 json-c li

LIC_FILES_CHKSUM = "file://COPYING.txt;beginline=2;endline=3;md5=f7029fbbc5898b273d5902896f7bbe17"

-# May 15th
-SRCREV = "fe96de86bb90c489aa509ee9135f776b7a2a7eb4"
+# July 27th
+SRCREV = "c389dfa4c3af92b006ada4f7595bbc3e6df3f356"

-SRC_URI = "git://github.com/vrtadmin/clamav-devel;branch=dev/0.104 \
+SRC_URI = "git://github.com/vrtadmin/clamav-devel;branch=rel/0.104 \
file://clamd.conf \
file://freshclam.conf \
file://volatiles.03_clamav \
diff --git a/recipes-scanners/clamav/files/fix_systemd_socket.patch b/recipes-scanners/clamav/files/fix_systemd_socket.patch
index 3e9abe2..3347770 100644
--- a/recipes-scanners/clamav/files/fix_systemd_socket.patch
+++ b/recipes-scanners/clamav/files/fix_systemd_socket.patch
@@ -12,9 +12,9 @@ Index: git/clamd/CMakeLists.txt
===================================================================
--- git.orig/clamd/CMakeLists.txt
+++ git/clamd/CMakeLists.txt
-@@ -54,4 +54,10 @@ if(SYSTEMD_FOUND)
+@@ -60,4 +60,10 @@ if(SYSTEMD_FOUND)
install(
- FILES ${CMAKE_CURRENT_BINARY_DIR}/clamav-daemon.service
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/clamav-daemon.socket
DESTINATION ${SYSTEMD_UNIT_DIR})
+ configure_file(
+ ${CMAKE_CURRENT_SOURCE_DIR}/clamav-daemon.socket.in
diff --git a/recipes-scanners/clamav/files/headers_fixup.patch b/recipes-scanners/clamav/files/headers_fixup.patch
index 9de0a26..369aa58 100644
--- a/recipes-scanners/clamav/files/headers_fixup.patch
+++ b/recipes-scanners/clamav/files/headers_fixup.patch
@@ -7,7 +7,7 @@ Index: git/CMakeLists.txt
===================================================================
--- git.orig/CMakeLists.txt
+++ git/CMakeLists.txt
-@@ -374,8 +373,6 @@ check_include_file("stdlib.h"
+@@ -443,8 +443,6 @@ check_include_file("stdlib.h"
check_include_file("string.h" HAVE_STRING_H)
check_include_file("strings.h" HAVE_STRINGS_H)
check_include_file("sys/cdefs.h" HAVE_SYS_CDEFS_H)
@@ -16,7 +16,7 @@ Index: git/CMakeLists.txt
check_include_file("sys/mman.h" HAVE_SYS_MMAN_H)
check_include_file("sys/param.h" HAVE_SYS_PARAM_H)
check_include_file("sys/queue.h" HAVE_SYS_QUEUE_H)
-@@ -410,8 +407,6 @@ endif()
+@@ -479,8 +477,6 @@ endif()

# int-types variants
check_include_file("inttypes.h" HAVE_INTTYPES_H)
@@ -25,7 +25,7 @@ Index: git/CMakeLists.txt
check_include_file("stdint.h" HAVE_STDINT_H)

# this hack required to silence warnings on systems with inttypes.h
-@@ -539,17 +528,11 @@ check_type_size("time_t" SIZEOF_TIME_T)
+@@ -608,17 +604,11 @@ check_type_size("time_t" SIZEOF_TIME_T)
# Checks for library functions.
include(CheckSymbolExists)
check_symbol_exists(_Exit "stdlib.h" HAVE__EXIT)
@@ -44,7 +44,7 @@ Index: git/CMakeLists.txt
check_symbol_exists(timegm "time.h" HAVE_TIMEGM)
check_symbol_exists(vsnprintf "stdio.h" HAVE_VSNPRINTF)

-@@ -563,10 +546,9 @@ else()
+@@ -632,10 +622,9 @@ else()
check_symbol_exists(fseeko "stdio.h" HAVE_FSEEKO)
check_symbol_exists(getaddrinfo "netdb.h" HAVE_GETADDRINFO)
check_symbol_exists(getpagesize "unistd.h" HAVE_GETPAGESIZE)
diff --git a/recipes-scanners/clamav/files/oe_cmake_fixup.patch b/recipes-scanners/clamav/files/oe_cmake_fixup.patch
index b284915..c9c88b9 100644
--- a/recipes-scanners/clamav/files/oe_cmake_fixup.patch
+++ b/recipes-scanners/clamav/files/oe_cmake_fixup.patch
@@ -22,7 +22,7 @@ Index: git/CMakeLists.txt
if(C_LINUX)
if(CMAKE_COMPILER_IS_GNUCXX)
# Set _GNU_SOURCE for O_LARGEFILE, O_CLOEXEC, O_DIRECTORY, O_NOFOLLOW, etc flags on older systems
-@@ -512,14 +506,8 @@ include(TestInline)
+@@ -581,14 +575,8 @@ include(TestInline)
include(CheckFileOffsetBits)
# Determine how to pack structs on this platform.
include(CheckStructPacking)
--
2.25.1


[meta-security][PATCH 1/2] krill: Add new pkg

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@...>
---
.../krill/files/panic_workaround.patch | 16 +
.../recipes-security/krill/krill.inc | 325 ++++++++++++++++++
.../recipes-security/krill/krill_0.9.1.bb | 39 +++
3 files changed, 380 insertions(+)
create mode 100644 dynamic-layers/meta-rust/recipes-security/krill/files/panic_workaround.patch
create mode 100644 dynamic-layers/meta-rust/recipes-security/krill/krill.inc
create mode 100644 dynamic-layers/meta-rust/recipes-security/krill/krill_0.9.1.bb

diff --git a/dynamic-layers/meta-rust/recipes-security/krill/files/panic_workaround.patch b/dynamic-layers/meta-rust/recipes-security/krill/files/panic_workaround.patch
new file mode 100644
index 0000000..9b08cb5
--- /dev/null
+++ b/dynamic-layers/meta-rust/recipes-security/krill/files/panic_workaround.patch
@@ -0,0 +1,16 @@
+Upstream-Status: OE specific
+Signed-off-by: Armin Kuster <akuster808@...>
+
+Index: git/Cargo.toml
+===================================================================
+--- git.orig/Cargo.toml
++++ git/Cargo.toml
+@@ -71,7 +71,7 @@ static-openssl = [ "openssl/vendored" ]
+ # Make sure that Krill crashes on panics, rather than losing threads and
+ # limping on in a bad state.
+ [profile.release]
+-panic = "abort"
++#panic = "abort"
+
+ [dev-dependencies]
+ # for user management
diff --git a/dynamic-layers/meta-rust/recipes-security/krill/krill.inc b/dynamic-layers/meta-rust/recipes-security/krill/krill.inc
new file mode 100644
index 0000000..f86468b
--- /dev/null
+++ b/dynamic-layers/meta-rust/recipes-security/krill/krill.inc
@@ -0,0 +1,325 @@
+# please note if you have entries that do not begin with crate://
+# you must change them to how that package can be fetched
+SRC_URI += " \
+ crate://crates.io/addr2line/0.14.1 \
+ crate://crates.io/adler/1.0.2 \
+ crate://crates.io/adler32/1.2.0 \
+ crate://crates.io/aho-corasick/0.7.15 \
+ crate://crates.io/ansi_term/0.11.0 \
+ crate://crates.io/ansi_term/0.12.1 \
+ crate://crates.io/arrayref/0.3.6 \
+ crate://crates.io/arrayvec/0.5.2 \
+ crate://crates.io/ascii-canvas/2.0.0 \
+ crate://crates.io/ascii/1.0.0 \
+ crate://crates.io/atty/0.2.14 \
+ crate://crates.io/autocfg/0.1.7 \
+ crate://crates.io/autocfg/1.0.1 \
+ crate://crates.io/backtrace/0.3.56 \
+ crate://crates.io/base64/0.10.1 \
+ crate://crates.io/base64/0.12.3 \
+ crate://crates.io/base64/0.13.0 \
+ crate://crates.io/basic-cookies/0.1.4 \
+ crate://crates.io/bcder/0.5.1 \
+ crate://crates.io/bit-set/0.5.2 \
+ crate://crates.io/bit-vec/0.6.3 \
+ crate://crates.io/bitflags/1.2.1 \
+ crate://crates.io/blake2b_simd/0.5.11 \
+ crate://crates.io/block-buffer/0.9.0 \
+ crate://crates.io/bumpalo/3.6.1 \
+ crate://crates.io/byteorder/1.4.3 \
+ crate://crates.io/bytes/0.4.12 \
+ crate://crates.io/bytes/0.5.6 \
+ crate://crates.io/bytes/1.0.1 \
+ crate://crates.io/cc/1.0.67 \
+ crate://crates.io/cfg-if/0.1.10 \
+ crate://crates.io/cfg-if/1.0.0 \
+ crate://crates.io/chrono/0.4.19 \
+ crate://crates.io/chunked_transfer/1.4.0 \
+ crate://crates.io/cipher/0.2.5 \
+ crate://crates.io/clap/2.33.3 \
+ crate://crates.io/clokwerk/0.3.4 \
+ crate://crates.io/cloudabi/0.0.3 \
+ crate://crates.io/constant_time_eq/0.1.5 \
+ crate://crates.io/cookie/0.12.0 \
+ crate://crates.io/cookie_store/0.7.0 \
+ crate://crates.io/core-foundation-sys/0.8.2 \
+ crate://crates.io/core-foundation/0.9.1 \
+ crate://crates.io/cpuid-bool/0.1.2 \
+ crate://crates.io/crc32fast/1.2.1 \
+ crate://crates.io/crossbeam-deque/0.7.3 \
+ crate://crates.io/crossbeam-epoch/0.8.2 \
+ crate://crates.io/crossbeam-queue/0.2.3 \
+ crate://crates.io/crossbeam-utils/0.7.2 \
+ crate://crates.io/crossbeam-utils/0.8.3 \
+ crate://crates.io/crunchy/0.2.2 \
+ crate://crates.io/crypto-mac/0.10.0 \
+ crate://crates.io/ctrlc/3.1.9 \
+ crate://crates.io/deunicode/0.4.3 \
+ crate://crates.io/diff/0.1.12 \
+ crate://crates.io/digest/0.9.0 \
+ crate://crates.io/dirs/1.0.5 \
+ crate://crates.io/dtoa/0.4.8 \
+ crate://crates.io/either/1.6.1 \
+ crate://crates.io/ena/0.14.0 \
+ crate://crates.io/encoding_rs/0.8.28 \
+ crate://crates.io/error-chain/0.11.0 \
+ crate://crates.io/failure/0.1.8 \
+ crate://crates.io/failure_derive/0.1.8 \
+ crate://crates.io/fern/0.5.9 \
+ crate://crates.io/fixedbitset/0.2.0 \
+ crate://crates.io/flate2/1.0.20 \
+ crate://crates.io/fnv/1.0.7 \
+ crate://crates.io/foreign-types-shared/0.1.1 \
+ crate://crates.io/foreign-types/0.3.2 \
+ crate://crates.io/form_urlencoded/1.0.1 \
+ crate://crates.io/fuchsia-cprng/0.1.1 \
+ crate://crates.io/fuchsia-zircon-sys/0.3.3 \
+ crate://crates.io/fuchsia-zircon/0.3.3 \
+ crate://crates.io/futures-channel/0.3.14 \
+ crate://crates.io/futures-core/0.3.14 \
+ crate://crates.io/futures-cpupool/0.1.8 \
+ crate://crates.io/futures-executor/0.3.14 \
+ crate://crates.io/futures-io/0.3.14 \
+ crate://crates.io/futures-macro/0.3.14 \
+ crate://crates.io/futures-sink/0.3.14 \
+ crate://crates.io/futures-task/0.3.14 \
+ crate://crates.io/futures-util/0.3.14 \
+ crate://crates.io/futures/0.1.31 \
+ crate://crates.io/futures/0.3.14 \
+ crate://crates.io/generic-array/0.14.4 \
+ crate://crates.io/getrandom/0.1.16 \
+ crate://crates.io/getrandom/0.2.2 \
+ crate://crates.io/gimli/0.23.0 \
+ crate://crates.io/h2/0.1.26 \
+ crate://crates.io/h2/0.2.7 \
+ crate://crates.io/hashbrown/0.9.1 \
+ crate://crates.io/hermit-abi/0.1.18 \
+ crate://crates.io/hex/0.4.3 \
+ crate://crates.io/hmac/0.10.1 \
+ crate://crates.io/http-body/0.1.0 \
+ crate://crates.io/http-body/0.3.1 \
+ crate://crates.io/http/0.1.21 \
+ crate://crates.io/http/0.2.4 \
+ crate://crates.io/httparse/1.3.6 \
+ crate://crates.io/httpdate/0.3.2 \
+ crate://crates.io/hyper-tls/0.3.2 \
+ crate://crates.io/hyper-tls/0.4.3 \
+ crate://crates.io/hyper/0.12.36 \
+ crate://crates.io/hyper/0.13.10 \
+ crate://crates.io/idna/0.1.5 \
+ crate://crates.io/idna/0.2.2 \
+ crate://crates.io/impl-trait-for-tuples/0.2.1 \
+ crate://crates.io/indexmap/1.6.2 \
+ crate://crates.io/intervaltree/0.2.6 \
+ crate://crates.io/iovec/0.1.4 \
+ crate://crates.io/ipnet/2.3.0 \
+ crate://crates.io/itertools/0.10.0 \
+ crate://crates.io/itertools/0.9.0 \
+ crate://crates.io/itoa/0.4.7 \
+ crate://crates.io/jmespatch/0.3.0 \
+ crate://crates.io/js-sys/0.3.50 \
+ crate://crates.io/kernel32-sys/0.2.2 \
+ crate://crates.io/lalrpop-util/0.19.5 \
+ crate://crates.io/lalrpop/0.19.5 \
+ crate://crates.io/lazy_static/1.4.0 \
+ crate://crates.io/libc/0.2.93 \
+ crate://crates.io/libflate/1.0.4 \
+ crate://crates.io/libflate_lz77/1.0.0 \
+ crate://crates.io/lock_api/0.3.4 \
+ crate://crates.io/log/0.4.14 \
+ crate://crates.io/maplit/1.0.2 \
+ crate://crates.io/matchers/0.0.1 \
+ crate://crates.io/matches/0.1.8 \
+ crate://crates.io/maybe-uninit/2.0.0 \
+ crate://crates.io/memchr/2.3.4 \
+ crate://crates.io/memoffset/0.5.6 \
+ crate://crates.io/mime/0.3.16 \
+ crate://crates.io/mime_guess/2.0.3 \
+ crate://crates.io/miniz_oxide/0.4.4 \
+ crate://crates.io/mio/0.6.23 \
+ crate://crates.io/miow/0.2.2 \
+ crate://crates.io/native-tls/0.2.7 \
+ crate://crates.io/net2/0.2.37 \
+ crate://crates.io/new_debug_unreachable/1.0.4 \
+ crate://crates.io/nix/0.20.0 \
+ crate://crates.io/num-integer/0.1.44 \
+ crate://crates.io/num-traits/0.2.14 \
+ crate://crates.io/num_cpus/1.13.0 \
+ crate://crates.io/oauth2/4.0.0 \
+ crate://crates.io/object/0.23.0 \
+ crate://crates.io/once_cell/1.7.2 \
+ crate://crates.io/opaque-debug/0.3.0 \
+ crate://crates.io/openidconnect/2.0.0 \
+ crate://crates.io/openssl-probe/0.1.2 \
+ crate://crates.io/openssl-src/111.15.0+1.1.1k \
+ crate://crates.io/openssl-sys/0.9.61 \
+ crate://crates.io/openssl/0.10.33 \
+ crate://crates.io/ordered-float/1.1.1 \
+ crate://crates.io/oso/0.12.0 \
+ crate://crates.io/parking_lot/0.9.0 \
+ crate://crates.io/parking_lot_core/0.6.2 \
+ crate://crates.io/pbkdf2/0.7.5 \
+ crate://crates.io/percent-encoding/1.0.1 \
+ crate://crates.io/percent-encoding/2.1.0 \
+ crate://crates.io/petgraph/0.5.1 \
+ crate://crates.io/phf_shared/0.8.0 \
+ crate://crates.io/pico-args/0.4.0 \
+ crate://crates.io/pin-project-internal/1.0.6 \
+ crate://crates.io/pin-project-lite/0.1.12 \
+ crate://crates.io/pin-project-lite/0.2.6 \
+ crate://crates.io/pin-project/1.0.6 \
+ crate://crates.io/pin-utils/0.1.0 \
+ crate://crates.io/pkg-config/0.3.19 \
+ crate://crates.io/polar-core/0.12.0 \
+ crate://crates.io/ppv-lite86/0.2.10 \
+ crate://crates.io/precomputed-hash/0.1.1 \
+ crate://crates.io/proc-macro-hack/0.5.19 \
+ crate://crates.io/proc-macro-nested/0.1.7 \
+ crate://crates.io/proc-macro2/1.0.26 \
+ crate://crates.io/publicsuffix/1.5.6 \
+ crate://crates.io/quick-xml/0.19.0 \
+ crate://crates.io/quote/1.0.9 \
+ crate://crates.io/rand/0.6.5 \
+ crate://crates.io/rand/0.7.3 \
+ crate://crates.io/rand/0.8.3 \
+ crate://crates.io/rand_chacha/0.1.1 \
+ crate://crates.io/rand_chacha/0.2.2 \
+ crate://crates.io/rand_chacha/0.3.0 \
+ crate://crates.io/rand_core/0.3.1 \
+ crate://crates.io/rand_core/0.4.2 \
+ crate://crates.io/rand_core/0.5.1 \
+ crate://crates.io/rand_core/0.6.2 \
+ crate://crates.io/rand_hc/0.1.0 \
+ crate://crates.io/rand_hc/0.2.0 \
+ crate://crates.io/rand_hc/0.3.0 \
+ crate://crates.io/rand_isaac/0.1.1 \
+ crate://crates.io/rand_jitter/0.1.4 \
+ crate://crates.io/rand_os/0.1.3 \
+ crate://crates.io/rand_pcg/0.1.2 \
+ crate://crates.io/rand_xorshift/0.1.1 \
+ crate://crates.io/rdrand/0.4.0 \
+ crate://crates.io/redox_syscall/0.1.57 \
+ crate://crates.io/redox_syscall/0.2.5 \
+ crate://crates.io/redox_users/0.3.5 \
+ crate://crates.io/regex-automata/0.1.9 \
+ crate://crates.io/regex-syntax/0.6.23 \
+ crate://crates.io/regex/1.4.5 \
+ crate://crates.io/remove_dir_all/0.5.3 \
+ crate://crates.io/reqwest/0.10.10 \
+ crate://crates.io/reqwest/0.9.24 \
+ crate://crates.io/ring/0.16.20 \
+ crate://crates.io/rle-decode-fast/1.0.1 \
+ crate://crates.io/rpassword/5.0.1 \
+ crate://crates.io/rpki/0.10.1 \
+ crate://crates.io/rust-argon2/0.8.3 \
+ crate://crates.io/rustc-demangle/0.1.18 \
+ crate://crates.io/rustc_version/0.2.3 \
+ crate://crates.io/rustls/0.18.1 \
+ crate://crates.io/ryu/1.0.5 \
+ crate://crates.io/salsa20/0.7.2 \
+ crate://crates.io/schannel/0.1.19 \
+ crate://crates.io/scopeguard/1.1.0 \
+ crate://crates.io/scrypt/0.6.5 \
+ crate://crates.io/sct/0.6.1 \
+ crate://crates.io/security-framework-sys/2.2.0 \
+ crate://crates.io/security-framework/2.2.0 \
+ crate://crates.io/semver-parser/0.7.0 \
+ crate://crates.io/semver/0.9.0 \
+ crate://crates.io/serde-value/0.6.0 \
+ crate://crates.io/serde/1.0.125 \
+ crate://crates.io/serde_derive/1.0.125 \
+ crate://crates.io/serde_json/1.0.64 \
+ crate://crates.io/serde_path_to_error/0.1.4 \
+ crate://crates.io/serde_urlencoded/0.5.5 \
+ crate://crates.io/serde_urlencoded/0.7.0 \
+ crate://crates.io/sha2/0.9.3 \
+ crate://crates.io/sharded-slab/0.1.1 \
+ crate://crates.io/siphasher/0.3.5 \
+ crate://crates.io/slab/0.4.2 \
+ crate://crates.io/slug/0.1.4 \
+ crate://crates.io/smallvec/0.6.14 \
+ crate://crates.io/smallvec/1.6.1 \
+ crate://crates.io/socket2/0.3.19 \
+ crate://crates.io/spin/0.5.2 \
+ crate://crates.io/string/0.2.1 \
+ crate://crates.io/string_cache/0.8.1 \
+ crate://crates.io/strsim/0.8.0 \
+ crate://crates.io/subtle/2.4.0 \
+ crate://crates.io/syn/1.0.69 \
+ crate://crates.io/synstructure/0.12.4 \
+ crate://crates.io/syslog/4.0.1 \
+ crate://crates.io/tempfile/3.2.0 \
+ crate://crates.io/term/0.5.2 \
+ crate://crates.io/textwrap/0.11.0 \
+ crate://crates.io/thiserror-impl/1.0.24 \
+ crate://crates.io/thiserror/1.0.24 \
+ crate://crates.io/thread_local/1.1.3 \
+ crate://crates.io/time/0.1.44 \
+ crate://crates.io/tiny-keccak/2.0.2 \
+ crate://crates.io/tiny_http/0.8.0 \
+ crate://crates.io/tinyvec/1.2.0 \
+ crate://crates.io/tinyvec_macros/0.1.0 \
+ crate://crates.io/tokio-buf/0.1.1 \
+ crate://crates.io/tokio-current-thread/0.1.7 \
+ crate://crates.io/tokio-executor/0.1.10 \
+ crate://crates.io/tokio-io/0.1.13 \
+ crate://crates.io/tokio-macros/0.2.6 \
+ crate://crates.io/tokio-reactor/0.1.12 \
+ crate://crates.io/tokio-rustls/0.14.1 \
+ crate://crates.io/tokio-sync/0.1.8 \
+ crate://crates.io/tokio-tcp/0.1.4 \
+ crate://crates.io/tokio-threadpool/0.1.18 \
+ crate://crates.io/tokio-timer/0.2.13 \
+ crate://crates.io/tokio-tls/0.3.1 \
+ crate://crates.io/tokio-util/0.3.1 \
+ crate://crates.io/tokio/0.1.22 \
+ crate://crates.io/tokio/0.2.25 \
+ crate://crates.io/toml/0.5.8 \
+ crate://crates.io/tower-service/0.3.1 \
+ crate://crates.io/tracing-attributes/0.1.15 \
+ crate://crates.io/tracing-core/0.1.17 \
+ crate://crates.io/tracing-futures/0.2.5 \
+ crate://crates.io/tracing-log/0.1.2 \
+ crate://crates.io/tracing-serde/0.1.2 \
+ crate://crates.io/tracing-subscriber/0.2.17 \
+ crate://crates.io/tracing/0.1.25 \
+ crate://crates.io/try-lock/0.2.3 \
+ crate://crates.io/try_from/0.3.2 \
+ crate://crates.io/typenum/1.13.0 \
+ crate://crates.io/unicase/2.6.0 \
+ crate://crates.io/unicode-bidi/0.3.5 \
+ crate://crates.io/unicode-normalization/0.1.17 \
+ crate://crates.io/unicode-width/0.1.8 \
+ crate://crates.io/unicode-xid/0.2.1 \
+ crate://crates.io/untrusted/0.7.1 \
+ crate://crates.io/unwrap/1.2.1 \
+ crate://crates.io/url/1.7.2 \
+ crate://crates.io/url/2.2.1 \
+ crate://crates.io/urlparse/0.7.3 \
+ crate://crates.io/uuid/0.7.4 \
+ crate://crates.io/uuid/0.8.2 \
+ crate://crates.io/vcpkg/0.2.11 \
+ crate://crates.io/vec_map/0.8.2 \
+ crate://crates.io/version_check/0.9.3 \
+ crate://crates.io/want/0.2.0 \
+ crate://crates.io/want/0.3.0 \
+ crate://crates.io/wasi/0.10.0+wasi-snapshot-preview1 \
+ crate://crates.io/wasi/0.9.0+wasi-snapshot-preview1 \
+ crate://crates.io/wasm-bindgen-backend/0.2.73 \
+ crate://crates.io/wasm-bindgen-futures/0.4.23 \
+ crate://crates.io/wasm-bindgen-macro-support/0.2.73 \
+ crate://crates.io/wasm-bindgen-macro/0.2.73 \
+ crate://crates.io/wasm-bindgen-shared/0.2.73 \
+ crate://crates.io/wasm-bindgen/0.2.73 \
+ crate://crates.io/web-sys/0.3.50 \
+ crate://crates.io/webpki/0.21.4 \
+ crate://crates.io/winapi-build/0.1.1 \
+ crate://crates.io/winapi-i686-pc-windows-gnu/0.4.0 \
+ crate://crates.io/winapi-x86_64-pc-windows-gnu/0.4.0 \
+ crate://crates.io/winapi/0.2.8 \
+ crate://crates.io/winapi/0.3.9 \
+ crate://crates.io/winreg/0.6.2 \
+ crate://crates.io/winreg/0.7.0 \
+ crate://crates.io/ws2_32-sys/0.2.1 \
+ crate://crates.io/xml-rs/0.8.3 \
+"
diff --git a/dynamic-layers/meta-rust/recipes-security/krill/krill_0.9.1.bb b/dynamic-layers/meta-rust/recipes-security/krill/krill_0.9.1.bb
new file mode 100644
index 0000000..2671ae8
--- /dev/null
+++ b/dynamic-layers/meta-rust/recipes-security/krill/krill_0.9.1.bb
@@ -0,0 +1,39 @@
+SUMMARY = "Resource Public Key Infrastructure (RPKI) daemon"
+HOMEPAGE = "https://www.nlnetlabs.nl/projects/rpki/krill/"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=9741c346eef56131163e13b9db1241b3"
+
+DEPENDS = "openssl"
+
+include krill.inc
+
+# SRC_URI += "crate://crates.io/krill/0.9.1"
+SRC_URI += "git://github.com/NLnetLabs/krill.git;protocol=https;nobranch=1;branch=main"
+SRCREV = "d6c03b6f0199b1d10d252750a19a92b84576eb30"
+
+SRC_URI += "file://panic_workaround.patch"
+
+S = "${WORKDIR}/git"
+CARGO_SRC_DIR = ""
+
+inherit pkgconfig useradd systemd cargo
+
+
+do_install_append () {
+ install -d ${D}${sysconfdir}
+ install -d ${D}${datadir}/krill
+
+ install -m 664 ${S}/defaults/krill.conf ${D}${sysconfdir}/.
+ install ${S}/defaults/* ${D}${datadir}/krill/.
+}
+
+KRILL_UID ?= "krill"
+KRILL_GID ?= "krill"
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "--system ${KRILL_UID}"
+USERADD_PARAM_${PN} = "--system -g ${KRILL_GID} --home-dir \
+ /var/lib/krill/ --no-create-home \
+ --shell /sbin/nologin ${BPN}"
+
+FILES_${PN} += "{sysconfdir}/defaults ${datadir}"
--
2.25.1


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

Adrian Freihofer
 

Hi Lukasz

Also our test infrastructure expects an exit value not equal to 0 in
case of a failed test.

Regards,
Adrian

On Wed, 2021-07-21 at 11:46 +0200, ?ukasz Majewski wrote:
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 a single
test doesn't indicate that the ptest-runner itself encounter any issue
during its execution.

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

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

Signed-off-by: Lukasz Majewski <lukma@...>
---
 main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/main.c b/main.c
index efa21b2..9f03857 100644
--- a/main.c
+++ b/main.c
@@ -219,6 +219,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 = 0;
 

  ptest_list_free_all(&run);
 



Re: #yocto #yocto

sateesh m
 

Thanks, I'll check them out. 


On Tue, 27 Jul 2021, 18:17 Nicolas Jeker, <n.jeker@...> wrote:
On Thu, 2021-07-22 at 23:26 -0700, sateesh m wrote:
> Hi Guys,
>
>               I am facing below error while compiling consul package.
> can anybody know this issue please suggest me. 
> ERROR: consul-git-r0 do_compile: Execution of '/home/sources/fu540-
> build/tmp-glibc/work/riscv64-oe-linux/consul/git-
> r0/temp/run.do_compile.26832' failed with exit code 2:
> internal/unsafeheader
> unicode/utf16
> container/list
> internal/cpu
>
<snip>
> # github.com/hashicorp/consul/vendor/golang.org/x/sys/unix
> src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
> linux_gc.go:10:6: missing function body
> src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
> linux_gc.go:14:6: missing function body
> src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
> unix_gc.go:12:6: missing function body
> src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
> unix_gc.go:13:6: missing function body
> src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
> unix_gc.go:14:6: missing function body
> src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
> unix_gc.go:15:6: missing function body

Searching for these error messages I found a comment on GitHub [1]
which states that this is caused by missing assembly syscall wrappers.

Experimental support for RISC-V was added in Go 1.14 [2] and improved
in the next two versions, so make sure you use at least 1.14.

If the problem persists, I suggest to ask in a dedicated RISC-V or Go
forum/mailing list/chat.

I don't have any experience with Go or RISC-V, so take this information
with a grain of salt.

[1]: https://github.com/golang/go/issues/27532#issuecomment-493384077
[2]: https://golang.org/doc/go1.14#riscv

> net/http/pprof
> WARNING: exit code 2 from a shell command.
>  
> ERROR: Logfile of failure stored in: /home/sources/fu540-build/tmp-
> glibc/work/riscv64-oe-linux/consul/git-r0/temp/log.do_compile.26832
>  
> --
> Regards,
> Sateesh



--
Regards,
Sateesh


QA notification for completed autobuilder build (yocto-3.3.2.rc2)

Richard Purdie
 

A build flagged for QA (yocto-3.3.2.rc2) was completed on the autobuilder and is available at:


https://autobuilder.yocto.io/pub/releases/yocto-3.3.2.rc2


Build hash information:

bitbake: 731fb52eb03338c0bdb2a2256c22c64c22bcbace
meta-agl: ee397d099bf5db91f14f357f874a0fb074208fbe
meta-arm: 4e14a1c5ee84808cceb5354c6c26dd8ebe6696ce
meta-aws: d66de6ed82fe6b89e3b8b2626f4db6f5d7d5713d
meta-gplv2: 9e119f333cc8f53bd3cf64326f826dbc6ce3db0f
meta-intel: 4c7eecf2550fca9136a332400be6da358d264cb6
meta-mingw: 422b96cb2b6116442be1f40dfb5bd77447d1219e
meta-openembedded: 8fbcfb9f023e0eab7f122eb19607a1c757b0d245
oecore: e458c15627e7b27392d158cbb9417f66424aa7d5
poky: 31c639eb8664059eb4ed711be9173c223b4cc940



This is an automated message from the Yocto Project Autobuilder
Git: git://git.yoctoproject.org/yocto-autobuilder2
Email: richard.purdie@...


Re: #yocto #yocto

Nicolas Jeker
 

On Thu, 2021-07-22 at 23:26 -0700, sateesh m wrote:
Hi Guys,

              I am facing below error while compiling consul package.
can anybody know this issue please suggest me. 
ERROR: consul-git-r0 do_compile: Execution of '/home/sources/fu540-
build/tmp-glibc/work/riscv64-oe-linux/consul/git-
r0/temp/run.do_compile.26832' failed with exit code 2:
internal/unsafeheader
unicode/utf16
container/list
internal/cpu
<snip>
# github.com/hashicorp/consul/vendor/golang.org/x/sys/unix
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
linux_gc.go:10:6: missing function body
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
linux_gc.go:14:6: missing function body
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
unix_gc.go:12:6: missing function body
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
unix_gc.go:13:6: missing function body
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
unix_gc.go:14:6: missing function body
src/github.com/hashicorp/consul/vendor/golang.org/x/sys/unix/syscall_
unix_gc.go:15:6: missing function body
Searching for these error messages I found a comment on GitHub [1]
which states that this is caused by missing assembly syscall wrappers.

Experimental support for RISC-V was added in Go 1.14 [2] and improved
in the next two versions, so make sure you use at least 1.14.

If the problem persists, I suggest to ask in a dedicated RISC-V or Go
forum/mailing list/chat.

I don't have any experience with Go or RISC-V, so take this information
with a grain of salt.

[1]: https://github.com/golang/go/issues/27532#issuecomment-493384077
[2]: https://golang.org/doc/go1.14#riscv

net/http/pprof
WARNING: exit code 2 from a shell command.
 
ERROR: Logfile of failure stored in: /home/sources/fu540-build/tmp-
glibc/work/riscv64-oe-linux/consul/git-r0/temp/log.do_compile.26832
 
--
Regards,
Sateesh


Re: #yocto #yocto

sateesh m
 

Hi,

     I have cleared my cache state but also it's not compiling. Can you suggest any other way ? Or any patchwork.


Thanks & Regards,
Sateesh

On Fri, 23 Jul 2021, 15:27 Embedded Devel, <yocto@...> wrote:
maybe clear your build tmp cache sstate and rebuild


On Friday 23 July 2021 13:26:08 PM (+07:00), sateesh m wrote:

Hi Guys,

              I am facing below error while compiling consul package. can anybody know this issue please suggest me. 
ERROR: consul-git-r0 do_compile: Execution of '/home/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/consul/git-r0/temp/run.do_compile.26832' failed with exit code 2:
internal/unsafeheader
unicode/utf16
container/list
internal/cpu
crypto/internal/subtle
crypto/subtle
internal/nettrace
internal/race
unicode/utf8
runtime/internal/atomic
sync/atomic
internal/testlog
runtime/internal/sys
runtime/internal/math
internal/bytealg
encoding
unicode
math/bits
math
runtime
internal/reflectlite
sync
errors
internal/singleflight
sort
math/rand
strconv
internal/oserror
io
container/heap
crypto/rc4
reflect
strings
bytes
syscall
hash
crypto
crypto/internal/randutil
crypto/hmac
hash/crc32
bufio
path
text/tabwriter
regexp/syntax
encoding/base32
html
hash/crc64
hash/fnv
internal/fmtsort
hash/adler32
encoding/binary
regexp
time
internal/syscall/unix
internal/syscall/execenv
encoding/base64
crypto/cipher
crypto/sha512
crypto/ed25519/internal/edwards25519
crypto/md5
crypto/aes
crypto/des
context
crypto/sha1
internal/poll
crypto/sha256
encoding/pem
os
fmt
path/filepath
net
io/ioutil
encoding/json
encoding/hex
mime
mime/quotedprintable
os/signal
log
compress/flate
compress/gzip
runtime/debug
net/http/internal
math/big
net/textproto
net/url
go/token
compress/lzw
encoding/gob
os/exec
flag
runtime/trace
testing
os/user
encoding/asn1
crypto/elliptic
text/template/parse
crypto/rand
crypto/ed25519
crypto/rsa
crypto/dsa
crypto/x509/pkix
mime/multipart
internal/lazyregexp
go/scanner
crypto/ecdsa
text/template
compress/zlib
crypto/x509
go/ast
archive/tar
html/template
go/parser
go/doc
crypto/tls
net/mail
log/syslog
 
encoding/xml
encoding/csv
net/http/httptrace
internal/profile
runtime/pprof
net/http
expvar
net/http/httptest
net/rpc
net/http/httputil
net/http/cookiejar
net/http/pprof
WARNING: exit code 2 from a shell command.
 
ERROR: Logfile of failure stored in: /home/sources/fu540-build/tmp-glibc/work/riscv64-oe-linux/consul/git-r0/temp/log.do_compile.26832
 
--
Regards,
Sateesh

-- 
Sent with Vivaldi Mail. Download Vivaldi for free at vivaldi.com

--
Regards,
Sateesh


HOW To resolve : Files/directories were installed but not shipped in any package:

Alexander Raih
 

After modify recipe with using my repo I have this error after rebuild.
How to resolve this ?

log:


ERROR: phosphor-user-manager-1.0+gitAUTOINC+5a6e836a71-r1
 do_package: QA Issue: phosphor-user-manager: Files/directories were installed but not shipped in any package:

  /dbus-1

  /usr/share

  /usr/share/phosphor-certificate-manager

  /usr/share/phosphor-certificate-manager/nslcd

  /dbus-1/system.d

  /dbus-1/system.d/phosphor-nslcd-cert-config.conf

  /lib/systemd/system/multi-user.target.wants

  /lib/systemd/system/multi-user.target.wants/phosphor-certificate-manager@...

Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.

phosphor-user-manager: 8 installed and not shipped files. [installed-vs-shipped]

ERROR: phosphor-user-manager-1.0+gitAUTOINC+5a6e836a71-r1 do_package: Fatal QA errors found, failing task.

ERROR: Logfile of failure stored in: /home/openbmc/build/tmp/work/arm1176jzs-openbmc-linux-gnueabi/phosphor-user-manager/1.0+gitAUTOINC+5a6e836a71-r1/temp/log.do_package.224136

ERROR: Task (/home/openbmc/meta-phosphor/recipes-phosphor/users/phosphor-user-manager_git.bb:do_package) failed with exit code '1'


[yocto-autobuilder-helper] [PATCH] config.json: Update to use new overrides syntax

Richard Purdie
 

To help with the conversion, switch the core configurations to use the new
syntax since this allows testing with the new syntax only.

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

diff --git a/config.json b/config.json
index 8464da4..6efef34 100644
--- a/config.json
+++ b/config.json
@@ -35,7 +35,7 @@
"SDKEXTRAS" : ["SSTATE_MIRRORS += '\\", "file://.* http://sstate.yoctoproject.org/dev/@RELEASENUM@PATH;downloadfilename=PATH'"],
"BUILDINFO" : false,
"BUILDHISTORY" : false,
- "BUILDINFOVARS" : ["INHERIT += 'image-buildinfo'", "IMAGE_BUILDINFO_VARS_append = ' IMAGE_BASENAME IMAGE_NAME'"],
+ "BUILDINFOVARS" : ["INHERIT += 'image-buildinfo'", "IMAGE_BUILDINFO_VARS:append = ' IMAGE_BASENAME IMAGE_NAME'"],
"WRITECONFIG" : true,
"SENDERRORS" : true,
"extravars" : [
@@ -48,9 +48,9 @@
"XZ_MEMLIMIT = '5%'",
"XZ_THREADS = '8'",
"BB_TASK_NICE_LEVEL = '5'",
- "BB_TASK_NICE_LEVEL_task-testimage = '0'",
+ "BB_TASK_NICE_LEVEL:task-testimage = '0'",
"BB_TASK_IONICE_LEVEL = '2.7'",
- "BB_TASK_IONICE_LEVEL_task-testimage = '2.1'",
+ "BB_TASK_IONICE_LEVEL:task-testimage = '2.1'",
"INHERIT += 'testimage'",
"TEST_QEMUBOOT_TIMEOUT = '1500'",
"SANITY_TESTED_DISTROS = ''",
@@ -71,7 +71,7 @@
"BUILDINFO" : true,
"BUILDHISTORY" : true,
"extravars" : [
- "IMAGE_INSTALL_append = ' ssh-pregen-hostkeys'"
+ "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
],
"step1" : {
"BBTARGETS" : "core-image-sato core-image-sato-sdk core-image-minimal core-image-minimal-dev core-image-sato:do_populate_sdk",
@@ -94,7 +94,7 @@
"BUILDINFO" : true,
"BUILDHISTORY" : true,
"extravars" : [
- "IMAGE_INSTALL_append = ' ssh-pregen-hostkeys'"
+ "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
],
"step1" : {
"BBTARGETS" : "core-image-full-cmdline core-image-sato core-image-sato-sdk",
@@ -122,11 +122,11 @@
"BBTARGETS" : "core-image-sato",
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "IMAGE_INSTALL_append = ' ltp'",
+ "IMAGE_INSTALL:append = ' ltp'",
"TEST_SUITES = 'ping ssh ltp ltp_compliance'",
"IMAGE_OVERHEAD_FACTOR = '1.0'",
"IMAGE_ROOTFS_EXTRA_SPACE = '1324288'",
- "QB_MEM_forcevariable = '-m 1024'"
+ "QB_MEM:forcevariable = '-m 1024'"
]
},
"arch-hw" : {
@@ -180,7 +180,7 @@
"PACKAGE_CLASSES" : "package_rpm",
"extravars" : [
"RPM_GPG_SIGN_CHUNK = '1'",
- "IMAGE_INSTALL_append = ' ssh-pregen-hostkeys'"
+ "IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'"
],
"step1" : {
"shortname" : "Bitbake Selftest",
@@ -436,7 +436,7 @@
"TEMPLATE" : "arch-qemu",
"step1" : {
"extravars" : [
- "IMAGE_FSTYPES_append = ' wic wic.bmap'"
+ "IMAGE_FSTYPES:append = ' wic wic.bmap'"
]
}
},
@@ -449,7 +449,7 @@
"TEMPLATE" : "arch-hw",
"step1" : {
"extravars" : [
- "IMAGE_FSTYPES_append = ' wic wic.bmap'"
+ "IMAGE_FSTYPES:append = ' wic wic.bmap'"
]
}
},
@@ -462,7 +462,7 @@
"TEMPLATE" : "arch-qemu",
"step1" : {
"extravars" : [
- "IMAGE_FSTYPES_append = ' wic wic.bmap'"
+ "IMAGE_FSTYPES:append = ' wic wic.bmap'"
]
}
},
@@ -475,7 +475,7 @@
"TEMPLATE" : "arch-hw",
"step1" : {
"extravars" : [
- "IMAGE_FSTYPES_append = ' wic wic.bmap'"
+ "IMAGE_FSTYPES:append = ' wic wic.bmap'"
]
}
},
@@ -496,7 +496,7 @@
"extravars" : [
"require conf/multilib.conf",
"MULTILIBS = 'multilib:lib32'",
- "DEFAULTTUNE_virtclass-multilib-lib32 = 'x86'"
+ "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'"
]
},
"qemux86-world-alt" : {
@@ -505,10 +505,10 @@
"DISTRO" : "poky-altcfg",
"BBTARGETS" : "world",
"extravars" : [
- "DISTRO_FEATURES_append = ' api-documentation'",
+ "DISTRO_FEATURES:append = ' api-documentation'",
"require conf/multilib.conf",
"MULTILIBS = 'multilib:lib32'",
- "DEFAULTTUNE_virtclass-multilib-lib32 = 'x86'",
+ "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
"QTDEMOS_remove = 'qmmp'"
]
},
@@ -527,7 +527,7 @@
"step2" : {
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "TEST_SUITES_append = ' x32lib'"
+ "TEST_SUITES:append = ' x32lib'"
]
}
},
@@ -555,7 +555,7 @@
"TEST_SUITES = 'ping'",
"require conf/multilib.conf",
"MULTILIBS = 'multilib:lib32'",
- "DEFAULTTUNE_virtclass-multilib-lib32 = 'x86'"
+ "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'"
]
},
"step2" : {
@@ -568,7 +568,7 @@
"TEST_SUITES = 'ping'",
"require conf/multilib.conf",
"MULTILIBS = 'multilib:lib32'",
- "DEFAULTTUNE_virtclass-multilib-lib32 = 'x86'"
+ "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'"
]
},
"step3" : {
@@ -577,12 +577,12 @@
"BBTARGETS" : "core-image-sato",
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "TEST_SUITES_append = ' multilib'",
+ "TEST_SUITES:append = ' multilib'",
"require conf/multilib.conf",
"MULTILIBS = 'multilib:lib32'",
- "DEFAULTTUNE_virtclass-multilib-lib32 = 'x86'",
+ "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
"RPM_PREFER_ELF_ARCH = '1'",
- "IMAGE_INSTALL_append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
+ "IMAGE_INSTALL:append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
]
},
"step4" : {
@@ -592,12 +592,12 @@
"BBTARGETS" : "core-image-sato",
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "TEST_SUITES_append = ' multilib'",
+ "TEST_SUITES:append = ' multilib'",
"require conf/multilib.conf",
"MULTILIBS = 'multilib:lib32'",
- "DEFAULTTUNE_virtclass-multilib-lib32 = 'x86'",
+ "DEFAULTTUNE:virtclass-multilib-lib32 = 'x86'",
"RPM_PREFER_ELF_ARCH = '1'",
- "IMAGE_INSTALL_append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
+ "IMAGE_INSTALL:append = ' lib32-connman-gnome pango-module-basic-fc lib32-pango-module-basic-fc'"
]
},
"step5" : {
@@ -609,7 +609,7 @@
"extravars" : [
"require conf/multilib.conf",
"MULTILIBS = 'multilib:lib64'",
- "DEFAULTTUNE_virtclass-multilib-lib64 = 'x86-64'"
+ "DEFAULTTUNE:virtclass-multilib-lib64 = 'x86-64'"
]
},
"step6" : {
@@ -622,8 +622,8 @@
"require conf/multilib.conf",
"MULTILIBS = 'multilib:lib64 multilib:lib32'",
"DEFAULTTUNE = 'mips64-n32'",
- "DEFAULTTUNE_virtclass-multilib-lib64 = 'mips64'",
- "DEFAULTTUNE_virtclass-multilib-lib32 = 'mips32r2'"
+ "DEFAULTTUNE:virtclass-multilib-lib64 = 'mips64'",
+ "DEFAULTTUNE:virtclass-multilib-lib32 = 'mips32r2'"
]
}
},
@@ -661,7 +661,7 @@
"BUILDINFO" : true,
"extravars" : [
"IMAGE_FSTYPES += ' hddimg'",
- "MACHINE_FEATURES_append = ' efi'"
+ "MACHINE_FEATURES:append = ' efi'"
],
"step1" : {
"MACHINE" : "qemux86",
@@ -728,7 +728,7 @@
"build-appliance" : {
"MACHINE" : "qemux86-64",
"DLDIR" : "DL_DIR ?= '${TOPDIR}/downloads'",
- "BUILDAPP_SRCREV" : ["SRCREV_pn-build-appliance-image = '@SRCREV@'", "PV_append_pn-build-appliance-image = '+git${SRCPV}'"],
+ "BUILDAPP_SRCREV" : ["SRCREV_pn-build-appliance-image = '@SRCREV@'", "PV:append:pn-build-appliance-image = '+git${SRCPV}'"],
"BBTARGETS" : "core-image-minimal core-image-full-cmdline",
"extravars" : [
"SOURCE_MIRROR_FETCH = '1'",
@@ -760,7 +760,7 @@
"BBTARGETS" : "core-image-full-cmdline core-image-weston world",
"SANITYTARGETS" : "core-image-full-cmdline:do_testimage core-image-weston:do_testimage",
"extravars" : [
- "DISTRO_FEATURES_remove = 'x11'"
+ "DISTRO_FEATURES:remove = 'x11'"
],
"step1" : {
"shortname" : "Sysvinit weston"
@@ -768,8 +768,8 @@
"step2" : {
"shortname" : "Systemd weston",
"extravars" : [
- "TEST_SUITES_append = ' systemd'",
- "DISTRO_FEATURES_append = ' pam systemd'",
+ "TEST_SUITES:append = ' systemd'",
+ "DISTRO_FEATURES:append = ' pam systemd'",
"VIRTUAL-RUNTIME_init_manager = 'systemd'",
"DISTRO_FEATURES_BACKFILL_CONSIDERED = 'sysvinit'"
]
@@ -801,7 +801,7 @@
"extravars" : [
"SOURCE_MIRROR_FETCH = '1'",
"BB_NUMBER_THREADS = '1'",
- "do_checkuri_pn-lsof = ''"
+ "do_checkuri:pn-lsof = ''"
]
},
"oe-selftest" : {
@@ -929,7 +929,7 @@
"${BUILDDIR}/../meta-virtualization"
],
"extravars" : [
- "DISTRO_FEATURES_append = ' virtualization'"
+ "DISTRO_FEATURES:append = ' virtualization'"
]
},
"qa-extras" : {
@@ -939,7 +939,7 @@
"BBTARGETS" : "core-image-minimal",
"SANITYTARGETS" : "core-image-minimal:do_testimage",
"extravars" : [
- "IMAGE_FEATURES_append = ' read-only-rootfs'"
+ "IMAGE_FEATURES:append = ' read-only-rootfs'"
]
},
"step2" : {
@@ -994,16 +994,16 @@
"BBTARGETS" : "core-image-sato",
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "IMAGE_INSTALL_append = ' logrotate'",
- "TEST_SUITES_append = ' logrotate'"
+ "IMAGE_INSTALL:append = ' logrotate'",
+ "TEST_SUITES:append = ' logrotate'"
]
},
"step2" : {
"BBTARGETS" : "core-image-sato",
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "DISTRO_FEATURES_append = ' pam'",
- "TEST_SUITES_append = ' pam'"
+ "DISTRO_FEATURES:append = ' pam'",
+ "TEST_SUITES:append = ' pam'"
]
},
"step3" : {
@@ -1011,8 +1011,8 @@
"BBTARGETS" : "core-image-sato",
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "IMAGE_INSTALL_append = ' service hello-mod'",
- "TEST_SUITES_append = ' skeletoninit'"
+ "IMAGE_INSTALL:append = ' service hello-mod'",
+ "TEST_SUITES:append = ' skeletoninit'"
],
"ADDLAYER" : ["${BUILDDIR}/../meta-skeleton"]
},
@@ -1021,9 +1021,9 @@
"BBTARGETS" : "core-image-sato",
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "DISTRO_FEATURES_append = ' systemd'",
+ "DISTRO_FEATURES:append = ' systemd'",
"VIRTUAL-RUNTIME_init_manager = 'systemd'",
- "TEST_SUITES_append = ' systemd'"
+ "TEST_SUITES:append = ' systemd'"
]
},
"step5" : {
@@ -1031,7 +1031,7 @@
"BBTARGETS" : "core-image-sato",
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "DISTRO_FEATURES_append = ' systemd'",
+ "DISTRO_FEATURES:append = ' systemd'",
"VIRTUAL-RUNTIME_init_manager = 'sysvinit'"
]
},
@@ -1040,8 +1040,8 @@
"BBTARGETS" : "core-image-sato",
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "TEST_SUITES_append = ' systemd'",
- "DISTRO_FEATURES_append = ' systemd'",
+ "TEST_SUITES:append = ' systemd'",
+ "DISTRO_FEATURES:append = ' systemd'",
"VIRTUAL-RUNTIME_init_manager = 'systemd'",
"DISTRO_FEATURES_BACKFILL_CONSIDERED = 'sysvinit'"
]
@@ -1051,7 +1051,7 @@
"BBTARGETS" : "core-image-sato",
"SANITYTARGETS" : "core-image-sato:do_testimage",
"extravars" : [
- "PACKAGECONFIG_append_x86-64_pn-mesa = ' gallium-llvm gallium r600'"
+ "PACKAGECONFIG:append:x86-64:pn-mesa = ' gallium-llvm gallium r600'"
]

}
--
2.30.2


Re: [meta-spdxscanner][PATCH] fossology-rest.bbclass: Moved check if spdx already exists out of the task

leimaohui
 

merged

-----Original Message-----
From: Marco <koansoftware@...>
Sent: Tuesday, July 27, 2021 3:34 PM
To: Lei, Maohui <leimaohui@...>;
yocto@...
Cc: Marco Cavallini <m.cavallini@...>
Subject: Re: [yocto] [meta-spdxscanner][PATCH] fossology-rest.bbclass: Moved
check if spdx already exists out of the task

Hi Lei,
you are right.
Ignore this one and please see my other patch I set a few minutes ago.

Thank you
--
Marco


On 27/07/21 09:27, leimaohui@... wrote:
Hi, Marco

I got what you mean, but I think your patch should be modified as the
following, just make do_get_report not check spdx file again, is it ?

$ git diff classes/fossology-rest.bbclass diff --git
a/classes/fossology-rest.bbclass b/classes/fossology-rest.bbclass
index 3694440..c29e57f 100644
--- a/classes/fossology-rest.bbclass
+++ b/classes/fossology-rest.bbclass
@@ -157,15 +157,6 @@ python do_get_report () {
info['outfile'] = os.path.join(manifest_dir, info['pn'] + "-" + info['pv'] +
".spdx" )
sstatefile = os.path.join(spdx_outdir, info['pn'] + "-" +
info['pv'] + ".spdx" )

- # if spdx has been exist
- if os.path.exists(info['outfile']):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- return
- if os.path.exists( sstatefile ):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- create_manifest(info,sstatefile)
- return
-
spdx_get_src(d)

bb.note('SPDX: Archiving the patched source...')

There is no necessary to add check in line 87, because line 79~85 has checked
whether the spdx files exist.
@@ -84,6 +84,15 @@ python () {
create_manifest(info,sstatefile)
return

+ # if spdx already exists
+ if os.path.exists(info['outfile']):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ return
+ if os.path.exists( sstatefile ):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ create_manifest(info,sstatefile)
+ return
+
Best regards
Lei

-----Original Message-----
From: Marco <koansoftware@...>
Sent: Tuesday, July 27, 2021 2:51 PM
To: Lei, Maohui <leimaohui@...>; yocto@...
Cc: Marco Cavallini <m.cavallini@...>
Subject: Re: [yocto] [meta-spdxscanner][PATCH]
fossology-rest.bbclass: Moved check if spdx already exists out of the
task

Hi Lei,
my patches are based on branch MASTER therefore they are based on the
latest source code.

Would you mind to apply this one so will be possible to call "bitbake
-c get_report" ?

Thank you

--
Marco



On 27/07/21 03:11, leimaohui@... wrote:
Hi Marco

I'm sorry, but your patch seems not base on the latest source code.
https://git.yoctoproject.org/cgit/cgit.cgi/meta-spdxscanner/tree/cla
ss
es/fossology-rest.bbclass

Best regards
Lei


-----Original Message-----
From: yocto@... <yocto@...>
On Behalf Of Marco Cavallini
Sent: Thursday, July 22, 2021 9:06 PM
To: yocto@...
Cc: Marco Cavallini <m.cavallini@...>; Marco Cavallini
<koansoftware@...>
Subject: [yocto] [meta-spdxscanner][PATCH] fossology-rest.bbclass:
Moved check if spdx already exists out of the task

From: Marco Cavallini <m.cavallini@...>

With the previous code was impossible to run the do_get_report
task whenever a correspondent .spdx file was already present in
tmp/deploy/spdx.
Now the check if spdx already exists is at a higher level
therefore is possible to run : bitbake -c get_report

Signed-off-by: Marco Cavallini <koansoftware@...>
---
classes/fossology-rest.bbclass | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/classes/fossology-rest.bbclass
b/classes/fossology-rest.bbclass index
3694440..e55e859 100644
--- a/classes/fossology-rest.bbclass
+++ b/classes/fossology-rest.bbclass
@@ -84,6 +84,15 @@ python () {
create_manifest(info,sstatefile)
return

+ # if spdx already exists
+ if os.path.exists(info['outfile']):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ return
+ if os.path.exists( sstatefile ):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ create_manifest(info,sstatefile)
+ return
+
d.appendVarFlag('do_spdx', 'depends', ' %s:do_get_report' %
pn)
bb.build.addtask('do_get_report', 'do_configure', 'do_patch' , d)
bb.build.addtask('do_spdx', 'do_configure', 'do_get_report',
d) @@
-157,15 +166,6 @@ python do_get_report () {
info['outfile'] = os.path.join(manifest_dir, info['pn'] +
"-" + info['pv'] + ".spdx" )
sstatefile = os.path.join(spdx_outdir, info['pn'] + "-" +
info['pv'] + ".spdx" )

- # if spdx has been exist
- if os.path.exists(info['outfile']):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- return
- if os.path.exists( sstatefile ):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- create_manifest(info,sstatefile)
- return
-
spdx_get_src(d)

bb.note('SPDX: Archiving the patched source...')
--
2.17.1


Re: [meta-spdxscanner][PATCH] fossology-rest.bbclass: Moved check if spdx already exists out of the task

Marco Cavallini
 

Hi Lei,
you are right.
Ignore this one and please see my other patch I set a few minutes ago.

Thank you
--
Marco

On 27/07/21 09:27, leimaohui@... wrote:
Hi, Marco
I got what you mean, but I think your patch should be modified as the following, just make do_get_report not check spdx file again, is it ?
$ git diff classes/fossology-rest.bbclass
diff --git a/classes/fossology-rest.bbclass b/classes/fossology-rest.bbclass
index 3694440..c29e57f 100644
--- a/classes/fossology-rest.bbclass
+++ b/classes/fossology-rest.bbclass
@@ -157,15 +157,6 @@ python do_get_report () {
info['outfile'] = os.path.join(manifest_dir, info['pn'] + "-" + info['pv'] + ".spdx" )
sstatefile = os.path.join(spdx_outdir, info['pn'] + "-" + info['pv'] + ".spdx" )
- # if spdx has been exist
- if os.path.exists(info['outfile']):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- return
- if os.path.exists( sstatefile ):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- create_manifest(info,sstatefile)
- return
-
spdx_get_src(d)
bb.note('SPDX: Archiving the patched source...')
There is no necessary to add check in line 87, because line 79~85 has checked whether the spdx files exist.
@@ -84,6 +84,15 @@ python () {
create_manifest(info,sstatefile)
return

+ # if spdx already exists
+ if os.path.exists(info['outfile']):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ return
+ if os.path.exists( sstatefile ):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ create_manifest(info,sstatefile)
+ return
+
Best regards
Lei

-----Original Message-----
From: Marco <koansoftware@...>
Sent: Tuesday, July 27, 2021 2:51 PM
To: Lei, Maohui <leimaohui@...>;
yocto@...
Cc: Marco Cavallini <m.cavallini@...>
Subject: Re: [yocto] [meta-spdxscanner][PATCH] fossology-rest.bbclass: Moved
check if spdx already exists out of the task

Hi Lei,
my patches are based on branch MASTER therefore they are based on the latest
source code.

Would you mind to apply this one so will be possible to call "bitbake -c
get_report" ?

Thank you

--
Marco



On 27/07/21 03:11, leimaohui@... wrote:
Hi Marco

I'm sorry, but your patch seems not base on the latest source code.
https://git.yoctoproject.org/cgit/cgit.cgi/meta-spdxscanner/tree/class
es/fossology-rest.bbclass

Best regards
Lei


-----Original Message-----
From: yocto@... <yocto@...> On
Behalf Of Marco Cavallini
Sent: Thursday, July 22, 2021 9:06 PM
To: yocto@...
Cc: Marco Cavallini <m.cavallini@...>; Marco Cavallini
<koansoftware@...>
Subject: [yocto] [meta-spdxscanner][PATCH] fossology-rest.bbclass:
Moved check if spdx already exists out of the task

From: Marco Cavallini <m.cavallini@...>

With the previous code was impossible to run the do_get_report
task whenever a correspondent .spdx file was already present in
tmp/deploy/spdx.
Now the check if spdx already exists is at a higher level
therefore is possible to run : bitbake -c get_report

Signed-off-by: Marco Cavallini <koansoftware@...>
---
classes/fossology-rest.bbclass | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/classes/fossology-rest.bbclass
b/classes/fossology-rest.bbclass index
3694440..e55e859 100644
--- a/classes/fossology-rest.bbclass
+++ b/classes/fossology-rest.bbclass
@@ -84,6 +84,15 @@ python () {
create_manifest(info,sstatefile)
return

+ # if spdx already exists
+ if os.path.exists(info['outfile']):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ return
+ if os.path.exists( sstatefile ):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ create_manifest(info,sstatefile)
+ return
+
d.appendVarFlag('do_spdx', 'depends', ' %s:do_get_report' % pn)
bb.build.addtask('do_get_report', 'do_configure', 'do_patch' , d)
bb.build.addtask('do_spdx', 'do_configure', 'do_get_report', d)
@@
-157,15 +166,6 @@ python do_get_report () {
info['outfile'] = os.path.join(manifest_dir, info['pn'] + "-" +
info['pv'] + ".spdx" )
sstatefile = os.path.join(spdx_outdir, info['pn'] + "-" +
info['pv'] + ".spdx" )

- # if spdx has been exist
- if os.path.exists(info['outfile']):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- return
- if os.path.exists( sstatefile ):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- create_manifest(info,sstatefile)
- return
-
spdx_get_src(d)

bb.note('SPDX: Archiving the patched source...')
--
2.17.1


Re: [meta-spdxscanner][PATCH] fossology-rest.bbclass: Moved check if spdx already exists out of the task

leimaohui
 

Hi, Marco

I got what you mean, but I think your patch should be modified as the following, just make do_get_report not check spdx file again, is it ?

$ git diff classes/fossology-rest.bbclass
diff --git a/classes/fossology-rest.bbclass b/classes/fossology-rest.bbclass
index 3694440..c29e57f 100644
--- a/classes/fossology-rest.bbclass
+++ b/classes/fossology-rest.bbclass
@@ -157,15 +157,6 @@ python do_get_report () {
info['outfile'] = os.path.join(manifest_dir, info['pn'] + "-" + info['pv'] + ".spdx" )
sstatefile = os.path.join(spdx_outdir, info['pn'] + "-" + info['pv'] + ".spdx" )

- # if spdx has been exist
- if os.path.exists(info['outfile']):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- return
- if os.path.exists( sstatefile ):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- create_manifest(info,sstatefile)
- return
-
spdx_get_src(d)

bb.note('SPDX: Archiving the patched source...')

There is no necessary to add check in line 87, because line 79~85 has checked whether the spdx files exist.
@@ -84,6 +84,15 @@ python () {
create_manifest(info,sstatefile)
return

+ # if spdx already exists
+ if os.path.exists(info['outfile']):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ return
+ if os.path.exists( sstatefile ):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ create_manifest(info,sstatefile)
+ return
+
Best regards
Lei

-----Original Message-----
From: Marco <koansoftware@...>
Sent: Tuesday, July 27, 2021 2:51 PM
To: Lei, Maohui <leimaohui@...>;
yocto@...
Cc: Marco Cavallini <m.cavallini@...>
Subject: Re: [yocto] [meta-spdxscanner][PATCH] fossology-rest.bbclass: Moved
check if spdx already exists out of the task

Hi Lei,
my patches are based on branch MASTER therefore they are based on the latest
source code.

Would you mind to apply this one so will be possible to call "bitbake -c
get_report" ?

Thank you

--
Marco



On 27/07/21 03:11, leimaohui@... wrote:
Hi Marco

I'm sorry, but your patch seems not base on the latest source code.
https://git.yoctoproject.org/cgit/cgit.cgi/meta-spdxscanner/tree/class
es/fossology-rest.bbclass

Best regards
Lei


-----Original Message-----
From: yocto@... <yocto@...> On
Behalf Of Marco Cavallini
Sent: Thursday, July 22, 2021 9:06 PM
To: yocto@...
Cc: Marco Cavallini <m.cavallini@...>; Marco Cavallini
<koansoftware@...>
Subject: [yocto] [meta-spdxscanner][PATCH] fossology-rest.bbclass:
Moved check if spdx already exists out of the task

From: Marco Cavallini <m.cavallini@...>

With the previous code was impossible to run the do_get_report
task whenever a correspondent .spdx file was already present in
tmp/deploy/spdx.
Now the check if spdx already exists is at a higher level
therefore is possible to run : bitbake -c get_report

Signed-off-by: Marco Cavallini <koansoftware@...>
---
classes/fossology-rest.bbclass | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/classes/fossology-rest.bbclass
b/classes/fossology-rest.bbclass index
3694440..e55e859 100644
--- a/classes/fossology-rest.bbclass
+++ b/classes/fossology-rest.bbclass
@@ -84,6 +84,15 @@ python () {
create_manifest(info,sstatefile)
return

+ # if spdx already exists
+ if os.path.exists(info['outfile']):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ return
+ if os.path.exists( sstatefile ):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ create_manifest(info,sstatefile)
+ return
+
d.appendVarFlag('do_spdx', 'depends', ' %s:do_get_report' % pn)
bb.build.addtask('do_get_report', 'do_configure', 'do_patch' , d)
bb.build.addtask('do_spdx', 'do_configure', 'do_get_report', d)
@@
-157,15 +166,6 @@ python do_get_report () {
info['outfile'] = os.path.join(manifest_dir, info['pn'] + "-" +
info['pv'] + ".spdx" )
sstatefile = os.path.join(spdx_outdir, info['pn'] + "-" +
info['pv'] + ".spdx" )

- # if spdx has been exist
- if os.path.exists(info['outfile']):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- return
- if os.path.exists( sstatefile ):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- create_manifest(info,sstatefile)
- return
-
spdx_get_src(d)

bb.note('SPDX: Archiving the patched source...')
--
2.17.1


[meta-spdxscanner][PATCH] fossology-rest.bbclass: Skip check if spdx already exists

Marco Cavallini
 

From: Marco Cavallini <m.cavallini@...>

With the previous code was impossible to run the do_get_report
task whenever a correspondent .spdx file was already present
in tmp/deploy/spdx.
Removed the check if spdx already exists in python do_get_report()
therefore is possible to run : bitbake -c get_report

Signed-off-by: Marco Cavallini <koansoftware@...>
---
classes/fossology-rest.bbclass | 9 ---------
1 file changed, 9 deletions(-)

diff --git a/classes/fossology-rest.bbclass b/classes/fossology-rest.bbclass
index 3694440..c29e57f 100644
--- a/classes/fossology-rest.bbclass
+++ b/classes/fossology-rest.bbclass
@@ -157,15 +157,6 @@ python do_get_report () {
info['outfile'] = os.path.join(manifest_dir, info['pn'] + "-" + info['pv'] + ".spdx" )
sstatefile = os.path.join(spdx_outdir, info['pn'] + "-" + info['pv'] + ".spdx" )

- # if spdx has been exist
- if os.path.exists(info['outfile']):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- return
- if os.path.exists( sstatefile ):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- create_manifest(info,sstatefile)
- return
-
spdx_get_src(d)

bb.note('SPDX: Archiving the patched source...')
--
2.17.1


Re: [meta-spdxscanner][PATCH] fossology-rest.bbclass: Moved check if spdx already exists out of the task

Marco Cavallini
 

Hi Lei,
my patches are based on branch MASTER therefore they are based on the latest source code.

Would you mind to apply this one so will be possible to call "bitbake -c get_report" ?

Thank you

--
Marco

On 27/07/21 03:11, leimaohui@... wrote:
Hi Marco
I'm sorry, but your patch seems not base on the latest source code.
https://git.yoctoproject.org/cgit/cgit.cgi/meta-spdxscanner/tree/classes/fossology-rest.bbclass
Best regards
Lei

-----Original Message-----
From: yocto@... <yocto@...> On Behalf
Of Marco Cavallini
Sent: Thursday, July 22, 2021 9:06 PM
To: yocto@...
Cc: Marco Cavallini <m.cavallini@...>; Marco Cavallini
<koansoftware@...>
Subject: [yocto] [meta-spdxscanner][PATCH] fossology-rest.bbclass: Moved
check if spdx already exists out of the task

From: Marco Cavallini <m.cavallini@...>

With the previous code was impossible to run the do_get_report task
whenever a correspondent .spdx file was already present in
tmp/deploy/spdx.
Now the check if spdx already exists is at a higher level therefore is possible
to run : bitbake -c get_report

Signed-off-by: Marco Cavallini <koansoftware@...>
---
classes/fossology-rest.bbclass | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/classes/fossology-rest.bbclass b/classes/fossology-rest.bbclass index
3694440..e55e859 100644
--- a/classes/fossology-rest.bbclass
+++ b/classes/fossology-rest.bbclass
@@ -84,6 +84,15 @@ python () {
create_manifest(info,sstatefile)
return

+ # if spdx already exists
+ if os.path.exists(info['outfile']):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ return
+ if os.path.exists( sstatefile ):
+ bb.note(info['pn'] + "spdx file has been exist, do nothing")
+ create_manifest(info,sstatefile)
+ return
+
d.appendVarFlag('do_spdx', 'depends', ' %s:do_get_report' % pn)
bb.build.addtask('do_get_report', 'do_configure', 'do_patch' , d)
bb.build.addtask('do_spdx', 'do_configure', 'do_get_report', d) @@
-157,15 +166,6 @@ python do_get_report () {
info['outfile'] = os.path.join(manifest_dir, info['pn'] + "-" + info['pv'] +
".spdx" )
sstatefile = os.path.join(spdx_outdir, info['pn'] + "-" + info['pv'] + ".spdx" )

- # if spdx has been exist
- if os.path.exists(info['outfile']):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- return
- if os.path.exists( sstatefile ):
- bb.note(info['pn'] + "spdx file has been exist, do nothing")
- create_manifest(info,sstatefile)
- return
-
spdx_get_src(d)

bb.note('SPDX: Archiving the patched source...')
--
2.17.1


[meta-security][PATCH 2/2] packagegroup-core-security.bb: fix suricat-ptest inclusion

Armin Kuster
 

drop libseccomp ptest

Signed-off-by: Armin Kuster <akuster808@...>
---
recipes-core/packagegroup/packagegroup-core-security.bb | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/recipes-core/packagegroup/packagegroup-core-security.bb b/recipes-core/packagegroup/packagegroup-core-security.bb
index 8e06f30..37473d1 100644
--- a/recipes-core/packagegroup/packagegroup-core-security.bb
+++ b/recipes-core/packagegroup/packagegroup-core-security.bb
@@ -88,8 +88,7 @@ RDEPENDS_packagegroup-security-mac_remove_mipsarch = "apparmor"
RDEPENDS_packagegroup-meta-security-ptest-packages = "\
ptest-runner \
samhain-standalone-ptest \
- libseccomp-ptest \
- suricata-ptest \
+ ${@bb.utils.contains_any("TUNE_FEATURES", "ppc7400 riscv32 riscv64", "", " suricata-ptest",d)} \
python3-fail2ban-ptest \
${@bb.utils.contains("DISTRO_FEATURES", "smack", "smack-ptest", "",d)} \
"
--
2.25.1


[meta-security][PATCH 1/2] crowdsec: add pkg

Armin Kuster
 

Signed-off-by: Armin Kuster <akuster808@...>
---
recipes-ids/crowdsec/crowdsec_1.1.1.bb | 42 ++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 recipes-ids/crowdsec/crowdsec_1.1.1.bb

diff --git a/recipes-ids/crowdsec/crowdsec_1.1.1.bb b/recipes-ids/crowdsec/crowdsec_1.1.1.bb
new file mode 100644
index 0000000..1243a3c
--- /dev/null
+++ b/recipes-ids/crowdsec/crowdsec_1.1.1.bb
@@ -0,0 +1,42 @@
+SUMMARY = "CrowdSec is a free, modern & collaborative behavior detection engine, coupled with a global IP reputation network."
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://src/import/LICENSE;md5=105e75b680b2ab82fa5718661b41f3bf"
+
+SRC_URI = "git://github.com/crowdsecurity/crowdsec.git;branch=master"
+SRCREV = "73e0bbaf93070f4a640eb5a22212b5dcf26699de"
+
+DEPENDS = "jq-native"
+
+GO_IMPORT = "import"
+
+inherit go
+
+S = "${WORKDIR}/git"
+
+do_compile() {
+ export GOARCH="${TARGET_GOARCH}"
+ export GOROOT="${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go"
+
+ # Pass the needed cflags/ldflags so that cgo
+ # can find the needed headers files and libraries
+ export CGO_ENABLED="1"
+ export CFLAGS=""
+ export LDFLAGS=""
+ export CGO_CFLAGS="${BUILDSDK_CFLAGS} --sysroot=${STAGING_DIR_TARGET}"
+ export CGO_LDFLAGS="${BUILDSDK_LDFLAGS} --sysroot=${STAGING_DIR_TARGET}"
+
+ cd ${S}/src/import
+ oe_runmake release
+}
+
+do_install_ () {
+ chmod +x -R --silent ${B}/pkg
+}
+
+
+INSANE_SKIP_${PN} = "already-stripped"
+INSANE_SKIP_${PN}-dev = "ldflags"
+
+RDEPENDS_${PN} = "go"
+RDEPENDS_${PN}-dev = "bash"
--
2.25.1


Re: [meta-spdxscanner] [dunfell | sato] | gdk-pixbuf do_compile failure

leimaohui
 

Hi,

conf/local.conf
INHERIT += "fossology-rest"
TOKEN = "eyJ0e<...yyxx...>"
INHERIT += "fossdriver-host"
SPDX_DEPLOY_DIR = "/home/spdx-outdir-dunfell"
INHERIT += "scancode-tk"
In addition, I guess you want to use fossology-rest.bbclass, so, please don't add " fossdriver-host ", " scancode-tk " at meanwhile. Only add " fossology-rest " is OK:
$ cat local.conf
......
INHERIT += "fossology-rest"
TOKEN = "eyJ0e<...yyxx...>"
......

Best regards
Lei


From: yocto@... <yocto@...> On Behalf Of leimaohui
Sent: Tuesday, July 27, 2021 9:34 AM
To: Krishna <chaithubkts@...>; yocto@...
Subject: Re: [yocto] [meta-spdxscanner] [dunfell | sato] | gdk-pixbuf do_compile failure

To Krishna

I’ sorry that I missed your mail, I’ll try to reproduce your issue.

Best regards
Lei



From: mailto:yocto@... <mailto:yocto@...> On Behalf Of Krishna
Sent: Tuesday, July 21, 2020 1:18 AM
To: mailto:yocto@...
Subject: [yocto] [meta-spdxscanner] [dunfell | sato] | gdk-pixbuf do_compile failure

When I build a sato image I am facing an issue with gdk-pixbuf (as shown below), but when I build the same image without inheriting the meta-spdxscanner, it works fine.
I see a problem with the SPDX generation for only this particular package. Even the highlighted resource (below) was accessible and I was able to ping http://sourceforge.net from my dev machine.
So no clue on what's causing the issue. Can you please help me to resolve this issue? Thanks in advance.

conf/local.conf
INHERIT += "fossology-rest"
TOKEN = "eyJ0e<...yyxx...>"

INHERIT += "fossdriver-host"
SPDX_DEPLOY_DIR = "/home/spdx-outdir-dunfell"

INHERIT += "scancode-tk"

Build issue:
Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "qemuarm"
DISTRO               = "poky"
DISTRO_VERSION       = "3.1"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta                
meta-poky            
meta-yocto-bsp       = "dunfell:a44b8d2856a937ca3991cbf566788b0cd541d777"
meta-oe              
meta-python          = "dunfell:e413c1ef621688e69bb7830bb3151ed23b30b73e"
meta-spdxscanner     = "master:c731a5f1cc83d9d8a1e120207746c89059d5576f"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:08
Sstate summary: Wanted 108 Found 6 Missed 102 Current 2486 (5% match, 96% complete)
NOTE: Executing Tasks
ERROR: gdk-pixbuf-2.40.0-r0 do_compile: Execution of '/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/temp/run.do_compile.2120' failed with exit code 1:
[1/2] /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
FAILED: docs/gdk-pixbuf-csource.1
/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/temp/log.do_compile.2120
Log data follows:
| DEBUG: Executing shell function do_compile
| [1/2] /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| FAILED: docs/gdk-pixbuf-csource.1
| /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
| warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
| cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/temp/run.do_compile.2120' failed with exit code 1:
| [1/2] /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| FAILED: docs/gdk-pixbuf-csource.1
| /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
| warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
| cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/yocto/poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1907 tasks of which 1906 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/yocto/poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.


--
Regards,
Krishna Chaithanya B


Re: [meta-spdxscanner] [dunfell | sato] | gdk-pixbuf do_compile failure

leimaohui
 

To Krishna

 

I’ sorry that I missed your mail, I’ll try to reproduce your issue.

 

Best regards

Lei

 

 

 

From: yocto@... <yocto@...> On Behalf Of Krishna
Sent: Tuesday, July 21, 2020 1:18 AM
To: yocto@...
Subject: [yocto] [meta-spdxscanner] [dunfell | sato] | gdk-pixbuf do_compile failure

 

When I build a sato image I am facing an issue with gdk-pixbuf (as shown below), but when I build the same image without inheriting the meta-spdxscanner, it works fine.

I see a problem with the SPDX generation for only this particular package. Even the highlighted resource (below) was accessible and I was able to ping sourceforge.net from my dev machine.

So no clue on what's causing the issue. Can you please help me to resolve this issue? Thanks in advance.

 

conf/local.conf

INHERIT += "fossology-rest"
TOKEN = "eyJ0e<...yyxx...>"

INHERIT += "fossdriver-host"
SPDX_DEPLOY_DIR = "/home/spdx-outdir-dunfell"

INHERIT += "scancode-tk"

 

Build issue:

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "qemuarm"
DISTRO               = "poky"
DISTRO_VERSION       = "3.1"
TUNE_FEATURES        = "arm armv7ve vfp thumb neon callconvention-hard"
TARGET_FPU           = "hard"
meta                
meta-poky            
meta-yocto-bsp       = "dunfell:a44b8d2856a937ca3991cbf566788b0cd541d777"
meta-oe              
meta-python          = "dunfell:e413c1ef621688e69bb7830bb3151ed23b30b73e"
meta-spdxscanner     = "master:c731a5f1cc83d9d8a1e120207746c89059d5576f"

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:08
Sstate summary: Wanted 108 Found 6 Missed 102 Current 2486 (5% match, 96% complete)
NOTE: Executing Tasks
ERROR: gdk-pixbuf-2.40.0-r0 do_compile: Execution of '/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/temp/run.do_compile.2120' failed with exit code 1:
[1/2] /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
FAILED: docs/gdk-pixbuf-csource.1
/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

ninja: build stopped: subcommand failed.
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/temp/log.do_compile.2120
Log data follows:
| DEBUG: Executing shell function do_compile
| [1/2] /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| FAILED: docs/gdk-pixbuf-csource.1
| /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
| warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
| cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.

| ERROR: Execution of '/home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/temp/run.do_compile.2120' failed with exit code 1:
| [1/2] /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| FAILED: docs/gdk-pixbuf-csource.1
| /home/yocto/build/tmp/work/armv7vet2hf-neon-poky-linux-gnueabi/gdk-pixbuf/2.40.0-r0/recipe-sysroot-native/usr/bin/xsltproc --nonet --stringparam man.output.quietly 1 --stringparam funcsynopsis.style ansi --stringparam man.th.extra1.suppress 1 --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 -o docs/gdk-pixbuf-csource.1 http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ../gdk-pixbuf-2.40.0/docs/gdk-pixbuf-csource.xml
| I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
| warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
| cannot parse http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

| ninja: build stopped: subcommand failed.
| WARNING: exit code 1 from a shell command.
|
ERROR: Task (/home/yocto/poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1907 tasks of which 1906 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/yocto/poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.40.0.bb:do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.



--

Regards,
Krishna Chaithanya B

3181 - 3200 of 57387