commit bc3944dbb5109ec9fafce0f3d73b9227b6574bd6
parent 85493250918d0ce39906f2bbfd6611429e646596
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 20:32:09 +0530
parent 85493250918d0ce39906f2bbfd6611429e646596
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 20:32:09 +0530
Disable OpenBSD pledge call for Linux minci CGI
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/Unix/minci/APKBUILD b/Unix/minci/APKBUILD @@ -18,10 +18,8 @@ build() { # provided by the pledge compatibility package. case "$(uname -s)" in Linux) - awk 'NR == 1 { print "#define _GNU_SOURCE" } { print } /#include <unistd.h>/ { print "#ifdef __linux__"; print "#include <pledge.h>"; print "#include <strings.h>"; print "#endif" }' main.c >main.c.new + awk 'NR == 1 { print "#define _GNU_SOURCE" } { print } /#include <unistd.h>/ { print "#ifdef __linux__"; print "#include <strings.h>"; print "#define pledge(promises, execpromises) (0)"; print "#endif" }' main.c >main.c.new mv main.c.new main.c - awk '{ gsub(/`pkg-config --libs --static kcgi sqlbox`/, "`pkg-config --libs --static kcgi sqlbox` -lpledge"); gsub(/\$\(LDADD\)/, "$(LDADD) -lpledge"); print }' Makefile >Makefile.new - mv Makefile.new Makefile ;; esac bmake PREFIX=/usr DATADIR=/var/lib/minci
: nply/foundationpkgs