openssl: build and install manpages only if they are enabled
PATCH 1/17 openssl: build and install manpages only if they are enabled
This significantly speeds up the build by default.
--- meta/recipes-connectivity/openssl/openssl_3.1.2.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-connectivity/openssl/openssl_3.1.2.bb +3 -2
@@ -20,7 +20,7 @@ SRC_URI:append:class-nativesdk = " \ SRC_URI[sha256sum] = "a0ce69b8b97ea6a35b96875235aa453b966ba3cba8af2de23657d8b6767d6539" -inherit lib_package multilib_header multilib_script ptest perlnative +inherit lib_package multilib_header multilib_script ptest perlnative manpages MULTILIB_SCRIPTS = "${PN}-bin:${bindir}/c_rehash" PACKAGECONFIG ?= ""
@@ -30,6 +30,7 @@ PACKAGECONFIG:class-nativesdk = "" PACKAGECONFIG[cryptodev-linux] = "enable-devcryptoeng,disable-devcryptoeng,cryptodev-linux,,cryptodev-module" PACKAGECONFIG[no-tls1] = "no-tls1" PACKAGECONFIG[no-tls1_1] = "no-tls1_1" +PACKAGECONFIG[manpages] = "" B = "${WORKDIR}/build" do_configure[cleandirs] = "${B}"
@@ -145,7 +146,7 @@ do_configure () { } do_install () { - oe_runmake DESTDIR="${D}" MANDIR="${mandir}" MANSUFFIX=ssl install + oe_runmake DESTDIR="${D}" MANDIR="${mandir}" MANSUFFIX=ssl install_sw install_ssldirs ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'install_docs', '', d)} oe_multilib_header openssl/opensslconf.h oe_multilib_header openssl/configuration.h
Signature · 1 line
2.30.2
PATCH 2/17 gettext: upgrade 0.21.1 -> 0.22
Drop autoconf-2.73.patch as upstream did update the gnulib.
---
.../gettext-0.21.1/autoconf-2.73.patch | 50 -------------------
...21.1.bb => gettext-minimal-native_0.22.bb} | 0
.../COPYING | 0
meta/recipes-core/gettext/gettext-sources.inc | 2 +-
...t-env.in-do-not-add-C-CXX-parameters.patch | 0
...01-tests-autopoint-3-unset-MAKEFLAGS.patch | 0
.../parallel.patch | 0
.../{gettext-0.21.1 => gettext}/run-ptest | 0
.../serial-tests-config.patch | 0
.../use-pkgconfig.patch | 0
.../{gettext_0.21.1.bb => gettext_0.22.bb} | 3 +-
11 files changed, 3 insertions(+), 52 deletions(-)
delete mode 100644 meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
rename meta/recipes-core/gettext/{gettext-minimal-native_0.21.1.bb => gettext-minimal-native_0.22.bb} (100%)
rename meta/recipes-core/gettext/{gettext-minimal-0.21.1 => gettext-minimal}/COPYING (100%)
rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/0001-init-env.in-do-not-add-C-CXX-parameters.patch (100%)
rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/0001-tests-autopoint-3-unset-MAKEFLAGS.patch (100%)
rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/parallel.patch (100%)
rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/run-ptest (100%)
rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/serial-tests-config.patch (100%)
rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/use-pkgconfig.patch (100%)
rename meta/recipes-core/gettext/{gettext_0.21.1.bb => gettext_0.22.bb} (99%)meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0 -50
@@ -1,50 +0,0 @@ -The gnulib largefile macro needs updating to work with autoconf 2.73. Rather -than the full code: - -https://git.savannah.gnu.org/cgit/gnulib.git/commit/m4/largefile.m4?id=f91f633858cf132e50924224c50d6264a92caabb - -Just tweak the exiting code to work with 2.73. The next gettext upgrade should -update to new gnulib - -Upstream-Status: Inappropriate -Signed-off-by: Richard Purdie <[email protected]> - -Index: gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/gettext-runtime/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, - # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDES - # ------------------------------- -Index: gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/gettext-tools/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, - # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDES - # ------------------------------- -Index: gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/libtextstyle/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, - # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDES - # -------------------------------
meta/recipes-core/gettext/gettext-minimal-native_0.22.bb renamed from meta/recipes-core/gettext/gettext-minimal-native_0.21.1.bb +0 -0
meta/recipes-core/gettext/gettext-minimal/COPYING renamed from meta/recipes-core/gettext/gettext-minimal-0.21.1/COPYING +0 -0
meta/recipes-core/gettext/gettext-sources.inc +1 -1
@@ -1,4 +1,4 @@ HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html" SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ " -SRC_URI[sha256sum] = "e8c3650e1d8cee875c4f355642382c1df83058bd5a11ee8555c0cf276d646d45" +SRC_URI[sha256sum] = "49f089be11b490170bbf09ed2f51e5f5177f55be4cc66504a5861820e0fb06ab"
meta/recipes-core/gettext/gettext/0001-init-env.in-do-not-add-C-CXX-parameters.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/0001-init-env.in-do-not-add-C-CXX-parameters.patch +0 -0
meta/recipes-core/gettext/gettext/0001-tests-autopoint-3-unset-MAKEFLAGS.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/0001-tests-autopoint-3-unset-MAKEFLAGS.patch +0 -0
meta/recipes-core/gettext/gettext/parallel.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/parallel.patch +0 -0
meta/recipes-core/gettext/gettext/run-ptest renamed from meta/recipes-core/gettext/gettext-0.21.1/run-ptest +0 -0
meta/recipes-core/gettext/gettext/serial-tests-config.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/serial-tests-config.patch +0 -0
meta/recipes-core/gettext/gettext/use-pkgconfig.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/use-pkgconfig.patch +0 -0
meta/recipes-core/gettext/gettext_0.22.bb renamed from meta/recipes-core/gettext/gettext_0.21.1.bb +2 -1
@@ -30,7 +30,6 @@ SRC_URI += " \ file://serial-tests-config.patch \ file://0001-tests-autopoint-3-unset-MAKEFLAGS.patch \ file://0001-init-env.in-do-not-add-C-CXX-parameters.patch \ - file://autoconf-2.73.patch \ " inherit autotools texinfo pkgconfig ptest
@@ -201,6 +200,8 @@ RDEPENDS:${PN}-ptest:append:libc-glibc = "\ glibc-charmap-euc-kr \ glibc-gconv-euc-jp \ glibc-charmap-euc-jp \ + glibc-gconv-gb18030 \ + glibc-charmap-gb18030 \ locale-base-de-de \ locale-base-fr-fr \ "
Signature · 1 line
2.30.2
Re: [OE-core] [PATCH 02/17] gettext: upgrade 0.21.1 -> 0.22
fontforge fails due to this see -
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3095/steps/15/logs/stdio
cd /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/build/po
&& /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/recipe-sysroot-native/usr/bin/msgfmt --check -o /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/build/po/fr.mo /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:294:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 3, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:305:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 4, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:7435:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19927:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19935:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19970:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19986:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:20459:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:21045:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:21443:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:21772:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:24553:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:24564:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid. /mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/recipe-sysroot-native/usr/bin/msgfmt:
found 13 fatal errors
Quoted 162 lines · Alexander Kanavin
Drop autoconf-2.73.patch as upstream did update the gnulib.
Signed-off-by Alexander Kanavin <[email protected]>--- .../gettext-0.21.1/autoconf-2.73.patch | 50 ------------------- ...21.1.bb => gettext-minimal-native_0.22.bb} | 0 .../COPYING | 0 meta/recipes-core/gettext/gettext-sources.inc | 2 +- ...t-env.in-do-not-add-C-CXX-parameters.patch | 0 ...01-tests-autopoint-3-unset-MAKEFLAGS.patch | 0 .../parallel.patch | 0 .../{gettext-0.21.1 => gettext}/run-ptest | 0 .../serial-tests-config.patch | 0 .../use-pkgconfig.patch | 0 .../{gettext_0.21.1.bb => gettext_0.22.bb} | 3 +- 11 files changed, 3 insertions(+), 52 deletions(-) delete mode 100644 meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch rename meta/recipes-core/gettext/{gettext-minimal-native_0.21.1.bb => gettext-minimal-native_0.22.bb} (100%) rename meta/recipes-core/gettext/{gettext-minimal-0.21.1 => gettext-minimal}/COPYING (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/0001-init-env.in-do-not-add-C-CXX-parameters.patch (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/0001-tests-autopoint-3-unset-MAKEFLAGS.patch (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/parallel.patch (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/run-ptest (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/serial-tests-config.patch (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/use-pkgconfig.patch (100%) rename meta/recipes-core/gettext/{gettext_0.21.1.bb => gettext_0.22.bb} (99%)meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-50@@ -1,50 +0,0 @@ -The gnulib largefile macro needs updating to work with autoconf 2.73. Rather -than the full code: - -https://git.savannah.gnu.org/cgit/gnulib.git/commit/m4/largefile.m4?id=f91f633858cf132e50924224c50d6264a92caabb - -Just tweak the exiting code to work with 2.73. The next gettext upgrade should -update to new gnulib - -Upstream-Status: Inappropriate -Signed-off-by: Richard Purdie <[email protected]> - -Index: gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/gettext-runtime/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, - # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDES - # ------------------------------- -Index: gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/gettext-tools/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, - # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDES - # ------------------------------- -Index: gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/libtextstyle/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, - # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDES - # -------------------------------meta/recipes-core/gettext/gettext-minimal-native_0.22.bb renamed from meta/recipes-core/gettext/gettext-minimal-native_0.21.1.bb +0
-0meta/recipes-core/gettext/gettext-minimal/COPYING renamed from meta/recipes-core/gettext/gettext-minimal-0.21.1/COPYING +0
-0meta/recipes-core/gettext/gettext-sources.inc +1
-1@@ -1,4 +1,4 @@ HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html" SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ " -SRC_URI[sha256sum] = "e8c3650e1d8cee875c4f355642382c1df83058bd5a11ee8555c0cf276d646d45" +SRC_URI[sha256sum] = "49f089be11b490170bbf09ed2f51e5f5177f55be4cc66504a5861820e0fb06ab"meta/recipes-core/gettext/gettext/0001-init-env.in-do-not-add-C-CXX-parameters.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/0001-init-env.in-do-not-add-C-CXX-parameters.patch +0
-0meta/recipes-core/gettext/gettext/0001-tests-autopoint-3-unset-MAKEFLAGS.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/0001-tests-autopoint-3-unset-MAKEFLAGS.patch +0
-0meta/recipes-core/gettext/gettext/parallel.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/parallel.patch +0
-0meta/recipes-core/gettext/gettext/run-ptest renamed from meta/recipes-core/gettext/gettext-0.21.1/run-ptest +0
-0meta/recipes-core/gettext/gettext/serial-tests-config.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/serial-tests-config.patch +0
-0meta/recipes-core/gettext/gettext/use-pkgconfig.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/use-pkgconfig.patch +0
-0meta/recipes-core/gettext/gettext_0.22.bb renamed from meta/recipes-core/gettext/gettext_0.21.1.bb +2
-2@@ -30,7 +30,6 @@ SRC_URI += " \ file://serial-tests-config.patch \ file://0001-tests-autopoint-3-unset-MAKEFLAGS.patch \ file://0001-init-env.in-do-not-add-C-CXX-parameters.patch \ - file://autoconf-2.73.patch \ " inherit autotools texinfo pkgconfig ptest@@ -201,6 +200,8 @@ RDEPENDS:${PN}-ptest:append:libc-glibc = "\ glibc-charmap-euc-kr \ glibc-gconv-euc-jp \ glibc-charmap-euc-jp \ + glibc-gconv-gb18030 \ + glibc-charmap-gb18030 \ locale-base-de-de \ locale-base-fr-fr \ " --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#187324): https://lists.openembedded.org/g/openembedded-core/message/187324
Mute This Topic: https://lists.openembedded.org/mt/101197336/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] [PATCH 02/17] gettext: upgrade 0.21.1 -> 0.22
Probably same issue as
https://git.yoctoproject.org/poky/tree/meta/recipes-extended/procps/procps/0001-po-fr.po-address-failures-with-gettext-0.22.patch
?
Alex
Quoted 213 lines · Khem Raj
fontforge fails due to this see -
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3095/steps/15/logs/stdiocd
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/build/po
&&/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/recipe-sysroot-native/usr/bin/msgfmt--check -o/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/build/po/fr.mo/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:294:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 3, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:305:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 4, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:7435:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19927:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19935:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19970:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19986:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:20459:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:21045:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:21443:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:21772:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:24553:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:24564:
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In
the directive number 2, the argument size specifier is invalid./mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/recipe-sysroot-native/usr/bin/msgfmt:
found 13 fatal errorsQuoted 162 lines · Alexander Kanavin
Drop autoconf-2.73.patch as upstream did update the gnulib.
Signed-off-by Alexander Kanavin <[email protected]>--- .../gettext-0.21.1/autoconf-2.73.patch | 50 ------------------- ...21.1.bb => gettext-minimal-native_0.22.bb} | 0 .../COPYING | 0 meta/recipes-core/gettext/gettext-sources.inc | 2 +- ...t-env.in-do-not-add-C-CXX-parameters.patch | 0 ...01-tests-autopoint-3-unset-MAKEFLAGS.patch | 0 .../parallel.patch | 0 .../{gettext-0.21.1 => gettext}/run-ptest | 0 .../serial-tests-config.patch | 0 .../use-pkgconfig.patch | 0 .../{gettext_0.21.1.bb => gettext_0.22.bb} | 3 +- 11 files changed, 3 insertions(+), 52 deletions(-) delete mode 100644 meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch rename meta/recipes-core/gettext/{gettext-minimal-native_0.21.1.bb => gettext-minimal-native_0.22.bb} (100%) rename meta/recipes-core/gettext/{gettext-minimal-0.21.1 => gettext-minimal}/COPYING (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/0001-init-env.in-do-not-add-C-CXX-parameters.patch (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/0001-tests-autopoint-3-unset-MAKEFLAGS.patch (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/parallel.patch (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/run-ptest (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/serial-tests-config.patch (100%) rename meta/recipes-core/gettext/{gettext-0.21.1 => gettext}/use-pkgconfig.patch (100%) rename meta/recipes-core/gettext/{gettext_0.21.1.bb => gettext_0.22.bb} (99%)meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-50@@ -1,50 +0,0 @@ -The gnulib largefile macro needs updating to work with autoconf 2.73. Rather -than the full code: - -https://git.savannah.gnu.org/cgit/gnulib.git/commit/m4/largefile.m4?id=f91f633858cf132e50924224c50d6264a92caabb - -Just tweak the exiting code to work with 2.73. The next gettext upgrade should -update to new gnulib - -Upstream-Status: Inappropriate -Signed-off-by: Richard Purdie <[email protected]> - -Index: gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/gettext-runtime/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, - # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDES - # ------------------------------- -Index: gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/gettext-tools/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, - # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDES - # ------------------------------- -Index: gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/libtextstyle/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X 10.5, - # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDES - # -------------------------------meta/recipes-core/gettext/gettext-minimal-native_0.22.bb renamed from meta/recipes-core/gettext/gettext-minimal-native_0.21.1.bb +0
-0meta/recipes-core/gettext/gettext-minimal/COPYING renamed from meta/recipes-core/gettext/gettext-minimal-0.21.1/COPYING +0
-0meta/recipes-core/gettext/gettext-sources.inc +1
-1@@ -1,4 +1,4 @@ HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html" SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ " -SRC_URI[sha256sum] = "e8c3650e1d8cee875c4f355642382c1df83058bd5a11ee8555c0cf276d646d45" +SRC_URI[sha256sum] = "49f089be11b490170bbf09ed2f51e5f5177f55be4cc66504a5861820e0fb06ab"meta/recipes-core/gettext/gettext/0001-init-env.in-do-not-add-C-CXX-parameters.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/0001-init-env.in-do-not-add-C-CXX-parameters.patch +0
-0meta/recipes-core/gettext/gettext/0001-tests-autopoint-3-unset-MAKEFLAGS.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/0001-tests-autopoint-3-unset-MAKEFLAGS.patch +0
-0meta/recipes-core/gettext/gettext/parallel.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/parallel.patch +0
-0meta/recipes-core/gettext/gettext/run-ptest renamed from meta/recipes-core/gettext/gettext-0.21.1/run-ptest +0
-0meta/recipes-core/gettext/gettext/serial-tests-config.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/serial-tests-config.patch +0
-0meta/recipes-core/gettext/gettext/use-pkgconfig.patch renamed from meta/recipes-core/gettext/gettext-0.21.1/use-pkgconfig.patch +0
-0meta/recipes-core/gettext/gettext_0.22.bb renamed from meta/recipes-core/gettext/gettext_0.21.1.bb +2
-2@@ -30,7 +30,6 @@ SRC_URI += " \ file://serial-tests-config.patch \ file://0001-tests-autopoint-3-unset-MAKEFLAGS.patch \ file://0001-init-env.in-do-not-add-C-CXX-parameters.patch \ - file://autoconf-2.73.patch \ " inherit autotools texinfo pkgconfig ptest@@ -201,6 +200,8 @@ RDEPENDS:${PN}-ptest:append:libc-glibc = "\ glibc-charmap-euc-kr \ glibc-gconv-euc-jp \ glibc-charmap-euc-jp \ + glibc-gconv-gb18030 \ + glibc-charmap-gb18030 \ locale-base-de-de \ locale-base-fr-fr \ " --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#187324): https://lists.openembedded.org/g/openembedded-core/message/187324
Mute This Topic: https://lists.openembedded.org/mt/101197336/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [OE-core] [PATCH 02/17] gettext: upgrade 0.21.1 -> 0.22
Quoted 5 lines · Alexander Kanavin
Probably same issue as
Yeah I have sent a patch to fix this. IMO it would be good to excercise mera-oe AB job to catch such issues with version upgrade series so we know what needs work on other layers
Quoted 281 lines
Alex
Quoted 3 lines · Khem Raj
fontforge fails due to this see -
https://autobuilder.yoctoproject.org/typhoon/#/builders/88/builds/3095/steps/15/logs/stdio
Quoted 2 lines
cd
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/build/poQuoted 1 line
&&
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/recipe-sysroot-native/usr/bin/msgfmtQuoted 1 line
--check -o
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/build/po/fr.moQuoted 1 line
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.poQuoted 1 line
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:294:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 3, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:305:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 4, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:7435:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19927:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19935:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19970:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:19986:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:20459:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:21045:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:21443:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:21772:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:24553:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/git/po/fr.po:24564:Quoted 3 lines
'msgstr' is not a valid C format string, unlike 'msgid'. Reason: In the directive number 2, the argument size specifier is invalid.
/mnt/b/yoe/master/build/tmp/work/x86_64-linux/fontforge-native/20230101/recipe-sysroot-native/usr/bin/msgfmt:Quoted 3 lines
found 13 fatal errors
On Wed, Sep 6, 2023 at 9:56 AM Alexander Kanavin <[email protected]>
Quoted 18 lines · wrote:
Quoted 4 lines
Drop autoconf-2.73.patch as upstream did update the gnulib.
Signed-off-by Alexander Kanavin <[email protected]>Quoted 14 lines
--- .../gettext-0.21.1/autoconf-2.73.patch | 50 ------------------- ...21.1.bb => gettext-minimal-native_0.22.bb} | 0 .../COPYING | 0 meta/recipes-core/gettext/gettext-sources.inc | 2 +- ...t-env.in-do-not-add-C-CXX-parameters.patch | 0 ...01-tests-autopoint-3-unset-MAKEFLAGS.patch | 0 .../parallel.patch | 0 .../{gettext-0.21.1 => gettext}/run-ptest | 0 .../serial-tests-config.patch | 0 .../use-pkgconfig.patch | 0 .../{gettext_0.21.1.bb => gettext_0.22.bb} | 3 +- 11 files changed, 3 insertions(+), 52 deletions(-) delete mode 100644
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patchQuoted 1 line
Quoted 1 line
rename meta/recipes-core/gettext/{gettext-minimal-native_0.21.1.bb=> gettext-minimal-native_0.22.bb} (100%)
Quoted 1 line
Quoted 1 line
rename meta/recipes-core/gettext/{gettext-minimal-0.21.1 =>gettext-minimal}/COPYING (100%)
Quoted 1 line
Quoted 1 line
rename meta/recipes-core/gettext/{gettext-0.21.1 =>
gettext}/0001-init-env.in-do-not-add-C-CXX-parameters.patch(100%)Quoted 1 line
Quoted 1 line
rename meta/recipes-core/gettext/{gettext-0.21.1 =>
gettext}/0001-tests-autopoint-3-unset-MAKEFLAGS.patch(100%)Quoted 1 line
Quoted 1 line
rename meta/recipes-core/gettext/{gettext-0.21.1 =>
gettext}/parallel.patch(100%)Quoted 1 line
Quoted 1 line
rename meta/recipes-core/gettext/{gettext-0.21.1 =>gettext}/run-ptest (100%)
Quoted 1 line
Quoted 1 line
rename meta/recipes-core/gettext/{gettext-0.21.1 =>
gettext}/serial-tests-config.patch(100%)Quoted 1 line
Quoted 1 line
rename meta/recipes-core/gettext/{gettext-0.21.1 =>
gettext}/use-pkgconfig.patch(100%)Quoted 1 line
Quoted 1 line
rename meta/recipes-core/gettext/{gettext_0.21.1.bb =>gettext_0.22.bb} (99%)
Quoted 2 lines
Quoted 2 lines
diff --git
a/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patchb/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patchQuoted 6 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch line 1
Quoted 6 lines
deleted file mode 100644
index ae5b2491bb8..00000000000meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-1@@ -1,50 +0,0 @@ -The gnulib largefile macro needs updating to work with autoconf 2.73.Rather
Quoted 3 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch line 5
Quoted 3 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-3-than the full code: - -Quoted 2 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch line 6
Quoted 2 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-2- -Just tweak the exiting code to work with 2.73. The next gettextupgrade should
Quoted 4 lines
Quoted 4 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-4-update to new gnulib - -Upstream-Status: Inappropriate -Signed-off-by: Richard Purdie <[email protected]>Quoted 8 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
Quoted 8 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-8- -Index: gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/gettext-runtime/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/gettext-runtime/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X10.5,
Quoted 5 lines
Quoted 5 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-5- # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDESQuoted 8 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
Quoted 8 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-8- # ------------------------------- -Index: gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/gettext-tools/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/gettext-tools/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X10.5,
Quoted 5 lines
Quoted 5 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-5- # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDESQuoted 8 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
Quoted 8 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-8- # ------------------------------- -Index: gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4 -=================================================================== ---- gettext-0.21.1.orig/libtextstyle/gnulib-m4/largefile.m4 -+++ gettext-0.21.1/libtextstyle/gnulib-m4/largefile.m4 -@@ -26,7 +26,7 @@ AC_DEFUN([gl_SET_LARGEFILE_SOURCE], - # with _TIME_BITS. Also, work around a problem in autoconf <= 2.69: - # AC_SYS_LARGEFILE does not configure for large inodes on Mac OS X10.5,
Quoted 7 lines
Review
Quoted 7 lines
meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch deleted +0
-6- # or configures them incorrectly in some cases. --m4_version_prereq([2.70], [], [ -+m4_version_prereq([2.73], [], [ - - # _AC_SYS_LARGEFILE_TEST_INCLUDES - # -------------------------------(quoted diff) +0
-0gettext-minimal-native_0.21.1.bb b/meta/recipes-core/gettext/ gettext-minimal-native_0.22.bb
Quoted 4 lines
Review
Quoted 4 lines
similarity index 100%
rename from meta/recipes-core/gettext/gettext-minimal-native_0.21.1.bb rename to meta/recipes-core/gettext/gettext-minimal-native_0.22.bb(quoted diff) +0
-0b/meta/recipes-core/gettext/gettext-minimal/COPYING
Quoted 4 lines
Review
Quoted 4 lines
similarity index 100%
rename from meta/recipes-core/gettext/gettext-minimal-0.21.1/COPYING rename to meta/recipes-core/gettext/gettext-minimal/COPYING(quoted diff) +0
-0b/meta/recipes-core/gettext/gettext-sources.inc
Quoted 8 lines
meta/recipes-core/gettext/gettext-sources.inc line 4
Quoted 8 lines
index
da2860fbc85..b4fb6479161100644meta/recipes-core/gettext/gettext-sources.inc +0
-1@@ -1,4 +1,4 @@ HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html" SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \ " -SRC_URI[sha256sum] ="
e8c3650e1d8cee875c4f355642382c1df83058bd5a11ee8555c0cf276d646d45"Quoted 1 line
meta/recipes-core/gettext/gettext-sources.inc line 4
Quoted 1 line
meta/recipes-core/gettext/gettext-sources.inc +1
-0+SRC_URI[sha256sum] ="
49f089be11b490170bbf09ed2f51e5f5177f55be4cc66504a5861820e0fb06ab"Quoted 1 line
Quoted 1 line
diff --git
a/meta/recipes-core/gettext/gettext-0.21.1/0001-init-env.in-do-not-add-C-CXX-parameters.patchb/meta/recipes-core/gettext/gettext/0001-init-env.in-do-not-add-C-CXX-parameters.patchQuoted 2 lines
Quoted 2 lines
similarity index 100%
rename from
meta/recipes-core/gettext/gettext-0.21.1/0001-init-env.in-do-not-add-C-CXX-parameters.patchQuoted 1 line
Quoted 1 line
rename to
meta/recipes-core/gettext/gettext/0001-init-env.in-do-not-add-C-CXX-parameters.patchQuoted 1 line
Quoted 1 line
diff --git
a/meta/recipes-core/gettext/gettext-0.21.1/0001-tests-autopoint-3-unset-MAKEFLAGS.patchb/meta/recipes-core/gettext/gettext/0001-tests-autopoint-3-unset-MAKEFLAGS.patchQuoted 2 lines
Quoted 2 lines
similarity index 100%
rename from
meta/recipes-core/gettext/gettext-0.21.1/0001-tests-autopoint-3-unset-MAKEFLAGS.patchQuoted 1 line
Quoted 1 line
rename to
meta/recipes-core/gettext/gettext/0001-tests-autopoint-3-unset-MAKEFLAGS.patchQuoted 1 line
Review
Quoted 1 line
(quoted diff) +0
-0
b/meta/recipes-core/gettext/gettext/parallel.patchQuoted 4 lines
Review
Quoted 4 lines
similarity index 100%
rename frommeta/recipes-core/gettext/gettext-0.21.1/parallel.patchrename tometa/recipes-core/gettext/gettext/parallel.patch(quoted diff) +0
-0b/meta/recipes-core/gettext/gettext/run-ptest
Quoted 4 lines
Quoted 4 lines
similarity index 100%
rename from meta/recipes-core/gettext/gettext-0.21.1/run-ptest rename to meta/recipes-core/gettext/gettext/run-ptest diff --git
a/meta/recipes-core/gettext/gettext-0.21.1/serial-tests-config.patchb/meta/recipes-core/gettext/gettext/serial-tests-config.patchQuoted 2 lines
Quoted 2 lines
similarity index 100%
rename from
meta/recipes-core/gettext/gettext-0.21.1/serial-tests-config.patchQuoted 2 lines
Quoted 2 lines
rename to
meta/recipes-core/gettext/gettext/serial-tests-config.patchdiff --git
a/meta/recipes-core/gettext/gettext-0.21.1/use-pkgconfig.patchb/meta/recipes-core/gettext/gettext/use-pkgconfig.patchQuoted 2 lines
Quoted 2 lines
similarity index 100%
rename from
meta/recipes-core/gettext/gettext-0.21.1/use-pkgconfig.patchQuoted 2 lines
Review
Quoted 2 lines
rename to
meta/recipes-core/gettext/gettext/use-pkgconfig.patch(quoted diff) +0
-0b/meta/recipes-core/gettext/gettext_0.22.bb
Quoted 27 lines
Quoted 27 lines
similarity index 99%
rename from meta/recipes-core/gettext/gettext_0.21.1.bb rename to meta/recipes-core/gettext/gettext_0.22.bb indexa3eb3bba541..71e84521b0d100644meta/recipes-core/gettext/gettext_0.22.bb renamed from meta/recipes-core/gettext/gettext_0.21.1.bb +2
-2@@ -30,7 +30,6 @@ SRC_URI += " \ file://serial-tests-config.patch \ file://0001-tests-autopoint-3-unset-MAKEFLAGS.patch \ file://0001-init-env.in-do-not-add-C-CXX-parameters.patch \ - file://autoconf-2.73.patch \ " inherit autotools texinfo pkgconfig ptest@@ -201,6 +200,8 @@ RDEPENDS:${PN}-ptest:append:libc-glibc = "\ glibc-charmap-euc-kr \ glibc-gconv-euc-jp \ glibc-charmap-euc-jp \ + glibc-gconv-gb18030 \ + glibc-charmap-gb18030 \ locale-base-de-de \ locale-base-fr-fr \ " --2.30.2
Quoted 3 lines
Quoted 3 lines
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#187324):https://lists.openembedded.org/g/openembedded-core/message/187324
Quoted 3 lines
Quoted 3 lines
Mute This Topic: https://lists.openembedded.org/mt/101197336/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsubQuoted 2 lines
Quoted 2 lines
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 3/17 connman: update 1.41 -> 1.42
In reply to Alexander KanavinDrop backports. 0001-vpn-Adding-support-for-latest-pppd-2.5.0-release.patch is partially dropped, as upstream hasn't included the newly added header into the tarball (issue addressed after the release).
---
...ify-and-sanitize-packet-length-first.patch | 63 -------
...upport-for-latest-pppd-2.5.0-release.patch | 128 +------------
...ve-musl-does-not-implement-res_ninit.patch | 8 -
.../connman/connman/CVE-2022-32292.patch | 37 ----
.../connman/connman/CVE-2022-32293_p1.patch | 141 --------------
.../connman/connman/CVE-2022-32293_p2.patch | 174 ------------------
.../{connman_1.41.bb => connman_1.42.bb} | 6 +-
7 files changed, 4 insertions(+), 553 deletions(-)
delete mode 100644 meta/recipes-connectivity/connman/connman/0001-gdhcp-Verify-and-sanitize-packet-length-first.patch
delete mode 100644 meta/recipes-connectivity/connman/connman/CVE-2022-32292.patch
delete mode 100644 meta/recipes-connectivity/connman/connman/CVE-2022-32293_p1.patch
delete mode 100644 meta/recipes-connectivity/connman/connman/CVE-2022-32293_p2.patch
rename meta/recipes-connectivity/connman/{connman_1.41.bb => connman_1.42.bb} (66%)meta/recipes-connectivity/connman/connman/0001-gdhcp-Verify-and-sanitize-packet-length-first.patch deleted +0 -63
@@ -1,63 +0,0 @@ -From 99e2c16ea1cced34a5dc450d76287a1c3e762138 Mon Sep 17 00:00:00 2001 -From: Daniel Wagner <[email protected]> -Date: Tue, 11 Apr 2023 08:12:56 +0200 -Subject: [PATCH] gdhcp: Verify and sanitize packet length first - -Avoid overwriting the read packet length after the initial test. Thus -move all the length checks which depends on the total length first -and do not use the total lenght from the IP packet afterwards. - -Fixes CVE-2023-28488 - -Reported by Polina Smirnova <[email protected]> - -CVE: CVE-2023-28488 -Upstream-Status: Backport -Signed-off-by: Ross Burton <[email protected]> - ---- - gdhcp/client.c | 16 +++++++++------- - 1 file changed, 9 insertions(+), 7 deletions(-) - -diff --git a/gdhcp/client.c b/gdhcp/client.c -index 7efa7e45..82017692 100644 ---- a/gdhcp/client.c -+++ b/gdhcp/client.c -@@ -1319,9 +1319,9 @@ static bool sanity_check(struct ip_udp_dhcp_packet *packet, int bytes) - static int dhcp_recv_l2_packet(struct dhcp_packet *dhcp_pkt, int fd, - struct sockaddr_in *dst_addr) - { -- int bytes; - struct ip_udp_dhcp_packet packet; - uint16_t check; -+ int bytes, tot_len; - - memset(&packet, 0, sizeof(packet)); - -@@ -1329,15 +1329,17 @@ static int dhcp_recv_l2_packet(struct dhcp_packet *dhcp_pkt, int fd, - if (bytes < 0) - return -1; - -- if (bytes < (int) (sizeof(packet.ip) + sizeof(packet.udp))) -- return -1; -- -- if (bytes < ntohs(packet.ip.tot_len)) -+ tot_len = ntohs(packet.ip.tot_len); -+ if (bytes > tot_len) { -+ /* ignore any extra garbage bytes */ -+ bytes = tot_len; -+ } else if (bytes < tot_len) { - /* packet is bigger than sizeof(packet), we did partial read */ - return -1; -+ } - -- /* ignore any extra garbage bytes */ -- bytes = ntohs(packet.ip.tot_len); -+ if (bytes < (int) (sizeof(packet.ip) + sizeof(packet.udp))) -+ return -1; - - if (!sanity_check(&packet, bytes)) - return -1; --- -2.34.1 -
meta/recipes-connectivity/connman/connman/0001-vpn-Adding-support-for-latest-pppd-2.5.0-release.patch +3 -125
144 lines not on this page · raw message
meta/recipes-connectivity/connman/connman/0002-resolve-musl-does-not-implement-res_ninit.patch +0 -8
@@ -18,14 +18,6 @@ diff --git a/gweb/gresolv.c b/gweb/gresolv.c index 954e7cf..2a9bc51 100644 --- a/gweb/gresolv.c +++ b/gweb/gresolv.c -@@ -36,6 +36,7 @@ - #include <arpa/inet.h> - #include <arpa/nameser.h> - #include <net/if.h> -+#include <ctype.h> - - #include "gresolv.h" - @@ -878,8 +879,6 @@ GResolv *g_resolv_new(int index) resolv->index = index; resolv->nameserver_list = NULL;
meta/recipes-connectivity/connman/connman/CVE-2022-32292.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From d1a5ede5d255bde8ef707f8441b997563b9312bd Mon Sep 17 00:00:00 2001 -From: Nathan Crandall <[email protected]> -Date: Tue, 12 Jul 2022 08:56:34 +0200 -Subject: gweb: Fix OOB write in received_data() - -There is a mismatch of handling binary vs. C-string data with memchr -and strlen, resulting in pos, count, and bytes_read to become out of -sync and result in a heap overflow. Instead, do not treat the buffer -as an ASCII C-string. We calculate the count based on the return value -of memchr, instead of strlen. - -Fixes: CVE-2022-32292 - -CVE: CVE-2022-32292 - -Upstream-Status: Backport [https://git.kernel.org/pub/scm/network/connman/connman.git/commit/?id=d1a5ede5d255bde8ef707f8441b997563b9312bd] -Signed-off-by: Khem Raj <[email protected]> ---- - gweb/gweb.c | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/gweb/gweb.c b/gweb/gweb.c -index 12fcb1d8..13c6c5f2 100644 ---- a/gweb/gweb.c -+++ b/gweb/gweb.c -@@ -918,7 +918,7 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond, - } - - *pos = '\0'; -- count = strlen((char *) ptr); -+ count = pos - ptr; - if (count > 0 && ptr[count - 1] == '\r') { - ptr[--count] = '\0'; - bytes_read--; --- -cgit -
meta/recipes-connectivity/connman/connman/CVE-2022-32293_p1.patch deleted +0 -141
141 lines not on this page · raw message
meta/recipes-connectivity/connman/connman/CVE-2022-32293_p2.patch deleted +0 -174
174 lines not on this page · raw message
meta/recipes-connectivity/connman/connman_1.42.bb renamed from meta/recipes-connectivity/connman/connman_1.41.bb +1 -5
@@ -5,16 +5,12 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ file://0001-connman.service-stop-systemd-resolved-when-we-use-co.patch \ file://connman \ file://no-version-scripts.patch \ - file://CVE-2022-32293_p1.patch \ - file://CVE-2022-32293_p2.patch \ - file://CVE-2022-32292.patch \ - file://0001-gdhcp-Verify-and-sanitize-packet-length-first.patch \ file://0001-vpn-Adding-support-for-latest-pppd-2.5.0-release.patch \ " SRC_URI:append:libc-musl = " file://0002-resolve-musl-does-not-implement-res_ninit.patch" -SRC_URI[sha256sum] = "79fb40f4fdd5530c45aa8e592fb16ba23d3674f3a98cf10b89a6576f198de589" +SRC_URI[sha256sum] = "a3e6bae46fc081ef2e9dae3caa4f7649de892c3de622c20283ac0ca81423c2aa" RRECOMMENDS:${PN} = "connman-conf" RCONFLICTS:${PN} = "networkmanager"
Signature · 1 line
2.30.2
PATCH 4/17 libcgroup: update 3.0.0 -> 3.1.0
In reply to Alexander Kanavin---
...pi-Use-GNU-strerror_r-when-available.patch | 55 -------------------
...{libcgroup_3.0.0.bb => libcgroup_3.1.0.bb} | 8 +--
2 files changed, 4 insertions(+), 59 deletions(-)
delete mode 100644 meta/recipes-core/libcgroup/libcgroup/0001-api-Use-GNU-strerror_r-when-available.patch
rename meta/recipes-core/libcgroup/{libcgroup_3.0.0.bb => libcgroup_3.1.0.bb} (78%)meta/recipes-core/libcgroup/libcgroup/0001-api-Use-GNU-strerror_r-when-available.patch deleted +0 -55
@@ -1,55 +0,0 @@ -From d190c0c548b3219b75e4c399aa89186e77bbe270 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Tue, 23 Aug 2022 20:03:09 -0700 -Subject: [PATCH] api: Use GNU strerror_r when available - -GNU strerror_r is only available in glibc, musl impelents the XSI -version which is slightly different, therefore check if GNU version is -available before using it, otherwise use the XSI compliant version. - -Upstream-Status: Submitted [https://github.com/libcgroup/libcgroup/pull/236] -Signed-off-by: Khem Raj <[email protected]> ---- - configure.ac | 5 +++++ - src/api.c | 8 ++++++-- - 2 files changed, 11 insertions(+), 2 deletions(-) - -diff --git a/configure.ac b/configure.ac -index b68c655..831866d 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -183,6 +183,11 @@ AC_FUNC_REALLOC - AC_FUNC_STAT - AC_CHECK_FUNCS([getmntent hasmntopt memset mkdir rmdir strdup]) - -+orig_CFLAGS="$CFLAGS" -+CFLAGS="$CFLAGS -D_GNU_SOURCE" -+AC_FUNC_STRERROR_R -+CFLAGS="$orig_CFLAGS" -+ - AC_SEARCH_LIBS( - [fts_open], - [fts], -diff --git a/src/api.c b/src/api.c -index 5c6de11..06aa1d6 100644 ---- a/src/api.c -+++ b/src/api.c -@@ -4571,9 +4571,13 @@ const char *cgroup_strerror(int code) - { - int idx = code % ECGROUPNOTCOMPILED; - -- if (code == ECGOTHER) -+ if (code == ECGOTHER) { -+#ifdef STRERROR_R_CHAR_P - return strerror_r(cgroup_get_last_errno(), errtext, MAXLEN); -- -+#else -+ return strerror_r(cgroup_get_last_errno(), errtext, sizeof (errtext)) ? "unknown error" : errtext; -+#endif -+ } - if (idx >= sizeof(cgroup_strerror_codes)/sizeof(cgroup_strerror_codes[0])) - return "Invalid error code"; - --- -2.37.2 -
meta/recipes-core/libcgroup/libcgroup_3.1.0.bb renamed from meta/recipes-core/libcgroup/libcgroup_3.0.0.bb +4 -4
@@ -12,15 +12,15 @@ inherit autotools pkgconfig github-releases DEPENDS = "bison-native flex-native" DEPENDS:append:libc-musl = " fts" -SRC_URI = "${GITHUB_BASE_URI}/download/v3.0/${BP}.tar.gz \ - file://0001-api-Use-GNU-strerror_r-when-available.patch \ +SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BP}.tar.gz \ " UPSTREAM_CHECK_URI = "https://github.com/libcgroup/libcgroup/tags" -SRC_URI[sha256sum] = "8d284d896fca1c981b55850e92acd3ad9648a69227c028dda7ae3402af878edd" +SRC_URI[sha256sum] = "976ec4b1e03c0498308cfd28f1b256b40858f636abc8d1f9db24f0a7ea9e1258" -PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" +PACKAGECONFIG = "${@bb.utils.filter('DISTRO_FEATURES', 'pam systemd', d)}" PACKAGECONFIG[pam] = "--enable-pam-module-dir=${base_libdir}/security --enable-pam=yes,--enable-pam=no,libpam" +PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd" PACKAGES =+ "cgroups-pam-plugin" FILES:cgroups-pam-plugin = "${base_libdir}/security/pam_cgroup.so*"
Signature · 1 line
2.30.2
PATCH 5/17 perlcross: update 1.4.1 -> 1.5
In reply to Alexander Kanavin---
...Makefile-check-the-file-if-patched-or-not.patch | 14 ++++++--------
.../{perlcross_1.4.1.bb => perlcross_1.5.bb} | 2 +-
2 files changed, 7 insertions(+), 9 deletions(-)
rename meta/recipes-devtools/perl-cross/{perlcross_1.4.1.bb => perlcross_1.5.bb} (92%)meta/recipes-devtools/perl-cross/files/0001-Makefile-check-the-file-if-patched-or-not.patch +6 -8
@@ -1,4 +1,4 @@ -From 24a3e0c48f9ebe473b5f1078663e275c27d0537f Mon Sep 17 00:00:00 2001 +From 3eb33dce6e3c93e1b3efcc9649f871100adada30 Mon Sep 17 00:00:00 2001 From: Mingli Yu <[email protected]> Date: Fri, 2 Jul 2021 09:08:21 +0000 Subject: [PATCH] Makefile: check the file if patched or not
@@ -9,23 +9,21 @@ one time. Upstream-Status: Inappropriate (OE-specific) Signed-off-by: Mingli Yu <[email protected]> + --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile -index f4a26f5..7bc748e 100644 +index c6d6042..d137976 100644 --- a/Makefile +++ b/Makefile -@@ -61,7 +61,7 @@ miniperlmain$O: $(CROSSPATCHED) +@@ -67,7 +67,7 @@ miniperlmain$O: $(CROSSPATCHED) # Original versions are not saved anymore; patch generally takes care of this, # and if that fails, reaching for the source tarball is the safest option. $(CROSSPATCHED): %.applied: %.patch -- patch -p1 -i $< && touch $@ -+ test ! -f $@ && (patch -p1 -i $< && touch $@) || echo "$@ exist" +- $(cpatch) -p1 -i $< && touch $@ ++ test ! -f $@ && ($(cpatch) -p1 -i $< && touch $@) || echo "$@ exist" # ---[ common ]----------------------------------------------------------------- --- -2.29.2 -
meta/recipes-devtools/perl-cross/perlcross_1.5.bb renamed from meta/recipes-devtools/perl-cross/perlcross_1.4.1.bb +1 -1
@@ -18,7 +18,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/perl-cross-${PV}.tar.gz;name=perl-c " GITHUB_BASE_URI = "https://github.com/arsv/perl-cross/releases/" -SRC_URI[perl-cross.sha256sum] = "3e14bb4f28c83586c668c5f9f6b4e57b138b4ec2fae0271086e29d4e352670ca" +SRC_URI[perl-cross.sha256sum] = "d744a390939e2ebb9a12f6725b4d9c19255a141d90031eff90ea183fdfcbf211" S = "${WORKDIR}/perl-cross-${PV}"
Signature · 1 line
2.30.2
PATCH 6/17 perl: update 5.36.1 -> 5.38.0
In reply to Alexander KanavinRebase perl-configpm-switch.patch.
Add a patch to perl-cross to unbreak perl's line numbers printing.
---
...mt.sh-add-32-bit-integer-format-defi.patch | 28 +++
.../perl-cross/perlcross_1.5.bb | 1 +
.../perl/files/CVE-2023-31484.patch | 29 ---
.../perl/files/CVE-2023-31486-0001.patch | 217 ------------------
.../perl/files/CVE-2023-31486-0002.patch | 36 ---
.../perl/files/perl-configpm-switch.patch | 66 +++---
.../perl/{perl_5.36.1.bb => perl_5.38.0.bb} | 13 +-
7 files changed, 68 insertions(+), 322 deletions(-)
create mode 100644 meta/recipes-devtools/perl-cross/files/0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2023-31484.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2023-31486-0001.patch
delete mode 100644 meta/recipes-devtools/perl/files/CVE-2023-31486-0002.patch
rename meta/recipes-devtools/perl/{perl_5.36.1.bb => perl_5.38.0.bb} (96%)meta/recipes-devtools/perl-cross/files/0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 920abf3dc39c851a655b719622c76a6f0dc9981d Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Tue, 5 Sep 2023 19:47:33 +0200 +Subject: [PATCH] cnf/configure_pfmt.sh: add 32 bit integer format definitions + +These started to matter in perl 5.38 where they are used to print +line numbers. + +Upstream-Status: Submitted [https://github.com/arsv/perl-cross/pull/143] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + cnf/configure_pfmt.sh | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/cnf/configure_pfmt.sh b/cnf/configure_pfmt.sh +index 8f93da1..7bb4b6f 100644 +--- a/cnf/configure_pfmt.sh ++++ b/cnf/configure_pfmt.sh +@@ -52,3 +52,9 @@ else + define uvxformat '"lx"' + define uvXUformat '"lX"' + fi ++ ++define i32dformat 'PRId32' ++define u32uformat 'PRIu32' ++define u32oformat 'PRIo32' ++define u32xformat 'PRIx32' ++define u32XUformat 'PRIX32'
meta/recipes-devtools/perl-cross/perlcross_1.5.bb +1 -0
@@ -15,6 +15,7 @@ SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/perl-cross-${PV}.tar.gz;name=perl-c file://0001-perl-cross-add-LDFLAGS-when-linking-libperl.patch \ file://determinism.patch \ file://0001-Makefile-check-the-file-if-patched-or-not.patch \ + file://0001-cnf-configure_pfmt.sh-add-32-bit-integer-format-defi.patch \ " GITHUB_BASE_URI = "https://github.com/arsv/perl-cross/releases/"
meta/recipes-devtools/perl/files/CVE-2023-31484.patch deleted +0 -29
@@ -1,29 +0,0 @@ -From a625ec2cc3a0b6116c1f8b831d3480deb621c245 Mon Sep 17 00:00:00 2001 -From: Stig Palmquist <[email protected]> -Date: Tue, 28 Feb 2023 11:54:06 +0100 -Subject: [PATCH] Add verify_SSL=>1 to HTTP::Tiny to verify https server - identity - -CVE: CVE-2023-31484 - -Upstream-Status: Backport [https://github.com/andk/cpanpm/commit/9c98370287f4e709924aee7c58ef21c85289a7f0] - -Signed-off-by: Soumya <[email protected]> ---- - cpan/CPAN/lib/CPAN/HTTP/Client.pm | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/cpan/CPAN/lib/CPAN/HTTP/Client.pm b/cpan/CPAN/lib/CPAN/HTTP/Client.pm -index 4fc792c..a616fee 100644 ---- a/cpan/CPAN/lib/CPAN/HTTP/Client.pm -+++ b/cpan/CPAN/lib/CPAN/HTTP/Client.pm -@@ -32,6 +32,7 @@ sub mirror { - - my $want_proxy = $self->_want_proxy($uri); - my $http = HTTP::Tiny->new( -+ verify_SSL => 1, - $want_proxy ? (proxy => $self->{proxy}) : () - ); - --- -2.40.0
meta/recipes-devtools/perl/files/CVE-2023-31486-0001.patch deleted +0 -217
217 lines not on this page · raw message
meta/recipes-devtools/perl/files/CVE-2023-31486-0002.patch deleted +0 -36
@@ -1,36 +0,0 @@ -From a22785783b17cbaa28afaee4a024d81a1903701d -From: Stig Palmquist <[email protected]> -Date: Sun Jun 18 11:36:05 2023 +0200 -Subject: [PATCH] Fix incorrect env var name for verify_SSL default - -The variable to override the verify_SSL default differed slightly in the -documentation from what was checked for in the code. - -This commit makes the code use `PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT` -as documented, instead of `PERL_HTTP_TINY_INSECURE_BY_DEFAULT` which was -missing `SSL_` - -CVE: CVE-2023-31486 - -Upstream-Status: Backport [https://github.com/chansen/p5-http-tiny/commit/a22785783b17cbaa28afaee4a024d81a1903701d] - -Signed-off-by: Soumya <[email protected]> ---- - cpan/HTTP-Tiny/lib/HTTP/Tiny.pm | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm b/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm -index ebc34a1..65ac8ff 100644 ---- a/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm -+++ b/cpan/HTTP-Tiny/lib/HTTP/Tiny.pm -@@ -148,7 +148,7 @@ sub _verify_SSL_default { - my ($self) = @_; - # Check if insecure default certificate verification behaviour has been - # changed by the user by setting PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT=1 -- return (($ENV{PERL_HTTP_TINY_INSECURE_BY_DEFAULT} || '') eq '1') ? 0 : 1; -+ return (($ENV{PERL_HTTP_TINY_SSL_INSECURE_BY_DEFAULT} || '') eq '1') ? 0 : 1; - } - - sub _set_proxies { --- -2.40.0
meta/recipes-devtools/perl/files/perl-configpm-switch.patch +33 -33
75 lines not on this page · raw message
meta/recipes-devtools/perl/perl_5.38.0.bb renamed from meta/recipes-devtools/perl/perl_5.36.1.bb +6 -7
@@ -17,9 +17,6 @@ SRC_URI = "https://www.cpan.org/src/5.0/perl-${PV}.tar.gz;name=perl \ file://0002-Constant-Fix-up-shebang.patch \ file://determinism.patch \ file://0001-cpan-Sys-Syslog-Makefile.PL-Fix-_PATH_LOG-for-determ.patch \ - file://CVE-2023-31484.patch \ - file://CVE-2023-31486-0001.patch \ - file://CVE-2023-31486-0002.patch \ " SRC_URI:append:class-native = " \ file://perl-configpm-switch.patch \
@@ -28,7 +25,7 @@ SRC_URI:append:class-target = " \ file://encodefix.patch \ " -SRC_URI[perl.sha256sum] = "68203665d8ece02988fc77dc92fccbb297a83a4bb4b8d07558442f978da54cc1" +SRC_URI[perl.sha256sum] = "213ef58089d2f2c972ea353517dc60ec3656f050dcc027666e118b508423e517" B = "${WORKDIR}/perl-${PV}-build"
@@ -158,9 +155,10 @@ do_install:append:class-target() { # This is used to substitute target configuration when running native perl via perl-configpm-switch.patch ln -s Config_heavy.pl ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/Config_heavy-target.pl - # This contains host-specific information used for building miniperl (a helper executable built with host compiler) - # and therefore isn't reproducible. I believe the file isn't actually needed on target. - rm ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/xconfig.h + # xconfig.h contains references to build host architecture, and yet is included from various other places. + # To make it reproducible let's make it a copy of config.h patch that is specific to the target architecture. + # It is believed that the original header is the product of building miniperl (a helper executable built with host compiler). + cp ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/config.h ${D}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/xconfig.h } do_install:append:class-nativesdk() {
@@ -205,6 +203,7 @@ perl_package_preprocess () { ${PKGD}${bindir}/pod2usage.perl \ ${PKGD}${bindir}/podchecker.perl \ ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/config.h \ + ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/xconfig.h \ ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/perl.h \ ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/pp.h \ ${PKGD}${libdir}/perl5/${PV}/Config.pm \
Signature · 1 line
2.30.2
PATCH 7/17 groff: update 1.22.4 -> 1.23.0
In reply to Alexander KanavinDrop backports.
Rebase
0001-Make-manpages-mulitlib-identical.patch
groff-not-search-fonts-on-build-host.patch
--without-doc has been removed upstream; replace
that with a dependency on groff-native and
substitution of groff executable from that.
Drop serial make; this was introduced in 2010 without explanation and likely been solved long time ago.
Set urw fonts directory to something bogus to avoid host contamination.
---
.../files/0001-Fix-code-style-issues.patch | 536 ------------------
.../groff/files/0001-Include-config.h.patch | 212 -------
...001-Make-manpages-mulitlib-identical.patch | 20 +-
...001-replace-perl-w-with-use-warnings.patch | 106 ----
.../groff/files/0001-support-musl.patch | 41 --
...groff-not-search-fonts-on-build-host.patch | 37 +-
.../{groff_1.22.4.bb => groff_1.23.0.bb} | 27 +-
7 files changed, 42 insertions(+), 937 deletions(-)
delete mode 100644 meta/recipes-extended/groff/files/0001-Fix-code-style-issues.patch
delete mode 100644 meta/recipes-extended/groff/files/0001-Include-config.h.patch
delete mode 100644 meta/recipes-extended/groff/files/0001-replace-perl-w-with-use-warnings.patch
delete mode 100644 meta/recipes-extended/groff/files/0001-support-musl.patch
rename meta/recipes-extended/groff/{groff_1.22.4.bb => groff_1.23.0.bb} (76%)meta/recipes-extended/groff/files/0001-Fix-code-style-issues.patch deleted +0 -536
@@ -1,536 +0,0 @@ -From 99313d5c0ff35da6627e7dc985612f990ca64637 Mon Sep 17 00:00:00 2001 -From: "G. Branden Robinson" <[email protected]> -Date: Mon, 16 Aug 2021 12:37:22 +1000 -Subject: [PATCH] Fix code style issues. - -* src/preproc/grn/hgraph.cpp: -* src/preproc/grn/hpoint.cpp: -* src/preproc/grn/main.cpp: -* src/preproc/grn/hdb.cpp: Drop use of `register` storage class. - -* src/preproc/grn/hgraph.cpp (len, HGPrintElt, picurve): -* src/preproc/grn/hdb.cpp (DBRead): Wrap long lines. - -* src/preproc/grn/hgraph.cpp: Rename function from `Paramaterize` to - `Parameterize`. - - (HGCurve): Update call site. - -* src/preproc/grn/main.cpp (add_file): Drop redundant cast in - `realloc()` call. - - (conv, interpret): Use standard English in diagnostic messages. - -Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/groff.git/commit/?id=eead5f5cf1dedc6d180bdb34914d7157d39e270c] -Signed-off-by: Khem Raj <[email protected]> ---- - src/preproc/grn/hdb.cpp | 20 +++--- - src/preproc/grn/hgraph.cpp | 131 +++++++++++++++++++------------------ - src/preproc/grn/hpoint.cpp | 2 +- - src/preproc/grn/main.cpp | 38 +++++------ - 4 files changed, 100 insertions(+), 91 deletions(-) - -diff --git a/src/preproc/grn/hdb.cpp b/src/preproc/grn/hdb.cpp -index c61e099..2b4011b 100644 ---- a/src/preproc/grn/hdb.cpp -+++ b/src/preproc/grn/hdb.cpp -@@ -35,7 +35,7 @@ extern POINT *PTInit(); - extern POINT *PTMakePoint(double x, double y, POINT ** pplist); - - --int DBGetType(register char *s); -+int DBGetType(char *s); - - - /* -@@ -61,7 +61,7 @@ DBCreateElt(int type, - char *text, - ELT **db) - { -- register ELT *temp; -+ ELT *temp = 0; - - temp = (ELT *) malloc(sizeof(ELT)); - temp->nextelt = *db; -@@ -80,11 +80,11 @@ DBCreateElt(int type, - * pointer to that database. - */ - ELT * --DBRead(register FILE *file) -+DBRead(FILE *file) - { -- register int i; -- register int done; /* flag for input exhausted */ -- register double nx; /* x holder so x is not set before orienting */ -+ int i; -+ int done; /* flag for input exhausted */ -+ double nx; /* x holder so x is not set before orienting */ - int type; /* element type */ - ELT *elist; /* pointer to the file's elements */ - POINT *plist; /* pointer for reading in points */ -@@ -112,7 +112,9 @@ DBRead(register FILE *file) - /* if (fscanf(file,"%" MAXSTRING_S "s\n", string) == EOF) */ - /* I changed the scanf format because the element */ - /* can have two words (e.g. CURVE SPLINE) */ -- if (fscanf(file, "\n%" MAXSTRING_S "[^\n]%*[^\n]\n", string) == EOF) { -+ if (fscanf(file, "\n%" -+ MAXSTRING_S -+ "[^\n]%*[^\n]\n", string) == EOF) { - error("'%1', error in file format", gremlinfile); - return (elist); - } -@@ -209,7 +211,7 @@ DBRead(register FILE *file) - * New file format has literal names for element types. - */ - int --DBGetType(register char *s) -+DBGetType(char *s) - { - if (isdigit(s[0]) || (s[0] == '-')) /* old element format or EOF */ - return (atoi(s)); -@@ -298,7 +300,7 @@ xscanf(FILE *f, - double *xp, - double *yp) - { -- register int c, i, j, m, frac; -+ int c, i, j, m, frac; - int iscale = 1, jscale = 1; /* x = i/scale, y=j/jscale */ - - while ((c = getc(f)) == ' '); -diff --git a/src/preproc/grn/hgraph.cpp b/src/preproc/grn/hgraph.cpp -index dbc0086..ad051ea 100644 ---- a/src/preproc/grn/hgraph.cpp -+++ b/src/preproc/grn/hgraph.cpp -@@ -14,7 +14,8 @@ - #define PointsPerInterval 64 - #define pi 3.14159265358979324 - #define twopi (2.0 * pi) --#define len(a, b) groff_hypot((double)(b.x-a.x), (double)(b.y-a.y)) -+#define len(a, b) groff_hypot((double)(b.x-a.x), \ -+ (double)(b.y-a.y)) - - - extern int dotshifter; /* for the length of dotted curves */ -@@ -48,7 +49,7 @@ extern double adj4; - extern int res; - - void HGSetFont(int font, int size); --void HGPutText(int justify, POINT pnt, register char *string); -+void HGPutText(int justify, POINT pnt, char *string); - void HGSetBrush(int mode); - void tmove2(int px, int py); - void doarc(POINT cp, POINT sp, int angle); -@@ -58,10 +59,10 @@ void drawwig(POINT * ptr, int type); - void HGtline(int x1, int y1); - void deltax(double x); - void deltay(double y); --void HGArc(register int cx, register int cy, int px, int py, int angle); --void picurve(register int *x, register int *y, int npts); -+void HGArc(int cx, int cy, int px, int py, int angle); -+void picurve(int *x, int *y, int npts); - void HGCurve(int *x, int *y, int numpoints); --void Paramaterize(int x[], int y[], double h[], int n); -+void Parameterize(int x[], int y[], double h[], int n); - void PeriodicSpline(double h[], int z[], - double dz[], double d2z[], double d3z[], - int npoints); -@@ -83,10 +84,10 @@ void - HGPrintElt(ELT *element, - int /* baseline */) - { -- register POINT *p1; -- register POINT *p2; -- register int length; -- register int graylevel; -+ POINT *p1; -+ POINT *p2; -+ int length; -+ int graylevel; - - if (!DBNullelt(element) && !Nullpoint((p1 = element->ptlist))) { - /* p1 always has first point */ -@@ -168,7 +169,8 @@ HGPrintElt(ELT *element, - - if (polyfill == FILL || polyfill == BOTH) { - /* do the interior */ -- char command = (polyfill == BOTH && element->brushf) ? 'p' : 'P'; -+ char command = (polyfill == BOTH && element->brushf) -+ ? 'p' : 'P'; - - /* include outline, if there is one and */ - /* the -p flag was set */ -@@ -278,7 +280,7 @@ HGPrintElt(ELT *element, - void - HGPutText(int justify, - POINT pnt, -- register char *string) -+ char *string) - { - int savelasty = lasty; /* vertical motion for text is to be */ - /* ignored. Save current y here */ -@@ -387,7 +389,7 @@ HGSetFont(int font, - void - HGSetBrush(int mode) - { -- register int printed = 0; -+ int printed = 0; - - if (linmod != style[--mode]) { - /* Groff doesn't understand \Ds, so we take it out */ -@@ -417,7 +419,7 @@ HGSetBrush(int mode) - void - deltax(double x) - { -- register int ix = (int) (x * troffscale); -+ int ix = (int) (x * troffscale); - - printf(" %du", ix - lastx); - lastx = ix; -@@ -437,7 +439,7 @@ deltax(double x) - void - deltay(double y) - { -- register int iy = (int) (y * troffscale); -+ int iy = (int) (y * troffscale); - - printf(" %du", iy - lastyline); - lastyline = iy; -@@ -457,8 +459,8 @@ void - tmove2(int px, - int py) - { -- register int dx; -- register int dy; -+ int dx; -+ int dy; - - if ((dy = py - lasty)) { - printf("\\v'%du'", dy); -@@ -483,10 +485,10 @@ tmove2(int px, - void - tmove(POINT * ptr) - { -- register int ix = (int) (ptr->x * troffscale); -- register int iy = (int) (ptr->y * troffscale); -- register int dx; -- register int dy; -+ int ix = (int) (ptr->x * troffscale); -+ int iy = (int) (ptr->y * troffscale); -+ int dx; -+ int dy; - - if ((dy = iy - lasty)) { - printf(".sp %du\n", dy); -@@ -547,7 +549,7 @@ void - drawwig(POINT * ptr, - int type) - { -- register int npts; /* point list index */ -+ int npts; /* point list index */ - int x[MAXPOINTS], y[MAXPOINTS]; /* point list */ - - for (npts = 1; !Nullpoint(ptr); ptr = PTNextPoint(ptr), npts++) { -@@ -574,20 +576,20 @@ drawwig(POINT * ptr, - *----------------------------------------------------------------------------*/ - - void --HGArc(register int cx, -- register int cy, -+HGArc(int cx, -+ int cy, - int px, - int py, - int angle) - { - double xs, ys, resolution, fullcircle; - int m; -- register int mask; -- register int extent; -- register int nx; -- register int ny; -- register int length; -- register double epsilon; -+ int mask; -+ int extent; -+ int nx; -+ int ny; -+ int length; -+ double epsilon; - - xs = px - cx; - ys = py - cy; -@@ -633,15 +635,15 @@ HGArc(register int cx, - *----------------------------------------------------------------------------*/ - - void --picurve(register int *x, -- register int *y, -+picurve(int *x, -+ int *y, - int npts) - { -- register int nseg; /* effective resolution for each curve */ -- register int xp; /* current point (and temporary) */ -- register int yp; -- int pxp, pyp; /* previous point (to make lines from) */ -- int i; /* inner curve segment traverser */ -+ int nseg; /* effective resolution for each curve */ -+ int xp; /* current point (and temporary) */ -+ int yp; -+ int pxp, pyp; /* previous point (to make lines from) */ -+ int i; /* inner curve segment traverser */ - int length = 0; - double w; /* position factor */ - double t1, t2, t3; /* calculation temps */ -@@ -671,7 +673,8 @@ picurve(register int *x, - /* 'nseg' is the number of line */ - /* segments that will be drawn for */ - /* each curve segment. */ -- nseg = (int) ((double) (nseg + (int) groff_hypot((double) xp, (double) yp)) / -+ nseg = (int) ((double) (nseg + (int) groff_hypot((double) xp, -+ (double) yp)) / - res * PointsPerInterval); - - for (i = 1; i < nseg; i++) { -@@ -710,10 +713,10 @@ HGCurve(int *x, - double h[MAXPOINTS], dx[MAXPOINTS], dy[MAXPOINTS]; - double d2x[MAXPOINTS], d2y[MAXPOINTS], d3x[MAXPOINTS], d3y[MAXPOINTS]; - double t, t2, t3; -- register int j; -- register int k; -- register int nx; -- register int ny; -+ int j; -+ int k; -+ int nx; -+ int ny; - int lx, ly; - int length = 0; - -@@ -725,7 +728,7 @@ HGCurve(int *x, - * Solve for derivatives of the curve at each point separately for x and y - * (parametric). - */ -- Paramaterize(x, y, h, numpoints); -+ Parameterize(x, y, h, numpoints); - - /* closed curve */ - if ((x[1] == x[numpoints]) && (y[1] == y[numpoints])) { -@@ -771,15 +774,15 @@ HGCurve(int *x, - *----------------------------------------------------------------------------*/ - - void --Paramaterize(int x[], -+Parameterize(int x[], - int y[], - double h[], - int n) - { -- register int dx; -- register int dy; -- register int i; -- register int j; -+ int dx; -+ int dy; -+ int i; -+ int j; - double u[MAXPOINTS]; - - for (i = 1; i <= n; ++i) { -@@ -937,9 +940,9 @@ NaturalEndSpline(double h[], /* parameterization */ - *----------------------------------------------------------------------------*/ - - void --change(register int x, -- register int y, -- register int vis) -+change(int x, -+ int y, -+ int vis) - { - static int length = 0; - -@@ -967,17 +970,17 @@ void - HGtline(int x_1, - int y_1) - { -- register int x_0 = lastx; -- register int y_0 = lasty; -- register int dx; -- register int dy; -- register int oldcoord; -- register int res1; -- register int visible; -- register int res2; -- register int xinc; -- register int yinc; -- register int dotcounter; -+ int x_0 = lastx; -+ int y_0 = lasty; -+ int dx; -+ int dy; -+ int oldcoord; -+ int res1; -+ int visible; -+ int res2; -+ int xinc; -+ int yinc; -+ int dotcounter; - - if (linmod == SOLID) { - line(x_1, y_1); -@@ -1045,4 +1048,8 @@ HGtline(int x_1, - change(x_1, y_1, 0); - } - --/* EOF */ -+// Local Variables: -+// fill-column: 72 -+// mode: C++ -+// End: -+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72: -diff --git a/src/preproc/grn/hpoint.cpp b/src/preproc/grn/hpoint.cpp -index b581cb0..77bfc9d 100644 ---- a/src/preproc/grn/hpoint.cpp -+++ b/src/preproc/grn/hpoint.cpp -@@ -32,7 +32,7 @@ PTMakePoint(double x, - double y, - POINT **pplist) - { -- register POINT *pt; -+ POINT *pt; - - if (Nullpoint(pt = *pplist)) { /* empty list */ - *pplist = (POINT *) malloc(sizeof(POINT)); -diff --git a/src/preproc/grn/main.cpp b/src/preproc/grn/main.cpp -index 833fd60..d1887b6 100644 ---- a/src/preproc/grn/main.cpp -+++ b/src/preproc/grn/main.cpp -@@ -88,7 +88,7 @@ extern "C" const char *Version_string; - - extern void HGPrintElt(ELT *element, int baseline); - extern ELT *DBInit(); --extern ELT *DBRead(register FILE *file); -+extern ELT *DBRead(FILE *file); - extern POINT *PTInit(); - extern POINT *PTMakePoint(double x, double y, POINT **pplist); - -@@ -231,9 +231,9 @@ int compatibility_flag = FALSE; /* TRUE if in compatibility mode */ - - void getres(); - int doinput(FILE *fp); --void conv(register FILE *fp, int baseline); -+void conv(FILE *fp, int baseline); - void savestate(); --int has_polygon(register ELT *elist); -+int has_polygon(ELT *elist); - void interpret(char *line); - - -@@ -256,7 +256,7 @@ add_file(char **file, - { - if (*count >= *cur_size) { - *cur_size += FILE_SIZE_INCR; -- file = (char **) realloc((char **) file, *cur_size * sizeof(char *)); -+ file = (char **) realloc(file, *cur_size * sizeof(char *)); - if (file == NULL) { - fatal("unable to extend file array"); - } -@@ -283,9 +283,9 @@ main(int argc, - { - setlocale(LC_NUMERIC, "C"); - program_name = argv[0]; -- register FILE *fp; -- register int k; -- register char c; -+ FILE *fp; -+ int k; -+ char c; - int gfil = 0; - char **file = NULL; - int file_cur_size = INIT_FILE_SIZE; -@@ -466,7 +466,7 @@ doinput(FILE *fp) - void - initpic() - { -- register int i; -+ int i; - - for (i = 0; i < STYLES; i++) { /* line thickness defaults */ - thick[i] = defthick[i]; -@@ -511,12 +511,12 @@ initpic() - *----------------------------------------------------------------------------*/ - - void --conv(register FILE *fp, -+conv(FILE *fp, - int baseline) - { -- register FILE *gfp = NULL; /* input file pointer */ -- register int done = 0; /* flag to remember if finished */ -- register ELT *e; /* current element pointer */ -+ FILE *gfp = NULL; /* input file pointer */ -+ int done = 0; /* flag to remember if finished */ -+ ELT *e; /* current element pointer */ - ELT *PICTURE; /* whole picture data base pointer */ - double temp; /* temporary calculating area */ - /* POINT ptr; */ /* coordinates of a point to pass to 'mov' */ -@@ -543,7 +543,7 @@ conv(register FILE *fp, - - if (!gremlinfile[0]) { - if (!setdefault) -- error("at line %1: no picture filename.\n", baseline); -+ error("no picture file name at line %1", baseline); - return; - } - char *path; -@@ -577,7 +577,7 @@ conv(register FILE *fp, - } /* here, troffscale is the */ - /* picture's scaling factor */ - if (pointscale) { -- register int i; /* do pointscaling here, when */ -+ int i; /* do pointscaling here, when */ - /* scale is known, before output */ - for (i = 0; i < SIZES; i++) - tsize[i] = (int) (troffscale * (double) tsize[i] + 0.5); -@@ -700,7 +700,7 @@ conv(register FILE *fp, - void - savestate() - { -- register int i; -+ int i; - - for (i = 0; i < STYLES; i++) /* line thickness defaults */ - defthick[i] = thick[i]; -@@ -761,8 +761,8 @@ interpret(char *line) - { - char str1[MAXINLINE]; - char str2[MAXINLINE]; -- register char *chr; -- register int i; -+ char *chr; -+ int i; - double par; - - str2[0] = '\0'; -@@ -811,7 +811,7 @@ interpret(char *line) - - if (str2[0] < '0') { - nofont: -- error("no fontname specified in line %1", linenum); -+ error("no font name specified in line %1", linenum); - break; - } - if (str1[1] == 't') -@@ -935,7 +935,7 @@ interpret(char *line) - */ - - int --has_polygon(register ELT *elist) -+has_polygon(ELT *elist) - { - while (!DBNullelt(elist)) { - if (elist->type == POLYGON) --- -2.39.0 -
meta/recipes-extended/groff/files/0001-Include-config.h.patch deleted +0 -212
212 lines not on this page · raw message
meta/recipes-extended/groff/files/0001-Make-manpages-mulitlib-identical.patch +9 -11
@@ -1,27 +1,25 @@ -From e738f9185ba90f2083c846ade3551234bb5a7cbc Mon Sep 17 00:00:00 2001 +From aa1f37f1e0ff0dc0eeb199b52959e0deb275721e Mon Sep 17 00:00:00 2001 From: Jeremy Puhlman <[email protected]> Date: Sat, 7 Mar 2020 00:59:13 +0000 Subject: [PATCH] Make manpages mulitlib identical Upstream-Status: Submitted [by email to [email protected]] Signed-off-by: Jeremy Puhlman <[email protected]> + --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am -index d18c49b..6175fe9 100644 +index f7ab410..7e1f3fb 100644 --- a/Makefile.am +++ b/Makefile.am -@@ -917,7 +917,7 @@ SUFFIXES += .man - -e "s|[@]MDATE[@]|`$(PERL) $(top_srcdir)/mdate.pl $<`|g" \ - -e "s|[@]OLDFONTDIR[@]|`echo $(oldfontdir) | sed -f $(makevarescape)`|g" \ +@@ -891,7 +891,7 @@ SUFFIXES += .man + -e "s|[@]PAGE[@]|\\\\%$(PAGE)|g" \ -e "s|[@]PDFDOCDIR[@]|`echo $(pdfdocdir) | sed -f $(makevarescape)`|g" \ + -e "s|[@]PSPRINT[@]|`echo $(PSPRINT) | sed -f $(makevarescape)`|g" \ - -e "s|[@]SYSTEMMACRODIR[@]|`echo $(systemtmacdir) | sed -f $(makevarescape)`|g" \ + -e "s|[@]SYSTEMMACRODIR[@]|`echo $(systemtmacdir) | sed -e 's,$(libdir),$(prefix)/lib*,' | sed -f $(makevarescape)`|g" \ - -e "s|[@]TMAC_AN_PREFIX[@]|$(tmac_an_prefix)|g" \ - -e "s|[@]TMAC_M_PREFIX[@]|$(tmac_m_prefix)|g" \ - -e "s|[@]TMAC_MDIR[@]|$(tmacdir)/mm|g" \ --- -2.23.0 - + -e "s|[@]TMAC_AN_PREFIX[@]|\\\\%$(tmac_an_prefix)|g" \ + -e "s|[@]TMAC_M_PREFIX[@]|\\\\%$(tmac_m_prefix)|g" \ + -e "s|[@]TMAC_MDIR[@]|`echo $(tmacdir) | sed -f $(makevarescape)`/mm|g" \
meta/recipes-extended/groff/files/0001-replace-perl-w-with-use-warnings.patch deleted +0 -106
106 lines not on this page · raw message
meta/recipes-extended/groff/files/0001-support-musl.patch deleted +0 -41
41 lines not on this page · raw message
meta/recipes-extended/groff/files/groff-not-search-fonts-on-build-host.patch +22 -15
@@ -1,7 +1,7 @@ -From 75761ae7adc88412de4379d1cf5484b055cd5f18 Mon Sep 17 00:00:00 2001 +From eb16276c3e2e34aa2e57f6a0e68554657b90cd28 Mon Sep 17 00:00:00 2001 From: Hongxu Jia <[email protected]> Date: Sat, 11 May 2019 17:06:29 +0800 -Subject: [PATCH 2/2] groff searchs fonts which are provided by ghostscript on +Subject: [PATCH] groff searchs fonts which are provided by ghostscript on build host. It causes non-determinism issue. So not search font dirs on host. Upstream-Status: Inappropriate [cross build specific]
@@ -10,23 +10,30 @@ Signed-off-by: Kai Kang <[email protected]> Rebase to 1.22.4 Signed-off-by: Hongxu Jia <[email protected]> + --- - font/devpdf/Foundry.in | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) + font/devpdf/Foundry.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/font/devpdf/Foundry.in b/font/devpdf/Foundry.in -index 93e9b66..235b23b 100644 +index e5aba65..5441734 100644 --- a/font/devpdf/Foundry.in +++ b/font/devpdf/Foundry.in -@@ -65,7 +65,7 @@ ZD|Y||||Dingbats!d050000l.pfb - #====================================================================== +@@ -20,7 +20,7 @@ - #Foundry|Name|Searchpath --foundry|U|(gs):@urwfontsdir@ :/usr/share/fonts/type1/gsfonts :/opt/local/share/fonts/urw-fonts # the URW fonts delivered with ghostscript (may be different) -+foundry|U|(gs) # the URW fonts delivered with ghostscript (may be different) - #Define Flags for afmtodit + #======================================================================= + #Foundry|Name|Search path +-foundry||@urwfontsdir@:(gs):/usr/share/fonts/type1/gsfonts:/usr/share/fonts/default/Type1:/usr/share/fonts/default/Type1/adobestd35:/usr/share/fonts/type1/urw-base35:/opt/local/share/fonts/urw-fonts:/usr/local/share/fonts/ghostscript ++foundry||(gs) + + # Enable the font description files for grops (generated from Adobe + # foundry font files) to be used with gropdf. afmtodit must not be +@@ -72,7 +72,7 @@ EURO|N||||*../devps/freeeuro.pfa + # URW fonts are typically shipped with Ghostscript, but can be replaced. + + #Foundry|Name|Search path +-foundry|U|@urwfontsdir@:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/default/Type1:/usr/share/fonts/default/Type1/adobestd35:/usr/share/fonts/type1/urw-base35:/opt/local/share/fonts/urw-fonts:/usr/local/share/fonts/ghostscript:(gs) ++foundry|U|(gs) + + # Define flags for afmtodit. - r=-i 0 -m --- -2.7.4 -
meta/recipes-extended/groff/groff_1.23.0.bb renamed from meta/recipes-extended/groff/groff_1.22.4.bb +11 -16
@@ -8,29 +8,21 @@ LICENSE = "GPL-3.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" SRC_URI = "${GNU_MIRROR}/groff/groff-${PV}.tar.gz \ - file://0001-replace-perl-w-with-use-warnings.patch \ - file://groff-not-search-fonts-on-build-host.patch \ - file://0001-support-musl.patch \ - file://0001-Include-config.h.patch \ - file://0001-Make-manpages-mulitlib-identical.patch \ - file://0001-Fix-code-style-issues.patch \ -" + file://groff-not-search-fonts-on-build-host.patch \ + file://0001-Make-manpages-mulitlib-identical.patch \ + " -SRC_URI[md5sum] = "08fb04335e2f5e73f23ea4c3adbf0c5f" -SRC_URI[sha256sum] = "e78e7b4cb7dec310849004fa88847c44701e8d133b5d4c13057d876c1bad0293" +SRC_URI[sha256sum] = "6b9757f592b7518b4902eb6af7e54570bdccba37a871fddb2d30ae3863511c13" -# Remove at the next upgrade -PR = "r1" - -DEPENDS = "bison-native" +DEPENDS = "bison-native groff-native" RDEPENDS:${PN} += "perl sed" inherit autotools-brokensep texinfo multilib_script pkgconfig -MULTILIB_SCRIPTS = "${PN}:${bindir}/gpinyin ${PN}:${bindir}/groffer ${PN}:${bindir}/grog" +MULTILIB_SCRIPTS = "${PN}:${bindir}/gpinyin ${PN}:${bindir}/grog" -EXTRA_OECONF = "--without-x --without-doc" -PARALLEL_MAKE = "" +EXTRA_OECONF = "--without-x --with-urw-fonts-dir=/completely/bogus/dir/" +EXTRA_OEMAKE:class-target = "GROFFBIN=groff GROFF_BIN_PATH=${STAGING_BINDIR_NATIVE}" CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl' ac_cv_path_BASH_PROG='no' PAGE=A4"
@@ -67,6 +59,9 @@ do_install:append() { # not ship /usr/bin/grap2graph and its releated man files rm -rf ${D}${bindir}/grap2graph rm -rf ${D}${mandir}/man1/grap2graph* + + # strip hosttool path out of generated files + sed -i -e 's:${HOSTTOOLS_DIR}/::g' ${D}${docdir}/${BP}/examples/hdtbl/*.roff } do_install:append:class-native() {
Signature · 1 line
2.30.2
PATCH 8/17 libglu: update 9.0.2 -> 9.0.3
In reply to Alexander KanavinDrop backport.
Set gl_provider explicitly, as upstream changed the default to glvnd.
---
...1-Remove-deprecated-register-in-C-17.patch | 32 -------------------
.../mesa/{libglu_9.0.2.bb => libglu_9.0.3.bb} | 9 +++---
2 files changed, 5 insertions(+), 36 deletions(-)
delete mode 100644 meta/recipes-graphics/mesa/libglu/0001-Remove-deprecated-register-in-C-17.patch
rename meta/recipes-graphics/mesa/{libglu_9.0.2.bb => libglu_9.0.3.bb} (79%)meta/recipes-graphics/mesa/libglu/0001-Remove-deprecated-register-in-C-17.patch deleted +0 -32
@@ -1,32 +0,0 @@ -From 1910b3a83a7e5aa1a31c4325829c94134fafce76 Mon Sep 17 00:00:00 2001 -From: Khem Raj <[email protected]> -Date: Fri, 13 Jan 2023 20:58:07 -0800 -Subject: [PATCH] Remove deprecated register in C++17 - -Fixes errors like - -src/libnurbs/internals/varray.cc:76:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] - register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]); - ^~~~~~~~~ - -Upstream-Status: Submitted [https://gitlab.freedesktop.org/mesa/glu/-/merge_requests/10] -Signed-off-by: Khem Raj <[email protected]> ---- - src/libnurbs/internals/varray.cc | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/libnurbs/internals/varray.cc b/src/libnurbs/internals/varray.cc -index 1cb2354..41b3b18 100644 ---- a/src/libnurbs/internals/varray.cc -+++ b/src/libnurbs/internals/varray.cc -@@ -73,8 +73,8 @@ Varray::~Varray( void ) - inline void - Varray::update( Arc_ptr arc, long dir[2], REAL val ) - { -- register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]); -- register long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]); -+ long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]); -+ long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]); - - if( dir[0] != ds || dir[1] != dt ) { - dir[0] = ds;
meta/recipes-graphics/mesa/libglu_9.0.3.bb renamed from meta/recipes-graphics/mesa/libglu_9.0.2.bb +5 -4
@@ -11,17 +11,18 @@ LIC_FILES_CHKSUM = "file://include/GL/glu.h;endline=29;md5=6b79c570f644363b35645 # Epoch as this used to be part of mesa PE = "2" -SRC_URI = "https://mesa.freedesktop.org/archive/glu/glu-${PV}.tar.gz \ - file://0001-Remove-deprecated-register-in-C-17.patch \ +SRC_URI = "https://mesa.freedesktop.org/archive/glu/glu-${PV}.tar.xz \ " -SRC_URI[sha256sum] = "24effdfb952453cc00e275e1c82ca9787506aba0282145fff054498e60e19a65" +SRC_URI[sha256sum] = "bd43fe12f374b1192eb15fe20e45ff456b9bc26ab57f0eee919f96ca0f8a330f" S = "${WORKDIR}/glu-${PV}" DEPENDS = "virtual/libgl" -inherit autotools pkgconfig features_check +inherit meson pkgconfig features_check + +EXTRA_OEMESON = "-Dgl_provider=gl" # Requires libGL.so which is provided by mesa when x11 in DISTRO_FEATURES REQUIRED_DISTRO_FEATURES = "x11 opengl"
Signature · 1 line
2.30.2
PATCH 9/17 libpthread-stubs: update 0.4 -> 0.5
In reply to Alexander Kanavin---
.../{libpthread-stubs_0.4.bb => libpthread-stubs_0.5.bb} | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
rename meta/recipes-graphics/xorg-lib/{libpthread-stubs_0.4.bb => libpthread-stubs_0.5.bb} (73%)meta/recipes-graphics/xorg-lib/libpthread-stubs_0.5.bb renamed from meta/recipes-graphics/xorg-lib/libpthread-stubs_0.4.bb +2 -3
@@ -7,9 +7,8 @@ SECTION = "x11/libs" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=6edc1fea03d959f0c2d743fe5ca746ad" -SRC_URI = "http://xcb.freedesktop.org/dist/${BP}.tar.bz2" -SRC_URI[md5sum] = "48c1544854a94db0e51499cc3afd797f" -SRC_URI[sha256sum] = "e4d05911a3165d3b18321cc067fdd2f023f06436e391c6a28dff618a78d2e733" +SRC_URI = "http://xcb.freedesktop.org/dist/${BP}.tar.xz" +SRC_URI[sha256sum] = "59da566decceba7c2a7970a4a03b48d9905f1262ff94410a649224e33d2442bc" inherit autotools
Signature · 1 line
2.30.2
PATCH 10/17 gpgme: upgrade 1.20.0 -> 1.22.0
In reply to Alexander KanavinDrop patch and --disable-lang-python-test option (upstream fixed the issue).
---
.../0007-python-Add-variables-to-tests.patch | 52 -------------------
.../{gpgme_1.20.0.bb => gpgme_1.22.0.bb} | 4 +-
2 files changed, 1 insertion(+), 55 deletions(-)
delete mode 100644 meta/recipes-support/gpgme/gpgme/0007-python-Add-variables-to-tests.patch
rename meta/recipes-support/gpgme/{gpgme_1.20.0.bb => gpgme_1.22.0.bb} (94%)meta/recipes-support/gpgme/gpgme/0007-python-Add-variables-to-tests.patch deleted +0 -52
@@ -1,52 +0,0 @@ -From 093c88817397425ee4c2333c469467229a46c9e1 Mon Sep 17 00:00:00 2001 -From: Yuan Chao <[email protected]> -Date: Mon, 5 Aug 2019 01:00:58 +0900 -Subject: [PATCH 7/7] python: Add variables to tests - -* configure.ac, lang/python/Makefile.am: - New variable to `lang/python', set to `lang/python' if RUN_LANG_PYTHON_TESTS - -Upstream-Status: Submitted [[email protected]] - -Signed-off-by: Hongxu Jia <[email protected]> - -Signed-off-by: Yuan Chao <[email protected]> ---- - configure.ac | 5 +++++ - lang/python/Makefile.am | 3 +++ - 2 files changed, 8 insertions(+) - -diff --git a/configure.ac b/configure.ac -index bd85886..b5ae42e 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -533,6 +533,11 @@ AC_ARG_ENABLE(g13-test, - run_g13_test=$enableval) - AM_CONDITIONAL(RUN_G13_TESTS, test "$run_g13_test" = "yes") - -+run_lang_python_test="yes" -+AC_ARG_ENABLE(lang-python-test, -+ AC_HELP_STRING([--disable-lang-python-test], [disable Python regression test]), -+ run_lang_python_test=$enableval) -+AM_CONDITIONAL(RUN_LANG_PYTHON_TESTS, test "$run_lang_python_test" = "yes") - - # Checks for header files. - AC_CHECK_HEADERS_ONCE([locale.h sys/select.h sys/uio.h argp.h stdint.h -diff --git a/lang/python/Makefile.am b/lang/python/Makefile.am -index 551deee..0fd555e 100644 ---- a/lang/python/Makefile.am -+++ b/lang/python/Makefile.am -@@ -23,7 +23,10 @@ EXTRA_DIST = \ - gpgme.i \ - helpers.c helpers.h private.h - -+SUBDIRS = . examples doc src -+if RUN_LANG_PYTHON_TESTS - SUBDIRS = . tests examples doc src -+endif - - .PHONY: prepare - prepare: copystamp --- -2.7.4 -
meta/recipes-support/gpgme/gpgme_1.22.0.bb renamed from meta/recipes-support/gpgme/gpgme_1.20.0.bb +1 -3
@@ -18,14 +18,13 @@ SRC_URI = "${GNUPG_MIRROR}/gpgme/${BP}.tar.bz2 \ file://0004-python-import.patch \ file://0005-gpgme-config-skip-all-lib-or-usr-lib-directories-in-.patch \ file://0006-fix-build-path-issue.patch \ - file://0007-python-Add-variables-to-tests.patch \ file://0008-do-not-auto-check-var-PYTHON.patch \ file://0001-use-closefrom-on-linux-and-glibc-2.34.patch \ file://0001-posix-io.c-Use-off_t-instead-of-off64_t.patch \ file://0001-autogen.sh-remove-unknown-in-version.patch \ " -SRC_URI[sha256sum] = "25a5785a5da356689001440926b94e967d02e13c49eb7743e35ef0cf22e42750" +SRC_URI[sha256sum] = "9551e37081ad3bde81018a0d24f245c3f8206990549598fb31a97a68380a7b71" PYTHON_DEPS = "${@bb.utils.contains('LANGUAGES', 'python', 'swig-native', '', d)}"
@@ -53,7 +52,6 @@ EXTRA_OECONF += '--enable-languages="${LANGUAGES}" \ --disable-gpg-test \ --disable-gpgsm-test \ --disable-g13-test \ - --disable-lang-python-test \ ' inherit autotools texinfo binconfig-disabled pkgconfig ${PYTHON_INHERIT} python3native multilib_header
Signature · 1 line
2.30.2
PATCH 11/17 libgudev: upgrade 237 -> 238
In reply to Alexander KanavinAdd patches to eudev to ensure compatibility with this version.
---
.../udev/eudev/0001-Export-dummies-for.patch | 82 +++++++++++++++++++
.../eudev/0002-Bump-udev-version-to-251.patch | 23 ++++++
meta/recipes-core/udev/eudev_3.2.12.bb | 4 +-
.../{libgudev_237.bb => libgudev_238.bb} | 2 +-
4 files changed, 109 insertions(+), 2 deletions(-)
create mode 100644 meta/recipes-core/udev/eudev/0001-Export-dummies-for.patch
create mode 100644 meta/recipes-core/udev/eudev/0002-Bump-udev-version-to-251.patch
rename meta/recipes-gnome/libgudev/{libgudev_237.bb => libgudev_238.bb} (91%)meta/recipes-core/udev/eudev/0001-Export-dummies-for.patch new file +82 -0
@@ -0,0 +1,82 @@ +From 45634cc0f09ea354be7efce2ae3d3fa8ffc181ec Mon Sep 17 00:00:00 2001 +From: Boian Bonev <[email protected]> +Date: Fri, 11 Aug 2023 23:14:02 +0000 +Subject: [PATCH] Export dummies for + + - udev_device_has_current_tag + - udev_device_get_current_tags_list_entry + +since the current eudev device database does not support the concept of +current tags + +Upstream-Status: Submitted [https://github.com/eudev-project/eudev/pull/253] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + src/libudev/libudev-device.c | 11 +++++++++++ + src/libudev/libudev.h | 2 ++ + src/libudev/libudev.sym | 6 ++++++ + 3 files changed, 19 insertions(+) + +diff --git a/src/libudev/libudev-device.c b/src/libudev/libudev-device.c +index ac67ce8..7d7a662 100644 +--- a/src/libudev/libudev-device.c ++++ b/src/libudev/libudev-device.c +@@ -1819,6 +1819,12 @@ _public_ struct udev_list_entry *udev_device_get_tags_list_entry(struct udev_dev + return udev_list_get_entry(&udev_device->tags_list); + } + ++_public_ struct udev_list_entry *udev_device_get_current_tags_list_entry(struct udev_device *udev_device) ++{ ++ // TODO: eudev database does not support current tags ++ return udev_device_get_tags_list_entry(udev_device); ++} ++ + /** + * udev_device_has_tag: + * @udev_device: udev device +@@ -1842,6 +1848,11 @@ _public_ int udev_device_has_tag(struct udev_device *udev_device, const char *ta + return false; + } + ++_public_ int udev_device_has_current_tag(struct udev_device *udev_device, const char *tag) { ++ // TODO: eudev database does not support current tags ++ return udev_device_has_tag(udev_device, tag); ++} ++ + #define ENVP_SIZE 128 + #define MONITOR_BUF_SIZE 4096 + static int update_envp_monitor_buf(struct udev_device *udev_device) +diff --git a/src/libudev/libudev.h b/src/libudev/libudev.h +index 8491d2b..0202964 100644 +--- a/src/libudev/libudev.h ++++ b/src/libudev/libudev.h +@@ -100,6 +100,7 @@ int udev_device_get_is_initialized(struct udev_device *udev_device); + struct udev_list_entry *udev_device_get_devlinks_list_entry(struct udev_device *udev_device); + struct udev_list_entry *udev_device_get_properties_list_entry(struct udev_device *udev_device); + struct udev_list_entry *udev_device_get_tags_list_entry(struct udev_device *udev_device); ++struct udev_list_entry *udev_device_get_current_tags_list_entry(struct udev_device *udev_device); + struct udev_list_entry *udev_device_get_sysattr_list_entry(struct udev_device *udev_device); + const char *udev_device_get_property_value(struct udev_device *udev_device, const char *key); + const char *udev_device_get_driver(struct udev_device *udev_device); +@@ -110,6 +111,7 @@ unsigned long long int udev_device_get_usec_since_initialized(struct udev_device + const char *udev_device_get_sysattr_value(struct udev_device *udev_device, const char *sysattr); + int udev_device_set_sysattr_value(struct udev_device *udev_device, const char *sysattr, char *value); + int udev_device_has_tag(struct udev_device *udev_device, const char *tag); ++int udev_device_has_current_tag(struct udev_device *udev_device, const char *tag); + + /* + * udev_monitor +diff --git a/src/libudev/libudev.sym b/src/libudev/libudev.sym +index 76726fc..d56c2ae 100644 +--- a/src/libudev/libudev.sym ++++ b/src/libudev/libudev.sym +@@ -118,3 +118,9 @@ global: + udev_queue_flush; + udev_queue_get_fd; + } LIBUDEV_199; ++ ++LIBUDEV_247 { ++global: ++ udev_device_has_current_tag; ++ udev_device_get_current_tags_list_entry; ++} LIBUDEV_215;
meta/recipes-core/udev/eudev/0002-Bump-udev-version-to-251.patch new file +23 -0
@@ -0,0 +1,23 @@ +From 7a66d4fe8aac8c8697c3cecb0c189e22524fbc98 Mon Sep 17 00:00:00 2001 +From: Boian Bonev <[email protected]> +Date: Fri, 11 Aug 2023 22:08:27 +0000 +Subject: [PATCH] Bump udev version to 251 + +Upstream-Status: Submitted [https://github.com/eudev-project/eudev/pull/253] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 3e31b0e..069fdfb 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1,6 +1,6 @@ + AC_PREREQ([2.68]) + AC_INIT([eudev],[3.2.12],[https://github.com/gentoo/eudev/issues]) +-AC_SUBST(UDEV_VERSION, 243) ++AC_SUBST(UDEV_VERSION, 251) + AC_CONFIG_SRCDIR([src/udev/udevd.c]) + + AC_USE_SYSTEM_EXTENSIONS
meta/recipes-core/udev/eudev_3.2.12.bb +3 -1
@@ -12,7 +12,9 @@ PROVIDES = "udev" SRC_URI = "${GITHUB_BASE_URI}/download/v${PV}/${BP}.tar.gz \ file://init \ file://local.rules \ -" + file://0001-Export-dummies-for.patch \ + file://0002-Bump-udev-version-to-251.patch \ + " SRC_URI[sha256sum] = "ccdd64ec3c381d3c3ed0e99d2e70d1f62988c7763de89ca7bdffafa5eacb9ad8"
meta/recipes-gnome/libgudev/libgudev_238.bb renamed from meta/recipes-gnome/libgudev/libgudev_237.bb +1 -1
@@ -5,7 +5,7 @@ other programming languages, such as Javascript, because of GObject \ introspection support." HOMEPAGE = "https://wiki.gnome.org/Projects/libgudev" BUGTRACKER = "https://gitlab.gnome.org/GNOME/libgudev/issues" -SRC_URI[archive.sha256sum] = "0d06b21170d20c93e4f0534dbb9b0a8b4f1119ffb00b4031aaeb5b9148b686aa" +SRC_URI[archive.sha256sum] = "61266ab1afc9d73dbc60a8b2af73e99d2fdff47d99544d085760e4fa667b5dd1" DEPENDS = "glib-2.0 glib-2.0-native udev"
Signature · 1 line
2.30.2
PATCH 12/17 gnupg: upgrade 2.4.2 -> 2.4.3
In reply to Alexander Kanavin---
...-a-custom-value-for-the-location-of-.patch | 4 +--
.../gnupg/gnupg/fix-ldap.patch | 34 +++++++++++++++++++
.../gnupg/gnupg/relocate.patch | 2 +-
.../gnupg/{gnupg_2.4.2.bb => gnupg_2.4.3.bb} | 3 +-
4 files changed, 39 insertions(+), 4 deletions(-)
create mode 100644 meta/recipes-support/gnupg/gnupg/fix-ldap.patch
rename meta/recipes-support/gnupg/{gnupg_2.4.2.bb => gnupg_2.4.3.bb} (96%)meta/recipes-support/gnupg/gnupg/0001-configure.ac-use-a-custom-value-for-the-location-of-.patch +2 -2
@@ -1,4 +1,4 @@ -From 8b9e3d286e87bc978ec6bb9cfd790d8d253b79c3 Mon Sep 17 00:00:00 2001 +From acdb7e1d2844cd4088f099617e25352b3dc5b075 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin <[email protected]> Date: Mon, 22 Jan 2018 18:00:21 +0200 Subject: [PATCH] configure.ac: use a custom value for the location of
@@ -14,7 +14,7 @@ Signed-off-by: Alexander Kanavin <[email protected]> 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac -index a547401..60bc2c5 100644 +index e68b779..eec9f89 100644 --- a/configure.ac +++ b/configure.ac @@ -1922,7 +1922,7 @@ AC_DEFINE_UNQUOTED(GPGCONF_DISP_NAME, "GPGConf",
meta/recipes-support/gnupg/gnupg/fix-ldap.patch new file +34 -0
@@ -0,0 +1,34 @@ +From dc13361524c1477b2106c7385f2059f9ea111b84 Mon Sep 17 00:00:00 2001 +From: NIIBE Yutaka <[email protected]> +Date: Wed, 5 Jul 2023 09:29:54 +0900 +Subject: [PATCH] dirmngr: Enable the call of ks_ldap_help_variables when + USE_LDAP. + +* dirmngr/server.c [USE_LDAP] (cmd_ad_query): Conditionalize. + +-- + +Upstream-Status: Backport +Signed-off-by: NIIBE Yutaka <[email protected]> +Signed-off-by: Alexander Kanavin <[email protected]> +--- + dirmngr/server.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/dirmngr/server.c b/dirmngr/server.c +index 51a149cb2..ee61f63d6 100644 +--- a/dirmngr/server.c ++++ b/dirmngr/server.c +@@ -2776,7 +2776,9 @@ cmd_ad_query (assuan_context_t ctx, char *line) + + if (opt_help) + { ++#if USE_LDAP + ks_ldap_help_variables (ctrl); ++#endif + err = 0; + goto leave; + } +-- +2.11.0 +
meta/recipes-support/gnupg/gnupg/relocate.patch +1 -1
@@ -1,4 +1,4 @@ -From c4ddea8e6070d1df51058aac08088e27c37e7e73 Mon Sep 17 00:00:00 2001 +From 0e4b325c199354ce54cc4687532cced1440fd496 Mon Sep 17 00:00:00 2001 From: Ross Burton <[email protected]> Date: Wed, 19 Sep 2018 14:44:40 +0100 Subject: [PATCH] Allow the environment to override where gnupg looks for its
meta/recipes-support/gnupg/gnupg_2.4.3.bb renamed from meta/recipes-support/gnupg/gnupg_2.4.2.bb +2 -1
@@ -18,12 +18,13 @@ SRC_URI = "${GNUPG_MIRROR}/${BPN}/${BPN}-${PV}.tar.bz2 \ file://0002-use-pkgconfig-instead-of-npth-config.patch \ file://0004-autogen.sh-fix-find-version-for-beta-checking.patch \ file://0001-Woverride-init-is-not-needed-with-gcc-9.patch \ + file://fix-ldap.patch \ " SRC_URI:append:class-native = " file://0001-configure.ac-use-a-custom-value-for-the-location-of-.patch \ file://relocate.patch" SRC_URI:append:class-nativesdk = " file://relocate.patch" -SRC_URI[sha256sum] = "97eb47df8ae5a3ff744f868005a090da5ab45cb48ee9836dbf5ee739a4e5cf49" +SRC_URI[sha256sum] = "a271ae6d732f6f4d80c258ad9ee88dd9c94c8fdc33c3e45328c4d7c126bd219d" EXTRA_OECONF = "--disable-ldap \ --disable-ccid-driver \
Signature · 1 line
2.30.2
PATCH 13/17 gnutls: update 3.8.0 -> 3.8.1
In reply to Alexander Kanavin---
meta/recipes-support/gnutls/gnutls/arm_eabi.patch | 12 +++++++-----
.../gnutls/{gnutls_3.8.0.bb => gnutls_3.8.1.bb} | 2 +-
2 files changed, 8 insertions(+), 6 deletions(-)
rename meta/recipes-support/gnutls/{gnutls_3.8.0.bb => gnutls_3.8.1.bb} (97%)meta/recipes-support/gnutls/gnutls/arm_eabi.patch +7 -5
@@ -1,4 +1,4 @@ -From 911213d9f72ddce468322d22d223127b93964409 Mon Sep 17 00:00:00 2001 +From 5810d97281bb30edb786de9946e5c13186eff6a2 Mon Sep 17 00:00:00 2001 From: Joe Slater <[email protected]> Date: Wed, 25 Jan 2017 13:52:59 -0800 Subject: [PATCH] gnutls: account for ARM_EABI
@@ -9,16 +9,15 @@ reference to them. Upstream-Status: Pending Signed-off-by: Joe Slater <[email protected]> - --- tests/seccomp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/seccomp.c b/tests/seccomp.c -index a3148fe..443bc5f 100644 +index 86442a5..03a5aa8 100644 --- a/tests/seccomp.c +++ b/tests/seccomp.c -@@ -52,7 +52,9 @@ int disable_system_calls(void) +@@ -55,7 +55,9 @@ int disable_system_calls(void) ADD_SYSCALL(nanosleep, 0); ADD_SYSCALL(clock_nanosleep, 0);
@@ -27,4 +26,7 @@ index a3148fe..443bc5f 100644 +#endif ADD_SYSCALL(getpid, 0); ADD_SYSCALL(gettimeofday, 0); - # if defined(HAVE_CLOCK_GETTIME) + #if defined(HAVE_CLOCK_GETTIME) +-- +2.30.2 +
meta/recipes-support/gnutls/gnutls_3.8.1.bb renamed from meta/recipes-support/gnutls/gnutls_3.8.0.bb +1 -1
@@ -25,7 +25,7 @@ SRC_URI = "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar file://Add-ptest-support.patch \ " -SRC_URI[sha256sum] = "0ea0d11a1660a1e63f960f157b197abe6d0c8cb3255be24e1fb3815930b9bdc5" +SRC_URI[sha256sum] = "ba8b9e15ae20aba88f44661978f5b5863494316fe7e722ede9d069fe6294829c" inherit autotools texinfo pkgconfig gettext lib_package gtk-doc ptest
Signature · 1 line
2.30.2
Re: [OE-core] [PATCH 13/17] gnutls: update 3.8.0 -> 3.8.1
This fails to build openconnect, it needs a backport
Quoted 74 lines · Alexander Kanavin
Signed-off-by Alexander Kanavin <[email protected]>--- meta/recipes-support/gnutls/gnutls/arm_eabi.patch | 12 +++++++----- .../gnutls/{gnutls_3.8.0.bb => gnutls_3.8.1.bb} | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) rename meta/recipes-support/gnutls/{gnutls_3.8.0.bb => gnutls_3.8.1.bb} (97%)meta/recipes-support/gnutls/gnutls/arm_eabi.patch +7
-5@@ -1,4 +1,4 @@ -From 911213d9f72ddce468322d22d223127b93964409 Mon Sep 17 00:00:00 2001 +From 5810d97281bb30edb786de9946e5c13186eff6a2 Mon Sep 17 00:00:00 2001 From: Joe Slater <[email protected]> Date: Wed, 25 Jan 2017 13:52:59 -0800 Subject: [PATCH] gnutls: account for ARM_EABI@@ -9,16 +9,15 @@ reference to them. Upstream-Status: Pending Signed-off-by: Joe Slater <[email protected]> - --- tests/seccomp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/seccomp.c b/tests/seccomp.c -index a3148fe..443bc5f 100644 +index 86442a5..03a5aa8 100644 --- a/tests/seccomp.c +++ b/tests/seccomp.c -@@ -52,7 +52,9 @@ int disable_system_calls(void) +@@ -55,7 +55,9 @@ int disable_system_calls(void) ADD_SYSCALL(nanosleep, 0); ADD_SYSCALL(clock_nanosleep, 0);@@ -27,4 +26,7 @@ index a3148fe..443bc5f 100644 +#endif ADD_SYSCALL(getpid, 0); ADD_SYSCALL(gettimeofday, 0); - # if defined(HAVE_CLOCK_GETTIME) + #if defined(HAVE_CLOCK_GETTIME) +-- +2.30.2 +meta/recipes-support/gnutls/gnutls_3.8.1.bb renamed from meta/recipes-support/gnutls/gnutls_3.8.0.bb +1
-2@@ -25,7 +25,7 @@ SRC_URI = "https://www.gnupg.org/ftp/gcrypt/gnutls/v${SHRT_VER}/gnutls-${PV}.tar file://Add-ptest-support.patch \ " -SRC_URI[sha256sum] = "0ea0d11a1660a1e63f960f157b197abe6d0c8cb3255be24e1fb3815930b9bdc5" +SRC_URI[sha256sum] = "ba8b9e15ae20aba88f44661978f5b5863494316fe7e722ede9d069fe6294829c" inherit autotools texinfo pkgconfig gettext lib_package gtk-doc ptest --2.30.2
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#187335): https://lists.openembedded.org/g/openembedded-core/message/187335
Mute This Topic: https://lists.openembedded.org/mt/101197354/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 14/17 sstate.bbclass: setscene_depvalid(): do not exclude shadow-native from task dependency resolution
In reply to Alexander KanavinThis results in executables from shadow-native, such as useradd, falling through to host libraries instead of using native ones that they were linked with, because the native libraries would not be installed because of this dependency exclusion.
Until now that could be coincidentally fulfilled with host libattr (which is present on all hosts), but latest useradd also wants libbsd and libmd, and those are not typically installed.
The original reason to add this exclusion was:
https://git.yoctoproject.org/poky/commit/?id=0d2a301bca4eb9d43243f1a03c1cd1ab3f27f30a
While I can't be sure the reason no longer applies, sstate and sysroot handling has changed massively since early 2013, testing on a-full revealed no issues, and avoiding incorrect fall-through to host libraries is better than pulling unneeded dependencies.
--- meta/classes-global/sstate.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-global/sstate.bbclass +1 -1
@@ -1137,7 +1137,7 @@ def setscene_depvalid(task, taskdependees, notneeded, d, log=None): # This is due to the [depends] in useradd.bbclass complicating matters # The logic *is* reversed here due to the way hard setscene dependencies are injected - if (taskdependees[task][1] == 'do_package' or taskdependees[task][1] == 'do_populate_sysroot') and taskdependees[dep][0].endswith(('shadow-native', 'shadow-sysroot', 'base-passwd', 'pseudo-native')) and taskdependees[dep][1] == 'do_populate_sysroot': + if (taskdependees[task][1] == 'do_package' or taskdependees[task][1] == 'do_populate_sysroot') and taskdependees[dep][0].endswith(('shadow-sysroot', 'base-passwd', 'pseudo-native')) and taskdependees[dep][1] == 'do_populate_sysroot': continue # Consider sysroot depending on sysroot tasks
Signature · 1 line
2.30.2
PATCH 15/17 useradd.bbclass: list all needed items for package_setscene task
In reply to Alexander KanavinLatest shadow-native links with additional libraries; I was unable to find a way to resolve those in setscene context where tasks do not contain such dependencies.
--- meta/classes/useradd.bbclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
meta/classes/useradd.bbclass +7 -1
@@ -179,7 +179,13 @@ SSTATEPREINSTFUNCS:append:class-target = " useradd_sysroot_sstate" do_package_setscene[depends] += "${USERADDSETSCENEDEPS}" do_populate_sysroot_setscene[depends] += "${USERADDSETSCENEDEPS}" -USERADDSETSCENEDEPS:class-target = "${MLPREFIX}base-passwd:do_populate_sysroot_setscene pseudo-native:do_populate_sysroot_setscene shadow-native:do_populate_sysroot_setscene ${MLPREFIX}shadow-sysroot:do_populate_sysroot_setscene" +USERADDSETSCENEDEPS:class-target = "${MLPREFIX}base-passwd:do_populate_sysroot_setscene \ + pseudo-native:do_populate_sysroot_setscene \ + shadow-native:do_populate_sysroot_setscene \ + attr-native:do_populate_sysroot_setscene \ + libbsd-native:do_populate_sysroot_setscene \ + libmd-native:do_populate_sysroot_setscene \ + ${MLPREFIX}shadow-sysroot:do_populate_sysroot_setscene" USERADDSETSCENEDEPS = "" # Recipe parse-time sanity checks
Signature · 1 line
2.30.2
PATCH 16/17 build-sysroots.bb: run tasks one after the other
In reply to Alexander KanavinTarget task is using executables populated by the native task and as they run in parallel, races can occur.
This was triggered by shadow recipe update which added depedendent libraries, and where half-populated native sysroot (dependent libraries missing) was triggering useradd failures.
Presence or absence of useradd itself is a soft failure, and so was previously unnoticed.
--- meta/recipes-core/meta/build-sysroots.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/meta/build-sysroots.bb +1 -1
@@ -42,6 +42,6 @@ python do_build_target_sysroot () { } do_build_target_sysroot[cleandirs] = "${STANDALONE_SYSROOT}" do_build_target_sysroot[nostamp] = "1" -addtask do_build_target_sysroot before do_build +addtask do_build_target_sysroot before do_build after do_build_native_sysroot do_clean[cleandirs] += "${STANDALONE_SYSROOT} ${STANDALONE_SYSROOT_NATIVE}"
Signature · 1 line
2.30.2
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 19 lines · Alexander Kanavin
Target task is using executables populated by the native task and as they run in parallel, races can occur.
This was triggered by shadow recipe update which added depedendent libraries, and where half-populated native sysroot (dependent libraries missing) was triggering useradd failures.
Presence or absence of useradd itself is a soft failure, and so was previously unnoticed.
Signed-off-by Alexander Kanavin <[email protected]>--- meta/recipes-core/meta/build-sysroots.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta/recipes-core/meta/build-sysroots.bb +0
-0
meta/recipes-core/meta/build-sysroots.bb python do_build_target_sysroot () { · line 47
Quoted 7 lines
meta/recipes-core/meta/build-sysroots.bb +1
-1@@ -42,6 +42,6 @@ python do_build_target_sysroot () { } do_build_target_sysroot[cleandirs] = "${STANDALONE_SYSROOT}" do_build_target_sysroot[nostamp] = "1" -addtask do_build_target_sysroot before do_build +addtask do_build_target_sysroot before do_build after do_build_native_sysroot do_clean[cleandirs] += "${STANDALONE_SYSROOT} ${STANDALONE_SYSROOT_NATIVE}"
This doesn't just force ordering but means target will always now trigger the native sysroot as a dependency. We don't want to do that...
Cheers,
Richard
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 4 lines · Richard Purdie
Quoted 1 line
do_clean[cleandirs] += "${STANDALONE_SYSROOT} ${STANDALONE_SYSROOT_NATIVE}"
This doesn't just force ordering but means target will always now trigger the native sysroot as a dependency. We don't want to do that...
But I think we do. Target is using executables from native sysroot such as user management utilities from shadow-native, and they won't be otherwise present there.
Alex
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 11 lines · Alexander Kanavin
Quoted 4 lines · Richard Purdie
Quoted 1 line
do_clean[cleandirs] += "${STANDALONE_SYSROOT} ${STANDALONE_SYSROOT_NATIVE}"
This doesn't just force ordering but means target will always now trigger the native sysroot as a dependency. We don't want to do that...
But I think we do. Target is using executables from native sysroot such as user management utilities from shadow-native, and they won't be otherwise present there.
Firstly, that recipe was a bit of a hack. In bygone times, we had a shared sysroot and this was effectively creating it for the places we hadn't converted to use recipe specific sysroots. There should only be a small number of places it is used where we haven't found a better way.
When you use it, the calling code first has to ensure the things it wants in the sysroots have been built. The caller is therefore expected to build the right set of dependencies.
Putting ordering constraints into the recipe is going to make people think it all happens by magic. It doesn't and the caller has to be careful.
I'm reluctant to add any dependencies when it should be clear the caller is entirely responsible for this.
Cheers,
Richard
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 10 lines · Richard Purdie
Firstly, that recipe was a bit of a hack. In bygone times, we had a shared sysroot and this was effectively creating it for the places we hadn't converted to use recipe specific sysroots. There should only be a small number of places it is used where we haven't found a better way.
When you use it, the calling code first has to ensure the things it wants in the sysroots have been built. The caller is therefore expected to build the right set of dependencies.
Quoted 6 lines
Putting ordering constraints into the recipe is going to make people think it all happens by magic. It doesn't and the caller has to be careful.
I'm reluctant to add any dependencies when it should be clear the caller is entirely responsible for this.
This commit was prompted by seeing these intermittent races with the upgraded shadow:
https://autobuilder.yoctoproject.org/typhoon/#/builders/146/builds/468/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/147/builds/467/steps/12/logs/stdio
What happens here is:
- target sysroot population relies on being able to run useradd without errors. It will also skip the useradd execution if useradd is not present.
- useradd comes from the native sysroot
- native sysroot is being populated at the same time as target sysroot is because the build-sysroots recipe doesn't constrain that
- this can result in races where useradd executable is already there, but the libraries it needs (libbsd, libattr, libmd) are not
How would the caller ensure this doesn't happen? I think it's reasonable to assume 'bitbake build-sysroots' should complete without intermittent failures.
Alex
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 35 lines · Alexander Kanavin
Quoted 10 lines · Richard Purdie
Firstly, that recipe was a bit of a hack. In bygone times, we had a shared sysroot and this was effectively creating it for the places we hadn't converted to use recipe specific sysroots. There should only be a small number of places it is used where we haven't found a better way.
When you use it, the calling code first has to ensure the things it wants in the sysroots have been built. The caller is therefore expected to build the right set of dependencies.
Quoted 6 lines
Putting ordering constraints into the recipe is going to make people think it all happens by magic. It doesn't and the caller has to be careful.
I'm reluctant to add any dependencies when it should be clear the caller is entirely responsible for this.
This commit was prompted by seeing these intermittent races with the upgraded shadow:
https://autobuilder.yoctoproject.org/typhoon/#/builders/146/builds/468/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/147/builds/467/steps/12/logs/stdioWhat happens here is:
- target sysroot population relies on being able to run useradd without errors. It will also skip the useradd execution if useradd is not present.
- useradd comes from the native sysroot
- native sysroot is being populated at the same time as target sysroot is because the build-sysroots recipe doesn't constrain that
- this can result in races where useradd executable is already there, but the libraries it needs (libbsd, libattr, libmd) are not
Quoted 3 lines
How would the caller ensure this doesn't happen? I think it's reasonable to assume 'bitbake build-sysroots' should complete without intermittent failures.
That test/calls were fairly recently added:
That test should probably call:
bitbake("build-sysroots -c build_native_sysroot")bitbake("build-sysroots -c build_target_sysroot")
om the setup case and then just call the target piece again in the specific test.
We could drop the "before do_build" in the build-sysroots recipe.
Note that the tasks are nostamp so they will always rerun. It does make sense to have a way to regenerate the target sysroot only but if you change it as you suggest, that becomes impossible.
Cheers,
Richard
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 9 lines · Richard Purdie
That test/calls were fairly recently added:
That test should probably call:
bitbake("build-sysroots -c build_native_sysroot")bitbake("build-sysroots -c build_target_sysroot")
Quoted 8 lines
om the setup case and then just call the target piece again in the specific test.
We could drop the "before
do_build" in the build-sysroots recipe.Note that the tasks are nostamp so they will always rerun. It does make sense to have a way to regenerate the target sysroot only but if you change it as you suggest, that becomes impossible.
Setting up the 'direct esdk' would become somewhat more awkward as it does currently rely on being able to run 'bitbake build-sysroots' directly as officially published:
(yes the doc formatting needs to be fixed):
https://docs.yoctoproject.org/sdk-manual/extensible.html#setting-up-the-extensible-sdk-environment-directly-in-a-yocto-build
https://docs.yoctoproject.org/sdk-manual/extensible.html#when-using-the-extensible-sdk-directly-in-a-yocto-build
I can fix both the test and the documentation to run first native, then target task explicitly, but I would really prefer to make 'bitbake build-sysroots' just work without chance of failures.
Alex
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 25 lines · Alexander Kanavin
Quoted 9 lines · Richard Purdie
That test/calls were fairly recently added:
That test should probably call:
bitbake("build-sysroots -c build_native_sysroot")bitbake("build-sysroots -c build_target_sysroot")Quoted 8 lines
om the setup case and then just call the target piece again in the specific test.
We could drop the "before
do_build" in the build-sysroots recipe.Note that the tasks are nostamp so they will always rerun. It does make sense to have a way to regenerate the target sysroot only but if you change it as you suggest, that becomes impossible.
Setting up the 'direct esdk' would become somewhat more awkward as it does currently rely on being able to run 'bitbake build-sysroots' directly as officially published:
(yes the doc formatting needs to be fixed):
Quoted 6 lines
https://docs.yoctoproject.org/sdk-manual/extensible.html#setting-up-the-extensible-sdk-environment-directly-in-a-yocto-build
https://docs.yoctoproject.org/sdk-manual/extensible.html#when-using-the-extensible-sdk-directly-in-a-yocto-buildI can fix both the test and the documentation to run first native, then target task explicitly, but I would really prefer to make 'bitbake build-sysroots' just work without chance of failures.
Taking a step back, is user information actually useful in the context of these sysroots? Really, you shouldn't need the native sysroot for the target one.
We only have postinsts for sysroots where they were absolutely unavoidable:
* useradd
* xmlcatalog
* ldso/qemu issue
* pixbuf
Basically, they're on used for "index" creation issues. Ideally we'd not have these things at all, they're horrible to have to hack in.
In the context of external SDKs, useradd doesn't make much sense. Even for "in-tree" use, given the significant dependency creep, I'm starting to think we should drop the useradd calls from the postinst script and code something else to create the right passwd/group entries which is all we care about (to keep pseudo working ok for packaging).
The reason the dependency creep worries me is I know what the code internal to bitbake does when it hits these dependencies. It is really suboptimal :(.
I know it is really tempting just to add dependencies and ignore the deeper issues but some of this really doesn't make sense when you step back and think about it.
Cheers,
Richard
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 3 lines · Richard Purdie
I know it is really tempting just to add dependencies and ignore the deeper issues but some of this really doesn't make sense when you step back and think about it.
I sent a different patch that decouples native/target sysroot population tasks from do_build in the build-sysroots recipe and tweaks usage to run them explicitly.
I agree that user/group handling at build time needs a redesign:
there's just too many corner cases and special handling all over the place currently. I would really just rather place a file into /etc/passwd.d/ and that would amount to 'making' a user. Indexing or other special processing, if needed, can happen at do_rootfs time.
Alex
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 11 lines · Alexander Kanavin
Quoted 3 lines · Richard Purdie
I know it is really tempting just to add dependencies and ignore the deeper issues but some of this really doesn't make sense when you step back and think about it.
I sent a different patch that decouples native/target sysroot population tasks from
do_buildin the build-sysroots recipe and tweaks usage to run them explicitly.
Quoted 5 lines
I agree that user/group handling at build time needs a redesign:
there's just too many corner cases and special handling all over the place currently. I would really just rather place a file into/etc/passwd.d/and that would amount to 'making' a user. Indexing or other special processing, if needed, can happen atdo_rootfstime.
It isn't just do_rootfs, it is also package creation as the users/groups are encoded into the packages.
Crazy idea - can we statically link the shadow-native binaries?
Cheers,
Richard
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 1 line · Richard Purdie
Crazy idea - can we statically link the shadow-native binaries?
Not impossible, but needs a bit of work - libbsd, libattr and libmd all need to be made available in static versions (via resetting DISABLE_STATIC), and shadow convinced to use them by injecting -static into the linker flags at appropriate places. There's no precedent for this in core that I've seen.
Alex
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 9 lines · Alexander Kanavin
Quoted 1 line · Richard Purdie
Crazy idea - can we statically link the shadow-native binaries?
Not impossible, but needs a bit of work - libbsd, libattr and libmd all need to be made available in static versions (via resetting
DISABLE_STATIC), and shadow convinced to use them by injecting -static into the linker flags at appropriate places. There's no precedent for this in core that I've seen.
See meta/conf/distro/include/no-static-libs.inc which does things like:
meta/conf/distro/include/no-static-libs.inc:DISABLE_STATIC:pn-openssl-native = "" meta/conf/distro/include/no-static-libs.inc:DISABLE_STATIC:pn-nativesdk-openssl = ""
I wasn't sure how easy the shadow patch would be, that is hopefully the main tricky part. sqlite-native used to be built allowing static for pseudo iirc but I don't think we need to do that there any more.
Cheers,
Richard
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 8 lines · Richard Purdie
See meta/conf/distro/include/no-static-libs.inc which does things like:
meta/conf/distro/include/no-static-libs.inc:DISABLE_STATIC:pn-openssl-native = "" meta/conf/distro/include/no-static-libs.inc:DISABLE_STATIC:pn-nativesdk-openssl = ""
I wasn't sure how easy the shadow patch would be, that is hopefully the main tricky part. sqlite-native used to be built allowing static for pseudo iirc but I don't think we need to do that there any more.
I poked around at passing options from the shadow recipe, but couldn't arrive at a working combination. libtool and automake insert too many abstraction layers on the way to the linker invocation.
So there has to be a custom, most likely non-upstreamable patch for Makefile.am files all over the place, which I think is worse than manually unrolling setscene dependencies.
Alex
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 11 lines · Alexander Kanavin
Quoted 8 lines · Richard Purdie
See meta/conf/distro/include/no-static-libs.inc which does things like:
meta/conf/distro/include/no-static-libs.inc:DISABLE_STATIC:pn-openssl-native = "" meta/conf/distro/include/no-static-libs.inc:DISABLE_STATIC:pn-nativesdk-openssl = ""
I wasn't sure how easy the shadow patch would be, that is hopefully the main tricky part. sqlite-native used to be built allowing static for pseudo iirc but I don't think we need to do that there any more.
Quoted 7 lines
I poked around at passing options from the shadow recipe, but couldn't arrive at a working combination. libtool and automake insert too many abstraction layers on the way to the linker invocation.
So there has to be a custom, most likely non-upstreamable patch for Makefile.am files all over the place, which I think is worse than manually unrolling setscene dependencies.
I was curious to see if I could make anything work, the best I could come up with was this:
meta/conf/distro/include/no-static-libs.inc +5 -0
@@ -30,3 +30,8 @@ EXTRA_OECMAKE:append:pn-libjpeg-turbo-native = " -DENABLE_STATIC=False" EXCONFIG_ARGS:append:pn-ncurses = " --without-normal" EXCONFIG_ARGS:append:pn-ncurses-native = " --without-normal" EXCONFIG_ARGS:append:pn-nativesdk-ncurses = " --without-normal" + +# Needed so we can statically link shadow-native tools +DISABLE_STATIC:pn-attr-native = "" +DISABLE_STATIC:pn-libbsd-native = "" +DISABLE_STATIC:pn-libmd-native = ""
meta/recipes-extended/shadow/shadow_4.14.0.bb +8 -0
@@ -4,6 +4,14 @@ require shadow.inc # libcrypt. This breaks chsh. BUILD_LDFLAGS:append:class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '-lcrypt', '', d)}" +# Force static linking of utilities so we can use from the sysroot/sstate for useradd +# without worrying about the dependency libraries being available +do_compile:prepend:class-native () { + sed -i -e 's#\(mode=link.*CCLD.\s*\)#\1-all-static #g' \ + -e 's#\(LIBS.*-lbsd\)#\1 -lmd#g' \ + -e 's#\(LIBBSD.*-lbsd\)#\1 -lmd#g' ${B}/*/Makefile +} + BBCLASSEXTEND = "native nativesdk" # https://bugzilla.redhat.com/show_bug.cgi?id=884658
which isn't nice but probably isn't too bad to maintain and does give us the static tools.
Cheers,
Richard
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 56 lines · Richard Purdie via lists.openembedded.org
Quoted 11 lines · Alexander Kanavin
Quoted 8 lines · Richard Purdie
See meta/conf/distro/include/no-static-libs.inc which does things like:
meta/conf/distro/include/no-static-libs.inc:DISABLE_STATIC:pn-openssl-native = "" meta/conf/distro/include/no-static-libs.inc:DISABLE_STATIC:pn-nativesdk-openssl = ""
I wasn't sure how easy the shadow patch would be, that is hopefully the main tricky part. sqlite-native used to be built allowing static for pseudo iirc but I don't think we need to do that there any more.
Quoted 7 lines
I poked around at passing options from the shadow recipe, but couldn't arrive at a working combination. libtool and automake insert too many abstraction layers on the way to the linker invocation.
So there has to be a custom, most likely non-upstreamable patch for Makefile.am files all over the place, which I think is worse than manually unrolling setscene dependencies.
I was curious to see if I could make anything work, the best I could come up with was this:
meta/conf/distro/include/no-static-libs.inc +5
-0@@ -30,3 +30,8 @@ EXTRA_OECMAKE:append:pn-libjpeg-turbo-native = " -DENABLE_STATIC=False" EXCONFIG_ARGS:append:pn-ncurses = " --without-normal" EXCONFIG_ARGS:append:pn-ncurses-native = " --without-normal" EXCONFIG_ARGS:append:pn-nativesdk-ncurses = " --without-normal" + +# Needed so we can statically link shadow-native tools +DISABLE_STATIC:pn-attr-native = "" +DISABLE_STATIC:pn-libbsd-native = "" +DISABLE_STATIC:pn-libmd-native = ""meta/recipes-extended/shadow/shadow_4.14.0.bb +8
-0@@ -4,6 +4,14 @@ require shadow.inc # libcrypt. This breaks chsh. BUILD_LDFLAGS:append:class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '-lcrypt', '', d)}" +# Force static linking of utilities so we can use from the sysroot/sstate for useradd +# without worrying about the dependency libraries being available +do_compile:prepend:class-native () { + sed -i -e 's#\(mode=link.*CCLD.\s*\)#\1-all-static #g' \ + -e 's#\(LIBS.*-lbsd\)#\1 -lmd#g' \ + -e 's#\(LIBBSD.*-lbsd\)#\1 -lmd#g' ${B}/*/Makefile +} + BBCLASSEXTEND = "native nativesdk" # https://bugzilla.redhat.com/show_bug.cgi?id=884658
Quoted 2 lines
which isn't nice but probably isn't too bad to maintain and does give us the static tools.
Of course since this removes libc, pseudo no longer works and the chroot calls inside shadow then fail. Which then brings us to:
+ sed -i -e 's#\(LIBS.*\)-lbsd#\1 ${STAGING_LIBDIR}/libbsd.a ${STAGING_LIBDIR}/libmd.a#g' \
+ -e 's#\(LIBBSD.*\)-lbsd#\1 ${STAGING_LIBDIR}/libbsd.a ${STAGING_LIBDIR}/libmd.a#g' ${B}/*/Makefile
instead...
Cheers,
Richard
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [OE-core] [PATCH 16/17] build-sysroots.bb: run tasks one after the other
Quoted 6 lines · Alexander Kanavin via lists.openembedded.org
Quoted 2 lines
This doesn't just force ordering but means target will always now trigger the native sysroot as a dependency. We don't want to do that...
But I think we do. Target is using executables from native sysroot such as user management utilities from shadow-native, and they won't be otherwise present there.
By the way extend_recipe_sysroot() is already doing:
staging_populate_sysroot_dir(recipesysroot,
recipesysrootnative, True, d)
staging_populate_sysroot_dir(recipesysroot,
recipesysrootnative, False, d)
so just calling one after the other in a single task. Why build-sysroots recipe has those as separate tasks I'm not sure, but they should either be folded into one task, or be strictly ordered and required. Unless I am missing something.
Alex
PATCH 17/17 shadow: update 4.13 -> 4.14.0
In reply to Alexander KanavinLicense-Update: formatting, spdx conversion
Drop:
0001-Disable-use-of-syslog-for-sysroot.patch
(issue fixed upstream)
0001-Fix-can-not-print-full-login.patch
0001-Overhaul-valid_field.patch
CVE-2023-29383.patch
(backports)
libbsd is a new native dependency, as otherwise glibc >= 2.38 is needed.
A similar fix is added to musl in order to define non-standard __BEGIN_DECLS/__END_DECLS.
---
...01-Disable-use-of-syslog-for-sysroot.patch | 52 ---------------
.../0001-Fix-can-not-print-full-login.patch | 41 ------------
.../files/0001-Overhaul-valid_field.patch | 65 -------------------
.../shadow/files/CVE-2023-29383.patch | 53 ---------------
...nexpected-open-failure-in-chroot-env.patch | 16 +++--
meta/recipes-extended/shadow/shadow.inc | 18 ++---
.../{shadow_4.13.bb => shadow_4.14.0.bb} | 0
7 files changed, 16 insertions(+), 229 deletions(-)
delete mode 100644 meta/recipes-extended/shadow/files/0001-Disable-use-of-syslog-for-sysroot.patch
delete mode 100644 meta/recipes-extended/shadow/files/0001-Fix-can-not-print-full-login.patch
delete mode 100644 meta/recipes-extended/shadow/files/0001-Overhaul-valid_field.patch
delete mode 100644 meta/recipes-extended/shadow/files/CVE-2023-29383.patch
rename meta/recipes-extended/shadow/{shadow_4.13.bb => shadow_4.14.0.bb} (100%)meta/recipes-extended/shadow/files/0001-Disable-use-of-syslog-for-sysroot.patch deleted +0 -52
@@ -1,52 +0,0 @@ -From 85d0444229ee3d14fefcf10d093f49c862826f82 Mon Sep 17 00:00:00 2001 -From: Richard Purdie <[email protected]> -Date: Thu, 14 Apr 2022 23:11:53 +0000 -Subject: [PATCH] Disable use of syslog for shadow-native tools - -Disable use of syslog to prevent sysroot user and group additions from -writing entries to the host's syslog. This patch should only be used -with the shadow-native recipe. - -Upstream-Status: Inappropriate [OE specific configuration] -Signed-off-by: Richard Purdie <[email protected]> -Signed-off-by: Peter Kjellerstedt <[email protected]> - ---- - configure.ac | 2 +- - src/login_nopam.c | 3 ++- - 2 files changed, 3 insertions(+), 2 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 924254a..603af81 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -191,7 +191,7 @@ AC_DEFINE_UNQUOTED(PASSWD_PROGRAM, "$shadow_cv_passwd_dir/passwd", - [Path to passwd program.]) - - dnl XXX - quick hack, should disappear before anyone notices :). --AC_DEFINE(USE_SYSLOG, 1, [Define to use syslog().]) -+#AC_DEFINE(USE_SYSLOG, 1, [Define to use syslog().]) - if test "$ac_cv_func_ruserok" = "yes"; then - AC_DEFINE(RLOGIN, 1, [Define if login should support the -r flag for rlogind.]) - AC_DEFINE(RUSEROK, 0, [Define to the ruserok() "success" return value (0 or 1).]) -diff --git a/src/login_nopam.c b/src/login_nopam.c -index df6ba88..fc24e13 100644 ---- a/src/login_nopam.c -+++ b/src/login_nopam.c -@@ -29,7 +29,6 @@ - #ifndef USE_PAM - #ident "$Id$" - --#include "prototypes.h" - /* - * This module implements a simple but effective form of login access - * control based on login names and on host (or domain) names, internet -@@ -57,6 +56,8 @@ - #include <netinet/in.h> - #include <arpa/inet.h> /* for inet_ntoa() */ - -+#include "prototypes.h" -+ - #if !defined(MAXHOSTNAMELEN) || (MAXHOSTNAMELEN < 64) - #undef MAXHOSTNAMELEN - #define MAXHOSTNAMELEN 256
meta/recipes-extended/shadow/files/0001-Fix-can-not-print-full-login.patch deleted +0 -41
41 lines not on this page · raw message
meta/recipes-extended/shadow/files/0001-Overhaul-valid_field.patch deleted +0 -65
65 lines not on this page · raw message
meta/recipes-extended/shadow/files/CVE-2023-29383.patch deleted +0 -53
53 lines not on this page · raw message
meta/recipes-extended/shadow/files/commonio.c-fix-unexpected-open-failure-in-chroot-env.patch +9 -7
@@ -1,4 +1,4 @@ -From 21583da072aa66901d859ac00ce209bac87ddecc Mon Sep 17 00:00:00 2001 +From a773c6b240d27e23d6be41decef0edf24fcee523 Mon Sep 17 00:00:00 2001 From: Chen Qi <[email protected]> Date: Thu, 17 Jul 2014 15:53:34 +0800 Subject: [PATCH] commonio.c-fix-unexpected-open-failure-in-chroot-env
@@ -15,35 +15,37 @@ Note that this patch doesn't change the logic in the code, it just expands the codes. Signed-off-by: Chen Qi <[email protected]> - --- lib/commonio.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/commonio.c b/lib/commonio.c -index 9a02ce1..61384ec 100644 +index 73fdb3a..d1231e9 100644 --- a/lib/commonio.c +++ b/lib/commonio.c -@@ -616,10 +616,18 @@ int commonio_open (struct commonio_db *db, int mode) +@@ -606,10 +606,18 @@ int commonio_open (struct commonio_db *db, int mode) db->cursor = NULL; db->changed = false; - fd = open (db->filename, - (db->readonly ? O_RDONLY : O_RDWR) -- | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW); +- | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW | O_CLOEXEC); - saved_errno = errno; + if (db->readonly) { + fd = open (db->filename, + (true ? O_RDONLY : O_RDWR) -+ | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW); ++ | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW | O_CLOEXEC); + saved_errno = errno; + } else { + fd = open (db->filename, + (false ? O_RDONLY : O_RDWR) -+ | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW); ++ | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW| O_CLOEXEC); + saved_errno = errno; + } + db->fp = NULL; if (fd >= 0) { #ifdef WITH_TCB +-- +2.30.2 +
meta/recipes-extended/shadow/shadow.inc +7 -11
@@ -5,7 +5,7 @@ BUGTRACKER = "http://github.com/shadow-maint/shadow/issues" SECTION = "base/utils" LICENSE = "BSD-3-Clause" LIC_FILES_CHKSUM = "file://COPYING;md5=c9a450b7be84eac23e6353efecb60b5b \ - file://src/passwd.c;beginline=2;endline=30;md5=758c26751513b6795395275969dd3be1 \ + file://src/passwd.c;beginline=2;endline=7;md5=67bcf314687820b2f010d4863fce3fc5 \ " DEPENDS = "virtual/crypt"
@@ -14,9 +14,6 @@ GITHUB_BASE_URI = "https://github.com/shadow-maint/shadow/releases" SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BP}.tar.gz \ ${@bb.utils.contains('PACKAGECONFIG', 'pam', '${PAM_SRC_URI}', '', d)} \ file://useradd \ - file://0001-Fix-can-not-print-full-login.patch \ - file://CVE-2023-29383.patch \ - file://0001-Overhaul-valid_field.patch \ " SRC_URI:append:class-target = " \
@@ -25,13 +22,9 @@ SRC_URI:append:class-target = " \ " SRC_URI:append:class-native = " \ - file://0001-Disable-use-of-syslog-for-sysroot.patch \ file://commonio.c-fix-unexpected-open-failure-in-chroot-env.patch \ " -SRC_URI:append:class-nativesdk = " \ - file://0001-Disable-use-of-syslog-for-sysroot.patch \ - " -SRC_URI[sha256sum] = "813057047499c7fe81108adcf0cffa3ad4ec75e19a80151f9cbaa458ff2e86cd" +SRC_URI[sha256sum] = "51833444e3b183e023eb12da0cc1cecfcb839ba77f12f4ad551b2e3a9e950597" # Additional Policy files for PAM
@@ -43,7 +36,7 @@ PAM_SRC_URI = "file://pam.d/chfn \ file://pam.d/passwd \ file://pam.d/su" -inherit autotools gettext github-releases +inherit autotools gettext github-releases pkgconfig export CONFIG_SHELL="/bin/sh"
@@ -53,6 +46,8 @@ EXTRA_OECONF += "--without-libcrack \ --without-sssd \ ${NSCDOPT}" +CFLAGS:append:libc-musl = " -DLIBBSD_OVERLAY" + NSCDOPT = "" NSCDOPT:class-native = "--without-nscd" NSCDOPT:class-nativesdk = "--without-nscd"
@@ -72,13 +67,14 @@ PAM_PLUGINS = "libpam-runtime \ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}" -PACKAGECONFIG:class-native ??= "${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)}" +PACKAGECONFIG:class-native ??= "${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'attr', '', d)} libbsd" PACKAGECONFIG:class-nativesdk = "" PACKAGECONFIG[pam] = "--with-libpam,--without-libpam,libpam,${PAM_PLUGINS}" PACKAGECONFIG[attr] = "--with-attr,--without-attr,attr" PACKAGECONFIG[acl] = "--with-acl,--without-acl,acl" PACKAGECONFIG[audit] = "--with-audit,--without-audit,audit" PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux libsemanage" +PACKAGECONFIG[libbsd] = "--with-libbsd,--without-libbsd,libbsd" RDEPENDS:${PN} = "shadow-securetty \ base-passwd \
meta/recipes-extended/shadow/shadow_4.14.0.bb renamed from meta/recipes-extended/shadow/shadow_4.13.bb +0 -0
Signature · 1 line
2.30.2