<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/jow/package/Makefile, branch main</title>
<subtitle>Staging tree of Jo-Philipp Wich</subtitle>
<id>https://git.openwrt.org/openwrt/staging/jow/atom?h=main</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/jow/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/'/>
<updated>2024-11-21T16:55:45Z</updated>
<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/jow/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/jow/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/jow/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/jow/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/jow/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/jow/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>
<entry>
<title>build: don't include kernel/libc in package index</title>
<updated>2024-10-30T13:17:33Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-10-29T10:09:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=07b845b1f2e7417c39f3585d971b05f7ab3ce08b'/>
<id>urn:sha1:07b845b1f2e7417c39f3585d971b05f7ab3ce08b</id>
<content type='text'>
The same that is done in `ipkg-make-index.sh` should happen with APK.
If the pseudo packages, only added to add dependency constraints, are
added to the index, APK happily "upgrades" them and installs updated
kmods, too. However, the Kernel itself is never installed via a regular
package.

Fixes: https://github.com/openwrt/openwrt/issues/16808

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>package: fix key creation for SDK</title>
<updated>2024-10-28T23:07:55Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-10-28T21:33:48Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=408eab55ee0abddd972e3fa7341869dff0794000'/>
<id>urn:sha1:408eab55ee0abddd972e3fa7341869dff0794000</id>
<content type='text'>
Prior to this commit keys would only be generated if `make` is called
alone, but not for something like `make package/busybox/compile`.

The exact reasons are in the depth of make magic, so this is sheer luck!

Signed-off-by: Paul Spooren &lt;mail@aparcar.org&gt;
</content>
</entry>
<entry>
<title>build: detach apk repository handling from rootfs.mk</title>
<updated>2024-10-28T23:07:51Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-10-24T18:25:06Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=23e27d21d532ffd3535810a6c8da2c70354bf78b'/>
<id>urn:sha1:23e27d21d532ffd3535810a6c8da2c70354bf78b</id>
<content type='text'>
To better support imagebuilder declaring --repositories-file on calling
apk macro, detach this and --repository from rootfs.mk macro and move it
to package Makefile and image.mk where they are used to permit a more
generic usage.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>sdk: fix APK key creation</title>
<updated>2024-08-08T23:47:05Z</updated>
<author>
<name>Paul Spooren</name>
</author>
<published>2024-08-08T15:31:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/jow/commit/?id=44b6df31841200200e374086a44e37c56621741f'/>
<id>urn:sha1:44b6df31841200200e374086a44e37c56621741f</id>
<content type='text'>
The keys are created differently compared to the old OPKG keys. Instead
of being part of base-files/configure, they are created as a Makefile
requirement of `package/compile`, which is a cleaner solution.

This requirement would only be added to non SDK environments, however
APK always requires keys to be available. Add an `else` case for the SDK
and create keys.

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