summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-12-13 10:46:07 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-12-13 10:46:07 (EST)
commit31367c0b2731c7e28b4ae0fdbb6b31742499f49a (patch)
tree01d6554e6ce9abf52b7f1ff6cf8b2cdc223acc86 /patches
parentcd0f0939fd24aba8e536012ef0c2a096ab914c0f (diff)
patches: Use `tail -n`
Diffstat (limited to 'patches')
-rw-r--r--patches/01_use-tail-n.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/01_use-tail-n.patch b/patches/01_use-tail-n.patch
new file mode 100644
index 0000000..db153b8
--- /dev/null
+++ b/patches/01_use-tail-n.patch
@@ -0,0 +1,18 @@
+Author: Patrick McDermott <patrick.mcdermott@libiquity.com>
+Subject: Use `tail -n`
+
+`tail -[number]` is no longer specified by POSIX and may be disabled in
+ProteanOS.
+
+diff -Naur src.orig/src/Makefile src/src/Makefile
+--- src.orig/src/Makefile 2015-11-21 18:50:25.000000000 -0500
++++ src/src/Makefile 2020-12-13 10:42:04.445635494 -0500
+@@ -161,7 +161,7 @@
+
+ flags.i: ../test.img Makefile version $(CFILES) $(HFILES)
+ echo "#define CFLAGS \"" $(CFLAGS) "\"" >flags.i
+- tail -$$((`wc -l <Makefile`-`sed /\#\#\#/q <Makefile | wc -l`)) \
++ tail -n $$((`wc -l <Makefile`-`sed /\#\#\#/q <Makefile | wc -l`)) \
+ <Makefile | grep -v "0x" >$(TMP)
+ for i in $(CFILES) $(HFILES) ; do cat $$i >>$(TMP) ; done
+ echo "#define CSOURCE " `./version $(TMP)` >>flags.i