serenity/Ports/bash/patches/0002-Remove-getopt-from-examples.patch
Fabian Dellwing 824d23570a Ports: Remove getconf from bash examples
We fail to build `getconf.c` from the builtin examples. And therefore
don't install the rest. If we remove it, we successfully build the
rest of the examples.
2023-04-27 10:25:42 +01:00

24 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Fabian Dellwing <fabian.dellwing@gmail.com>
Date: Mon, 24 Apr 2023 18:54:29 +0200
Subject: [PATCH] Remove getopt from examples
We currently fail to build getconf.c because we are missing libintl.h and don't support multiple needed syscalls (from around 300 total syscalls).
---
examples/loadables/Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/loadables/Makefile.in b/examples/loadables/Makefile.in
index 956f018933f861ff157841f42247a778f04ba909..4852f0419cb2ae039e2b5a403d66eff7975ede25 100644
--- a/examples/loadables/Makefile.in
+++ b/examples/loadables/Makefile.in
@@ -104,7 +104,7 @@ INC = -I. -I.. -I$(topdir) -I$(topdir)/lib -I$(topdir)/builtins -I${srcdir} \
ALLPROG = print truefalse sleep finfo logname basename dirname fdflags \
tty pathchk tee head mkdir rmdir mkfifo mktemp printenv id whoami \
uname sync push ln unlink realpath strftime mypid setpgid seq rm \
- accept csv dsv cut stat getconf
+ accept csv dsv cut stat
OTHERPROG = necho hello cat pushd asort
all: $(SHOBJ_STATUS)