[OE-core] [PATCH 2/2] gawk: Fix ptests on musl

2023-04-12 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 ...0001-Provide-fixes-for-tests-on-musl.patch | 73 +++
 meta/recipes-extended/gawk/gawk_5.2.1.bb  |  7 +-
 2 files changed, 77 insertions(+), 3 deletions(-)
 create mode 100644 
meta/recipes-extended/gawk/gawk/0001-Provide-fixes-for-tests-on-musl.patch

diff --git 
a/meta/recipes-extended/gawk/gawk/0001-Provide-fixes-for-tests-on-musl.patch 
b/meta/recipes-extended/gawk/gawk/0001-Provide-fixes-for-tests-on-musl.patch
new file mode 100644
index 00..4ff2466c0e
--- /dev/null
+++ b/meta/recipes-extended/gawk/gawk/0001-Provide-fixes-for-tests-on-musl.patch
@@ -0,0 +1,73 @@
+From 95bcf4397b6f727208f3c627b7d00dacec406d02 Mon Sep 17 00:00:00 2001
+From: Khem Raj 
+Date: Wed, 12 Apr 2023 21:57:18 -0700
+Subject: [PATCH] Provide fixes for tests on musl
+
+Fixes rebt8b1 and regx8bit
+Disable clos1way6 [1]
+
+Disable commas and backsmalls1, they do not work
+with musl-locales somehow even though we do isntall
+en_US.UTF-8 on target
+
+[1] https://lists.gnu.org/archive/html/bug-gawk/2021-02/msg5.html
+
+Upstream-Status: Inappropriate [musl-specific]
+Signed-off-by: Khem Raj 
+---
+ test/Maketests | 11 ---
+ 1 file changed, 4 insertions(+), 7 deletions(-)
+
+--- a/test/Maketests
 b/test/Maketests
+@@ -916,7 +916,8 @@ rebrackloc:
+ 
+ rebt8b1:
+   @echo $@
+-  @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: 
$$? >>_$@
++  @-[ -z "$$LANG" ] && LANG=C; export LANG; \
++  AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? 
>>_$@
+   @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+ 
+ rebuild:
+@@ -1391,17 +1392,6 @@ clos1way5:
+   @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: 
$$? >>_$@
+   @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+ 
+-clos1way6:
+-  @echo $@ $(ZOS_FAIL)
+-  @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: 
$$? >>_$@
+-  @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+-
+-commas:
+-  @echo $@ $(ZOS_FAIL)
+-  @-[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; export GAWKLOCALE; \
+-  AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? 
>>_$@
+-  @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+-
+ crlf:
+   @echo $@
+   @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: 
$$? >>_$@
+@@ -2003,7 +1993,8 @@ regnul2:
+ 
+ regx8bit:
+   @echo $@
+-  @-AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: 
$$? >>_$@
++  @-[ -z "$$LANG" ] && LANG=C; export LANG; \
++  AWKPATH="$(srcdir)" $(AWK) -f $@.awk  >_$@ 2>&1 || echo EXIT CODE: $$? 
>>_$@
+   @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+ 
+ reint:
+@@ -2256,12 +2247,6 @@ backbigs1:
+   @echo $@ $(ZOS_FAIL)
+   @-[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; export GAWKLOCALE; \
+   AWKPATH="$(srcdir)" $(AWK) -f $@.awk  < "$(srcdir)"/$@.in >_$@ 2>&1 || 
echo EXIT CODE: $$? >>_$@
+-  @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+-
+-backsmalls1:
+-  @echo $@ $(ZOS_FAIL)
+-  @-[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; export GAWKLOCALE; \
+-  AWKPATH="$(srcdir)" $(AWK) -f $@.awk  < "$(srcdir)"/$@.in >_$@ 2>&1 || 
echo EXIT CODE: $$? >>_$@
+   @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+ 
+ backsmalls2:
diff --git a/meta/recipes-extended/gawk/gawk_5.2.1.bb 
b/meta/recipes-extended/gawk/gawk_5.2.1.bb
index e381bad148..b2eb6987ed 100644
--- a/meta/recipes-extended/gawk/gawk_5.2.1.bb
+++ b/meta/recipes-extended/gawk/gawk_5.2.1.bb
@@ -19,7 +19,7 @@ SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \
file://remove-sensitive-tests.patch \
file://run-ptest \
"
-
+SRC_URI:append:libc-musl = " file://0001-Provide-fixes-for-tests-on-musl.patch 
"
 SRC_URI[sha256sum] = 
"529e7c8c6acf21ff3a6183f4d763c632810908989c24675c77995d51ac37b79c"
 
 inherit autotools gettext texinfo update-alternatives
@@ -62,8 +62,9 @@ do_install_ptest() {
rm -f ${D}${PTEST_PATH}/test/timeout.*
 }
 
-RDEPENDS:${PN}-ptest += "make"
+RDEPENDS:${PN}-ptest += "make locale-base-en-us"
 
-RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us 
locale-base-en-us.iso-8859-1"
+RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-en-us.iso-8859-1"
+RDEPENDS:${PN}-ptest:append:libc-musl = " musl-locales"
 
 BBCLASSEXTEND = "native nativesdk"
-- 
2.40.0


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



[OE-core] [PATCH 1/2] musl-locales: Add Canadian French (fr_CA) locale support

2023-04-12 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 meta/recipes-core/musl/musl-locales_git.bb | 5 -
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/musl/musl-locales_git.bb 
b/meta/recipes-core/musl/musl-locales_git.bb
index 92532237e0..6ffac4fade 100644
--- a/meta/recipes-core/musl/musl-locales_git.bb
+++ b/meta/recipes-core/musl/musl-locales_git.bb
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = 
"file://LICENSE;md5=cf5713fba707073020b1db2acaa73e78 \
 SRC_URI = 
"git://git.adelielinux.org/adelie/musl-locales;protocol=https;branch=main"
 
 PV = "1.0+git${SRCPV}"
-SRCREV = "cac3dcdccd1d0c08d17f4919d862737d64b76f79"
+SRCREV = "5663f5bfd30bf9e1e0ba3fc5fe2da6725969f30e"
 
 S = "${WORKDIR}/git"
 
@@ -35,6 +35,7 @@ LICENSE:locale-base-en-gb = "MIT"
 LICENSE:locale-base-en-us = "MIT"
 LICENSE:locale-base-es-es = "MIT"
 LICENSE:locale-base-fi-fi = "MIT"
+LICENSE:locale-base-fr-ca = "MIT"
 LICENSE:locale-base-fr-fr = "MIT"
 LICENSE:locale-base-it-it = "MIT"
 LICENSE:locale-base-nb-no = "MIT"
@@ -52,6 +53,7 @@ PACKAGES =+ "locale-base-cs-cz \
  locale-base-en-us \
  locale-base-es-es \
  locale-base-fi-fi \
+ locale-base-fr-ca \
  locale-base-fr-fr \
  locale-base-it-it \
  locale-base-nb-no \
@@ -69,6 +71,7 @@ FILES:locale-base-en-gb += 
"${datadir}/i18n/locales/musl/en_GB.UTF-8"
 FILES:locale-base-en-us += "${datadir}/i18n/locales/musl/en_US.UTF-8"
 FILES:locale-base-es-es += "${datadir}/i18n/locales/musl/es_ES.UTF-8"
 FILES:locale-base-fi-fi += "${datadir}/i18n/locales/musl/fi_FI.UTF-8"
+FILES:locale-base-fr-ca += "${datadir}/i18n/locales/musl/fr_CA.UTF-8"
 FILES:locale-base-fr-fr += "${datadir}/i18n/locales/musl/fr_FR.UTF-8"
 FILES:locale-base-it-it += "${datadir}/i18n/locales/musl/it_IT.UTF-8"
 FILES:locale-base-nb-no += "${datadir}/i18n/locales/musl/nb_NO.UTF-8"
-- 
2.40.0


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



[OE-core] [dunfell][PATCH] ruby: CVE-2023-28756 ReDoS vulnerability in Time

2023-04-12 Thread Hitendra Prajapati
Upstream-Status: Backport from 
https://github.com/ruby/ruby/commit/957bb7cb81995f26c671afce0ee50a5c660e540e

Signed-off-by: Hitendra Prajapati 
---
 .../ruby/ruby/CVE-2023-28756.patch| 61 +++
 meta/recipes-devtools/ruby/ruby_2.7.6.bb  |  1 +
 2 files changed, 62 insertions(+)
 create mode 100644 meta/recipes-devtools/ruby/ruby/CVE-2023-28756.patch

diff --git a/meta/recipes-devtools/ruby/ruby/CVE-2023-28756.patch 
b/meta/recipes-devtools/ruby/ruby/CVE-2023-28756.patch
new file mode 100644
index 00..c25a147d36
--- /dev/null
+++ b/meta/recipes-devtools/ruby/ruby/CVE-2023-28756.patch
@@ -0,0 +1,61 @@
+From 957bb7cb81995f26c671afce0ee50a5c660e540e Mon Sep 17 00:00:00 2001
+From: Hiroshi SHIBATA 
+Date: Wed, 29 Mar 2023 13:28:25 +0900
+Subject: [PATCH] CVE-2023-28756
+
+CVE: CVE-2023-28756
+Upstream-Status: Backport 
[https://github.com/ruby/ruby/commit/957bb7cb81995f26c671afce0ee50a5c660e540e]
+
+Signed-off-by: Hitendra Prajapati 
+---
+ lib/time.rb   | 6 +++---
+ test/test_time.rb | 9 +
+ 2 files changed, 12 insertions(+), 3 deletions(-)
+
+diff --git a/lib/time.rb b/lib/time.rb
+index f27bacd..4a86e8e 100644
+--- a/lib/time.rb
 b/lib/time.rb
+@@ -501,8 +501,8 @@ class Time
+   (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+
+   (\d{2,})\s+
+   (\d{2})\s*
+-  :\s*(\d{2})\s*
+-  (?::\s*(\d{2}))?\s+
++  :\s*(\d{2})
++  (?:\s*:\s*(\d\d))?\s+
+   ([+-]\d{4}|
+UT|GMT|EST|EDT|CST|CDT|MST|MDT|PST|PDT|[A-IK-Z])/ix =~ date
+ # Since RFC 2822 permit comments, the regexp has no right anchor.
+@@ -717,7 +717,7 @@ class Time
+   #
+   # If self is a UTC time, Z is used as TZD.  [+-]hh:mm is used otherwise.
+   #
+-  # +fractional_digits+ specifies a number of digits to use for fractional
++  # +fraction_digits+ specifies a number of digits to use for fractional
+   # seconds.  Its default value is 0.
+   #
+   # require 'time'
+diff --git a/test/test_time.rb b/test/test_time.rb
+index ca20788..4f11048 100644
+--- a/test/test_time.rb
 b/test/test_time.rb
+@@ -62,6 +62,15 @@ class TestTimeExtension < Test::Unit::TestCase # :nodoc:
+ assert_equal(true, t.utc?)
+   end
+ 
++  def test_rfc2822_nonlinear
++pre = ->(n) {"0 Feb 00 00 :00" + " " * n}
++assert_linear_performance([100, 500, 5000, 50_000], pre: pre) do |s|
++  assert_raise(ArgumentError) do
++Time.rfc2822(s)
++  end
++end
++  end
++
+   def test_encode_rfc2822
+ t = Time.utc(1)
+ assert_equal("Mon, 01 Jan 0001 00:00:00 -", t.rfc2822)
+-- 
+2.25.1
+
diff --git a/meta/recipes-devtools/ruby/ruby_2.7.6.bb 
b/meta/recipes-devtools/ruby/ruby_2.7.6.bb
index 3af321a83e..91ffde5fa3 100644
--- a/meta/recipes-devtools/ruby/ruby_2.7.6.bb
+++ b/meta/recipes-devtools/ruby/ruby_2.7.6.bb
@@ -7,6 +7,7 @@ SRC_URI += " \
file://run-ptest \

file://0001-Modify-shebang-of-libexec-y2racc-and-libexec-racc2y.patch \

file://0001-template-Makefile.in-do-not-write-host-cross-cc-item.patch \
+   file://CVE-2023-28756.patch \
"
 
 SRC_URI[md5sum] = "f972fb0cce662966bec10d5c5f32d042"
-- 
2.25.1


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



Re: [OE-core] [PATCH] cve-update-nvd2-native: added the missing http import

2023-04-12 Thread Marta Rybczynska
On Wed, Apr 12, 2023 at 3:19 PM Yoann Congal  wrote:

> On 4/12/23 13:45, jan vermaete wrote:
> > Hi,
> >
> > I have no preference on how to fix it.
> > I intended to stay as close as possible to the code of Marta
>
> Yes, I see that. I'm okay with your patch as-is since the current code is
> not coherent.
>
> But, I don't see how we can get this exception from urllib... Maybe
> someone with more knowledge in urllib can tell us?
>
>
I'm OK to add the import http. If you remove the except block, you will get
errors from time to time (in my setup most of the time when you do a
complete download).

Kind regards,
Marta

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



[OE-core] [RFT][PATCH 2/3] autoconf_2.72c.bb: Backport fixes

2023-04-12 Thread Khem Raj
Signed-off-by: Khem Raj 
---
 ..._DIR-Rewrite-using-AC_CANONICAL_HOST.patch |  82 +
 ...PE_UID_T-Rewrite-using-AC_CHECK_TYPE.patch |  76 
 ..._TRADITIONAL-a-compatibility-alias-f.patch | 179 ++
 ...to-programs-misusing-AC_EGREP_HEADER.patch |  80 +
 ...TYPE_GETGROUPS-and-AC_FUNC_GETGROUPS.patch | 327 ++
 ...-Fold-AC_C_STRINGIZE-into-AC_PROG_CC.patch |  83 +
 ...st-few-internal-uses-of-AC_EGREP_CPP.patch | 115 ++
 ...0007-Support-circa-early-2022-Gnulib.patch |  31 ++
 ...7-Support-underquoted-callers-better.patch |  55 +++
 .../autoconf/autoconf_2.72c.bb|   9 +
 10 files changed, 1037 insertions(+)
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/0001-AC_XENIX_DIR-Rewrite-using-AC_CANONICAL_HOST.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/0002-AC_TYPE_UID_T-Rewrite-using-AC_CHECK_TYPE.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/0003-Make-AC_PROG_GCC_TRADITIONAL-a-compatibility-alias-f.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/0004-Cater-to-programs-misusing-AC_EGREP_HEADER.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/0004-Overhaul-AC_TYPE_GETGROUPS-and-AC_FUNC_GETGROUPS.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/0005-Fold-AC_C_STRINGIZE-into-AC_PROG_CC.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/0006-Remove-the-last-few-internal-uses-of-AC_EGREP_CPP.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/0007-Support-circa-early-2022-Gnulib.patch
 create mode 100644 
meta/recipes-devtools/autoconf/autoconf/0007-Support-underquoted-callers-better.patch

diff --git 
a/meta/recipes-devtools/autoconf/autoconf/0001-AC_XENIX_DIR-Rewrite-using-AC_CANONICAL_HOST.patch
 
b/meta/recipes-devtools/autoconf/autoconf/0001-AC_XENIX_DIR-Rewrite-using-AC_CANONICAL_HOST.patch
new file mode 100644
index 00..f1b8bebc2f
--- /dev/null
+++ 
b/meta/recipes-devtools/autoconf/autoconf/0001-AC_XENIX_DIR-Rewrite-using-AC_CANONICAL_HOST.patch
@@ -0,0 +1,82 @@
+From dcf9bb7e3b12f3bd74edff60e80b53e668159579 Mon Sep 17 00:00:00 2001
+From: Zack Weinberg 
+Date: Sun, 2 Apr 2023 10:27:08 -0400
+Subject: [PATCH 1/7] AC_XENIX_DIR: Rewrite using AC_CANONICAL_HOST.
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+AC_XENIX_DIR is an obsolete macro, defined as AC_HEADER_DIRENT plus
+code to make absolutely sure configure scripts that depended on a
+shell variable internal to the original (2.13 era) definition of
+AC_XENIX_DIR are not broken by autoupdate.  (That variable had the
+temptingly public-sounding name “XENIX.”)  This compatibility code
+uses AC_EGREP_CPP, which is itself discouraged for use in new
+configure scripts.
+
+(N.B. codesearch.debian.net does not find any uses whatsoever of
+this macro, nor any code in an .ac or .m4 file that depends on the
+XENIX variable.)
+
+Change the compatibility code to use AC_CANONICAL_HOST instead,
+and clarify which pieces of the code inserted by autoupdate are
+probably still necessary.
+
+* lib/autoconf/specific.m4 (AC_XENIX_DIR): Set XENIX variable
+  based on value of host_os. Clarify what manual cleanup is
+  recommended after autoupdate replaces this obsolete macro.
+
+Upstream-Status: Backport
+Signed-off-by: Khem Raj 
+---
+ lib/autoconf/specific.m4 | 26 +++---
+ 1 file changed, 11 insertions(+), 15 deletions(-)
+
+diff --git a/lib/autoconf/specific.m4 b/lib/autoconf/specific.m4
+index 1b3ee661b..a2dc5d488 100644
+--- a/lib/autoconf/specific.m4
 b/lib/autoconf/specific.m4
+@@ -754,9 +754,9 @@ dnl it should only be defined when necessary.
+ ## Checks for UNIX variants.  ##
+ ## -- ##
+ 
+-
+-# These are kludges which should be replaced by a single POSIX check.
+-# They aren't cached, to discourage their use.
++# These macros are all obsolete, from the early days of Autoconf,
++# before the invention of AC_CANONICAL_SYSTEM.  Autoupdate will
++# replace each with inline code for a more modern feature check.
+ 
+ # AC_AIX
+ # --
+@@ -776,19 +776,15 @@ AU_DEFUN([AC_ISC_POSIX], [AC_SEARCH_LIBS([strerror], 
[cposix])])
+ # AC_XENIX_DIR
+ # 
+ AU_DEFUN([AC_XENIX_DIR],
+-[AC_MSG_CHECKING([for Xenix])
+-AC_EGREP_CPP([yes],
+-[#if defined M_XENIX && ! defined M_UNIX
+-  yes
+-@%:@endif],
+-   [AC_MSG_RESULT([yes]); XENIX=yes],
+-   [AC_MSG_RESULT([no]); XENIX=])
+-
+-AC_HEADER_DIRENT[]dnl
++[AC_HEADER_DIRENT
++# Autoupdate added the next two lines to ensure that your configure
++# script's behavior did not change.  They are safe to remove unless
++# you have code that depends on the XENIX shell variable.
++AC_CANONICAL_HOST
++AS_CASE([$host_os], [xenix*], [XENIX=yes], [XENIX=no])
++# End of code added by autoupdate
+ ],
+-[You shouldn't need to depend upon XENIX.  Remove the
+-'AC_MSG_CHECKING', 'AC_EGREP_CPP', and this warning if this part
+-of the 

[OE-core] [RFT][PATCH 1/3] autoconf: Test 2.72c

2023-04-12 Thread Khem Raj
From: Richard Purdie 

Signed-off-by: Richard Purdie 
Signed-off-by: Khem Raj 
---
 .../coreutils/coreutils/autoconf-2.73.patch   |  15 ++
 meta/recipes-core/coreutils/coreutils_9.1.bb  |   1 +
 .../gettext-0.21.1/autoconf-2.73.patch|  41 ++
 meta/recipes-core/gettext/gettext_0.21.1.bb   |   1 +
 ...ilers-that-moan-about-K-R-func-decls.patch | 138 --
 .../{autoconf_2.71.bb => autoconf_2.72c.bb}   |   6 +-
 .../bison/bison/autoconf-2.73.patch   |  15 ++
 meta/recipes-devtools/bison/bison_3.8.2.bb|   1 +
 meta/recipes-extended/findutils/findutils.inc |   1 +
 .../findutils/findutils/autoconf-2.73.patch   |  15 ++
 .../gzip/gzip-1.12/autoconf-2.73.patch|  15 ++
 meta/recipes-extended/gzip/gzip_1.12.bb   |   1 +
 .../libarchive/libarchive/configurehack.patch |  45 ++
 .../libarchive/libarchive_3.6.2.bb|   1 +
 .../libpipeline/autoconf-2.73.patch   |  15 ++
 .../libpipeline/libpipeline_1.5.7.bb  |   1 +
 .../man-db/files/autoconf-2.73.patch  |  15 ++
 meta/recipes-extended/man-db/man-db_2.11.2.bb |   1 +
 .../parted/files/autoconf-2.73.patch  |  15 ++
 meta/recipes-extended/parted/parted_3.5.bb|   1 +
 .../wget/wget/autoconf-2.73.patch |  15 ++
 meta/recipes-extended/wget/wget_1.21.3.bb |   1 +
 .../apr/apr/autoconf-2.73.patch   |  23 +++
 meta/recipes-support/apr/apr_1.7.3.bb |   1 +
 24 files changed, 243 insertions(+), 141 deletions(-)
 create mode 100644 meta/recipes-core/coreutils/coreutils/autoconf-2.73.patch
 create mode 100644 meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
 delete mode 100644 
meta/recipes-devtools/autoconf/autoconf/0001-Port-to-compilers-that-moan-about-K-R-func-decls.patch
 rename meta/recipes-devtools/autoconf/{autoconf_2.71.bb => autoconf_2.72c.bb} 
(92%)
 create mode 100644 meta/recipes-devtools/bison/bison/autoconf-2.73.patch
 create mode 100644 
meta/recipes-extended/findutils/findutils/autoconf-2.73.patch
 create mode 100644 meta/recipes-extended/gzip/gzip-1.12/autoconf-2.73.patch
 create mode 100644 
meta/recipes-extended/libarchive/libarchive/configurehack.patch
 create mode 100644 
meta/recipes-extended/libpipeline/libpipeline/autoconf-2.73.patch
 create mode 100644 meta/recipes-extended/man-db/files/autoconf-2.73.patch
 create mode 100644 meta/recipes-extended/parted/files/autoconf-2.73.patch
 create mode 100644 meta/recipes-extended/wget/wget/autoconf-2.73.patch
 create mode 100644 meta/recipes-support/apr/apr/autoconf-2.73.patch

diff --git a/meta/recipes-core/coreutils/coreutils/autoconf-2.73.patch 
b/meta/recipes-core/coreutils/coreutils/autoconf-2.73.patch
new file mode 100644
index 00..8c77d50e0a
--- /dev/null
+++ b/meta/recipes-core/coreutils/coreutils/autoconf-2.73.patch
@@ -0,0 +1,15 @@
+Upstream-Status: Inappropriate
+
+Index: findutils-4.9.0/gl/m4/largefile.m4
+===
+--- findutils-4.9.0.orig/m4/largefile.m4
 findutils-4.9.0/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
+ # ---
diff --git a/meta/recipes-core/coreutils/coreutils_9.1.bb 
b/meta/recipes-core/coreutils/coreutils_9.1.bb
index 4807eefd04..84269e8957 100644
--- a/meta/recipes-core/coreutils/coreutils_9.1.bb
+++ b/meta/recipes-core/coreutils/coreutils_9.1.bb
@@ -16,6 +16,7 @@ inherit autotools gettext texinfo
 SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \
file://remove-usr-local-lib-from-m4.patch \
file://0001-local.mk-fix-cross-compiling-problem.patch \
+   file://autoconf-2.73.patch \
file://run-ptest \
"
 
diff --git a/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch 
b/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
new file mode 100644
index 00..9b3ed336a4
--- /dev/null
+++ b/meta/recipes-core/gettext/gettext-0.21.1/autoconf-2.73.patch
@@ -0,0 +1,41 @@
+Upstream-Status: Inappropriate
+
+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: 

[OE-core] [RFT][PATCH 3/3] Revert "site: merged common-glibc from OE"

2023-04-12 Thread Khem Raj
This reverts commit a2f942c22e31fe15fef1b44a0e5cc548a60d43a6.

Signed-off-by: Khem Raj 
---
 meta/site/common-glibc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/meta/site/common-glibc b/meta/site/common-glibc
index 7ba91e03c0..958699b143 100644
--- a/meta/site/common-glibc
+++ b/meta/site/common-glibc
@@ -12,7 +12,6 @@ ac_cv_func_getgrgid_r=${ac_cv_func_getgrgid_r=yes}
 ac_cv_func_getpwuid_r=${ac_cv_func_getpwuid_r=yes}
 ac_cv_func_posix_getpwuid_r=${ac_cv_func_posix_getpwuid_r=yes}
 ac_cv_func_posix_getgrgid_r=${ac_cv_func_posix_getgrgid_r=yes}
-ac_cv_type_uid_t={ac_cv_type_uid_t=yes}
 ac_cv_func_getaddrinfo=${ac_cv_func_getaddrinfo=yes}
 ac_cv_func_strtod=${ac_cv_func_strtod=yes}
 
-- 
2.40.0


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



Re: [oe-core][PATCH 1/1] go: fix CVE-2022-41724, 41725

2023-04-12 Thread Luca Ceresoli via lists.openembedded.org
Hello Joe,

On Wed, 12 Apr 2023 11:32:06 -0700
"Joe Slater"  wrote:

> Backport from go-1.19.  The godebug package is needed by
> the fix to CVE-2022-41725.
> 
> Mostly a cherry-pick but exceptions are noted in comments
> marked "backport".
> 
> Signed-off-by: Joe Slater 
> ---
>  ...01-go-fix-CVE-2022-41723-41724-41725.patch | 3373 +
>  meta/recipes-devtools/go/go-1.17.13.inc   |5 +-

I understand this patch is wrong, being mased on kirkstone, so you sent
a fixed versions with the '[kirkstone]' subject tag shortly after, and
this one should be ignored. Is this correct?

Best regards,
Luca

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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



[oe-core][kirkstone][PATCH 1/1] go: fix CVE-2022-41724, 41725

2023-04-12 Thread Joe Slater
Backport from go-1.19.  The godebug package is needed by
the fix to CVE-2022-41725.

Mostly a cherry-pick but exceptions are noted in comments
marked "backport".

Signed-off-by: Joe Slater 
---
 meta/recipes-devtools/go/go-1.17.13.inc   |5 +-
 .../go/go-1.19/add_godebug.patch  |   84 +
 .../go/go-1.19/cve-2022-41724.patch   | 2391 +
 .../go/go-1.19/cve-2022-41725.patch   |  652 +
 4 files changed, 3131 insertions(+), 1 deletion(-)
 create mode 100644 meta/recipes-devtools/go/go-1.19/add_godebug.patch
 create mode 100644 meta/recipes-devtools/go/go-1.19/cve-2022-41724.patch
 create mode 100644 meta/recipes-devtools/go/go-1.19/cve-2022-41725.patch

diff --git a/meta/recipes-devtools/go/go-1.17.13.inc 
b/meta/recipes-devtools/go/go-1.17.13.inc
index 14d58932dc..23380f04c3 100644
--- a/meta/recipes-devtools/go/go-1.17.13.inc
+++ b/meta/recipes-devtools/go/go-1.17.13.inc
@@ -1,6 +1,6 @@
 require go-common.inc
 
-FILESEXTRAPATHS:prepend := "${FILE_DIRNAME}/go-1.18:"
+FILESEXTRAPATHS:prepend := "${FILE_DIRNAME}/go-1.19:${FILE_DIRNAME}/go-1.18:"
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=5d4950ecb7b26d2c5e4e7b4e0dd74707"
 
@@ -23,6 +23,9 @@ SRC_URI += "\
 file://CVE-2022-2879.patch \
 file://CVE-2022-41720.patch \
 file://CVE-2022-41723.patch \
+file://cve-2022-41724.patch \
+file://add_godebug.patch \
+file://cve-2022-41725.patch \
 "
 SRC_URI[main.sha256sum] = 
"a1a48b23afb206f95e7bbaa9b898d965f90826f6f1d1fc0c1d784ada0cd300fd"
 
diff --git a/meta/recipes-devtools/go/go-1.19/add_godebug.patch 
b/meta/recipes-devtools/go/go-1.19/add_godebug.patch
new file mode 100644
index 00..0c3d2d2855
--- /dev/null
+++ b/meta/recipes-devtools/go/go-1.19/add_godebug.patch
@@ -0,0 +1,84 @@
+
+Upstream-Status: Backport [see text]
+
+https://github.com/golong/go.git as of commit 22c1d18a27...
+Copy src/internal/godebug from go 1.19 since it does not
+exist in 1.17.
+
+Signed-off-by: Joe Slater 
+---
+
+--- /dev/null
 go/src/internal/godebug/godebug.go
+@@ -0,0 +1,34 @@
++// Copyright 2021 The Go Authors. All rights reserved.
++// Use of this source code is governed by a BSD-style
++// license that can be found in the LICENSE file.
++
++// Package godebug parses the GODEBUG environment variable.
++package godebug
++
++import "os"
++
++// Get returns the value for the provided GODEBUG key.
++func Get(key string) string {
++  return get(os.Getenv("GODEBUG"), key)
++}
++
++// get returns the value part of key=value in s (a GODEBUG value).
++func get(s, key string) string {
++  for i := 0; i < len(s)-len(key)-1; i++ {
++  if i > 0 && s[i-1] != ',' {
++  continue
++  }
++  afterKey := s[i+len(key):]
++  if afterKey[0] != '=' || s[i:i+len(key)] != key {
++  continue
++  }
++  val := afterKey[1:]
++  for i, b := range val {
++  if b == ',' {
++  return val[:i]
++  }
++  }
++  return val
++  }
++  return ""
++}
+--- /dev/null
 go/src/internal/godebug/godebug_test.go
+@@ -0,0 +1,34 @@
++// Copyright 2021 The Go Authors. All rights reserved.
++// Use of this source code is governed by a BSD-style
++// license that can be found in the LICENSE file.
++
++package godebug
++
++import "testing"
++
++func TestGet(t *testing.T) {
++  tests := []struct {
++  godebug string
++  key string
++  wantstring
++  }{
++  {"", "", ""},
++  {"", "foo", ""},
++  {"foo=bar", "foo", "bar"},
++  {"foo=bar,after=x", "foo", "bar"},
++  {"before=x,foo=bar,after=x", "foo", "bar"},
++  {"before=x,foo=bar", "foo", "bar"},
++  {",,,foo=bar,,,", "foo", "bar"},
++  {"foodecoy=wrong,foo=bar", "foo", "bar"},
++  {"foo=", "foo", ""},
++  {"foo", "foo", ""},
++  {",foo", "foo", ""},
++  {"foo=bar,baz", "lng", ""},
++  }
++  for _, tt := range tests {
++  got := get(tt.godebug, tt.key)
++  if got != tt.want {
++  t.Errorf("get(%q, %q) = %q; want %q", tt.godebug, 
tt.key, got, tt.want)
++  }
++  }
++}
diff --git a/meta/recipes-devtools/go/go-1.19/cve-2022-41724.patch 
b/meta/recipes-devtools/go/go-1.19/cve-2022-41724.patch
new file mode 100644
index 00..aacffbffcd
--- /dev/null
+++ b/meta/recipes-devtools/go/go-1.19/cve-2022-41724.patch
@@ -0,0 +1,2391 @@
+From 00b256e9e3c0fa02a278ec9dfc3e191e02ceaf80 Mon Sep 17 00:00:00 2001
+From: Roland Shoemaker 
+Date: Wed, 14 Dec 2022 09:43:16 -0800
+Subject: [PATCH] [release-branch.go1.19] crypto/tls: replace all usages of
+ BytesOrPanic
+
+Message marshalling makes use of BytesOrPanic a lot, under the
+assumption that it will never panic. 

Re: [OE-core] [PATCH] cve-update-nvd2-native: added the missing http import

2023-04-12 Thread Yoann Congal
On 4/12/23 13:45, jan vermaete wrote:
> Hi,
> 
> I have no preference on how to fix it.
> I intended to stay as close as possible to the code of Marta

Yes, I see that. I'm okay with your patch as-is since the current code is not 
coherent.

But, I don't see how we can get this exception from urllib... Maybe someone 
with more knowledge in urllib can tell us?

Regards,

> Br.
> 
> On Wed, Apr 12, 2023 at 1:36 PM Yoann Congal  wrote:
>>
>> Hi,
>>
>> On 4/12/23 12:19, Jan Vermaete wrote:
>>> Signed-off-by: Jan Vermaete 
>>> ---
>>>  meta/recipes-core/meta/cve-update-nvd2-native.bb | 1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
>>> b/meta/recipes-core/meta/cve-update-nvd2-native.bb
>>> index 1c14481c21..2b585983ac 100644
>>> --- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
>>> +++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
>>> @@ -118,6 +118,7 @@ def nvd_request_next(url, api_key, args):
>>>  import urllib.request
>>>  import urllib.parse
>>>  import gzip
>>> +import http
>>
>> If this is only for the "except http.client.IncompleteRead:" line 146[1], 
>> wouldn't it be better to fix the catched exception to match what urllib can
>>  throw or to remove the except block entirely?
>>
>> I've triggered the same error as you but chose to remove the except block to 
>> get my code running.
>>
>> [1]: 
>> https://git.yoctoproject.org/poky/tree/meta/recipes-core/meta/cve-update-nvd2-native.bb#n146
>>
>>>
>>>  headers = {}
>>>  if api_key:
>>
>> Regards,
>> --
>> Yoann Congal
>> Smile ECS - Tech Expert
>>
>> 
>>
> 
> 

-- 
Yoann Congal
Smile ECS - Tech Expert

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



Re: [OE-core] [PATCH] cve-update-nvd2-native: added the missing http import

2023-04-12 Thread Jan Vermaete
Hi,

I have no preference on how to fix it.
I intended to stay as close as possible to the code of Marta

Br.

On Wed, Apr 12, 2023 at 1:36 PM Yoann Congal  wrote:
>
> Hi,
>
> On 4/12/23 12:19, Jan Vermaete wrote:
> > Signed-off-by: Jan Vermaete 
> > ---
> >  meta/recipes-core/meta/cve-update-nvd2-native.bb | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
> > b/meta/recipes-core/meta/cve-update-nvd2-native.bb
> > index 1c14481c21..2b585983ac 100644
> > --- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
> > +++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
> > @@ -118,6 +118,7 @@ def nvd_request_next(url, api_key, args):
> >  import urllib.request
> >  import urllib.parse
> >  import gzip
> > +import http
>
> If this is only for the "except http.client.IncompleteRead:" line 146[1], 
> wouldn't it be better to fix the catched exception to match what urllib can
>  throw or to remove the except block entirely?
>
> I've triggered the same error as you but chose to remove the except block to 
> get my code running.
>
> [1]: 
> https://git.yoctoproject.org/poky/tree/meta/recipes-core/meta/cve-update-nvd2-native.bb#n146
>
> >
> >  headers = {}
> >  if api_key:
>
> Regards,
> --
> Yoann Congal
> Smile ECS - Tech Expert
>
> 
>


-- 
Jan Vermaete
“Success is a self-correcting phenomenom.” -- Gary Hamel

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



Re: [OE-core] [PATCH] cve-update-nvd2-native: added the missing http import

2023-04-12 Thread Yoann Congal
Hi,

On 4/12/23 12:19, Jan Vermaete wrote:
> Signed-off-by: Jan Vermaete 
> ---
>  meta/recipes-core/meta/cve-update-nvd2-native.bb | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
> b/meta/recipes-core/meta/cve-update-nvd2-native.bb
> index 1c14481c21..2b585983ac 100644
> --- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
> +++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
> @@ -118,6 +118,7 @@ def nvd_request_next(url, api_key, args):
>  import urllib.request
>  import urllib.parse
>  import gzip
> +import http

If this is only for the "except http.client.IncompleteRead:" line 146[1], 
wouldn't it be better to fix the catched exception to match what urllib can
 throw or to remove the except block entirely?

I've triggered the same error as you but chose to remove the except block to 
get my code running.

[1]: 
https://git.yoctoproject.org/poky/tree/meta/recipes-core/meta/cve-update-nvd2-native.bb#n146

>  
>  headers = {}
>  if api_key:

Regards,
-- 
Yoann Congal
Smile ECS - Tech Expert

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



[OE-core] [PATCH] cve-update-nvd2-native: added the missing http import

2023-04-12 Thread Jan Vermaete
Signed-off-by: Jan Vermaete 
---
 meta/recipes-core/meta/cve-update-nvd2-native.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/meta/cve-update-nvd2-native.bb 
b/meta/recipes-core/meta/cve-update-nvd2-native.bb
index 1c14481c21..2b585983ac 100644
--- a/meta/recipes-core/meta/cve-update-nvd2-native.bb
+++ b/meta/recipes-core/meta/cve-update-nvd2-native.bb
@@ -118,6 +118,7 @@ def nvd_request_next(url, api_key, args):
 import urllib.request
 import urllib.parse
 import gzip
+import http
 
 headers = {}
 if api_key:
-- 
2.34.1


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



[OE-core][PATCH] libpam: Fix the xtests/tst-pam_motd[1|3] failures

2023-04-12 Thread Zhixiong Chi
Reproducer:
1.Enable the ptest of libpam and build the image.
2.Boot the rootfs with nfs, then run the following tests as root:
 cd /usr/share/Linux-PAM/xtests
 /usr/share/Linux-PAM/xtests# ./run-xtests.sh . tst-pam_motd1
 /usr/share/Linux-PAM/xtests# ./run-xtests.sh . tst-pam_motd3

After applying this patch, the ptest doesn't be failed.

Signed-off-by: Zhixiong Chi 
---
 ...rely-on-all-filesystems-providing-a-.patch | 108 ++
 meta/recipes-extended/pam/libpam_1.5.2.bb |   1 +
 2 files changed, 109 insertions(+)
 create mode 100644 
meta/recipes-extended/pam/libpam/0001-pam_motd-do-not-rely-on-all-filesystems-providing-a-.patch

diff --git 
a/meta/recipes-extended/pam/libpam/0001-pam_motd-do-not-rely-on-all-filesystems-providing-a-.patch
 
b/meta/recipes-extended/pam/libpam/0001-pam_motd-do-not-rely-on-all-filesystems-providing-a-.patch
new file mode 100644
index 00..94dcb04f0a
--- /dev/null
+++ 
b/meta/recipes-extended/pam/libpam/0001-pam_motd-do-not-rely-on-all-filesystems-providing-a-.patch
@@ -0,0 +1,108 @@
+From 42404548721c653317c911c83d885e2fc7fbca70 Mon Sep 17 00:00:00 2001
+From: Per Jessen 
+Date: Fri, 22 Apr 2022 18:15:36 +0200
+Subject: [PATCH] pam_motd: do not rely on all filesystems providing a filetype
+
+When using scandir() to look for MOTD files to display, we wrongly
+relied on all filesystems providing a filetype.  This is a fix to divert
+to lstat() when we have no filetype.  To maintain MT safety, it isn't
+possible to use lstat() in the scandir() filter function, so all of the
+filtering has been moved to an additional loop after scanning all the
+motd dirs.
+Also, remove superfluous alphasort from scandir(), we are doing
+a qsort() later.
+
+Resolves: https://github.com/linux-pam/linux-pam/issues/455
+
+Upstream-Status: Backport 
[https://github.com/linux-pam/linux-pam/commit/42404548721c653317c911c83d885e2fc7fbca70]
+
+Signed-off-by: Per Jessen 
+Signed-off-by: Zhixiong Chi 
+---
+ modules/pam_motd/pam_motd.c | 49 ++---
+ 1 file changed, 40 insertions(+), 9 deletions(-)
+
+diff --git a/modules/pam_motd/pam_motd.c b/modules/pam_motd/pam_motd.c
+index 6ac8cba2..5ca486e4 100644
+--- a/modules/pam_motd/pam_motd.c
 b/modules/pam_motd/pam_motd.c
+@@ -166,11 +166,6 @@ static int compare_strings(const void *a, const void *b)
+ }
+ }
+ 
+-static int filter_dirents(const struct dirent *d)
+-{
+-return (d->d_type == DT_REG || d->d_type == DT_LNK);
+-}
+-
+ static void try_to_display_directories_with_overrides(pam_handle_t *pamh,
+   char **motd_dir_path_split, unsigned int num_motd_dirs, int 
report_missing)
+ {
+@@ -199,8 +194,7 @@ static void 
try_to_display_directories_with_overrides(pam_handle_t *pamh,
+ 
+ for (i = 0; i < num_motd_dirs; i++) {
+   int rv;
+-  rv = scandir(motd_dir_path_split[i], &(dirscans[i]),
+-  filter_dirents, alphasort);
++  rv = scandir(motd_dir_path_split[i], &(dirscans[i]), NULL, NULL);
+   if (rv < 0) {
+   if (errno != ENOENT || report_missing) {
+   pam_syslog(pamh, LOG_ERR, "error scanning directory %s: %m",
+@@ -215,6 +209,41 @@ static void 
try_to_display_directories_with_overrides(pam_handle_t *pamh,
+ if (dirscans_size_total == 0)
+ goto out;
+ 
++/* filter out unwanted names, directories, and complement data with 
lstat() */
++for (i = 0; i < num_motd_dirs; i++) {
++  struct dirent **d = dirscans[i];
++  for (unsigned int j = 0; j < dirscans_sizes[i]; j++) {
++  int rc;
++  char *fullpath;
++  struct stat s;
++
++  switch(d[j]->d_type) {/* the filetype determines how to proceed 
*/
++  case DT_REG:  /* regular files and */
++  case DT_LNK:  /* symlinks  */
++  continue; /* are good. */
++  case DT_UNKNOWN:   /* for file systems that do not provide */
++ /* a filetype, we use lstat()   */
++  if (join_dir_strings(, motd_dir_path_split[i],
++   d[j]->d_name) <= 0)
++  break;
++  rc = lstat(fullpath, );
++  _pam_drop(fullpath);  /* free the memory alloc'ed by 
join_dir_strings */
++  if (rc != 0)  /* if the lstat() somehow failed */
++  break;
++
++  if (S_ISREG(s.st_mode) ||  /* regular files and  */
++  S_ISLNK(s.st_mode)) continue;  /* symlinks are good  */
++  break;
++  case DT_DIR:  /* We don't want directories */
++  default:  /* nor anything else */
++  break;
++  }
++  _pam_drop(d[j]);  /* free memory   */
++  d[j] = NULL;  /* indicate this one was dropped */
++  dirscans_size_total--;
++  }
++}
++
+ /* Allocate space for all file 

[OE-core] [kirkstone][PATCH] openssl: Move microblaze to linux-latomic config

2023-04-12 Thread Niko Mauno via lists.openembedded.org
From: Mark Hatle 

When building with the previous a number of atomic functions come back as
undefined.  Switching to linux-latomic fixes this.

(From OE-Core rev: 88d5bf78ffb1d120df48139b1ed3c2e3fa8310d0)

Signed-off-by: Mark Hatle 
Signed-off-by: Mark Hatle 
Signed-off-by: Luca Ceresoli 
Signed-off-by: Richard Purdie 
---
 meta/recipes-connectivity/openssl/openssl_3.0.8.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-connectivity/openssl/openssl_3.0.8.bb 
b/meta/recipes-connectivity/openssl/openssl_3.0.8.bb
index e1f30d7a47..82f3e18dd7 100644
--- a/meta/recipes-connectivity/openssl/openssl_3.0.8.bb
+++ b/meta/recipes-connectivity/openssl/openssl_3.0.8.bb
@@ -80,7 +80,7 @@ do_configure () {
esac
target="$os-${HOST_ARCH}"
case $target in
-   linux-arc)
+   linux-arc | linux-microblaze*)
target=linux-latomic
;;
linux-arm*)
@@ -108,7 +108,7 @@ do_configure () {
linux-*-mips64 | linux-mips64 | linux-*-mips64el | linux-mips64el)
target=linux64-mips64
;;
-   linux-microblaze* | linux-nios2* | linux-sh3 | linux-sh4 | linux-arc*)
+   linux-nios2* | linux-sh3 | linux-sh4 | linux-arc*)
target=linux-generic32
;;
linux-powerpc)
-- 
2.39.2


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



[OE-core] [PATCH v5] migration-guides: update 4.2 migration and release notes

2023-04-12 Thread Michael Opdenacker via lists.openembedded.org
From: Michael Opdenacker 

Signed-off-by: Michael Opdenacker 
CC: Frederic Martinsons 
CC: Marta Rybczynska 
CC: Paul Eggleton 
CC: Alex Kiernan 
CC: Alexis Lothoré `
+for example.
+
+The ``cargo-update-recipe-crates`` utility
+:yocto_git:`has been extended 
`
+to include such checksums. So, in case you need to add the list of checksums
+to a recipe just inheriting the :ref:`ref-classes-cargo` class so far, you can
+follow these steps:
+
+#.  Make the recipe inherit :ref:`ref-classes-cargo-update-recipe-crates`
+#.  Remove all ``crate://`` lines from the recipe
+#.  Create an empty ``${BPN}-crates.inc`` file and make your recipe require it
+#.  Execute ``bitbake -c update_crates your_recipe``
+#.  Copy and paste the output of BitBake about the missing checksums into the
+``${BPN}-crates.inc`` file.
+
+.. _migration-4.2-supported-distributions:
+
+Supported distributions
+~~~
+
+This release supports running BitBake on new GNU/Linux distributions:
+
+-  Fedora 36 and 37
+-  AlmaLinux 8.7 and 9.1
+-  OpenSuse 15.4
+
+On the other hand, some earlier distributions are no longer supported:
+
+-  Debian 10.x
+-  Fedora 34 and 35
+-  AlmaLinux 8.5
+
+See :ref:`all supported distributions `.
 
 .. _migration-4.2-misc-changes:
 
@@ -30,6 +92,7 @@ Miscellaneous changes
 
 -  The ``OEBasic`` signature handler (see :term:`BB_SIGNATURE_HANDLER`) has 
been
removed.
+  
 
 .. _migration-4.2-removed-variables:
 
@@ -38,7 +101,7 @@ Removed variables
 
 The following variables have been removed:
 
--  ``SERIAL_CONSOLE``, deprecated since version 2.6, replaced by 
:term:``SERIAL_CONSOLES``.
+-  ``SERIAL_CONSOLE``, deprecated since version 2.6, replaced by 
:term:`SERIAL_CONSOLES`.
 
 .. _migration-4.2-removed-recipes:
 
@@ -47,3 +110,17 @@ Removed recipes
 
 The following recipes have been removed in this release:
 
+-  ``python3-picobuild``: after switching to ``python3-build``
+-  ``python3-strict-rfc3339``: unmaintained and not needed by anything in
+   :oe_git:`openembedded-core `
+   or :oe_git:`meta-openembedded `.
+
+.. _migration-4.2-removed-classes:
+
+Removed classes
+~~~
+
+The following classes have been removed in this release:
+
+-  ``rust-bin``: no longer used in Poky
+
diff --git a/documentation/migration-guides/release-notes-4.2.rst 
b/documentation/migration-guides/release-notes-4.2.rst
index edafe378b0..b6e278ee5d 100644
--- a/documentation/migration-guides/release-notes-4.2.rst
+++ b/documentation/migration-guides/release-notes-4.2.rst
@@ -6,23 +6,90 @@ Release notes for 4.2 (mickledore)
 New Features / Enhancements in 4.2
 ~~
 
-- Python 3.8 is the minimum Python version required on the build host.
-  For host distributions that do not provide it, this is included as part of 
the
-  :term:`buildtools` tarball.
+-  Python 3.8 is the minimum Python version required on the build host.
+   For host distributions that do not provide it, this is included as part of 
the
+   :term:`buildtools` tarball.
 
-- This release now supports a new ``addpylib`` directive to enable
-  Python libraries within layers.
+-  BitBake in this release now supports a new ``addpylib`` directive to enable
+   Python libraries within layers.
 
-  This directive should be added to your layer configuration,
-  as in the below example from ``meta/conf/layer.conf``::
+   This directive should be added to your layer configuration
+   as in the below example from ``meta/conf/layer.conf``::
 
- addpylib ${LAYERDIR}/lib oe
+  addpylib ${LAYERDIR}/lib oe
+
+-  BitBake has seen multiple internal changes that may impact
+   memory and disk usage as well as parsing time, in particular:
+
+   -  BitBake's Cooker server is now multithreaded.
+
+   -  BitBake's cache has been extended to include more hash
+  debugging data, but has also been optimized to :yocto_git:`compress
+  cache data 
`.
+
+   -  BitBake's Cooker server :yocto_git:`can now be pinged
+  https://git.yoctoproject.org/poky/commit/?h=mickledore=26f255da09>`
+  from the UI.
 
 -  Architecture-specific enhancements:
 
+   -  This release adds initial support for the
+  :wikipedia:`LoongArch `
+  (``loongarch64``) architecture, though there is no testing for it yet.
+
 -  Kernel-related enhancements:
 
 -  QEMU/runqemu enhancements:
 
 -  Image-related enhancements:
 
+-  New variables:
+
+   - :term:`VOLATILE_TMP_DIR` allows to specify
+ whether ``/tmp`` should be on persistent storage
+ or in RAM.
+
+-  Rust improvements:
+
+   -  This release adds Cargo support on the target, and includes
+  automated QA tests for this functionality.
+
+   -  It also supports checksums for Rust crates and makes
+  them mandatory for each crate in a recipe.
+
+-  Testing:
+
+   -  The ptest images have changed structure in this release. The
+  underlying ``core-image-ptest`` recipe 

Re: [OE-core] [PATCH v4 1/2] oeqa/utils/qemurunner: change the serial runner

2023-04-12 Thread Luca Ceresoli via lists.openembedded.org
Hello Louis,

On Tue, 11 Apr 2023 17:05:02 +0200
"Louis Rannou"  wrote:

> [YOCTO #15021]
> 
> Create a new runner run_serial_socket which usage matches the traditional ssh

Nit: I'm not a native English speaker, but I think "whose usage" is the
correct form.

> runner. Its return status is 0 when the command succeeded or 0 when it
> failed. If an error is encountered, it raises an Exception.

Should be "or a negative error when it fails"?

I'm taking the patch for testing with these two changes, let me know if
I should do otherwise.

Luca

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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



Re: [OE-core] [PATCH] zstd: upgrade 1.5.4 -> 1.5.5

2023-04-12 Thread Luca Ceresoli via lists.openembedded.org
Hello,

On Mon, 10 Apr 2023 17:37:20 +0800
"wangmy"  wrote:

> From: Wang Mingyu 
> 
> Changelog:
> ==
> fix: fix rare corruption bug affecting the high compression mode
> perf: improve mid-level compression speed
> lib: deprecated bufferless block-level API
> cli: mmap large dictionaries to save memory
> cli: improve speed of --patch-from mode
> cli: improve i/o speed (+10%) when processing lots of small files
> cli: zstd no longer crashes when requested to write into write-protected 
> directory
> cli: fix decompression into block device using -o, reported
> build: fix zstd CLI compiled with lzma support but not zlib support
> build: fix cmake does no longer require 3.18 as minimum version
> build: fix MSVC+ClangCL linking issue
> build: fix zstd-dll, version of zstd CLI that links to the dynamic library
> build: fix MSVC warnings
> doc: updated zstd specification to clarify corner cases
> doc: document how to create fat binaries for macos
> misc: improve seekable format ingestion speed (+100%) for very small chunk 
> sizes
> misc: tests/fullbench can benchmark multiple files
> 
> Signed-off-by: Wang Mingyu 

It appears that this patch is also causing failures in reproducible
builds:

https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/2694/steps/13/logs/stdio

Diffoscope:
http://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20230411-mdixcwb8/packages/diff-html/

reproducible build succeeded after removing this patch as well as the
squashfs-tools patch.

-- 
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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



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

2023-04-12 Thread Jing Hui Tham
Hi All,
 
QA for yocto-4.2.rc2 is completed. This is the full report for this release:  
https://git.yoctoproject.org/cgit/cgit.cgi/yocto-testresults-contrib/tree/?h=intel-yocto-testresults
 
=== Summary 
No high milestone defects.
 
No new issue found. 
 
Thanks,
Jing Hui



> -Original Message-
> From: yo...@lists.yoctoproject.org  On
> Behalf Of Pokybuild User
> Sent: Friday, April 7, 2023 2:16 AM
> To: yo...@lists.yoctoproject.org
> Cc: qa-build-notificat...@lists.yoctoproject.org
> Subject: [yocto] QA notification for completed autobuilder build (yocto-
> 4.2.rc2)
> 
> 
> A build flagged for QA (yocto-4.2.rc2) was completed on the autobuilder
> and is available at:
> 
> 
> https://autobuilder.yocto.io/pub/releases/yocto-4.2.rc2
> 
> 
> Build hash information:
> 
> bitbake: ae2efb05196f9e29ef56ad9a84e2eae5fbdd8030
> meta-agl: 09135164a21a216c6e3e75d7decce896b92962f0
> meta-arm: 8acd61c427bc13024df59cdf3d8217e6e2bd2ce4
> meta-aws: d243fc1ad45dde57b4caa182a92b685540475cb2
> meta-intel: ec3147abdd0727fedc707330d58593097357f944
> meta-mingw: 250617ffa524c082b848487359b9d045703d59c2
> meta-openembedded: 2e0a581bee7fc15a78f6e19ba1e596930edee414
> meta-virtualization: 48c07a48a0e7d56266f20a01bb0c8ebc1085453b
> oecore: 2bcb015b6fe72aa4c928741285c49d3d9ec55e85
> poky: 09bdad16f3a835eaa5b6158a2f8bfb180aa4cde0
> 
> 
> 
> This is an automated message from the Yocto Project Autobuilder
> Git: git://git.yoctoproject.org/yocto-autobuilder2
> Email: richard.pur...@linuxfoundation.org
> 
> 
> 

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