<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/blocktrron/package/Makefile, branch master</title>
<subtitle>Staging tree of David Bauer</subtitle>
<id>https://git.openwrt.org/openwrt/staging/blocktrron/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/blocktrron/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/'/>
<updated>2025-10-09T10:52:43Z</updated>
<entry>
<title>package: do not sign individual APK packages</title>
<updated>2025-10-09T10:52:43Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2025-10-08T09:42:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=084697eb62f8fae6185af285e12f5cd0268114de'/>
<id>urn:sha1:084697eb62f8fae6185af285e12f5cd0268114de</id>
<content type='text'>
APK, unlike OPKG, can sign individual packages and not just indexes.
Since OpenWrt uses a distributed build infrastructure and only the build
master owns the private keys, signing of individual buildworkers doesn't
work. Right now, each buildworker creates a temporary build key to sign
packages, then transmits the package index to the buildmaster for a
signature.

As a result, all individual packages contain a nonsensical signature,
making them harder to reproduce. This commit removes the individual
package signing.

Since APK requires signatures per default, explicitly allow installation
of unsigned packages during the build process.

The config option here is for historical reasons misleading,
SIGNED_PACKAGES refers to the package index, not the individual
packages.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>package: generate sha256sums by default</title>
<updated>2025-10-03T09:00:23Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2025-10-01T13:22:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=06be7f59285b57f3401a8891ebe857d25806d16c'/>
<id>urn:sha1:06be7f59285b57f3401a8891ebe857d25806d16c</id>
<content type='text'>
Right now the sha256sums are only created for the targets/ folder (i.e.
firmware images) and only the buildbot generates those sha256sums. Instead, let
the build system create the sha256sums directly.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>package: rework contents of package index.json</title>
<updated>2025-06-11T14:55:31Z</updated>
<author>
<name>Eric Fahlgren</name>
</author>
<published>2025-06-06T23:43:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=2b0b16f1d1571b23425b2d7ab5dc3816e2ceec12'/>
<id>urn:sha1:2b0b16f1d1571b23425b2d7ab5dc3816e2ceec12</id>
<content type='text'>
Rework the generation of the index.json version of the package
indexes to match the original intent (i.e., for use by the ASU
server and other downstream projects).  The current file contains
package names that have ABI versioning, making them unusable by ASU,
so we now remove the ABI suffixes.

Also adds a 'version' field to the json, so downstream utilities
can detect the new semantics of the package name fields.

Links: https://github.com/openwrt/openwrt/commit/218ce40cd738f3373438aab82467807a8707fb9c
Signed-off-by: Eric Fahlgren &lt;ericfahlgren@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/19051
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.openwrt.org/openwrt/staging/blocktrron/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>build: fix filtering of non-upgradable packages</title>
<updated>2024-11-21T16:55:45Z</updated>
<author>
<name>Eric Fahlgren</name>
</author>
<published>2024-11-21T13:50:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=2784f78c6c22c0731ef551e4fcd42295f08a07a5'/>
<id>urn:sha1:2784f78c6c22c0731ef551e4fcd42295f08a07a5</id>
<content type='text'>
Add anchor to name search so that we don't inadvertently filter out
packages containing, say, "kernel-" as part of their name.

Fixes: openwrt/packages#25372
Signed-off-by: Eric Fahlgren &lt;ericfahlgren@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/17032
Signed-off-by: Robert Marko &lt;robimarko@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: apk: Remove /run/apk/db.lock</title>
<updated>2024-11-16T13:22:22Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2024-11-14T21:57:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=71c14cbee5aa5f1924191252c07a69b7e6aabd29'/>
<id>urn:sha1:71c14cbee5aa5f1924191252c07a69b7e6aabd29</id>
<content type='text'>
Do not add the file /run/apk/db.lock to the root file system. The /run
folder should be on a tmpfs.

At runtime we should make /run point to a tmpfs. At build time we should
just remove the folder.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
Link: https://github.com/openwrt/openwrt/pull/16961
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>package: use /dev/null for apk --repositories-file</title>
<updated>2024-11-15T11:27:44Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-11-15T11:27:44Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=8c018dcb5601150f26a01babd297e6b416895eba'/>
<id>urn:sha1:8c018dcb5601150f26a01babd297e6b416895eba</id>
<content type='text'>
In preparation for APK version bump, use /dev/null instead of /dev/zero
for --repositories-file to mute an error in recent APK files.

New APK version use modern istream logic that are more sensible to the
kind of file passed and /dev/null is required to correctly handle an
empty repository file.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>build: create package index.json</title>
<updated>2024-11-12T17:34:51Z</updated>
<author>
<name>Eric Fahlgren</name>
</author>
<published>2024-11-12T17:10:02Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=f84187035e96d6d9912deebc25822910a7d539a5'/>
<id>urn:sha1:f84187035e96d6d9912deebc25822910a7d539a5</id>
<content type='text'>
Duplicate the old opkg index.json using the new apk database.
Needed to get the ASU server working on new snapshots.

Signed-off-by: Eric Fahlgren &lt;ericfahlgren@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/16931
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix package inclusion and APK index</title>
<updated>2024-11-09T15:46:35Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-11-06T15:32:03Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=451e2ce006eaba5341d7e33ac587719c3bf18701'/>
<id>urn:sha1:451e2ce006eaba5341d7e33ac587719c3bf18701</id>
<content type='text'>
We need to exclude packages from the APK index which must not be
upgraded. To do so, the packages `libc`, `kernel` and `base-files` are
excluded to APK never suggestes them as upgradable.

The previous logic would however match packages like `libcomerr0`,
causing build failures. Make the copying and excluding logic more
precise by adding a single dash.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>imagebuilder: fix APK for packages dir and cache</title>
<updated>2024-11-09T15:46:35Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-11-01T11:33:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/blocktrron/commit/?id=ad1c1b7047b2e716b75031e26af544532f429f10'/>
<id>urn:sha1:ad1c1b7047b2e716b75031e26af544532f429f10</id>
<content type='text'>
This commit solves multiple issues. First of just install the three
special packages base-files, libc and kernel directly from the index. In
upstream indexes, those will never appear to prevent accidental upgrades
may breaking the system.

Next, enable caching for the ImageBuilder, which speeds up consecutive
builds from ~33 seconds to ~5 seconds. Using cache however makes APK
create the folder `/var/cache/apk/` which conflicts with the base-files
installation, which ships a symlink from `/var` to `/tmp`, so specify
`--no-cache` for the rootfs initialization.

Lastly, drop the use of `apk update` since APK automatically does that.

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
</feed>
