<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/linusw/target/imagebuilder, branch master</title>
<subtitle>Staging tree of Linus Walleij</subtitle>
<id>https://git-03.infra.openwrt.org/openwrt/staging/linusw/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/'/>
<updated>2026-01-24T10:02:18Z</updated>
<entry>
<title>imagebuilder: fix parsing ABI for apk packages</title>
<updated>2026-01-24T10:02:18Z</updated>
<author>
<name>George Sapkin</name>
</author>
<published>2026-01-23T18:07:53Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/commit/?id=5f889eaacd901ee74a44da07a28abfb6fbbbbf87'/>
<id>urn:sha1:5f889eaacd901ee74a44da07a28abfb6fbbbbf87</id>
<content type='text'>
Fix parsing ABI when package has multiple tags and apk returns them in a
single line.

Fixes: 31cdd13d ("imagebuilder: add ABI suffix to packages when using apk")
Signed-off-by: George Sapkin &lt;george@sapk.in&gt;
Link: https://github.com/openwrt/openwrt/pull/21660
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>imagebuilder: skip repository file when standalone</title>
<updated>2026-01-23T21:14:06Z</updated>
<author>
<name>George Sapkin</name>
</author>
<published>2026-01-23T16:58:36Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/commit/?id=7bb79b9d5391b2292d5b517822eae71a7bf5efdf'/>
<id>urn:sha1:7bb79b9d5391b2292d5b517822eae71a7bf5efdf</id>
<content type='text'>
Standalone image builder doesn't have a repositories file as all
packages are included, which causes:

ERROR: failed to read repositories: PATH_TO_BUILDER/repositories: No such file or directory

The images are still built, so this is more of an informational error.

Pass related argument to apk only when CONFIG_IB_STANDALONE is not set.

Fixes: a8d17c21 ("imagebuilder: actually support IB from buildbot")
Signed-off-by: George Sapkin &lt;george@sapk.in&gt;
Link: https://github.com/openwrt/openwrt/pull/21658
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>imagebuilder: add ABI suffix to packages when using apk</title>
<updated>2026-01-13T09:20:24Z</updated>
<author>
<name>George Sapkin</name>
</author>
<published>2026-01-08T03:00:26Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/commit/?id=31cdd13d22dd374d4a8b8d86377627ad01928495'/>
<id>urn:sha1:31cdd13d22dd374d4a8b8d86377627ad01928495</id>
<content type='text'>
If an apk package with an ABI version doesn't have priority set, it
can't be selected by its base name:

$ make manifest PACKAGES='libustream-openssl libsqlite3'
ERROR: unable to select packages:
  libsqlite3 (virtual):
    note: please select one of the 'provided by'
          packages explicitly
    provided by: libsqlite3-0
    required by: world[libsqlite3]
  libustream-openssl (virtual):
    note: please select one of the 'provided by'
          packages explicitly
    provided by: libustream-openssl20201210
    required by: world[libustream-openssl]

Look up the ABI version in apk index and if present, add an ABI suffix
to all requested packages.

Signed-off-by: George Sapkin &lt;george@sapk.in&gt;
Link: https://github.com/openwrt/openwrt/pull/21449
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix repeated generation of package index when signing is enabled</title>
<updated>2025-11-12T13:23:33Z</updated>
<author>
<name>Liangbin Lian</name>
</author>
<published>2024-05-08T04:57:11Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/commit/?id=26ddab47d90c9b0982de1e926c9cb7444d1089a7'/>
<id>urn:sha1:26ddab47d90c9b0982de1e926c9cb7444d1089a7</id>
<content type='text'>
`$(MAKE) package_index` will generate Packages.sig if signing is enabled, and Packages.sig is always newer than Packages.gz, cause repeated generation of package index on next build. So we should ignore Packages.sig.

Signed-off-by: Liangbin Lian &lt;jjm2473@gmail.com&gt;
</content>
</entry>
<entry>
<title>imagebuilder: implement STRIP_ABI option for manifest target</title>
<updated>2025-07-03T10:45:59Z</updated>
<author>
<name>Eric Fahlgren</name>
</author>
<published>2025-07-01T21:02:41Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/commit/?id=23dc466969f3364dfa7ab480e7745480a2e816f9'/>
<id>urn:sha1:23dc466969f3364dfa7ab480e7745480a2e816f9</id>
<content type='text'>
When using apk as the package manager, imagebuilder make command

    make manifest STRIP_ABI=1

does not strip package names of their ABI-version suffix.  The ASU
server relies on this to validate builds, so many snapshot build
requests are failing.

Fix this by using the already existing package data parser in
make-index-json.py and augment it to write the result in manifest
format.

Fixes: https://github.com/openwrt/openwrt/issues/19274
Signed-off-by: Eric Fahlgren &lt;ericfahlgren@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/19278
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix addition of local packages</title>
<updated>2025-02-21T09:44:42Z</updated>
<author>
<name>Kuan-Yi Li</name>
</author>
<published>2025-02-20T21:26:15Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/commit/?id=6936deac67e5f0d950bcc26e56bc90b15b12db12'/>
<id>urn:sha1:6936deac67e5f0d950bcc26e56bc90b15b12db12</id>
<content type='text'>
Since alpinelinux/apk-tools@460d62ee743c, relative paths are no longer
accepted in repositories file.

Add local repository in APK command instead to fix this issue.

Fixes: 83d2d21904e0 ("apk: update to Git HEAD (2025-02-08)")
Fixes: https://github.com/openwrt/openwrt/issues/18032
Signed-off-by: Kuan-Yi Li &lt;kyli@abysm.org&gt;
Link: https://github.com/openwrt/openwrt/pull/18048
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: lock versions for special APK packages</title>
<updated>2025-02-04T13:48:59Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2025-02-01T23:01:58Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/commit/?id=63e178f06740c473e4347dc195f03e7f57ce59a2'/>
<id>urn:sha1:63e178f06740c473e4347dc195f03e7f57ce59a2</id>
<content type='text'>
The three packages base-files, libc and kernel are special, the former
can't be upgraded in place since it's content are modified on startup,
the latter two are virtual packages only used as constraints for the
package manager.

Historically base-files was "locked" via a special OPKG function, the
latter two were hidden from the package index and thereby never picked
as possible upgrade.

Time moved forward and we now have APK and tools like OWUT. The latter
compares available packages with installed packages and generates user
readable output, requiring versions for libc and kernel, too. At the
same time, APK uses a different looking mechanism, which is set during
installation instead of part of the package metadata.

In short, this patch adds version constraints to the three packages,
allowing them to be part of the package index.

Fixes: #17774
Fixes: #17775
Fixes: efahl/owut#31

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix OPKG package_whatdepends support</title>
<updated>2024-11-20T08:49:21Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2024-11-19T22:56:19Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/commit/?id=52519a59a859d349f154ed79e0a3d63457b6aa6a'/>
<id>urn:sha1:52519a59a859d349f154ed79e0a3d63457b6aa6a</id>
<content type='text'>
Trying to use 'package_whatdepends' feature of the ImageBuilder with OPKG
will currently fail as OPKG does not support "list --depends" call at all,
it seems that this is a mixup from the original APK support commit.

So, lets restore 'package_whatdepends' support for OPKG by calling
"whatdepends -A" instead as we used to before APK support.

Fixes: d788ab376f85 ("build: add APK package build capabilities")
Link: https://github.com/openwrt/openwrt/pull/17022
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix APK package_depends support</title>
<updated>2024-11-20T08:49:21Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2024-11-19T22:38:02Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/commit/?id=03eeeffbd62bbba201445e0b79bd3360c896a4c8'/>
<id>urn:sha1:03eeeffbd62bbba201445e0b79bd3360c896a4c8</id>
<content type='text'>
Currently trying to use the 'package_depends' feature of ImageBuilder will
result in it trying to call OPKG:
make package_depends PACKAGE="usbutils"
OK: 26 MiB in 142 packages
bash: line 1: openwrt-imagebuilder-qualcommax-ipq807x.Linux-x86_64/staging_dir/host/bin/opkg: No such file or directory
make: *** [Makefile:363: package_depends] Error 127

It looks like a copy/paste error when APK support was being added, so lets
fix it by calling APK and its "info --depends" command.

Fixes: #16996
Fixes: d788ab376f85 ("build: add APK package build capabilities")
Link: https://github.com/openwrt/openwrt/pull/17022
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix APK architecture setting</title>
<updated>2024-11-19T18:52:03Z</updated>
<author>
<name>Robert Marko</name>
</author>
<published>2024-11-19T13:36:17Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/openwrt/staging/linusw/commit/?id=1c308bad5445df91d901d8389bfe31c888d0e8c9'/>
<id>urn:sha1:1c308bad5445df91d901d8389bfe31c888d0e8c9</id>
<content type='text'>
Currently, when "apk add --initdb" is called it will populate the
/etc/apk/arch file with the architecture of the host instead of the target
package architecture and this will then make it impossible for new packages
to be installed on the device as the target architecture will not match
after APK is updated to include [1].

So, lets use override the architecture by passing the target package one
by using the "--arch" argument to "apk add".

[1] https://gitlab.alpinelinux.org/alpine/apk-tools/-/commit/c1a3e69f24e235fc78f4dddb1f85fdf281464446

Fixes: #16953
Link: https://github.com/openwrt/openwrt/pull/17015
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
</feed>
