testing/zot: fix implicit declaration of basename

This commit is contained in:
Celeste 2024-03-13 04:08:43 +00:00 committed by Andy Postnikov
parent 6a9cd94835
commit fa7eeb3183
2 changed files with 15 additions and 0 deletions

View File

@ -23,6 +23,8 @@ source="
zui-$_zui_commit.tar.gz::https://github.com/project-zot/zui/archive/$_zui_commit.tar.gz
zot.initd
zot.confd
basename_patch
bump-go-sqlite3.patch
"
options="net" # download Go modules
@ -33,6 +35,8 @@ export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
prepare() {
default_prepare
go mod vendor -v
patch -p1 -i "$srcdir"/basename_patch
cd "$srcdir"/zui-$_zui_commit
npm install --no-progress
@ -123,5 +127,6 @@ sha512sums="
8b0f168193c664bb9f22f3340c8fcf934cf20cb53f89e25be417efb5633deb01f2dcedbd4960b03a94490f89a44ac2e53def839e2aa9489eab6ca52759d02c18 zui-f4a6030d93c4111af699a3ea0c154bd212e5aa06.tar.gz
86dfa273e97110b703fbc368757520ef6169dead185ff54b5b8ba45e764949bc3a21a51d53a1605d7163faef8c83c066e688577f5315b8c0afb09f69a2bbe3bb zot.initd
b128ecaf3e35cfdab8069da9a8267a9faed50b892ae07b6a4a22a4108236d6cdbc10cc4cf0105c728e9e6da6ac773f56d1dd84de1ba4463110058b6c2f190b30 zot.confd
640526de31a5eb21112c3d3fd30ce78331e5f5998166c9af9405ebad919a9a895ee82e3eed7067c2ce7e3e558e31907398fec1ad895be708e9f8ada696076216 basename_patch
f7efef45062db2418d6b78d7767876ff9d37204ba66da764e94cff9492fc4c2807600f1d6574d2446db7f936a5bafdf4476d4ade400910f62d30ff675ee330e3 bump-go-sqlite3.patch
"

View File

@ -0,0 +1,10 @@
--- a/vendor/github.com/containers/storage/pkg/unshare/unshare.c
+++ b/vendor/github.com/containers/storage/pkg/unshare/unshare.c
@@ -18,6 +18,7 @@
#include <sys/vfs.h>
#include <sys/mount.h>
#include <linux/limits.h>
+#include <libgen.h>
/* Open Source projects like conda-forge, want to package podman and are based
off of centos:6, Conda-force has minimal libc requirements and is lacking