Re: [yocto] QA notification for completed autobuilder build (yocto-3.3.2.rc2)

2021-07-27 Thread Sangeeta Jain
Hi all,

Intel and WR YP QA is planning for QA execution for YP build yocto-3.3.2.rc2. 
We are planning to execute following tests for this cycle:

OEQA-manual tests for following module:
1. OE-Core
2. BSP-hw

Runtime auto test for following platforms:
1. MinnowTurbot 32-bit
2. Coffee Lake
3. NUC 7
4. NUC 6
5. Edgerouter
6. Beaglebone

ETA for completion is next Monday, Aug 02.


Thanks,
Sangeeta

> -Original Message-
> From: yocto@lists.yoctoproject.org  On Behalf
> Of Richard Purdie
> Sent: Tuesday, 27 July, 2021 10:50 PM
> To:  
> Cc: qa-build-notification 
> Subject: [yocto] QA notification for completed autobuilder build (yocto-
> 3.3.2.rc2)
> 
> 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.pur...@linuxfoundation.org
> 
> 


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



[yocto] QA notification for completed autobuilder build (yocto-3.1.10.rc1)

2021-07-27 Thread Richard Purdie
A build flagged for QA (yocto-3.1.10.rc1) was completed on the autobuilder and 
is available at:


https://autobuilder.yocto.io/pub/releases/yocto-3.1.10.rc1


Build hash information: 

bitbake: 0e0af15b84e07e6763300dcd092b980086b9b9c4
meta-agl: 68c0029602e539d005c33b6c36baa32e34bf67bf
meta-arm: b79b9122e0dc66ca03542f82ff4fa8eb05174f61
meta-aws: d66de6ed82fe6b89e3b8b2626f4db6f5d7d5713d
meta-gplv2: 60b251c25ba87e946a0ca4cdc8d17b1cb09292ac
meta-intel: d8bf86ae6288ae520b8ddd7209a0b448b9693f48
meta-mingw: 524de686205b5d6736661d4532f5f98fee8589b7
meta-openembedded: 8fbcfb9f023e0eab7f122eb19607a1c757b0d245
oecore: 9ae339ace9274be71bfd3b5e5da64dceac9fa963
poky: 2a848e95074318f3a243df7b3f40513a13173a82



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



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



Re: [yocto] #yocto

2021-07-27 Thread Khem Raj

you need a patch like this

https://patches.openembedded.org/patch/169519/

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

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

2021-07-27 Thread 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=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@nslcd.service

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'








--
# Randy MacLeod
# Wind River Linux

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



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

2021-07-27 Thread Armin Kuster
Signed-off-by: Armin Kuster 
---
 .../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 000..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 
+
+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 000..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 \
+

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

2021-07-27 Thread Armin Kuster
They dropped the dev branch for rel. Update to tip.
Refresh patches

Signed-off-by: Armin Kuster 
---
 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


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54241): https://lists.yoctoproject.org/g/yocto/message/54241
Mute This Topic: https://lists.yoctoproject.org/mt/84485598/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 

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

2021-07-27 Thread 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 
> ---
>  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();
>  
> 
> 
> 



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



Re: [yocto] #yocto

2021-07-27 Thread sateesh m
Thanks, I'll check them out.

On Tue, 27 Jul 2021, 18:17 Nicolas 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
> >
> 
> > # 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
>
>
>

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



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

2021-07-27 Thread 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.pur...@linuxfoundation.org




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



Re: [linux-yocto][linux-yocto v5.10/standard/sdkv5.10/xlnx-soc][PATCH 3/4] spi: spi-zynq-qspi: remove dev_dbg from zynq_qspi_exec_mem_op

2021-07-27 Thread Bruce Ashfield
In message: [linux-yocto][linux-yocto v5.10/standard/sdkv5.10/xlnx-soc][PATCH 
3/4]  spi: spi-zynq-qspi: remove dev_dbg from zynq_qspi_exec_mem_op
on 27/07/2021 quanyang.w...@windriver.com wrote:

> From: Quanyang Wang 
> 
> The dev_dbg in zynq_qspi_exec_mem_op will print too many logs especially
> when erasing flashes. Let's remove it.

Is there an option to ratelmit this ? versus removing it completely ?

Bruce

> 
> Signed-off-by: Quanyang Wang 
> ---
>  drivers/spi/spi-zynq-qspi.c | 4 
>  1 file changed, 4 deletions(-)
> 
> diff --git a/drivers/spi/spi-zynq-qspi.c b/drivers/spi/spi-zynq-qspi.c
> index a44dc7b8af216..f1fa48ca7a40a 100644
> --- a/drivers/spi/spi-zynq-qspi.c
> +++ b/drivers/spi/spi-zynq-qspi.c
> @@ -548,10 +548,6 @@ static int zynq_qspi_exec_mem_op(struct spi_mem *mem,
>   int err = 0, i;
>   u8 *tmpbuf;
>  
> - dev_dbg(xqspi->dev, "cmd:%#x mode:%d.%d.%d.%d\n",
> - op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth,
> - op->dummy.buswidth, op->data.buswidth);
> -
>   zynq_qspi_chipselect(mem->spi, true);
>   zynq_qspi_config_op(xqspi, mem->spi);
>  
> -- 
> 2.25.1
> 

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



Re: [linux-yocto][linux-yocto v5.10/standard/sdkv5.10/xlnx-soc][PATCH 2/4] net: xilinx: fix compile warning due to typecheck

2021-07-27 Thread Bruce Ashfield

In message: [linux-yocto][linux-yocto v5.10/standard/sdkv5.10/xlnx-soc][PATCH 
2/4]  net: xilinx: fix compile warning due to typecheck
on 27/07/2021 quanyang.w...@windriver.com wrote:

> From: Quanyang Wang 
> 
> Change the type of flags from "u32" to "unsigned long" to avoid the
> compile warning as below:
> 
> include/linux/spinlock.h:251:3: note: in expansion of macro ‘typecheck’
>   251 |   typecheck(unsigned long, flags); \
>   |   ^
> drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1124:3: note: in expansion 
> of macro ‘spin_lock_irqsave’
>  1124 |   spin_lock_irqsave(>ptp_tx_lock, flags);
>   |   ^

Did something recently introduce this warning ? or has it always been
there ? We should log the commit ID that introduces these, so we can
see if the issue is more widespread, and to confirm we aren't breaking
something else.

Bruce

> 
> Signed-off-by: Quanyang Wang 
> ---
>  drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c 
> b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
> index 5a52872ec1430..64de359e7697d 100644
> --- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
> +++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
> @@ -1067,7 +1067,7 @@ static int axienet_create_tsheader(u8 *buf, u8 msg_type,
>  #endif
>   u64 val;
>   u32 tmp[MRMAC_TS_HEADER_WORDS];
> - u32 flags;
> + unsigned long flags;
>   int i;
>  
>  #ifdef CONFIG_AXIENET_HAS_MCDMA
> -- 
> 2.25.1
> 

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



Re: [linux-yocto][linux-yocto v5.10/standard/sdkv5.10/xlnx-soc][PATCH 1/4] arm64: zynqmp: fix warning about lack of #interrupt-cells

2021-07-27 Thread Bruce Ashfield

In message: [linux-yocto][linux-yocto v5.10/standard/sdkv5.10/xlnx-soc][PATCH 
1/4]  arm64: zynqmp: fix warning about lack of #interrupt-cells
on 27/07/2021 quanyang.w...@windriver.com wrote:

> From: Quanyang Wang 
> 
> The interrupt controller nodes need #interrupt-cells property. When
> building device-tree files with "DTC_FLAGS='-@'", there is warning
> as below:
> 
> arch/arm64/boot/dts/xilinx/zynqmp.dtsi:450.38-460.5: Warning 
> (interrupt_provider): /axi/interrupt-controller@f901: Missing 
> #address-cells in interrupt provider
> arch/arm64/boot/dts/xilinx/zynqmp.dtsi:720.23-731.5: Warning 
> (interrupt_provider): /axi/gpio@ff0a: Missing #address-cells in interrupt 
> provider
> 
> Since they have no children in the device-tree hierarchy, assign '0'
> to the "interrupt-cells" property.

The commit message doesn't match the code. You are assigning to
the #address-cells property, not interrupt-cells. Or am I misreading ?

Bruce

> 
> Signed-off-by: Quanyang Wang 
> ---
>  arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi 
> b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
> index 2e1ccd179d17d..8c2cad7816435 100644
> --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
> +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
> @@ -451,6 +451,7 @@ fpd_dma_chan8: dma@fd57 {
>   gic: interrupt-controller@f901 {
>   compatible = "arm,gic-400";
>   #interrupt-cells = <3>;
> + #address-cells = <0>;
>   reg = <0x0 0xf901 0x0 0x1>,
> <0x0 0xf902 0x0 0x2>,
> <0x0 0xf904 0x0 0x2>,
> @@ -665,6 +666,7 @@ gpio: gpio@ff0a {
>   interrupts = <0 16 4>;
>   interrupt-controller;
>   #interrupt-cells = <2>;
> + #address-cells = <0>;
>   reg = <0x0 0xff0a 0x0 0x1000>;
>   power-domains = <_firmware PD_GPIO>;
>   };
> -- 
> 2.25.1
> 

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



Re: [yocto] #yocto

2021-07-27 Thread 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
> 

> # 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



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



[linux-yocto][linux-yocto v5.10/standard/sdkv5.10/xlnx-soc][PATCH 3/4] spi: spi-zynq-qspi: remove dev_dbg from zynq_qspi_exec_mem_op

2021-07-27 Thread quanyang.wang
From: Quanyang Wang 

The dev_dbg in zynq_qspi_exec_mem_op will print too many logs especially
when erasing flashes. Let's remove it.

Signed-off-by: Quanyang Wang 
---
 drivers/spi/spi-zynq-qspi.c | 4 
 1 file changed, 4 deletions(-)

diff --git a/drivers/spi/spi-zynq-qspi.c b/drivers/spi/spi-zynq-qspi.c
index a44dc7b8af216..f1fa48ca7a40a 100644
--- a/drivers/spi/spi-zynq-qspi.c
+++ b/drivers/spi/spi-zynq-qspi.c
@@ -548,10 +548,6 @@ static int zynq_qspi_exec_mem_op(struct spi_mem *mem,
int err = 0, i;
u8 *tmpbuf;
 
-   dev_dbg(xqspi->dev, "cmd:%#x mode:%d.%d.%d.%d\n",
-   op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth,
-   op->dummy.buswidth, op->data.buswidth);
-
zynq_qspi_chipselect(mem->spi, true);
zynq_qspi_config_op(xqspi, mem->spi);
 
-- 
2.25.1


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



[linux-yocto][linux-yocto v5.10/standard/sdkv5.10/xlnx-soc][PATCH 4/4] spi: spi-zynqmp-gqspi: remove dev_dbg from zynqmp_qspi_exec_op

2021-07-27 Thread quanyang.wang
From: Quanyang Wang 

The dev_dbg in zynq_qspi_exec_mem_op will print too many logs especially
when erasing flashes. Let's remove it.

Signed-off-by: Quanyang Wang 
---
 drivers/spi/spi-zynqmp-gqspi.c | 4 
 1 file changed, 4 deletions(-)

diff --git a/drivers/spi/spi-zynqmp-gqspi.c b/drivers/spi/spi-zynqmp-gqspi.c
index bbb0407ee6452..ddea549d8622a 100644
--- a/drivers/spi/spi-zynqmp-gqspi.c
+++ b/drivers/spi/spi-zynqmp-gqspi.c
@@ -1083,10 +1083,6 @@ static int zynqmp_qspi_exec_op(struct spi_mem *mem,
u16 opcode = op->cmd.opcode;
u64 opaddr;
 
-   dev_dbg(xqspi->dev, "cmd:%#x mode:%d.%d.%d.%d\n",
-   op->cmd.opcode, op->cmd.buswidth, op->addr.buswidth,
-   op->dummy.buswidth, op->data.buswidth);
-
mutex_lock(>op_lock);
zynqmp_qspi_config_op(xqspi, mem->spi);
zynqmp_qspi_chipselect(mem->spi, false);
-- 
2.25.1


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



[linux-yocto][linux-yocto v5.10/standard/sdkv5.10/xlnx-soc][PATCH 2/4] net: xilinx: fix compile warning due to typecheck

2021-07-27 Thread quanyang.wang
From: Quanyang Wang 

Change the type of flags from "u32" to "unsigned long" to avoid the
compile warning as below:

include/linux/spinlock.h:251:3: note: in expansion of macro ‘typecheck’
  251 |   typecheck(unsigned long, flags); \
  |   ^
drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1124:3: note: in expansion of 
macro ‘spin_lock_irqsave’
 1124 |   spin_lock_irqsave(>ptp_tx_lock, flags);
  |   ^

Signed-off-by: Quanyang Wang 
---
 drivers/net/ethernet/xilinx/xilinx_axienet_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c 
b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
index 5a52872ec1430..64de359e7697d 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
@@ -1067,7 +1067,7 @@ static int axienet_create_tsheader(u8 *buf, u8 msg_type,
 #endif
u64 val;
u32 tmp[MRMAC_TS_HEADER_WORDS];
-   u32 flags;
+   unsigned long flags;
int i;
 
 #ifdef CONFIG_AXIENET_HAS_MCDMA
-- 
2.25.1


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



[linux-yocto][linux-yocto v5.10/standard/sdkv5.10/xlnx-soc][PATCH 1/4] arm64: zynqmp: fix warning about lack of #interrupt-cells

2021-07-27 Thread quanyang.wang
From: Quanyang Wang 

The interrupt controller nodes need #interrupt-cells property. When
building device-tree files with "DTC_FLAGS='-@'", there is warning
as below:

arch/arm64/boot/dts/xilinx/zynqmp.dtsi:450.38-460.5: Warning 
(interrupt_provider): /axi/interrupt-controller@f901: Missing 
#address-cells in interrupt provider
arch/arm64/boot/dts/xilinx/zynqmp.dtsi:720.23-731.5: Warning 
(interrupt_provider): /axi/gpio@ff0a: Missing #address-cells in interrupt 
provider

Since they have no children in the device-tree hierarchy, assign '0'
to the "interrupt-cells" property.

Signed-off-by: Quanyang Wang 
---
 arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi 
b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
index 2e1ccd179d17d..8c2cad7816435 100644
--- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
+++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi
@@ -451,6 +451,7 @@ fpd_dma_chan8: dma@fd57 {
gic: interrupt-controller@f901 {
compatible = "arm,gic-400";
#interrupt-cells = <3>;
+   #address-cells = <0>;
reg = <0x0 0xf901 0x0 0x1>,
  <0x0 0xf902 0x0 0x2>,
  <0x0 0xf904 0x0 0x2>,
@@ -665,6 +666,7 @@ gpio: gpio@ff0a {
interrupts = <0 16 4>;
interrupt-controller;
#interrupt-cells = <2>;
+   #address-cells = <0>;
reg = <0x0 0xff0a 0x0 0x1000>;
power-domains = <_firmware PD_GPIO>;
};
-- 
2.25.1


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



Re: [yocto] #yocto

2021-07-27 Thread 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,  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
> 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: 

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

2021-07-27 Thread 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@nslcd.service

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'

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



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

2021-07-27 Thread 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 
---
 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'",
   

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

2021-07-27 Thread leimaohui
merged

> -Original Message-
> From: Marco 
> Sent: Tuesday, July 27, 2021 3:34 PM
> To: Lei, Maohui ;
> yocto@lists.yoctoproject.org
> Cc: Marco 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, leimao...@fujitsu.com 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 
> >> Sent: Tuesday, July 27, 2021 2:51 PM
> >> To: Lei, Maohui ; yocto@lists.yoctoproject.org
> >> Cc: Marco 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, leimao...@fujitsu.com 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@lists.yoctoproject.org 
>  On Behalf Of Marco Cavallini
>  Sent: Thursday, July 22, 2021 9:06 PM
>  To: yocto@lists.yoctoproject.org
>  Cc: Marco Cavallini ; Marco Cavallini
>  
>  Subject: [yocto] [meta-spdxscanner][PATCH] fossology-rest.bbclass:
>  Moved check if spdx already exists out of the task
> 
>  From: Marco 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 
>  ---
> 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',
> 

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

2021-07-27 Thread 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, leimao...@fujitsu.com 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 
Sent: Tuesday, July 27, 2021 2:51 PM
To: Lei, Maohui ;
yocto@lists.yoctoproject.org
Cc: Marco 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, leimao...@fujitsu.com 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@lists.yoctoproject.org  On
Behalf Of Marco Cavallini
Sent: Thursday, July 22, 2021 9:06 PM
To: yocto@lists.yoctoproject.org
Cc: Marco Cavallini ; Marco Cavallini

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

From: Marco 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 
---
   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







-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54231): https://lists.yoctoproject.org/g/yocto/message/54231
Mute This Topic: https://lists.yoctoproject.org/mt/84378387/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 

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

2021-07-27 Thread 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 
> Sent: Tuesday, July 27, 2021 2:51 PM
> To: Lei, Maohui ;
> yocto@lists.yoctoproject.org
> Cc: Marco 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, leimao...@fujitsu.com 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@lists.yoctoproject.org  On
> >> Behalf Of Marco Cavallini
> >> Sent: Thursday, July 22, 2021 9:06 PM
> >> To: yocto@lists.yoctoproject.org
> >> Cc: Marco Cavallini ; Marco Cavallini
> >> 
> >> Subject: [yocto] [meta-spdxscanner][PATCH] fossology-rest.bbclass:
> >> Moved check if spdx already exists out of the task
> >>
> >> From: Marco 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 
> >> ---
> >>   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
> >


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#54230): 

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

2021-07-27 Thread Marco Cavallini
From: Marco 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 
---
 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


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



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

2021-07-27 Thread 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, leimao...@fujitsu.com 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@lists.yoctoproject.org  On Behalf
Of Marco Cavallini
Sent: Thursday, July 22, 2021 9:06 PM
To: yocto@lists.yoctoproject.org
Cc: Marco Cavallini ; Marco Cavallini

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

From: Marco 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 
---
  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





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