wolfssl: Add packageconfig for reproducible build
PATCH 1/21 wolfssl: Add packageconfig for reproducible build
From: Khem Raj <[email protected]>
Make this option turned on by default
Fixes
WARNING: wolfssl-5.7.2-r0 do_package_qa: QA Issue: File /usr/lib/libwolfssl.so.42.2.0 in package wolfssl contains reference to TMPDIR [buildpaths]
--- meta-networking/recipes-connectivity/wolfssl/wolfssl_5.7.2.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-networking/recipes-connectivity/wolfssl/wolfssl_5.7.2.bb +3 -0
@@ -22,6 +22,9 @@ S = "${WORKDIR}/git" inherit autotools ptest +PACKAGECONFIG ?= "reproducible-build" + +PACKAGECONFIG[reproducible-build] = "--enable-reproducible-build,--disable-reproducible-build," BBCLASSEXTEND += "native nativesdk" RDEPENDS:${PN}-ptest += " bash"
PATCH 2/21 blueman: Fix buildpathe issue with cython generated code
From: Khem Raj <[email protected]>
--- ...n-DO-not-emit-absolute-path-when-S-B.patch | 38 +++++++++++++++++++ .../blueman/blueman_2.3.5.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 meta-networking/recipes-connectivity/blueman/blueman/0001-meson-DO-not-emit-absolute-path-when-S-B.patch
meta-networking/recipes-connectivity/blueman/blueman/0001-meson-DO-not-emit-absolute-path-when-S-B.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 18af739fd96960bbc8c5db5dd290d2f9134cd347 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 14 Aug 2024 21:26:24 -0700 +Subject: [PATCH] meson: DO not emit absolute path when S != B + +build systems like OE build outside sourcetree in such cases it works +ok but cython resolves the input file to absolute path and that gets +emitted into genetate _blueman.c as module name, renders the build +non-reproducible, wish cython had a better way to handle this but there +is not, therefore tweak the meson build rule to account for specifying +workdir to cython which will search the inputs correctly, and use +meson's build_root to emit the output into build dir. This ensures that +it becomes independent of source or build directories and cython does +not generate the absolute paths into generate C code. + +See cython discussion on [1] + +[1] https://github.com/cython/cython/issues/5949 + +Upstream-Status: Submitted [https://github.com/blueman-project/blueman/pull/2461] +Signed-off-by: Khem Raj <[email protected]> +--- + module/meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/module/meson.build b/module/meson.build +index 096ad7c8..e3d96f17 100644 +--- a/module/meson.build ++++ b/module/meson.build +@@ -4,7 +4,7 @@ blueman_c = custom_target( + 'blueman_c', + output: '_blueman.c', + input: '_blueman.pyx', +- command: [cython, '--output-file', '@OUTPUT@', '@INPUT@']) ++ command: [cython, '-w', meson.source_root(), '--output-file', meson.build_root() + '/' + '@OUTPUT@', '@INPUT@']) + + sources = [ + blueman_c,
meta-networking/recipes-connectivity/blueman/blueman_2.3.5.bb +1 -0
@@ -13,6 +13,7 @@ SRC_URI = " \ file://0001-Search-for-cython3.patch \ file://0002-fix-fail-to-enable-bluetooth.patch \ file://0001-meson-add-pythoninstalldir-option.patch \ + file://0001-meson-DO-not-emit-absolute-path-when-S-B.patch \ " S = "${WORKDIR}/git" SRCREV = "c85e7afb8d6547d4c35b7b639124de8e999c3650"
PATCH 3/21 rdist: Fix contains reference to TMPDIR [buildpaths] warning
In reply to [email protected]From: alperak <[email protected]>
Pass OE cflags to makefile
WARNING: rdist-6.1.5-r0 do_package_qa: QA Issue: File /usr/bin/.debug/rdistd in package rdist-dbg contains reference to TMPDIR File /usr/bin/.debug/rdist in package rdist-dbg contains reference to TMPDIR [buildpaths]
--- meta-networking/recipes-connectivity/rdist/rdist_6.1.5.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/rdist/rdist_6.1.5.bb +1 -1
@@ -38,7 +38,7 @@ DEPENDS = "bison-native" inherit autotools-brokensep -EXTRA_OEMAKE = "BIN_GROUP=root MAN_GROUP=root RDIST_MODE=755 RDISTD_MODE=755 MAN_MODE=644" +EXTRA_OEMAKE = "CPPFLAGS='${CFLAGS}' BIN_GROUP=root MAN_GROUP=root RDIST_MODE=755 RDISTD_MODE=755 MAN_MODE=644" # http://errors.yoctoproject.org/Errors/Details/186972/ COMPATIBLE_HOST:libc-musl = 'null'
PATCH 4/21 botan: Make it reproducible
In reply to [email protected]From: Khem Raj <[email protected]>
--- meta-oe/recipes-crypto/botan/botan_3.2.0.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
meta-oe/recipes-crypto/botan/botan_3.2.0.bb +4 -4
@@ -18,8 +18,8 @@ CPU:armv7ve = "armv7" do_configure() { python3 ${S}/configure.py \ - --prefix="${D}${exec_prefix}" \ - --libdir="${D}${libdir}" \ + --prefix="${exec_prefix}" \ + --libdir="${libdir}" \ --cpu="${CPU}" \ --cc-bin="${CXX}" \ --cxxflags="${CXXFLAGS}" \
@@ -39,8 +39,8 @@ do_compile() { oe_runmake } do_install() { - oe_runmake install - sed -i -e "s|${D}||g" ${D}${libdir}/pkgconfig/botan-3.pc + oe_runmake DESTDIR=${D} install + sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${D}${includedir}/botan-3/botan/build.h } PACKAGES += "${PN}-python3"
PATCH 5/21 keepalived: Make build reproducible
In reply to [email protected]From: Khem Raj <[email protected]>
--- ...not-emit-compiler-flags-into-object-.patch | 29 +++++++++++++++++++ .../keepalived/keepalived_2.2.8.bb | 5 ++++ 2 files changed, 34 insertions(+) create mode 100644 meta-networking/recipes-daemons/keepalived/keepalived/0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch
meta-networking/recipes-daemons/keepalived/keepalived/0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch new file +29 -0
@@ -0,0 +1,29 @@ +From 5b1b04356f3efc08ae279cafc6ee86df11f10c9a Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Thu, 15 Aug 2024 23:13:02 -0700 +Subject: [PATCH] configure.ac: Do not emit compiler flags into object files + +They contain options which have absolute paths in them e.g. --sysroot +therefore do not record them and make build reproducible + +Upstream-Status: Inappropriate [OE-Specific] + +Signed-off-by: Khem Raj <[email protected]> +--- + configure.ac | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index fae16f1..677b94a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -904,8 +904,7 @@ if test "$enable_hardening" != no; then + "-Wp,-D_FORTIFY_SOURCE=2" \ + "-fexceptions" \ + "-fstack-protector-strong" \ +- "--param=ssp-buffer-size=4" \ +- "-grecord-gcc-switches" ++ "--param=ssp-buffer-size=4" + do + AC_MSG_CHECKING([for $FLAG support]) + CFLAGS="$CFLAGS $FLAG"
meta-networking/recipes-daemons/keepalived/keepalived_2.2.8.bb +5 -0
@@ -11,6 +11,7 @@ LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" SRC_URI = "http://www.keepalived.org/software/${BP}.tar.gz \ + file://0001-configure.ac-Do-not-emit-compiler-flags-into-object-.patch \ " SRC_URI[sha256sum] = "85882eb62974f395d4c631be990a41a839594a7e62fbfebcb5649a937a7a1bb6" UPSTREAM_CHECK_URI = "https://github.com/acassen/keepalived/releases"
@@ -30,6 +31,10 @@ EXTRA_OEMAKE = "initdir=${sysconfdir}/init.d" export EXTRA_CFLAGS = "${CFLAGS}" +do_configure:append() { + sed -i -e 's|${WORKDIR}|<scrubbed>|g' ${B}/lib/config.h +} + do_install:append() { if [ -f ${D}${sysconfdir}/init.d/${BPN} ]; then chmod 0755 ${D}${sysconfdir}/init.d/${BPN}
PATCH 6/21 ldns: Fix buildpaths QA issues
In reply to [email protected]From: Khem Raj <[email protected]>
MJ: Backported from 'ldns: Upgrade to 1.8.4' commit without the upgrade.
Fix buildpaths QA errors while here
--- meta-oe/recipes-devtools/ldns/ldns_1.8.3.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
meta-oe/recipes-devtools/ldns/ldns_1.8.3.bb +2 -1
@@ -19,5 +19,6 @@ do_install:append() { sed -e 's@[^ ]*-ffile-prefix-map=[^ "]*@@g' \ -e 's@[^ ]*-fdebug-prefix-map=[^ "]*@@g' \ -e 's@[^ ]*-fmacro-prefix-map=[^ "]*@@g' \ - -i ${D}${libdir}/pkgconfig/*.pc + -e 's@${RECIPE_SYSROOT}@@g' \ + -i ${D}${libdir}/pkgconfig/*.pc ${D}${bindir}/ldns-config }
PATCH 7/21 perfetto: Fix contains reference to TMPDIR [buildpaths] warning
In reply to [email protected]From: alperak <[email protected]>
WARNING:perfetto-31.0-r0 do_package_qa: QA Issue: File /usr/bin/.debug/tracebox in package perfetto-dbg contains reference to TMPDIR [buildpaths]
--- meta-oe/recipes-devtools/perfetto/perfetto.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-devtools/perfetto/perfetto.bb +2 -2
@@ -96,8 +96,8 @@ do_configure () { ARGS=$ARGS" target_os=\"linux\"" ARGS=$ARGS" target_cpu=\"$arch\"" - ARGS=$ARGS" target_cc=\"$CC_BIN ${TUNE_CCARGS}\"" - ARGS=$ARGS" target_cxx=\"$CXX_BIN -std=c++11 ${TUNE_CCARGS}\"" + ARGS=$ARGS" target_cc=\"$CC_BIN ${TUNE_CCARGS} ${DEBUG_PREFIX_MAP}\"" + ARGS=$ARGS" target_cxx=\"$CXX_BIN -std=c++11 ${TUNE_CCARGS} ${DEBUG_PREFIX_MAP}\"" ARGS=$ARGS" target_strip=\"$STRIP_BIN\"" # ARGS=$ARGS" target_sysroot=\"${RECIPE_SYSROOT}\"" ARGS=$ARGS" target_linker=\"$CC_BIN ${TUNE_CCARGS} ${LDFLAGS}\""
PATCH 8/21 python3-kivy: Remove buildpaths from comments in generated C sources
In reply to [email protected]From: Khem Raj <[email protected]>
Cython does not provide a direct option to disable or customize the metadata written in the generated C files. The metadata includes information like the Cython version and absolute paths to the original Cython files, which can be problematic for doing reproducible builds
Therefore edit out these comments from the cython generated C files they are nicely tucked between two known tags at the top of file.
--- meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb | 7 +++++++ 1 file changed, 7 insertions(+)
meta-python/recipes-devtools/python/python3-kivy_2.3.0.bb +7 -0
@@ -70,3 +70,10 @@ RDEPENDS:${PN} = " \ python3-pillow \ python3-pygments \ " + +do_compile:append() { + for f in `find ${B} -name *.c` + do + sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" $f + done +}
PATCH 9/21 python3-pyproj: Fix buildpaths QA Error
In reply to [email protected]From: Khem Raj <[email protected]>
This error is due to absolute paths leaking into ELF files due to -rpath option in compiler cmdline, therefore patch them out.
Apply patch [1] from Debian
[1] https://sources.debian.org/data/main/p/python-pyproj/3.6.1-4/debian/patches/rpath.patch
--- .../python/python3-pyproj/rpath.patch | 18 ++++++++++++++++++ .../python/python3-pyproj_3.6.1.bb | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-pyproj/rpath.patch
meta-python/recipes-devtools/python/python3-pyproj/rpath.patch new file +18 -0
@@ -0,0 +1,18 @@ +Description: Don't set RPATH in libraries. +Author: Bas Couwenberg <[email protected]> +Forwarded: not-needed + +Upstream-Status: Inappropriate [OE-Specific] +Signed-off-by: Khem Raj <[email protected]> +--- a/setup.py ++++ b/setup.py +@@ -194,9 +194,6 @@ def get_extension_modules(): + ext_options = { + "include_dirs": include_dirs, + "library_dirs": library_dirs, +- "runtime_library_dirs": ( +- library_dirs if os.name != "nt" and sys.platform != "cygwin" else None +- ), + "libraries": get_libraries(library_dirs), + } + # setup cythonized modules
meta-python/recipes-devtools/python/python3-pyproj_3.6.1.bb +2 -0
@@ -8,6 +8,8 @@ PYPI_PACKAGE = "pyproj" inherit pypi setuptools3 +SRC_URI += "file://rpath.patch" + SRC_URI[sha256sum] = "44aa7c704c2b7d8fb3d483bbf75af6cb2350d30a63b144279a09b75fead501bf" RDEPENDS:${PN} = " \
PATCH 10/21 python3-pyproj: Remove absolute paths from cython generated .c files
In reply to [email protected]From: Khem Raj <[email protected]>
--- .../recipes-devtools/python/python3-pyproj_3.6.1.bb | 8 ++++++++ 1 file changed, 8 insertions(+)
meta-python/recipes-devtools/python/python3-pyproj_3.6.1.bb +8 -0
@@ -23,3 +23,11 @@ RDEPENDS:${PN} = " \ export PROJ_INCDIR = "${STAGING_INCDIR}" export PROJ_LIBDIR = "${STAGING_LIBDIR}" export PROJ_DIR = "${STAGING_BINDIR_NATIVE}/.." + +do_compile:append() { + for f in `find ${B} -name *.c` + do + sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" $f + done + python_pep517_do_compile +}
PATCH 11/21 python3-pycocotools: Remove absolute paths from comments
In reply to [email protected]From: Khem Raj <[email protected]>
_mask.c is generated by cython and encodes sourcepaths into comments which are absolute. Edit them out.
Fixes buildpaths QA errors
--- .../recipes-devtools/python/python3-pycocotools_2.0.7.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-python/recipes-devtools/python/python3-pycocotools_2.0.7.bb +4 -0
@@ -9,3 +9,7 @@ SRC_URI[sha256sum] = "da8b7815196eebf0adabf67fcc459126cbc6498bbc6ab1fd144c371465 DEPENDS = "python3-cython-native python3-numpy-native virtual/crypt" RDEPENDS:${PN} = "python3-matplotlib python3-pillow python3-profile" + +do_compile:append() { + sed -i -e "/BEGIN: Cython Metadata/,/END: Cython Metadata/d" ${B}/pycocotools/_mask.c +}
PATCH 12/21 hplip: Fix contains reference to TMPDIR [buildpaths] warning
In reply to [email protected]From: alperak <[email protected]>
Make sure that the OE provided CFLAGS are passed to the compiler.
WARNING: hplip-3.22.10-r0 do_package_qa: QA Issue: File /usr/lib/python3.12/site-packages/cupsext.so in package hplip contains reference to TMPDIR [buildpaths]
--- meta-oe/recipes-extended/hplip/hplip_3.22.10.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-extended/hplip/hplip_3.22.10.bb +1 -1
@@ -49,7 +49,7 @@ EXTRA_OECONF += "\ --with-cupsfilterdir=${libexecdir}/cups/filter \ " -EXTRA_OEMAKE = "rulessystemdir=${systemd_unitdir}/system/" +EXTRA_OEMAKE = "CPPFLAGS='${CFLAGS}' rulessystemdir=${systemd_unitdir}/system/" do_install:append() { rm -rf ${D}${datadir}/hplip/upgrade.py
PATCH 13/21 boinc-client: Fix contains reference to TMPDIR [buildpaths] warning
In reply to [email protected]From: alperak <[email protected]>
WARNING: boinc-client-7.20.5-r0 do_package_qa: QA Issue: File /usr/include/boinc/svn_version.h in package boinc-client-dev contains reference to TMPDIR [buildpaths]
--- meta-oe/recipes-extended/boinc/boinc-client_7.20.5.bb | 4 ++++ 1 file changed, 4 insertions(+)
meta-oe/recipes-extended/boinc/boinc-client_7.20.5.bb +4 -0
@@ -77,6 +77,10 @@ do_install:prepend() { mkdir -p ${D}${sysconfdir}/default } +do_install:append() { + sed -i -e 's#${S}##g' ${D}${includedir}/boinc/svn_version.h +} + SYSTEMD_SERVICE:${PN} = "boinc-client.service" FILES:${PN} += "${libdir}/systemd"
PATCH 14/21 lprng: Specify target paths for needed utilities
In reply to [email protected]From: Khem Raj <[email protected]>
pr,openssl,chown,chgrp are guessed during configure and they are found on host, sometimes under native sysroot and some under HOSTTOOLS which is not right, therefore point to target locations of these tools
Fixes all errors like below
File /usr/sbin/lprng_certs in package lprng contains reference to TMPDIR
--- meta-oe/recipes-extended/lprng/lprng_3.8.C.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta-oe/recipes-extended/lprng/lprng_3.8.C.bb +3 -1
@@ -11,7 +11,9 @@ SRC_URI[sha256sum] = "694a1747a96385b89e93f43343bf35cee5c8c73353a83814106911c99f inherit autotools gettext -EXTRA_OECONF = "--disable-ssl --disable-kerberos --enable-force_localhost" +EXTRA_OECONF = "--disable-ssl --disable-kerberos --enable-force_localhost \ + CHOWN=${base_bindir}/chown CHGRP=${base_bindir}/chgrp \ + OPENSSL=${bindir}/openssl PRUTIL=${bindir}/pr" FILES:${PN}-dbg += "${libdir}/lprng/filters/.debug" # configure: WARNING: Program 'clear' is not found. Set environment CLEAR=no if you do not want to use it
PATCH 15/21 nana: Fix buildpaths warning.
In reply to [email protected]From: Wang Mingyu <[email protected]>
WARNING: nana-2.5+git-r0 do_package_qa: QA Issue: File /usr/bin/nana-c++lg in package nana contains reference to TMPDIR File /usr/bin/nana-clg in package nana contains reference to TMPDIR
File /usr/bin/nana in package nana contains reference to TMPDIR [buildpaths]
--- meta-oe/recipes-extended/nana/nana_git.bb | 6 ++++++ 1 file changed, 6 insertions(+)
meta-oe/recipes-extended/nana/nana_git.bb +6 -0
@@ -42,3 +42,9 @@ do_configure:prepend:class-nativesdk() { } BBCLASSEXTEND = "native nativesdk" + +do_install:append() { + sed -i -e 's,--sysroot=${STAGING_DIR_TARGET},,g' ${D}${bindir}/nana-c++lg + sed -i -e 's,--sysroot=${STAGING_DIR_TARGET},,g' ${D}${bindir}/nana-clg + sed -i -e 's,--sysroot=${STAGING_DIR_TARGET},,g' ${D}${bindir}/nana +}
PATCH 16/21 gcab: fix buildpaths QA issue
In reply to [email protected]From: Martin Jansa <[email protected]>
--- ...mplate-include-basename-instead-of-f.patch | 37 +++++++++++++++++++ meta-oe/recipes-gnome/gcab/gcab_1.6.bb | 1 + 2 files changed, 38 insertions(+) create mode 100644 meta-oe/recipes-gnome/gcab/gcab/0001-gcab-enums.c.etemplate-include-basename-instead-of-f.patch
meta-oe/recipes-gnome/gcab/gcab/0001-gcab-enums.c.etemplate-include-basename-instead-of-f.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 6fa1b6d3f72caf6d0cf61752b522dc19fb9933b7 Mon Sep 17 00:00:00 2001 +From: Martin Jansa <[email protected]> +Date: Fri, 30 Aug 2024 10:44:17 +0200 +Subject: [PATCH] gcab-enums.c.etemplate: include @basename@ instead of full + path from @filename@ + +* fixes: + ERROR: QA Issue: File /usr/src/debug/gcab/1.6/libgcab/gcab-enums.c in package gcab-src contains reference to TMPDIR [buildpaths] + +lib32-gcab/1.6/package $ grep -R styhead . +./usr/src/debug/lib32-gcab/1.6/libgcab/gcab-enums.c:#include "WORKDIR/build/../gcab-1.6/libgcab/gcab-file.h" +./usr/src/debug/lib32-gcab/1.6/libgcab/gcab-enums.c:#include "WORKDIR/build/../gcab-1.6/libgcab/gcab-folder.h" + +glib-mkenum supports also @basename@ since 2.22 which would avoid this QA issue + @filename@ name of current input file + @basename@ base name of the current input file (Since: 2.22) + +Signed-off-by: Martin Jansa <[email protected]> +--- +Upstream-Status: Pending + + libgcab/gcab-enums.c.etemplate | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libgcab/gcab-enums.c.etemplate b/libgcab/gcab-enums.c.etemplate +index 194b1e0..2e85824 100644 +--- a/libgcab/gcab-enums.c.etemplate ++++ b/libgcab/gcab-enums.c.etemplate +@@ -21,7 +21,7 @@ + /*** END file-header ***/ + + /*** BEGIN file-production ***/ +-#include "@filename@" ++#include "@basename@" + /*** END file-production ***/ + +
meta-oe/recipes-gnome/gcab/gcab_1.6.bb +1 -0
@@ -7,6 +7,7 @@ DEPENDS = "glib-2.0" SRC_URI = "\ ${GNOME_MIRROR}/gcab/${PV}/gcab-${PV}.tar.xz \ + file://0001-gcab-enums.c.etemplate-include-basename-instead-of-f.patch \ file://run-ptest \ " SRC_URI[sha256sum] = "2f0c9615577c4126909e251f9de0626c3ee7a152376c15b5544df10fc87e560b"
PATCH 17/21 fetchmail: Fix buildpaths warning.
In reply to [email protected]From: Wang Mingyu <[email protected]>
WARNING: fetchmail-6.4.38-r0 do_package_qa: QA Issue: File /usr/bin/fetchmail in package fetchmail contains reference to TMPDIR [buildpaths]
--- meta-networking/recipes-support/fetchmail/fetchmail_6.4.38.bb | 3 +++ 1 file changed, 3 insertions(+)
meta-networking/recipes-support/fetchmail/fetchmail_6.4.38.bb +3 -0
@@ -18,8 +18,11 @@ inherit autotools gettext pkgconfig python3-dir python3native EXTRA_OECONF = "--with-ssl=${STAGING_DIR_HOST}${prefix}" +INSANE_SKIP:${PN} = "already-stripped" + do_install:append() { sed -i 's,${RECIPE_SYSROOT_NATIVE},,g' ${D}${bindir}/fetchmailconf + sed -i 's,${RECIPE_SYSROOT},,g' ${D}${bindir}/fetchmail } PACKAGES =+ "fetchmail-python"
PATCH 18/21 fetchmail: disable rpath to fix buildpaths warning.
In reply to [email protected]From: Wang Mingyu <[email protected]>
There was an error with the last modification to the buildpaths warning, which could cause segment error.
fix the following warning about buildpath:
WARNING: fetchmail-6.4.38-r0 do_package_qa: QA Issue: File /usr/bin/fetchmail in package fetchmail contains reference to TMPDIR [buildpaths]
--- .../recipes-support/fetchmail/fetchmail_6.4.38.bb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
meta-networking/recipes-support/fetchmail/fetchmail_6.4.38.bb +1 -4
@@ -16,13 +16,10 @@ SRC_URI[sha256sum] = "a6cb4ea863ac61d242ffb2db564a39123761578d3e40d71ce7b6f2905b inherit autotools gettext pkgconfig python3-dir python3native -EXTRA_OECONF = "--with-ssl=${STAGING_DIR_HOST}${prefix}" - -INSANE_SKIP:${PN} = "already-stripped" +EXTRA_OECONF = "--with-ssl=${STAGING_DIR_HOST}${prefix} --disable-rpath " do_install:append() { sed -i 's,${RECIPE_SYSROOT_NATIVE},,g' ${D}${bindir}/fetchmailconf - sed -i 's,${RECIPE_SYSROOT},,g' ${D}${bindir}/fetchmail } PACKAGES =+ "fetchmail-python"
PATCH 19/21 fwknop: Specify target locations of gpg and wget
In reply to [email protected]From: Khem Raj <[email protected]>
This fixes emitting buildpaths into binary and also fixes the issue where these tools wont exist on the paths they were found on build machine
--- meta-networking/recipes-support/fwknop/fwknop_2.6.10.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta-networking/recipes-support/fwknop/fwknop_2.6.10.bb +3 -1
@@ -14,7 +14,9 @@ SRC_URI[sha256sum] = "f6c09bec97ed8e474a98ae14f9f53e1bcdda33393f20667b6af3fb6bb8 DEPENDS = "libpcap gpgme" -EXTRA_OECONF = " --with-iptables=${sbindir}/iptables" +EXTRA_OECONF = "--with-iptables=${sbindir}/iptables \ + --with-gpg=${bindir}/gpg \ + --with-wget=${base_bindir}/wget" do_configure:prepend () { install -m 0755 ${STAGING_DATADIR_NATIVE}/gnu-config/config.guess ${S}/config
PATCH 20/21 e2tools: Fix buildpaths QA warning in config.status in ptest
In reply to [email protected]From: Khem Raj <[email protected]>
--- meta-filesystems/recipes-utils/e2tools/e2tools_git.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-filesystems/recipes-utils/e2tools/e2tools_git.bb +1 -1
@@ -67,7 +67,7 @@ do_install_ptest() { cp -r "${S}" "${D}${PTEST_PATH}" rm -rf ${D}${PTEST_PATH}/build/config.log ${D}${PTEST_PATH}/build/autom4te.cache \ ${D}${PTEST_PATH}/git/.git ${D}${PTEST_PATH}/git/autom4te.cache - sed -i -e 's;${RECIPE_SYSROOT};;g' ${D}${PTEST_PATH}/build/config.status + sed -i -e 's;${TMPDIR};;g' ${D}${PTEST_PATH}/build/config.status } RDEPENDS:${PN}-ptest += "bash coreutils e2fsprogs e2tools gawk make perl"
PATCH 21/21 sharutils: Let POSIX_SHELL be overridable from environment
In reply to [email protected]From: Khem Raj <[email protected]>
This helps fix
WARNING: sharutils-4.15.2-r0 do_package_qa: QA Issue: File /usr/bin/shar in package sharutils contains reference to TMPDIR
--- ...t-POSIX_SHELL-from-the-environment-d.patch | 47 +++++++++++++++++++ .../sharutils/sharutils_4.15.2.bb | 3 ++ 2 files changed, 50 insertions(+) create mode 100644 meta-oe/recipes-support/sharutils/sharutils/0001-libopts.m4-accept-POSIX_SHELL-from-the-environment-d.patch
meta-oe/recipes-support/sharutils/sharutils/0001-libopts.m4-accept-POSIX_SHELL-from-the-environment-d.patch new file +47 -0
@@ -0,0 +1,47 @@ +From fb8bf1c1b1d0bf8e9bc637c0e67219fab1a9eb03 Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Wed, 14 Aug 2024 15:24:57 -0700 +Subject: [PATCH] libopts.m4: accept POSIX_SHELL from the environment during + the configure step + +This lets us set it to the canonical path /bin/bash, even on systems +where both /bin/bash and /usr/bin/bash are available, and therefore +which(1) might return /usr/bin/bash (depending on PATH order). + +Both copies of libopts.m4 are marked as generated files, but the files +from which they were generated do not seem to be present in the sharutils +package. This change is equivalent to part of a 2016 autogen commit +<https://git.savannah.gnu.org/cgit/autogen.git/commit/?id=db064b9a>. + +Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/autogen.git/commit/?id=db064b9a] + +Signed-off-by: Khem Raj <[email protected]> +--- + libopts/m4/libopts.m4 | 1 + + m4/libopts.m4 | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/libopts/m4/libopts.m4 b/libopts/m4/libopts.m4 +index 1a896d9..3b88426 100644 +--- a/libopts/m4/libopts.m4 ++++ b/libopts/m4/libopts.m4 +@@ -114,6 +114,7 @@ AC_DEFUN([INVOKE_LIBOPTS_MACROS_FIRST],[ + AC_PROG_SED + [while : + do ++ test -x "$POSIX_SHELL" && break + POSIX_SHELL=`which bash` + test -x "$POSIX_SHELL" && break + POSIX_SHELL=`which dash` +diff --git a/m4/libopts.m4 b/m4/libopts.m4 +index c7ba4f3..a1127e1 100644 +--- a/m4/libopts.m4 ++++ b/m4/libopts.m4 +@@ -114,6 +114,7 @@ AC_DEFUN([INVOKE_LIBOPTS_MACROS_FIRST],[ + AC_PROG_SED + [while : + do ++ test -x "$POSIX_SHELL" && break + POSIX_SHELL=`which bash` + test -x "$POSIX_SHELL" && break + POSIX_SHELL=`which dash`
meta-oe/recipes-support/sharutils/sharutils_4.15.2.bb +3 -0
@@ -13,10 +13,13 @@ SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.gz \ file://0001-Fix-building-with-GCC-10.patch \ file://0002-Do-not-include-lib-md5.c-into-src-shar.c.patch \ file://0001-configure.ac-Check-and-define-intmax_t-type.patch \ + file://0001-libopts.m4-accept-POSIX_SHELL-from-the-environment-d.patch \ " SRC_URI[md5sum] = "32a51b23e25ad5e6af4b89f228be1800" SRC_URI[sha256sum] = "ee336e68549664e7a19b117adf02edfdeac6307f22e5ba78baca457116914637" +EXTRA_OECONF = "POSIX_SHELL=${base_bindir}/sh" + do_install:append() { if [ -e ${D}${libdir}/charset.alias ] then