Commit 769872f6 authored by Natanael Copa's avatar Natanael Copa
Browse files

main/apk-tools: fix index generation error

Fix index generation error:
ERROR: Metadata for package util-linux-openrc-2.38.1-r0 is too long.
ERROR: Index generation failed: No buffer space available
parent 0b111637
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=apk-tools
pkgver=2.12.9
pkgrel=6
pkgrel=7
pkgdesc="Alpine Package Keeper - package manager for alpine"
arch="all"
url="https://gitlab.alpinelinux.org/alpine/apk-tools"
......@@ -23,6 +23,7 @@ if [ "$CBUILD" = "$CHOST" ]; then
depends="$depends ca-certificates-bundle"
fi
source="https://gitlab.alpinelinux.org/alpine/$pkgname/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz
increase-index-meta-buffer.patch
_apk
"
builddir="$srcdir/$pkgname-v$pkgver"
......@@ -87,5 +88,6 @@ luaapk() {
sha512sums="
2e299e50c5ca8733f04fad971247146ff4bebb697c3589e4692c9a940ede89432dd9fea48004dc947cb493db1206a336ac0ad1e876b02683183d69b4a127d1c6 apk-tools-v2.12.9.tar.gz
3807fe95357855a8b682a13dc6178db9d0396ed905bee694ef923867b1f79c61801ba4d4240adeb27825bc472006a74a5e7898b4683c548ee826e825710ce3e1 increase-index-meta-buffer.patch
7870676720f5007eee9482786e02246f8e3474afb90e76c9c83aebe914747a8e007b5d2eed6441933f4922024b3f0664db270f21981ad6c2db877a110b0cd79e _apk
"
diff --git a/src/package.c b/src/package.c
index 2aeb21c..e317026 100644
--- a/src/package.c
+++ b/src/package.c
@@ -1117,7 +1117,7 @@ static int write_depends(struct apk_ostream *os, const char *field,
int apk_pkg_write_index_entry(struct apk_package *info,
struct apk_ostream *os)
{
- char buf[512];
+ char buf[1024];
apk_blob_t bbuf = APK_BLOB_BUF(buf);
apk_blob_push_blob(&bbuf, APK_BLOB_STR("C:"));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment