diff options
| author | Etienne Cordonnier <ecordonnier@snap.com> | 2025-10-23 15:46:56 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:15:35 +0000 |
| commit | de0ba702a0a870638bc52b39072198b9e14355d6 (patch) | |
| tree | d2c7c82099964691f0d351c33c4bf360ef1973c8 | |
| parent | a6f059fdb5681b1b4d63f2da48e709e8f8cff6ad (diff) | |
| download | poky-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.patch | 27 | ||||
| -rw-r--r-- | meta/recipes-devtools/opkg/opkg/run-ptest | 2 | ||||
| -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 @@ | |||
| 1 | From 5a81faadbc2397d554bc598d535fd2d44cbc8d10 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Etienne Cordonnier <ecordonnier@snap.com> | ||
| 3 | Date: Mon, 20 Oct 2025 18:57:56 +0200 | ||
| 4 | Subject: [PATCH] config.h.in: fix typo | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://git.yoctoproject.org/opkg/commit/?id=d723a90bfe6409c7ad983ed911225d4aefbfd09e] | ||
| 7 | Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com> | ||
| 8 | --- | ||
| 9 | config.h.in | 2 +- | ||
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 11 | |||
| 12 | diff --git a/config.h.in b/config.h.in | ||
| 13 | index 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 | -- | ||
| 26 | 2.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 | ||
| 3 | OPKG_PATH=$(which opkg) | 3 | OPKG_PATH=$(which opkg) |
| 4 | 4 | ||
| 5 | make OPKG_PATH=$OPKG_PATH run-tests | 5 | make -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" | |||
| 15 | SRC_URI = "http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz \ | 15 | SRC_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 | ||
| 21 | SRC_URI[sha256sum] = "582a4c9e220cce0b7d08a0915c95db9f24ae43ad372ed5d42d5ec5f6cd413f0c" | 22 | SRC_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" |
| 26 | PACKAGES =+ "libopkg" | 27 | PACKAGES =+ "libopkg" |
| 27 | 28 | ||
| 28 | inherit autotools pkgconfig ptest | 29 | inherit cmake pkgconfig ptest |
| 29 | 30 | ||
| 30 | target_localstatedir := "${localstatedir}" | 31 | target_localstatedir := "${localstatedir}" |
| 31 | OPKGLIBDIR ??= "${target_localstatedir}/lib" | 32 | OPKGLIBDIR ??= "${target_localstatedir}/lib" |
| 32 | 33 | ||
| 33 | PACKAGECONFIG ??= "libsolv" | 34 | PACKAGECONFIG ??= "libsolv" |
| 34 | 35 | ||
| 35 | PACKAGECONFIG[gpg] = "--enable-gpg,--disable-gpg,\ | 36 | PACKAGECONFIG[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 | " |
| 39 | PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl" | 40 | PACKAGECONFIG[curl] = "-DWITH_CURL=ON,-DWITH_CURL=OFF,curl" |
| 40 | PACKAGECONFIG[ssl-curl] = "--enable-ssl-curl,--disable-ssl-curl,curl openssl" | 41 | PACKAGECONFIG[ssl-curl] = "-DWITH_SSLCURL=ON,-DWITH_SSLCURL=OFF,curl openssl" |
| 41 | PACKAGECONFIG[sha256] = "--enable-sha256,--disable-sha256" | 42 | PACKAGECONFIG[sha256] = "-DWITH_SHA256=ON,-DWITH_SHA256=OFF" |
| 42 | PACKAGECONFIG[libsolv] = "--with-libsolv,--without-libsolv,libsolv" | 43 | PACKAGECONFIG[libsolv] = "-DUSE_SOLVER_LIBSOLV=ON,-DUSE_SOLVER_LIBSOLV=OFF,libsolv" |
| 43 | 44 | ||
| 44 | EXTRA_OECONF = "--enable-zstd" | 45 | EXTRA_OECMAKE = "-DWITH_ZSTD=ON" |
| 45 | EXTRA_OECONF:append:class-native = " --localstatedir=/${@os.path.relpath('${localstatedir}', '${STAGING_DIR_NATIVE}')} --sysconfdir=/${@os.path.relpath('${sysconfdir}', '${STAGING_DIR_NATIVE}')}" | 46 | EXTRA_OECMAKE:append:class-native = " -DVARDIR=/${@os.path.relpath('${localstatedir}', '${STAGING_DIR_NATIVE}')} -DSYSCONFDIR=/${@os.path.relpath('${sysconfdir}', '${STAGING_DIR_NATIVE}')}" |
| 46 | 47 | ||
| 47 | do_install:append () { | 48 | do_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 | ||
| 58 | do_install_ptest () { | 59 | do_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 | } |
