X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=lfs%2Fcoreutils;h=2c282b194b9f60ce26720b41098868b8d2da8678;hp=63d0a889823900ce3170771a354a9d53f5c53fb0;hb=15b1a3e360a277dc7481103f8ddcbf189033e3a6;hpb=6e0b26ba7db9d1faa5eb564b07d617c78d8ab0ef diff --git a/lfs/coreutils b/lfs/coreutils index 63d0a88982..2c282b194b 100644 --- a/lfs/coreutils +++ b/lfs/coreutils @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2011 IPFire Team # +# Copyright (C) 2007-2018 IPFire Team # # # # This program is free software: you can redistribute it and/or modify # # it under the terms of the GNU General Public License as published by # @@ -24,25 +24,23 @@ include Config -VER = 8.23 +VER = 8.30 THISAPP = coreutils-$(VER) DL_FILE = $(THISAPP).tar.xz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) -# Normal build or /tools build. +# Normal build or $(TOOLS_DIR) build. # ifeq "$(ROOT)" "" TARGET = $(DIR_INFO)/$(THISAPP) - CONFIGURE_OPTIONS = --prefix=/usr else TARGET = $(DIR_INFO)/$(THISAPP)-tools - CONFIGURE_OPTIONS = --prefix=/tools endif CONFIGURE_OPTIONS += \ - --disable-selinux \ + --prefix=$(PREFIX) \ --enable-largefile \ --disable-rpath \ --enable-install-program=arch \ @@ -52,15 +50,20 @@ CONFIGURE_OPTIONS += \ CFLAGS += -fno-strict-aliasing +# Build with 32 bit time_t on 32 bit architectures +ifeq "$(IS_32BIT)" "1" + export TIME_T_32_BIT_OK=yes +endif + ############################################################################### # Top-level Rules ############################################################################### objects =$(DL_FILE) -$(DL_FILE) = $(DL_FROM)/$(DL_FILE) +$(DL_FILE)= $(DL_FROM)/$(DL_FILE) -$(DL_FILE)_MD5 = abed135279f87ad6762ce57ff6d89c41 +$(DL_FILE)_MD5 = ab06d68949758971fe744db66b572816 install : $(TARGET) @@ -90,7 +93,9 @@ $(subst %,%_MD5,$(objects)) : $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) - cd $(DIR_APP) && ./configure $(CONFIGURE_OPTIONS) + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/coreutils-8.27-uname-1.patch + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/coreutils-8.27-i18n-1.patch + cd $(DIR_APP) && FORCE_UNSAFE_CONFIGURE=1 && ./configure $(CONFIGURE_OPTIONS) cd $(DIR_APP) && make $(MAKETUNING) cd $(DIR_APP) && make install @@ -100,8 +105,6 @@ ifeq "$(ROOT)" "" mv -v /usr/bin/{rmdir,stty,sync,true,uname} /bin mv -v /usr/bin/chroot /usr/sbin mv -v /usr/bin/{head,sleep,nice} /bin - ln -sf test /bin/[ - #ln -sf ../../bin/install /usr/bin dircolors -p > /etc/DIR_COLORS endif