From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 01/15] sysvinit: Fix build against glibc 2.36 Date: Mon, 15 Aug 2022 17:17:39 +0000 Message-ID: <20220815171753.1858688-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5555715690878065535==" List-Id: --===============5555715690878065535== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Michael Tremer --- lfs/sysvinit | 1 + src/patches/sysvinit-3.00-fix-glibc-2.36-headers.patch | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 src/patches/sysvinit-3.00-fix-glibc-2.36-headers.patch diff --git a/lfs/sysvinit b/lfs/sysvinit index 0126b283e..ec0a5c292 100644 --- a/lfs/sysvinit +++ b/lfs/sysvinit @@ -73,6 +73,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) # Newer C libraries omit this include from sys/types.h. # https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00018.html cd $(DIR_APP) && patch -Np1 -i $(DIR_SRC)/src/patches/sysvinit-2.98_build_m= ountpoint.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/sysvinit-3.00-fix-glib= c-2.36-headers.patch cd $(DIR_APP) && sed -i src/mountpoint.c src/bootlogd.c \ -e "/include.*sys\/stat.h/a#include \n" cd $(DIR_APP) && sed -e "s/libcrypt.a/libcrypt.so/g" -i src/Makefile diff --git a/src/patches/sysvinit-3.00-fix-glibc-2.36-headers.patch b/src/pat= ches/sysvinit-3.00-fix-glibc-2.36-headers.patch new file mode 100644 index 000000000..ee6f621b5 --- /dev/null +++ b/src/patches/sysvinit-3.00-fix-glibc-2.36-headers.patch @@ -0,0 +1,10 @@ +--- sysvinit-3.00/src/sulogin.c~ 2022-08-09 09:43:41.993484098 +0000 ++++ sysvinit-3.00/src/sulogin.c 2022-08-09 09:45:04.897252500 +0000 +@@ -51,7 +51,6 @@ + #ifdef __linux__ + # include + # include +-# include + # include + # include + # ifndef TMPFS_MAGIC --=20 2.30.2 --===============5555715690878065535==--