summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2023-07-17 17:10:15 +0800
committerSteve Sakoman <steve@sakoman.com>2023-08-15 06:18:49 -1000
commitabbd4660973121a866bfb3a9baa849029d542102 (patch)
tree7fc295ce7038acc9862665cd80d4120e5489468a /meta/recipes-devtools/opkg
parent078269eedf0bc4ecb1abf04032337d5d4fc04f38 (diff)
downloadpoky-abbd4660973121a866bfb3a9baa849029d542102.tar.gz
opkg: upgrade 0.6.1 -> 0.6.2
0001-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch 0002-opkg-key-remove-no-options-flag-from-gpg-calls.patch removed since they're included in 0.6.2. Changelog: =========== ### Changed - the project's developer documentation to be more correct and current. ### Fixed - a bug in the 'opkg-keys' utility script which caused the script to ignore settings in the '/etc/opkg/gpg/gpg.conf' file. - a compilation error in 'md5.c' when using clang16+ and '-std >= gnu11'. (From OE-Core rev: 5bdfde3fd4266d637019b59d55a33438cb36903f) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit d7c8a58297e38f6222035aa9135fedf2ca387742) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools/opkg')
-rw-r--r--meta/recipes-devtools/opkg/opkg/0001-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch51
-rw-r--r--meta/recipes-devtools/opkg/opkg/0002-opkg-key-remove-no-options-flag-from-gpg-calls.patch34
-rw-r--r--meta/recipes-devtools/opkg/opkg_0.6.2.bb (renamed from meta/recipes-devtools/opkg/opkg_0.6.1.bb)6
3 files changed, 2 insertions, 89 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/0001-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch b/meta/recipes-devtools/opkg/opkg/0001-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch
deleted file mode 100644
index 3406878a1d..0000000000
--- a/meta/recipes-devtools/opkg/opkg/0001-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch
+++ /dev/null
@@ -1,51 +0,0 @@
1From 4089affd371e6d62dd8c1e57b344f8cc329005ea Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 14 Jan 2023 23:11:08 -0800
4Subject: [PATCH] Define alignof using _Alignof when using C11 or newer
5
6WG14 N2350 made very clear that it is an UB having type definitions
7within "offsetof" [1]. This patch enhances the implementation of macro
8alignof_slot to use builtin "_Alignof" to avoid undefined behavior on
9when using std=c11 or newer
10
11clang 16+ has started to flag this [2]
12
13Fixes build when using -std >= gnu11 and using clang16+
14
15Older compilers gcc < 4.9 or clang < 8 has buggy _Alignof even though it
16may support C11, exclude those compilers too
17
18[1] https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2350.htm
19[2] https://reviews.llvm.org/D133574
20
21Upstream-Status: Submitted [https://groups.google.com/g/opkg-devel/c/gjcQPZgT_jI]
22Signed-off-by: Khem Raj <raj.khem@gmail.com>
23---
24 libopkg/md5.c | 10 ++++++++++
25 1 file changed, 10 insertions(+)
26
27diff --git a/libopkg/md5.c b/libopkg/md5.c
28index 981b9b8..ccb645e 100644
29--- a/libopkg/md5.c
30+++ b/libopkg/md5.c
31@@ -237,7 +237,17 @@ void md5_process_bytes(const void *buffer, size_t len, struct md5_ctx *ctx)
32 /* Process available complete blocks. */
33 if (len >= 64) {
34 #if !_STRING_ARCH_unaligned
35+/* GCC releases before GCC 4.9 had a bug in _Alignof. See GCC bug 52023
36+ <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>.
37+ clang versions < 8.0.0 have the same bug. */
38+#if (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112 \
39+ || (defined __GNUC__ && __GNUC__ < 4 + (__GNUC_MINOR__ < 9) \
40+ && !defined __clang__) \
41+ || (defined __clang__ && __clang_major__ < 8))
42 #define alignof(type) offsetof (struct { char c; type x; }, x)
43+#else
44+#define alignof(type) _Alignof(type)
45+#endif
46 #define UNALIGNED_P(p) (((size_t) p) % alignof (uint32_t) != 0)
47 if (UNALIGNED_P(buffer))
48 while (len > 64) {
49--
502.39.0
51
diff --git a/meta/recipes-devtools/opkg/opkg/0002-opkg-key-remove-no-options-flag-from-gpg-calls.patch b/meta/recipes-devtools/opkg/opkg/0002-opkg-key-remove-no-options-flag-from-gpg-calls.patch
deleted file mode 100644
index f216950002..0000000000
--- a/meta/recipes-devtools/opkg/opkg/0002-opkg-key-remove-no-options-flag-from-gpg-calls.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1From a658e6402382250f0164c5b47b744740e04f3611 Mon Sep 17 00:00:00 2001
2From: Charlie Johnston <charlie.johnston@ni.com>
3Date: Fri, 30 Dec 2022 15:21:14 -0600
4Subject: [PATCH] opkg-key: Remove --no-options flag from gpg calls.
5
6The opkg-key script was always passing the --no-options
7flag to gpg, which uses /dev/null as the options file.
8As a result, the opkg gpg.conf file was not getting
9used. This change removes that flag so that gpg.conf
10in the GPGHOMEDIR for opkg (currently /etc/opkg/gpg/)
11will be used if present.
12
13Upstream-Status: Accepted [https://git.yoctoproject.org/opkg/commit/?id=cee294e72d257417b5e55ef7a76a0fd15313e46b]
14Signed-off-by: Charlie Johnston <charlie.johnston@ni.com>
15---
16 utils/opkg-key | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/utils/opkg-key b/utils/opkg-key
20index e395a59..8645ebc 100755
21--- a/utils/opkg-key
22+++ b/utils/opkg-key
23@@ -53,7 +53,7 @@ else
24 exit 1
25 fi
26
27-GPG="$GPGCMD --no-options --homedir $GPGHOMEDIR"
28+GPG="$GPGCMD --homedir $GPGHOMEDIR"
29
30 # Gpg home dir isn't created automatically when --homedir option is used
31 if [ ! -e "$GPGHOMEDIR" ]; then
32--
332.30.2
34
diff --git a/meta/recipes-devtools/opkg/opkg_0.6.1.bb b/meta/recipes-devtools/opkg/opkg_0.6.2.bb
index 4c25fe963a..46be137354 100644
--- a/meta/recipes-devtools/opkg/opkg_0.6.1.bb
+++ b/meta/recipes-devtools/opkg/opkg_0.6.2.bb
@@ -15,12 +15,10 @@ PE = "1"
15SRC_URI = "http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz \ 15SRC_URI = "http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz \
16 file://opkg.conf \ 16 file://opkg.conf \
17 file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch \ 17 file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch \
18 file://0002-opkg-key-remove-no-options-flag-from-gpg-calls.patch \
19 file://0001-Define-alignof-using-_Alignof-when-using-C11-or-newe.patch \
20 file://run-ptest \ 18 file://run-ptest \
21" 19 "
22 20
23SRC_URI[sha256sum] = "e87fccb575c64d3ac0559444016a2795f12125986a0da896bab97c4a1a2f1b2a" 21SRC_URI[sha256sum] = "ac73a90a2549cd04948e563d915912c78e1b8ba0f43af75c5a53fcca474adbd5"
24 22
25# This needs to be before ptest inherit, otherwise all ptest files end packaged 23# This needs to be before ptest inherit, otherwise all ptest files end packaged
26# in libopkg package if OPKGLIBDIR == libdir, because default 24# in libopkg package if OPKGLIBDIR == libdir, because default