commit 1f17c6e59b363efe2094fa8ad64515d606d698b0
parent 7992a0400bcb32a74989f61b9b700d309e3fbf76
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 19:59:33 +0530
parent 7992a0400bcb32a74989f61b9b700d309e3fbf76
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Fri, 11 Sep 2026 19:59:33 +0530
Patch minci feature macros without replacing CFLAGS
3 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/Unix/minci/APKBUILD b/Unix/minci/APKBUILD @@ -15,8 +15,7 @@ build() { # provided by the compatibility package used when building via pacstall. case "$(uname -s)" in Linux) - perl -0pi -e 's/#include <unistd.h>/#include <unistd.h>\n#ifdef __linux__\n#include <pledge.h>\n#include <strings.h>\n#endif/' main.c - export CFLAGS="-D_GNU_SOURCE ${CFLAGS:-}" + perl -0pi -e 's@/\*\s*\$Id\$\s*\*/@#define _GNU_SOURCE\n/*\t\$Id\$\t*/@; s/#include <unistd.h>/#include <unistd.h>\n#ifdef __linux__\n#include <pledge.h>\n#include <strings.h>\n#endif/' main.c export LDFLAGS="${LDFLAGS:-} -lpledge" ;; esac
diff --git a/pacscripts/minci/PKGBUILD b/pacscripts/minci/PKGBUILD @@ -13,8 +13,8 @@ build() { cd $pkgname-$_pkgver # Linux/glibc needs feature-test visibility for strptime. pledge() is # provided by the pledge compatibility package. - perl -0pi -e 's/#include <unistd.h>/#include <unistd.h>\n#ifdef __linux__\n#include <pledge.h>\n#include <strings.h>\n#endif/' main.c - bmake PREFIX=/usr CFLAGS="-D_GNU_SOURCE ${CFLAGS:-}" LDFLAGS="${LDFLAGS:-} -lpledge" + perl -0pi -e 's@/\*\s*\$Id\$\s*\*/@#define _GNU_SOURCE\n/*\t\$Id\$\t*/@; s/#include <unistd.h>/#include <unistd.h>\n#ifdef __linux__\n#include <pledge.h>\n#include <strings.h>\n#endif/' main.c + bmake PREFIX=/usr LDFLAGS="${LDFLAGS:-} -lpledge" } package() {
diff --git a/pacscripts/minci/minci.pacscript b/pacscripts/minci/minci.pacscript @@ -13,8 +13,8 @@ build() { cd $pkgname-$_pkgver # Linux/glibc needs feature-test visibility for strptime. pledge() is # provided by the pledge compatibility package. - perl -0pi -e 's/#include <unistd.h>/#include <unistd.h>\n#ifdef __linux__\n#include <pledge.h>\n#include <strings.h>\n#endif/' main.c - bmake PREFIX=/usr CFLAGS="-D_GNU_SOURCE ${CFLAGS:-}" LDFLAGS="${LDFLAGS:-} -lpledge" + perl -0pi -e 's@/\*\s*\$Id\$\s*\*/@#define _GNU_SOURCE\n/*\t\$Id\$\t*/@; s/#include <unistd.h>/#include <unistd.h>\n#ifdef __linux__\n#include <pledge.h>\n#include <strings.h>\n#endif/' main.c + bmake PREFIX=/usr LDFLAGS="${LDFLAGS:-} -lpledge" } package() {
: nply/foundationpkgs