]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/sysvinit
sysvinit: Fix build against glibc 2.36
[ipfire-2.x.git] / lfs / sysvinit
index 7b195bfaeb6e9668751fb42ccc581020bb56fe78..ec0a5c292942e8c5889bfa1f00c0a5ca87307644 100644 (file)
@@ -40,7 +40,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 6d54ca5b648decb106103c01d415417f
+$(DL_FILE)_BLAKE2 = d1c4e509d7c13cf0fb9da290f875e7c0ab0666d843d75d4dd6885112248a859dd077bdf9cc926c4af58473da99a5229bb879c7094afd648d5ebe72597a3ba6a7
 
 install : $(TARGET)
 
@@ -48,10 +48,10 @@ check : $(patsubst %,$(DIR_CHK)/%,$(objects))
 
 download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
-md5 : $(subst %,%_MD5,$(objects))
+b2 : $(subst %,%_BLAKE2,$(objects))
 
 ###############################################################################
-# Downloading, checking, md5sum
+# Downloading, checking, b2sum
 ###############################################################################
 
 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
@@ -60,8 +60,8 @@ $(patsubst %,$(DIR_CHK)/%,$(objects)) :
 $(patsubst %,$(DIR_DL)/%,$(objects)) :
        @$(LOAD)
 
-$(subst %,%_MD5,$(objects)) :
-       @$(MD5)
+$(subst %,%_BLAKE2,$(objects)) :
+       @$(B2SUM)
 
 ###############################################################################
 # Installation Details
@@ -73,10 +73,11 @@ $(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_mountpoint.patch
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/sysvinit-3.00-fix-glibc-2.36-headers.patch
        cd $(DIR_APP) && sed -i src/mountpoint.c src/bootlogd.c \
                -e "/include.*sys\/stat.h/a#include <sys/sysmacros.h>\n"
        cd $(DIR_APP) && sed -e "s/libcrypt.a/libcrypt.so/g" -i src/Makefile
-       cd $(DIR_APP) && make $(MAKETUNING) -C src 
+       cd $(DIR_APP) && make $(MAKETUNING) -C src
        cd $(DIR_APP) && make -C src install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)