gpm: fix buildpaths QA issue
PATCH 1/5 gpm: fix buildpaths QA issue
From: Martin Jansa <[email protected]>
--- meta-oe/recipes-support/gpm/gpm_git.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-oe/recipes-support/gpm/gpm_git.bb +4 -0
@@ -24,6 +24,10 @@ inherit autotools-brokensep update-rc.d systemd texinfo INITSCRIPT_NAME = "gpm" INITSCRIPT_PARAMS = "defaults" +# Avoid line statements with bison/yacc +# ERROR: lib32-gpm-1.99.7+gite82d1a653ca94aa4ed12441424da6ce780b1e530-r0 do_package_qa: QA Issue: File /usr/src/debug/lib32-gpm/1.99.7+gite82d1a653ca94aa4ed12441424da6ce780b1e530/src/prog/gpm-root.c in package lib32-gpm-src contains reference to TMPDIR [buildpaths] +EXTRA_OEMAKE = "YFLAGS='-l'" + do_configure:prepend() { (cd ${S};./autogen.sh;cd -) }
Signature · 1 line
2.43.0
PATCH 2/5 xerces-c: fix buildpaths QA issue
From: Martin Jansa <[email protected]>
--- ...-use-full-path-of-with_curl-in-xerce.patch | 58 +++++++++++++++++++ .../xerces-c/xerces-c_3.2.5.bb | 8 +-- 2 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 meta-oe/recipes-devtools/xerces-c/xerces-c/0001-aclocal.m4-don-t-use-full-path-of-with_curl-in-xerce.patch
meta-oe/recipes-devtools/xerces-c/xerces-c/0001-aclocal.m4-don-t-use-full-path-of-with_curl-in-xerce.patch new file +58 -0
@@ -0,0 +1,58 @@ +From d001f12d428f7adaeaadee5263a22c797c99d67b Mon Sep 17 00:00:00 2001 +From: Martin Jansa <[email protected]> +Date: Fri, 30 Aug 2024 11:42:27 +0200 +Subject: [PATCH] aclocal.m4: don't use full path of $with_curl in xerces-c.pc + +* fixes: + ERROR: QA Issue: File /usr/lib32/pkgconfig/xerces-c.pc in package lib32-libxerces-c-dev contains reference to TMPDIR [buildpaths] + +* xerces-c was blacklisted due to tmpdir since 2016: + https://git.openembedded.org/meta-openembedded/commit/?id=1af196e42c811947bb483df30bfce758adee83d1 + +* then sed call: + sed -i -e 's:-L${STAGING_DIR}/lib:-L\$\{libdir\}:g' ${B}/xerces-c.pc + was added to do_install:append and blacklist dropped in: + https://git.openembedded.org/meta-openembedded/commit/?id=87b9efff79e62f569525e4760adc594d0d9ac476 + +* sed call was adjusted in: + https://git.openembedded.org/meta-openembedded/commit/?id=87c9e9537dc43468a6aaf706853b784ce6de14e0 + sed -i s:-L${STAGING_LIBDIR}::g ${B}/xerces-c.pc + +* but it was still failing in some cases, e.g. with multilib where libdir is /usr/lib64, so the sed call is: + sed -i s:-L{WORKDIR}/recipe-sysroot/usr/lib64::g ${WORKDIR}/build/xerces-c.pc + but the actual xerces-c.pc file still has: + + Libs: -L${libdir} -lxerces-c + Libs.private: -L${WORKDIR}/recipe-sysroot/usr/lib -lcurl + + because this aclocal was always hardcoding "lib" (appended to --with-curl + value which is passed together with ${prefix}) and not respecting the libdir value: + PACKAGECONFIG[curl] = "--with-curl=${STAGING_DIR_TARGET}${prefix},--with-curl=no,curl" + PACKAGECONFIG[icu] = "--with-icu=${STAGING_DIR_TARGET}${prefix},--with-icu=no,icu" + +* xerces-c supports CMake since 2017: + https://github.com/apache/xerces-c/commit/2606b2924c3e2bf0cf50f72b79378721b6bcf04e + switching from autotools to CMake would probably resolve some of this as well + +Signed-off-by: Martin Jansa <[email protected]> +--- +Upstream-Status: Pending [It would be better to just switch to CMake] + + m4/xerces_curl_prefix.m4 | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/m4/xerces_curl_prefix.m4 b/m4/xerces_curl_prefix.m4 +index d1d015c..7928bdc 100644 +--- a/m4/xerces_curl_prefix.m4 ++++ b/m4/xerces_curl_prefix.m4 +@@ -39,8 +39,8 @@ AC_DEFUN([XERCES_CURL_PREFIX], + curl_libs=`$curl_config --libs` + else + if test -n "$with_curl"; then +- curl_flags="-I$with_curl/include" +- curl_libs="-L$with_curl/lib -lcurl" ++ curl_flags="" ++ curl_libs="-lcurl" + else + # Default compiler paths. + #
meta-oe/recipes-devtools/xerces-c/xerces-c_3.2.5.bb +3 -5
@@ -9,7 +9,9 @@ SECTION = "libs" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57" -SRC_URI = "http://archive.apache.org/dist/xerces/c/3/sources/${BP}.tar.bz2" +SRC_URI = "http://archive.apache.org/dist/xerces/c/3/sources/${BP}.tar.bz2 \ + file://0001-aclocal.m4-don-t-use-full-path-of-with_curl-in-xerce.patch \ +" SRC_URI[sha256sum] = "1db4028c9b7f1f778efbf4a9462d65e13f9938f2c22f9e9994e12c49ba97e252" inherit autotools
@@ -18,10 +20,6 @@ PACKAGECONFIG ??= "curl icu" PACKAGECONFIG[curl] = "--with-curl=${STAGING_DIR_TARGET}${prefix},--with-curl=no,curl" PACKAGECONFIG[icu] = "--with-icu=${STAGING_DIR_TARGET}${prefix},--with-icu=no,icu" -do_install:prepend () { - sed -i s:-L${STAGING_LIBDIR}::g ${B}/xerces-c.pc -} - PACKAGES = "libxerces-c \ libxerces-c-dev \ xerces-c-samples \
Signature · 1 line
2.43.0
PATCH 3/5 samba: upgrade 4.19.6 -> 4.19.7
In reply to Armin KusterFrom: Yi Zhao <[email protected]>
ChangeLog:
https://www.samba.org/samba/history/samba-4.19.7.html
---
.../samba/{samba_4.19.6.bb => samba_4.19.7.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-networking/recipes-connectivity/samba/{samba_4.19.6.bb => samba_4.19.7.bb} (99%)meta-networking/recipes-connectivity/samba/samba_4.19.7.bb renamed from meta-networking/recipes-connectivity/samba/samba_4.19.6.bb +1 -1
@@ -31,7 +31,7 @@ SRC_URI:append:libc-musl = " \ file://samba-4.3.9-remove-getpwent_r.patch \ " -SRC_URI[sha256sum] = "653b52095554dbc223c63b96af5cdf9e98c3e048549c5f56143d3b33dce1cef1" +SRC_URI[sha256sum] = "2bbb800af2d6bc7b9c23e708cd58d008da3bfa6ef7e621d9ec8b53387efee445" UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.19(\.\d+)+).tar.gz"
Signature · 1 line
2.43.0
PATCH 4/5 samba: upgrade 4.19.7 -> 4.19.8
In reply to Armin KusterFrom: Wang Mingyu <[email protected]>
Changelog:
https://www.samba.org/samba/history/samba-4.19.8.html
---
.../samba/{samba_4.19.7.bb => samba_4.19.8.bb} | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
rename meta-networking/recipes-connectivity/samba/{samba_4.19.7.bb => samba_4.19.8.bb} (99%)meta-networking/recipes-connectivity/samba/samba_4.19.8.bb renamed from meta-networking/recipes-connectivity/samba/samba_4.19.7.bb +1 -1
@@ -31,7 +31,7 @@ SRC_URI:append:libc-musl = " \ file://samba-4.3.9-remove-getpwent_r.patch \ " -SRC_URI[sha256sum] = "2bbb800af2d6bc7b9c23e708cd58d008da3bfa6ef7e621d9ec8b53387efee445" +SRC_URI[sha256sum] = "1aeff76c207f383477ce4badebd154691c408d2e15b01b333c85eb775468ddf6" UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.19(\.\d+)+).tar.gz"
Signature · 1 line
2.43.0
PATCH 5/5 postgresql: upgrade 16.3 -> 16.4
In reply to Armin KusterFrom: Wang Mingyu <[email protected]>
0003-configure.ac-bypass-autoconf-2.69-version-check.patch refreshed for 16.4
---
...03-configure.ac-bypass-autoconf-2.69-version-check.patch | 6 +++---
.../postgresql/{postgresql_16.3.bb => postgresql_16.4.bb} | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
rename meta-oe/recipes-dbs/postgresql/{postgresql_16.3.bb => postgresql_16.4.bb} (87%)meta-oe/recipes-dbs/postgresql/files/0003-configure.ac-bypass-autoconf-2.69-version-check.patch +3 -3
@@ -13,12 +13,12 @@ Signed-off-by: Yi Fan Yu <[email protected]> 1 file changed, 4 deletions(-) diff --git a/configure.ac b/configure.ac -index 401ce30..27f382d 100644 +index 65715a4..4ad6340 100644 --- a/configure.ac +++ b/configure.ac @@ -19,10 +19,6 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros - AC_INIT([PostgreSQL], [16.3], [[email protected]], [], [https://www.postgresql.org/]) + AC_INIT([PostgreSQL], [16.4], [[email protected]], [], [https://www.postgresql.org/]) -m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required. -Untested combinations of 'autoconf' and PostgreSQL versions are not
@@ -28,5 +28,5 @@ index 401ce30..27f382d 100644 AC_CONFIG_SRCDIR([src/backend/access/common/heaptuple.c]) AC_CONFIG_AUX_DIR(config) -- -2.25.1 +2.34.1
meta-oe/recipes-dbs/postgresql/postgresql_16.4.bb renamed from meta-oe/recipes-dbs/postgresql/postgresql_16.3.bb +1 -1
@@ -12,6 +12,6 @@ SRC_URI += "\ file://CVE-2024-7348.patch \ " -SRC_URI[sha256sum] = "331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585" +SRC_URI[sha256sum] = "971766d645aa73e93b9ef4e3be44201b4f45b5477095b049125403f9f3386d6f" CVE_STATUS[CVE-2017-8806] = "not-applicable-config: Ddoesn't apply to out configuration of postgresql so we can safely ignore it."
Signature · 1 line
2.43.0
Re: [oe] [meta-oe][scarthgap][PATCH 3/5] samba: upgrade 4.19.6 -> 4.19.7
In reply to Armin KusterQuoted 22 lines · Armin Kuster
From: Yi Zhao <[email protected]>
ChangeLog:
https://www.samba.org/samba/history/samba-4.19.7.htmlSigned-off-by Yi Zhao <[email protected]>Signed-off-by Khem Raj <[email protected]>(cherry picked from commit 41df431b91f1d81070c1f0e8633995d7afba52e4)Signed-off-by Armin Kuster <[email protected]>--- .../samba/{samba_4.19.6.bb => samba_4.19.7.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-networking/recipes-connectivity/samba/{samba_4.19.6.bb => samba_4.19.7.bb} (99%)meta-networking/recipes-connectivity/samba/samba_4.19.7.bb renamed from meta-networking/recipes-connectivity/samba/samba_4.19.6.bb +0
-0
meta-networking/recipes-connectivity/samba/samba_4.19.7.bb SRC_URI:append:libc-musl = " \ · line 36
Quoted 7 lines
meta-networking/recipes-connectivity/samba/samba_4.19.7.bb renamed from meta-networking/recipes-connectivity/samba/samba_4.19.6.bb +1
-1@@ -31,7 +31,7 @@ SRC_URI:append:libc-musl = " \ file://samba-4.3.9-remove-getpwent_r.patch \ " -SRC_URI[sha256sum] = "653b52095554dbc223c63b96af5cdf9e98c3e048549c5f56143d3b33dce1cef1" +SRC_URI[sha256sum] = "2bbb800af2d6bc7b9c23e708cd58d008da3bfa6ef7e621d9ec8b53387efee445" UPSTREAM_CHECK_REGEX = "samba\-(?P<pver>4\.19(\.\d+)+).tar.gz"
This broke the build for me. Seems it now requires ldb 2.8.1 but the version in 5.0 is 2.8.0 so configure fails.
The update to 4.19.8 has the same complaint.
The commit right before this one builds fine of course so I temporarily jumped to back to that one for now.
Signature · 1 line
Len Sorensen