diff --git a/Ports/bash/patches/0001-accept.c-Include-sys-select.h.patch b/Ports/bash/patches/0001-accept.c-Include-sys-select.h.patch index 927f3309a4..0e3105161a 100644 --- a/Ports/bash/patches/0001-accept.c-Include-sys-select.h.patch +++ b/Ports/bash/patches/0001-accept.c-Include-sys-select.h.patch @@ -10,10 +10,10 @@ serenity is not one of them. 1 file changed, 1 insertion(+) diff --git a/examples/loadables/accept.c b/examples/loadables/accept.c -index 54cf38c..fd8e7ed 100644 +index ff98423dd0b256a79cd6d033abb381705daac868..0099f97f635885f6672f52efda2e90415659340a 100644 --- a/examples/loadables/accept.c +++ b/examples/loadables/accept.c -@@ -35,6 +35,7 @@ +@@ -36,6 +36,7 @@ #include #include #include diff --git a/Ports/bash/patches/0002-Remove-getopt-from-examples.patch b/Ports/bash/patches/0002-Remove-getopt-from-examples.patch new file mode 100644 index 0000000000..c6f303e1eb --- /dev/null +++ b/Ports/bash/patches/0002-Remove-getopt-from-examples.patch @@ -0,0 +1,23 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Fabian Dellwing +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) diff --git a/Ports/bash/patches/ReadMe.md b/Ports/bash/patches/ReadMe.md index b0d244fbd1..568c94b168 100644 --- a/Ports/bash/patches/ReadMe.md +++ b/Ports/bash/patches/ReadMe.md @@ -7,3 +7,9 @@ accept.c: Include sys/select.h This is transitively pulled in by other headers in some systems, serenity is not one of them. +## `0002-Remove-getopt-from-examples.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). +