openwrt/package/system
Petr Štetiar a6c248e8ad
apk: fix long package description handling
Currently its not possible to generate apk package.adb package index if
the package has longer description field, which leads to following
failure:

 (2352/2353) Installing zoneinfo-all (2024b-r1)
 (2353/2353) Installing zstd (1.5.6-r1)
 ERROR: System state may be inconsistent: failed to write database: No buffer space available
 1 error; 2704 MiB in 2353 packages

The code to read/write installeddb does not really handle long
description well. Until the database is converted to apkv3 format,
truncate the apkv3 descriptions to allow existing code to work.

APKv3 index and packages still contain the original long description
unmodified, so no package rebuild will be needed.

Fixing the issue by backporting the single upstream fix as its not
possible to to upstep apk to the latest Git HEAD due to some
regressions, see commit 692052cdc0e7 ("Revert "apk: update to Git
417a93ceae540444fdbd3f76d1dadf0e15621fdc (2024-11-13)"") for more
details.

Fixes: #16929
References: https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/11038
Upstream-Status: Backport [417a93ceae]
Link: https://github.com/openwrt/openwrt/pull/16951
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2024-11-15 08:52:54 +00:00
..
apk apk: fix long package description handling 2024-11-15 08:52:54 +00:00
ca-certificates ca-certificates: add missing license information 2024-03-21 21:44:53 +01:00
fstools fstools: update to git HEAD 2024-07-14 19:45:21 +01:00
fwtool treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
gpio-cdev/nu801 nu801: Mark as nonshared to build in step 1 2024-11-04 21:20:37 +01:00
iucode-tool packages: refresh patches 2024-05-31 11:30:06 +02:00
mtd mediatek: Add support for Linksys EA7500 v3 2024-08-15 00:13:20 +02:00
openwrt-keyring openwrt-keyring: fix missing 24.10 usign key by installing it 2024-11-04 07:33:37 +00:00
opkg build: remove broken dependency of metadata on toplevel .config variables 2024-11-11 19:53:43 +01:00
procd procd: update to git HEAD 2024-11-15 02:54:56 +00:00
refpolicy packages: refresh patches 2024-05-31 11:30:06 +02:00
rpcd rpcd: update to git HEAD 2024-09-17 19:07:53 +01:00
selinux-policy treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
ubox ubox: update to Git HEAD (2024-04-26) 2024-04-27 13:34:13 +02:00
ubus ubus: update to Git HEAD (2024-10-20) 2024-10-20 23:59:51 +02:00
ucert treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
uci treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
urandom-seed treewide: disable QUILT refresh for unsupported packages 2023-10-20 16:13:13 +02:00
urngd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
usign treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
zram-swap treewide: replace AUTORELEASE with real PKG_RELEASE 2023-05-18 11:35:29 +02:00