Patch review
cover Patch review
Here are the next set of changes for meta-oe zeus. Please have commnets back by Tuesday
The following changes since commit 81e186f6141a6e8f4ab3185b00b9f1392bb89ca1:
adduser: set default shell with /sbin/nologin (2020-01-19 09:05:19 -0800)
are available in the Git repository at:
git://git.openembedded.org/meta-openembedded-contrib stable/zeus-nut
http://cgit.openembedded.org/meta-openembedded-contrib/log/?h=stable/zeus-nut
Khem Raj (6):
squid: Link with libatomic on riscv
grpc: Link with libatomic on clang/x86
grpc: Link with libatomic on powerpc
grpc: Link with libatomic on riscv
netdata: Add libatomic to link step
fluentbit: Fix packaging in multilib env
Peter Kjellerstedt (1):
gitpkgv.bbclass: Add support for extending the supported tag formats
Sumit Garg (1):
mariadb: fix library LZ4 lookup
Trevor Gamblin (2):
python-twisted: add required RDEPENDS for twistd
pyhamcrest: add python3 version of recipe
Yi Zhao (1):
libldb: upgrade 1.5.5 -> 1.5.6
.../recipes-daemons/squid/squid_4.6.bb | 2 ++
.../recipes-devtools/grpc/grpc_1.24.1.bb | 16 ++++++++++
.../{libldb_1.5.5.bb => libldb_1.5.6.bb} | 4 +--
meta-oe/classes/gitpkgv.bbclass | 14 ++++++---
meta-oe/recipes-dbs/mysql/mariadb.inc | 1 +
.../mariadb/0001-Fix-library-LZ4-lookup.patch | 30 +++++++++++++++++++
.../fluentbit/fluentbit/cmake_multilib.patch | 18 +++++++++++
.../fluentbit/fluentbit_0.12.19.bb | 1 +
.../python/python-twisted.inc | 18 ++++++++++-
.../python/python3-pyhamcrest_1.9.0.bb | 10 +++++++
.../recipes-webadmin/netdata/netdata_git.bb | 2 ++
11 files changed, 109 insertions(+), 7 deletions(-)
rename meta-networking/recipes-support/libldb/{libldb_1.5.5.bb => libldb_1.5.6.bb} (95%)
create mode 100644 meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-library-LZ4-lookup.patch
create mode 100644 meta-oe/recipes-extended/fluentbit/fluentbit/cmake_multilib.patch
create mode 100644 meta-python/recipes-devtools/python/python3-pyhamcrest_1.9.0.bbSignature · 1 line
2.17.1
PATCH 1/11 libldb: upgrade 1.5.5 -> 1.5.6
From: Yi Zhao <[email protected]>
[Samba's update via ee5aa6911b2e93b89e67ae6167ee7d9a029b9262 required
libldb upgrade to 1.5.6 Yocto # 13750]
---
.../libldb/{libldb_1.5.5.bb => libldb_1.5.6.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-networking/recipes-support/libldb/{libldb_1.5.5.bb => libldb_1.5.6.bb} (95%)meta-networking/recipes-support/libldb/libldb_1.5.6.bb renamed from meta-networking/recipes-support/libldb/libldb_1.5.5.bb +2 -2
@@ -33,8 +33,8 @@ LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9ada file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \ file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42" -SRC_URI[md5sum] = "339a41ac9efaec680e6d1469dd9aa35b" -SRC_URI[sha256sum] = "199f5861aa863f538ec66d5fa95ecc13254a2030c53daf0e47363fa9ba235c68" +SRC_URI[md5sum] = "fc58ef432c1fcb03fc3bb6cccce08977" +SRC_URI[sha256sum] = "ff82474d0bf109e415a2d50334bde5715f486a53ff4bb8c7f74459dd229e975b" inherit waf-samba distro_features_check REQUIRED_DISTRO_FEATURES = "pam"
Signature · 1 line
2.17.1
Re: [zeus 01/11] libldb: upgrade 1.5.5 -> 1.5.6
patch series looks good to me.
Quoted 40 lines · Armin Kuster
From: Yi Zhao <[email protected]>
Signed-off-by Yi Zhao <[email protected]>Signed-off-by Khem Raj <[email protected]>(cherry picked from commit 2b3fd534874aee125a6c79c70c93b1aa498fda3f)[Samba's update via
ee5aa6911b2e93b89e67ae6167ee7d9a029b9262required
libldb upgrade to 1.5.6 Yocto # 13750]Signed-off-by Armin Kuster <[email protected]>--- .../libldb/{libldb_1.5.5.bb => libldb_1.5.6.bb} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename meta-networking/recipes-support/libldb/{libldb_1.5.5.bb => libldb_1.5.6.bb} (95%)meta-networking/recipes-support/libldb/libldb_1.5.6.bb renamed from meta-networking/recipes-support/libldb/libldb_1.5.5.bb +2
-3@@ -33,8 +33,8 @@ LIC_FILES_CHKSUM = "file://pyldb.h;endline=24;md5=dfbd238cecad76957f7f860fbe9ada file://man/ldb.3.xml;beginline=261;endline=262;md5=137f9fd61040c1505d1aa1019663fd08 \ file://tools/ldbdump.c;endline=19;md5=a7d4fc5d1f75676b49df491575a86a42" -SRC_URI[md5sum] = "339a41ac9efaec680e6d1469dd9aa35b" -SRC_URI[sha256sum] = "199f5861aa863f538ec66d5fa95ecc13254a2030c53daf0e47363fa9ba235c68" +SRC_URI[md5sum] = "fc58ef432c1fcb03fc3bb6cccce08977" +SRC_URI[sha256sum] = "ff82474d0bf109e415a2d50334bde5715f486a53ff4bb8c7f74459dd229e975b" inherit waf-samba distro_features_check REQUIRED_DISTRO_FEATURES = "pam" --2.17.1
--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
PATCH 2/11 mariadb: fix library LZ4 lookup
In reply to Armin KusterFrom: Sumit Garg <[email protected]>
While cross-compiling mariadb package it tries to link lz4 library present in the target sysroot and if not found it tries to link host lz4 library which is incorrect leading to linker errors. So fix that via restricting lz4 library lookup to target sysroot only.
--- meta-oe/recipes-dbs/mysql/mariadb.inc | 1 + .../mariadb/0001-Fix-library-LZ4-lookup.patch | 30 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-library-LZ4-lookup.patch
meta-oe/recipes-dbs/mysql/mariadb.inc +1 -0
@@ -18,6 +18,7 @@ SRC_URI = "http://archive.mariadb.org/${BP}/source/${BP}.tar.gz \ file://c11_atomics.patch \ file://clang_version_header_conflict.patch \ file://fix-arm-atomic.patch \ + file://0001-Fix-library-LZ4-lookup.patch \ " SRC_URI[md5sum] = "b3524c0825c3a1c255496daea38304a0" SRC_URI[sha256sum] = "69456ca85bf9d96c6d28b4ade2a9f6787d79a602e27ef941f9ba4e0b55dddedc"
meta-oe/recipes-dbs/mysql/mariadb/0001-Fix-library-LZ4-lookup.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 1d7612b063eb1fc7bf97bc27b13e1de596748aa1 Mon Sep 17 00:00:00 2001 +From: Sumit Garg <[email protected]> +Date: Wed, 8 Jan 2020 04:58:30 +0000 +Subject: [PATCH] Fix library LZ4 lookup. + +Signed-off-by: Sumit Garg <[email protected]> +--- + cmake/FindLZ4.cmake | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +diff --git a/cmake/FindLZ4.cmake b/cmake/FindLZ4.cmake +index e97dd63e2b0..2f4694e727c 100644 +--- a/cmake/FindLZ4.cmake ++++ b/cmake/FindLZ4.cmake +@@ -1,5 +1,10 @@ +-find_path(LZ4_INCLUDE_DIR NAMES lz4.h) +-find_library(LZ4_LIBRARY NAMES lz4) ++find_path(LZ4_INCLUDE_DIR ++ NAMES lz4.h ++ NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH) ++ ++find_library(LZ4_LIBRARY ++ NAMES lz4 ++ NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH) + + include(FindPackageHandleStandardArgs) + FIND_PACKAGE_HANDLE_STANDARD_ARGS( +-- +2.17.1 +
Signature · 1 line
2.17.1
PATCH 3/11 python-twisted: add required RDEPENDS for twistd
In reply to Armin KusterFrom: Trevor Gamblin <[email protected]>
python-twisted is currently missing some packages for its /usr/bin/twistd executable to function. Add these to the RDEPENDS list, and also clean up formatting since the list is getting long.
Note that a similar patch has already been submitted for master branch, but the python2 version of twisted needs more explicit RDEPENDS than the python3 version submitted to master in order for /usr/bin/twistd to work properly.
--- .../recipes-devtools/python/python-twisted.inc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-twisted.inc +17 -1
@@ -56,7 +56,23 @@ RDEPENDS_${PN} = "\ ${PN}-zsh \ " -RDEPENDS_${PN}-core = "${PYTHON_PN}-core ${PYTHON_PN}-zopeinterface ${PYTHON_PN}-incremental ${PYTHON_PN}-constantly ${PYTHON_PN}-hyperlink ${PYTHON_PN}-automat" +RDEPENDS_${PN}-core = "${PYTHON_PN}-core \ + ${PYTHON_PN}-zopeinterface \ + ${PYTHON_PN}-incremental \ + ${PYTHON_PN}-constantly \ + ${PYTHON_PN}-hyperlink \ + ${PYTHON_PN}-automat \ + ${PYTHON_PN}-pyserial \ + ${PYTHON_PN}-pyhamcrest \ + ${PYTHON_PN}-debugger \ + ${PYTHON_PN}-unixadmin \ + ${PYTHON_PN}-pkg-resources \ + ${PYTHON_PN}-misc \ + ${PYTHON_PN}-pkgutil \ + ${PYTHON_PN}-plistlib \ + ${PYTHON_PN}-setuptools \ +" + RDEPENDS_${PN}-test = "${PN}" RDEPENDS_${PN}-conch = "${PN}-core ${PN}-protocols" RDEPENDS_${PN}-mail = "${PN}-core ${PN}-protocols"
Signature · 1 line
2.17.1
PATCH 4/11 pyhamcrest: add python3 version of recipe
In reply to Armin KusterFrom: Trevor Gamblin <[email protected]>
Twisted requires pyhamcrest for /usr/bin/twistd to work, but in zeus there is only a python2 recipe for this package, thus the twistd daemon won't be able to run properly for python3.
--- .../python/python3-pyhamcrest_1.9.0.bb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pyhamcrest_1.9.0.bb
meta-python/recipes-devtools/python/python3-pyhamcrest_1.9.0.bb new file +10 -0
@@ -0,0 +1,10 @@ +SUMMARY = "Hamcrest framework for matcher objects" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=f6df1318c6071dd1707f5e3b6c11f24f" + +PYPI_PACKAGE = "PyHamcrest" + +SRC_URI[md5sum] = "8b833a3fa30197455df79424f30c8c3f" +SRC_URI[sha256sum] = "8ffaa0a53da57e89de14ced7185ac746227a8894dbd5a3c718bf05ddbd1d56cd" + +inherit pypi setuptools3
Signature · 1 line
2.17.1
PATCH 5/11 gitpkgv.bbclass: Add support for extending the supported tag formats
In reply to Armin KusterFrom: Peter Kjellerstedt <[email protected]>
Introduce GITPKGV_TAG_REGEXP (which defaults to "v(\d.*)") to support dropping other unwanted parts of the found tags than just a leading "v". Any matching groups in the regexp will be concatenated to yield the final version.
--- meta-oe/classes/gitpkgv.bbclass | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-)
meta-oe/classes/gitpkgv.bbclass +10 -4
@@ -40,10 +40,16 @@ GITPKGV = "${@get_git_pkgv(d, False)}" GITPKGVTAG = "${@get_git_pkgv(d, True)}" -def gitpkgv_drop_tag_prefix(version): +# This regexp is used to drop unwanted parts of the found tags. Any matching +# groups will be concatenated to yield the final version. +GITPKGV_TAG_REGEXP ??= "v(\d.*)" + +def gitpkgv_drop_tag_prefix(d, version): import re - if re.match("v\d", version): - return version[1:] + + m = re.match(d.getVar('GITPKGV_TAG_REGEXP'), version) + if m: + return ''.join(group for group in m.groups() if group) else: return version
@@ -105,7 +111,7 @@ def get_git_pkgv(d, use_tags): output = bb.fetch2.runfetchcmd( "git --git-dir=%(repodir)s describe %(rev)s --tags --exact-match 2>/dev/null" % vars, d, quiet=True).strip() - ver = gitpkgv_drop_tag_prefix(output) + ver = gitpkgv_drop_tag_prefix(d, output) except Exception: ver = "0.0-%s-g%s" % (commits, vars['rev'][:7]) else:
Signature · 1 line
2.17.1
PATCH 6/11 squid: Link with libatomic on riscv
In reply to Armin KusterFrom: Khem Raj <[email protected]>
--- meta-networking/recipes-daemons/squid/squid_4.6.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-networking/recipes-daemons/squid/squid_4.6.bb +2 -0
@@ -40,6 +40,8 @@ inherit autotools pkgconfig useradd ptest perlnative LDFLAGS_append_mipsarch = " -latomic" LDFLAGS_append_powerpc = " -latomic" +LDFLAGS_append_riscv64 = " -latomic" +LDFLAGS_append_riscv32 = " -latomic" USERADD_PACKAGES = "${PN}" USERADD_PARAM_${PN} = "--system --no-create-home --home-dir /var/run/squid --shell /bin/false --user-group squid"
Signature · 1 line
2.17.1
PATCH 7/11 grpc: Link with libatomic on clang/x86
In reply to Armin KusterFrom: Khem Raj <[email protected]>
clang does delegate the atomic<double> calls to libatomic on x86 where as gcc tries to use intrinsics, its debatable who is right, but it does seem that clang is safe in case pointer is unaligned
--- meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb +4 -0
@@ -44,6 +44,10 @@ do_configure_prepend_mipsarch() { sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt } +do_configure_prepend_toolchain-clang_x86() { + sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt +} + BBCLASSEXTEND = "native nativesdk" SYSROOT_DIRS_BLACKLIST_append_class-target = "${baselib}/cmake/grpc"
Signature · 1 line
2.17.1
PATCH 8/11 grpc: Link with libatomic on powerpc
In reply to Armin KusterFrom: Khem Raj <[email protected]>
--- meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb +4 -0
@@ -44,6 +44,10 @@ do_configure_prepend_mipsarch() { sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt } +do_configure_prepend_powerpc() { + sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt +} + do_configure_prepend_toolchain-clang_x86() { sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt }
Signature · 1 line
2.17.1
PATCH 9/11 grpc: Link with libatomic on riscv
In reply to Armin KusterFrom: Khem Raj <[email protected]>
--- meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb | 8 ++++++++ 1 file changed, 8 insertions(+)
meta-networking/recipes-devtools/grpc/grpc_1.24.1.bb +8 -0
@@ -48,6 +48,14 @@ do_configure_prepend_powerpc() { sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt } +do_configure_prepend_riscv64() { + sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt +} + +do_configure_prepend_riscv32() { + sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt +} + do_configure_prepend_toolchain-clang_x86() { sed -i -e "s/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} rt m pthread)/set(_gRPC_ALLTARGETS_LIBRARIES \${CMAKE_DL_LIBS} atomic rt m pthread)/g" ${S}/CMakeLists.txt }
Signature · 1 line
2.17.1
PATCH 10/11 netdata: Add libatomic to link step
In reply to Armin KusterFrom: Khem Raj <[email protected]>
--- meta-webserver/recipes-webadmin/netdata/netdata_git.bb | 2 ++ 1 file changed, 2 insertions(+)
meta-webserver/recipes-webadmin/netdata/netdata_git.bb +2 -0
@@ -26,6 +26,8 @@ DEPENDS += "zlib util-linux" inherit pkgconfig autotools-brokensep useradd systemd LIBS_toolchain-clang_x86 = "-latomic" +LIBS_riscv64 = "-latomic" +LIBS_riscv32 = "-latomic" export LIBS #systemd
Signature · 1 line
2.17.1
PATCH 11/11 fluentbit: Fix packaging in multilib env
In reply to Armin KusterFrom: Khem Raj <[email protected]>
Fixes
ERROR: fluentbit-0.12.19-r0 do_package: QA Issue: fluentbit: Files/directories were installed but not shipped in any package:/usr/lib/libfluent-bit.so
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
--- .../fluentbit/fluentbit/cmake_multilib.patch | 18 ++++++++++++++++++ .../fluentbit/fluentbit_0.12.19.bb | 1 + 2 files changed, 19 insertions(+) create mode 100644 meta-oe/recipes-extended/fluentbit/fluentbit/cmake_multilib.patch
meta-oe/recipes-extended/fluentbit/fluentbit/cmake_multilib.patch new file +18 -0
@@ -0,0 +1,18 @@ +Use CMAKE_INSTALL_LIBDIR instead of hardcoding lib path + +Helps build on platforms where libpaths are not lib/ but say lib64/ + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> + +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -182,7 +182,7 @@ if(NOT FLB_WITHOUT_SHARED_LIB) + PROPERTIES OUTPUT_NAME fluent-bit) + + # Library install routines +- install(TARGETS fluent-bit-shared LIBRARY DESTINATION lib) ++ install(TARGETS fluent-bit-shared LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + endif() + + # Static Library
meta-oe/recipes-extended/fluentbit/fluentbit_0.12.19.bb +1 -0
@@ -4,6 +4,7 @@ BUGTRACKER = "https://github.com/fluent/fluent-bit/issues" SRC_URI = "http://fluentbit.io/releases/0.12/fluent-bit-${PV}.tar.gz \ file://jemalloc.patch \ + file://cmake_multilib.patch \ " SRC_URI[md5sum] = "7c8708312ac9122faacf9e2a4751eb34" SRC_URI[sha256sum] = "23a81087edf0e2c6f2d49411c6a82308afc5224f67bbaa45729c057af62e9241"
Signature · 1 line
2.17.1