diff mbox series

[v4,1/2] opkg: upgrade 0.7.0 -> 0.8.0

Message ID 20251023134656.2059483-1-ecordonnier@snap.com
State Accepted, archived
Commit ff78c4c4453643c24494fa872a58e424b9772f9c
Headers show
Series [v4,1/2] opkg: upgrade 0.7.0 -> 0.8.0 | expand

Commit Message

Etienne Cordonnier Oct. 23, 2025, 1:46 p.m. UTC
From: Etienne Cordonnier <ecordonnier@snap.com>

See release notes at
- http://downloads.yoctoproject.org/releases/opkg/opkg-0.8.0.release-notes

[0.8.0] - 2025-01-10

The minor version bump in this release is due to the changes to cURL error output line format.

- [Changed](https://git.yoctoproject.org/opkg/commit/?id=ab03377868256427279b36c4b2a298edae4260b8) the error output for the curl download backend, to now report the HTTP error code for failed requests.
  - e.g. `error: log_curl_download_error: Failed to download headers of https://foo.bar/all/Packages.gz: The requested URL returned error: 401`
- Enabling debug-verbosity, while using the cURL backend, [will now](https://git.yoctoproject.org/opkg/commit/?id=ce6fede3db931bb0da70d1334cdc4101d0aec702) print cURL's verbose error log to stderr when there is a download failure.
  - The verbose output may contain confidential information about your cURL transactions. So this is your reminder that debug-verbosity should not be enabled in production systems or sensitive security environments.
- The commandline configuration file option (`-f`) [can now](https://git.yoctoproject.org/opkg/commit/?id=36d08b93d2859992b624a4ba2f412cfa5c766050) be specified multiple times, and each configuration file will be loaded and their settings merged.
- [Fixed](https://git.yoctoproject.org/opkg/commit/?id=c87188d7535684fddb8cf80993c147b215602b63) a bug in control field parsing where custom fields whose keys are similar to other fields could be confused by the parser.

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
 meta/recipes-devtools/opkg/{opkg_0.7.0.bb => opkg_0.8.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta/recipes-devtools/opkg/{opkg_0.7.0.bb => opkg_0.8.0.bb} (97%)

Comments

Etienne Cordonnier Nov. 17, 2025, 9:26 a.m. UTC | #1
Hi,
what is the status of the patch updating to 0.9.0? I have seen that it is
not in master-next any more.

Thanks
Étienne

On Thu, Oct 23, 2025 at 3:47 PM Etienne Cordonnier via
lists.openembedded.org <ecordonnier=snap.com@lists.openembedded.org> wrote:

> From: Etienne Cordonnier <ecordonnier@snap.com>
>
> See release notes at
> -
> https://urldefense.proofpoint.com/v2/url?u=http-3A__downloads.yoctoproject.org_releases_opkg_opkg-2D0.9.0.release-2Dnotes&d=DwIDAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=XCL4aTZh1fTrwHaeiGKsJoqKvbWZD2wo-GXF_JA4noFr_ddic0RujIuGOOp4d2Ce&s=2uBonUU-0L9K8QbAlNXI4M9RB2UD0ENPGEJdRWORLjg&e=
>
> [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://urldefense.proofpoint.com/v2/url?u=https-3A__git.yoctoproject.org_opkg_commit_-3Fid-3D3f6040e321634471ec442fb0e80f140f1437e90b&d=DwIDAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=XCL4aTZh1fTrwHaeiGKsJoqKvbWZD2wo-GXF_JA4noFr_ddic0RujIuGOOp4d2Ce&s=7aRsLwHCTOwh-JuT30q4nwTIbBY2Yy39WpGwx9cHb1Y&e=
> ) with a more modern, CMake framework.
>   - Refer to the `docs/CONTRIBUTING.md` documentation for updated build
> instructions.
>
> Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
> ---
>  .../opkg/opkg/0002-config.h.in-fix-typo.patch | 27 +++++++++++++++++++
>  meta/recipes-devtools/opkg/opkg/run-ptest     |  2 +-
>  .../opkg/{opkg_0.8.0.bb => opkg_0.9.0.bb}     | 22 ++++++++-------
>  3 files changed, 41 insertions(+), 10 deletions(-)
>  create mode 100644
> meta/recipes-devtools/opkg/opkg/0002-config.h.in-fix-typo.patch
>  rename meta/recipes-devtools/opkg/{opkg_0.8.0.bb => opkg_0.9.0.bb} (76%)
>
> 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 00000000000..626bbd01b68
> --- /dev/null
> +++ b/meta/recipes-devtools/opkg/opkg/0002-config.h.in-fix-typo.patch
> @@ -0,0 +1,27 @@
> +From 5a81faadbc2397d554bc598d535fd2d44cbc8d10 Mon Sep 17 00:00:00 2001
> +From: Etienne Cordonnier <ecordonnier@snap.com>
> +Date: Mon, 20 Oct 2025 18:57:56 +0200
> +Subject: [PATCH] config.h.in: fix typo
> +
> +Upstream-Status: Backport [
> https://urldefense.proofpoint.com/v2/url?u=https-3A__git.yoctoproject.org_opkg_commit_-3Fid-3Dd723a90bfe6409c7ad983ed911225d4aefbfd09e&d=DwIDAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=XCL4aTZh1fTrwHaeiGKsJoqKvbWZD2wo-GXF_JA4noFr_ddic0RujIuGOOp4d2Ce&s=8_nCWNXVaTXJwaV4rr2tMRQf0ZF5eZ2V958tK8nftQ4&e=
> ]
> +Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
> +---
> + config.h.in | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/config.h.in b/config.h.in
> +index 4fa9842..877b8c7 100644
> +--- a/config.h.in
> ++++ b/config.h.in
> +@@ -2,7 +2,7 @@
> + #cmakedefine01 WITH_XZ
> + #cmakedefine01 WITH_BZIP2
> + #cmakedefine01 WITH_LZ4
> +-#cmakedefine01 WITH_LZSTD
> ++#cmakedefine01 WITH_ZSTD
> + #cmakedefine01 WITH_CURL
> + #cmakedefine01 WITH_SSLCURL
> + #cmakedefine01 WITH_ACL
> +--
> +2.43.0
> +
> diff --git a/meta/recipes-devtools/opkg/opkg/run-ptest
> b/meta/recipes-devtools/opkg/opkg/run-ptest
> index 5fb7077eec9..d485a4aace5 100644
> --- a/meta/recipes-devtools/opkg/opkg/run-ptest
> +++ b/meta/recipes-devtools/opkg/opkg/run-ptest
> @@ -2,4 +2,4 @@
>
>  OPKG_PATH=$(which opkg)
>
> -make OPKG_PATH=$OPKG_PATH run-tests
> +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
> similarity index 76%
> rename from meta/recipes-devtools/opkg/opkg_0.8.0.bb
> rename to meta/recipes-devtools/opkg/opkg_0.9.0.bb
> index 12e2edf7e3f..ed2f36d636b 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"
>  SRC_URI = "
> https://urldefense.proofpoint.com/v2/url?u=http-3A__downloads.yoctoproject.org_releases_-24-257BBPN-257D_-24-257BBPN-257D-2D-24-257BPV-257D.tar.gz&d=DwIDAg&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=XCL4aTZh1fTrwHaeiGKsJoqKvbWZD2wo-GXF_JA4noFr_ddic0RujIuGOOp4d2Ce&s=R1WHlvCpQvQrcg0MKQeBK7cOs6mJQh4CvBg6u55Ikgk&e=
> \
>             file://opkg.conf \
>
> file://0001-opkg_conf-create-opkg.lock-in-run-instead-of-var-run.patch \
> +           file://0002-config.h.in-fix-typo.patch \
>             file://run-ptest \
>             "
>
> -SRC_URI[sha256sum] =
> "582a4c9e220cce0b7d08a0915c95db9f24ae43ad372ed5d42d5ec5f6cd413f0c"
> +SRC_URI[sha256sum] =
> "440ef321862e01f83da4d02884a0cbb4d9d7b32f82faa81a6a85493f0c89d0f5"
>
>  # This needs to be before ptest inherit, otherwise all ptest files end
> packaged
>  # in libopkg package if OPKGLIBDIR == libdir, because default
>  # PTEST_PATH ?= "${libdir}/${BPN}/ptest"
>  PACKAGES =+ "libopkg"
>
> -inherit autotools pkgconfig ptest
> +inherit cmake pkgconfig ptest
>
>  target_localstatedir := "${localstatedir}"
>  OPKGLIBDIR ??= "${target_localstatedir}/lib"
>
>  PACKAGECONFIG ??= "libsolv"
>
> -PACKAGECONFIG[gpg] = "--enable-gpg,--disable-gpg,\
> +PACKAGECONFIG[gpg] = "-DWITH_GPGME=ON,-DWITH_GPGME=OFF,\
>      gnupg gpgme libgpg-error,\
>      ${@ "gnupg" if ("native" in d.getVar("PN")) else "gnupg-gpg"}\
>      "
> -PACKAGECONFIG[curl] = "--enable-curl,--disable-curl,curl"
> -PACKAGECONFIG[ssl-curl] = "--enable-ssl-curl,--disable-ssl-curl,curl
> openssl"
> -PACKAGECONFIG[sha256] = "--enable-sha256,--disable-sha256"
> -PACKAGECONFIG[libsolv] = "--with-libsolv,--without-libsolv,libsolv"
> +PACKAGECONFIG[curl] = "-DWITH_CURL=ON,-DWITH_CURL=OFF,curl"
> +PACKAGECONFIG[ssl-curl] = "-DWITH_SSLCURL=ON,-DWITH_SSLCURL=OFF,curl
> openssl"
> +PACKAGECONFIG[sha256] = "-DWITH_SHA256=ON,-DWITH_SHA256=OFF"
> +PACKAGECONFIG[libsolv] =
> "-DUSE_SOLVER_LIBSOLV=ON,-DUSE_SOLVER_LIBSOLV=OFF,libsolv"
>
> -EXTRA_OECONF = "--enable-zstd"
> -EXTRA_OECONF:append:class-native = "
> --localstatedir=/${@os.path.relpath('${localstatedir}',
> '${STAGING_DIR_NATIVE}')} --sysconfdir=/${@os.path.relpath('${sysconfdir}',
> '${STAGING_DIR_NATIVE}')}"
> +EXTRA_OECMAKE = "-DWITH_ZSTD=ON"
> +EXTRA_OECMAKE:append:class-native = "
> -DVARDIR=/${@os.path.relpath('${localstatedir}', '${STAGING_DIR_NATIVE}')}
> -DSYSCONFDIR=/${@os.path.relpath('${sysconfdir}', '${STAGING_DIR_NATIVE}')}"
>
>  do_install:append () {
>         install -d ${D}${sysconfdir}/opkg
> @@ -56,6 +57,9 @@ do_install:append () {
>  }
>
>  do_install_ptest () {
> +       # the ptest class uses a Makefile for installation, but cmake uses
> Ninja per default so we need to install ptests manually:
> +       cp -r ${S}/tests ${D}${PTEST_PATH}
> +
>         sed -i -e '/@echo $^/d' ${D}${PTEST_PATH}/tests/Makefile
>         sed -i -e '/@PYTHONPATH=. $(PYTHON) $^/a\\t@if [ "$$?" != "0"
> ];then echo "FAIL:"$^;else echo "PASS:"$^;fi'
> ${D}${PTEST_PATH}/tests/Makefile
>  }
> --
> 2.43.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#225260):
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Dcore_message_225260&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=XCL4aTZh1fTrwHaeiGKsJoqKvbWZD2wo-GXF_JA4noFr_ddic0RujIuGOOp4d2Ce&s=rogmgcu5LmWWO0vQG0DZBFsTFVZ-yBU08727rMNAZNY&e=
> Mute This Topic:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_mt_115910660_7048771&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=XCL4aTZh1fTrwHaeiGKsJoqKvbWZD2wo-GXF_JA4noFr_ddic0RujIuGOOp4d2Ce&s=V9FHief_pTCRo1nHRLqGXiEHXiFtkc8vroy5Gmz0xQ4&e=
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe:
> https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.openembedded.org_g_openembedded-2Dcore_unsub&d=DwIFaQ&c=ncDTmphkJTvjIDPh0hpF_4vCHvabgGkICC2epckfdiw&r=AhkbNonVuMIGRfPx_Qj9TsRih1DULJTKUkSGa66m67E&m=XCL4aTZh1fTrwHaeiGKsJoqKvbWZD2wo-GXF_JA4noFr_ddic0RujIuGOOp4d2Ce&s=TXZ12yyEhyACR_Wh4zzp2H8RKUrxhVRcbcLAnrxYdvg&e=
> [ecordonnier@snap.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Mathieu Dubois-Briand Nov. 17, 2025, 9:43 a.m. UTC | #2
On Mon Nov 17, 2025 at 10:26 AM CET, Etienne Cordonnier via lists.openembedded.org wrote:
> Hi,
> what is the status of the patch updating to 0.9.0? I have seen that it is
> not in master-next any more.
>
> Thanks
> Étienne
>

Hi Étienne,

Your patch is still in the queue, but is expected to be merged in master
after whinlatter release, so it is not present in master-next at this
time.

You can see it in my master-next branch:
https://git.openembedded.org/openembedded-core-contrib/log/?h=mathieu/master-next&ofs=50

Thanks,
Mathieu
diff mbox series

Patch

diff --git a/meta/recipes-devtools/opkg/opkg_0.7.0.bb b/meta/recipes-devtools/opkg/opkg_0.8.0.bb
similarity index 97%
rename from meta/recipes-devtools/opkg/opkg_0.7.0.bb
rename to meta/recipes-devtools/opkg/opkg_0.8.0.bb
index 95480b47164..12e2edf7e3f 100644
--- a/meta/recipes-devtools/opkg/opkg_0.7.0.bb
+++ b/meta/recipes-devtools/opkg/opkg_0.8.0.bb
@@ -18,7 +18,7 @@  SRC_URI = "http://downloads.yoctoproject.org/releases/${BPN}/${BPN}-${PV}.tar.gz
            file://run-ptest \
            "
 
-SRC_URI[sha256sum] = "d973fd0f1568f58f87d6aecd9aa95e3e1f60214a45cee26704bf8fe757c54567"
+SRC_URI[sha256sum] = "582a4c9e220cce0b7d08a0915c95db9f24ae43ad372ed5d42d5ec5f6cd413f0c"
 
 # This needs to be before ptest inherit, otherwise all ptest files end packaged
 # in libopkg package if OPKGLIBDIR == libdir, because default