summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEtienne Cordonnier <ecordonnier@snap.com>2025-10-23 15:46:56 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-11-07 13:15:35 +0000
commitde0ba702a0a870638bc52b39072198b9e14355d6 (patch)
treed2c7c82099964691f0d351c33c4bf360ef1973c8
parenta6f059fdb5681b1b4d63f2da48e709e8f8cff6ad (diff)
downloadpoky-de0ba702a0a870638bc52b39072198b9e14355d6.tar.gz
opkg: upgrade 0.8.0 -> 0.9.0
See release notes at - http://downloads.yoctoproject.org/releases/opkg/opkg-0.9.0.release-notes [0.9.0] - 2025-06-27 Semiannual opkg release. Bumping the minor version as a result of the project build tooling changing from autotools to cmake. - Added a Dockerfile container definition (`:docker/`) for a valid developer build environment for opkg. - It's recommended that project contributors use this container to build and test their changes. - The AutoTools-based build framework has [been replaced](https://git.yoctoproject.org/opkg/commit/?id=3f6040e321634471ec442fb0e80f140f1437e90b) with a more modern, CMake framework. - Refer to the `docs/CONTRIBUTING.md` documentation for updated build instructions. (From OE-Core rev: dbdaecf4e1685ed32520e054a6934c2dc2f58677) Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/opkg/opkg/0002-config.h.in-fix-typo.patch27
-rw-r--r--meta/recipes-devtools/opkg/opkg/run-ptest2
-rw-r--r--meta/recipes-devtools/opkg/opkg_0.9.0.bb (renamed from meta/recipes-devtools/opkg/opkg_0.8.0.bb)22
3 files changed, 41 insertions, 10 deletions
diff --git a/meta/recipes-devtools/opkg/opkg/0002-config.h.in-fix-typo.patch b/meta/recipes-devtools/opkg/opkg/0002-config.h.in-fix-typo.patch
new file mode 100644
index 0000000000..626bbd01b6
--- /dev/null
+++ b/meta/recipes-devtools/opkg/opkg/0002-config.h.in-fix-typo.patch
@@ -0,0 +1,27 @@
1From 5a81faadbc2397d554bc598d535fd2d44cbc8d10 Mon Sep 17 00:00:00 2001
2From: Etienne Cordonnier <ecordonnier@snap.com>
3Date: Mon, 20 Oct 2025 18:57:56 +0200
4Subject: [PATCH] config.h.in: fix typo
5
6Upstream-Status: Backport [https://git.yoctoproject.org/opkg/commit/?id=d723a90bfe6409c7ad983ed911225d4aefbfd09e]
7Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
8---
9 config.h.in | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/config.h.in b/config.h.in
13index 4fa9842..877b8c7 100644
14--- a/config.h.in
15+++ b/config.h.in
16@@ -2,7 +2,7 @@
17 #cmakedefine01 WITH_XZ
18 #cmakedefine01 WITH_BZIP2
19 #cmakedefine01 WITH_LZ4
20-#cmakedefine01 WITH_LZSTD
21+#cmakedefine01 WITH_ZSTD
22 #cmakedefine01 WITH_CURL
23 #cmakedefine01 WITH_SSLCURL
24 #cmakedefine01 WITH_ACL
25--
262.43.0
27
diff --git a/meta/recipes-devtools/opkg/opkg/run-ptest b/meta/recipes-devtools/opkg/opkg/run-ptest
index 5fb7077eec..d485a4aace 100644
--- a/meta/recipes-devtools/opkg/opkg/run-ptest
+++ b/meta/recipes-devtools/opkg/opkg/run-ptest
@@ -2,4 +2,4 @@
2 2
3OPKG_PATH=$(which opkg) 3OPKG_PATH=$(which opkg)
4 4
5make OPKG_PATH=$OPKG_PATH run-tests 5make -C tests DATADIR=/share SYSCONFDIR=/etc VARDIR=/var OPKG_PATH=$OPKG_PATH
diff --git a/meta/recipes-devtools/opkg/opkg_0.8.0.bb b/meta/recipes-devtools/opkg/opkg_0.9.0.bb
index 12e2edf7e3..ed2f36d636 100644
--- a/meta/recipes-devtools/opkg/opkg_0.8.0.bb
+++ b/meta/recipes-devtools/opkg/opkg_0.9.0.bb
@@ -15,34 +15,35 @@ 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-config.h.in-fix-typo.patch \
18 file://run-ptest \ 19 file://run-ptest \
19 " 20 "
20 21
21SRC_URI[sha256sum] = "582a4c9e220cce0b7d08a0915c95db9f24ae43ad372ed5d42d5ec5f6cd413f0c" 22SRC_URI[sha256sum] = "440ef321862e01f83da4d02884a0cbb4d9d7b32f82faa81a6a85493f0c89d0f5"
22 23
23# This needs to be before ptest inherit, otherwise all ptest files end packaged 24# This needs to be before ptest inherit, otherwise all ptest files end packaged
24# in libopkg package if OPKGLIBDIR == libdir, because default 25# in libopkg package if OPKGLIBDIR == libdir, because default
25# PTEST_PATH ?= "${libdir}/${BPN}/ptest" 26# PTEST_PATH ?= "${libdir}/${BPN}/ptest"
26PACKAGES =+ "libopkg" 27PACKAGES =+ "libopkg"
27 28
28inherit autotools pkgconfig ptest 29inherit cmake pkgconfig ptest
29 30
30target_localstatedir := "${localstatedir}" 31target_localstatedir := "${localstatedir}"
31OPKGLIBDIR ??= "${target_localstatedir}/lib" 32OPKGLIBDIR ??= "${target_localstatedir}/lib"
32 33
33PACKAGECONFIG ??= "libsolv" 34PACKAGECONFIG ??= "libsolv"
34 35
35PACKAGECONFIG[gpg] = "--enable-gpg,--disable-gpg,\ 36PACKAGECONFIG[gpg] = "-DWITH_GPGME=ON,-DWITH_GPGME=OFF,\
36 gnupg gpgme libgpg-error,\ 37 gnupg gpgme libgpg-error,\
37 ${@ "gnupg" if ("native" in d.getVar("PN")) else "gnupg-gpg"}\ 38 ${@ "gnupg" if ("native" in d.getVar("PN")) else "gnupg-gpg"}\
38 " 39 "
39PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl" 40PACKAGECONFIG[curl] = "-DWITH_CURL=ON,-DWITH_CURL=OFF,curl"
40PACKAGECONFIG[ssl-curl] = "--enable-ssl-curl,--disable-ssl-curl,curl openssl" 41PACKAGECONFIG[ssl-curl] = "-DWITH_SSLCURL=ON,-DWITH_SSLCURL=OFF,curl openssl"
41PACKAGECONFIG[sha256] = "--enable-sha256,--disable-sha256" 42PACKAGECONFIG[sha256] = "-DWITH_SHA256=ON,-DWITH_SHA256=OFF"
42PACKAGECONFIG[libsolv] = "--with-libsolv,--without-libsolv,libsolv" 43PACKAGECONFIG[libsolv] = "-DUSE_SOLVER_LIBSOLV=ON,-DUSE_SOLVER_LIBSOLV=OFF,libsolv"
43 44
44EXTRA_OECONF = "--enable-zstd" 45EXTRA_OECMAKE = "-DWITH_ZSTD=ON"
45EXTRA_OECONF:append:class-native = " --localstatedir=/${@os.path.relpath('${localstatedir}', '${STAGING_DIR_NATIVE}')} --sysconfdir=/${@os.path.relpath('${sysconfdir}', '${STAGING_DIR_NATIVE}')}" 46EXTRA_OECMAKE:append:class-native = " -DVARDIR=/${@os.path.relpath('${localstatedir}', '${STAGING_DIR_NATIVE}')} -DSYSCONFDIR=/${@os.path.relpath('${sysconfdir}', '${STAGING_DIR_NATIVE}')}"
46 47
47do_install:append () { 48do_install:append () {
48 install -d ${D}${sysconfdir}/opkg 49 install -d ${D}${sysconfdir}/opkg
@@ -56,6 +57,9 @@ do_install:append () {
56} 57}
57 58
58do_install_ptest () { 59do_install_ptest () {
60 # the ptest class uses a Makefile for installation, but cmake uses Ninja per default so we need to install ptests manually:
61 cp -r ${S}/tests ${D}${PTEST_PATH}
62
59 sed -i -e '/@echo $^/d' ${D}${PTEST_PATH}/tests/Makefile 63 sed -i -e '/@echo $^/d' ${D}${PTEST_PATH}/tests/Makefile
60 sed -i -e '/@PYTHONPATH=. $(PYTHON) $^/a\\t@if [ "$$?" != "0" ];then echo "FAIL:"$^;else echo "PASS:"$^;fi' ${D}${PTEST_PATH}/tests/Makefile 64 sed -i -e '/@PYTHONPATH=. $(PYTHON) $^/a\\t@if [ "$$?" != "0" ];then echo "FAIL:"$^;else echo "PASS:"$^;fi' ${D}${PTEST_PATH}/tests/Makefile
61} 65}