1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:47:44 +00:00

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.
This commit is contained in:
Fabian Dellwing 2023-04-24 16:13:08 +02:00 committed by Sam Atkins
parent ed06429d33
commit 824d23570a
3 changed files with 31 additions and 2 deletions

View file

@ -10,10 +10,10 @@ serenity is not one of them.
1 file changed, 1 insertion(+) 1 file changed, 1 insertion(+)
diff --git a/examples/loadables/accept.c b/examples/loadables/accept.c 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 --- a/examples/loadables/accept.c
+++ b/examples/loadables/accept.c +++ b/examples/loadables/accept.c
@@ -35,6 +35,7 @@ @@ -36,6 +36,7 @@
#include <sys/socket.h> #include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h> #include <netinet/in.h>

View file

@ -0,0 +1,23 @@
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)

View file

@ -7,3 +7,9 @@ accept.c: Include sys/select.h
This is transitively pulled in by other headers in some systems, This is transitively pulled in by other headers in some systems,
serenity is not one of them. 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).