From 31367c0b2731c7e28b4ae0fdbb6b31742499f49a Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 13 Dec 2020 10:46:07 -0500 Subject: patches: Use `tail -n` --- diff --git a/changelog b/changelog index 636c39a..ebe6ffc 100644 --- a/changelog +++ b/changelog @@ -6,6 +6,8 @@ lilo (24.2-2) trunk * Organize packages into sections. * lilo: Use automatic shared library dependencies (for "/usr/libexec/lilo/blkid"). + * Add a patch to fix build if old-style `tail -[number]` is + unsupported. -- Patrick McDermott Sun, 13 Dec 2020 10:18:41 -0500 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 +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 $(TMP) + for i in $(CFILES) $(HFILES) ; do cat $$i >>$(TMP) ; done + echo "#define CSOURCE " `./version $(TMP)` >>flags.i -- cgit v0.9.1