Signed-off-by: Marcel Lorenz marcel.lorenz@ipfire.org
--- config/rootfiles/common/gzip | 25 ++++++++++++------------- lfs/gzip | 34 +++++++++++----------------------- 2 files changed, 23 insertions(+), 36 deletions(-)
diff --git a/config/rootfiles/common/gzip b/config/rootfiles/common/gzip index f01fb59..c470a38 100644 --- a/config/rootfiles/common/gzip +++ b/config/rootfiles/common/gzip @@ -1,4 +1,3 @@ -#bin/compress bin/gunzip bin/gzip bin/uncompress @@ -13,15 +12,15 @@ bin/zcat #usr/bin/zless #usr/bin/zmore #usr/bin/znew -#usr/info/gzip.info -#usr/man/man1/gunzip.1 -#usr/man/man1/gzexe.1 -#usr/man/man1/gzip.1 -#usr/man/man1/zcat.1 -#usr/man/man1/zcmp.1 -#usr/man/man1/zdiff.1 -#usr/man/man1/zforce.1 -#usr/man/man1/zgrep.1 -#usr/man/man1/zless.1 -#usr/man/man1/zmore.1 -#usr/man/man1/znew.1 +#usr/share/info/gzip.info +#usr/share/man/man1/gunzip.1 +#usr/share/man/man1/gzexe.1 +#usr/share/man/man1/gzip.1 +#usr/share/man/man1/zcat.1 +#usr/share/man/man1/zcmp.1 +#usr/share/man/man1/zdiff.1 +#usr/share/man/man1/zforce.1 +#usr/share/man/man1/zgrep.1 +#usr/share/man/man1/zless.1 +#usr/share/man/man1/zmore.1 +#usr/share/man/man1/znew.1 diff --git a/lfs/gzip b/lfs/gzip index 0afd1ff..b83bb0d 100644 --- a/lfs/gzip +++ b/lfs/gzip @@ -24,10 +24,10 @@
include Config
-VER = 1.3.5 +VER = 1.6
THISAPP = gzip-$(VER) -DL_FILE = $(THISAPP).tar.gz +DL_FILE = $(THISAPP).tar.xz DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP)
@@ -35,14 +35,10 @@ DIR_APP = $(DIR_SRC)/$(THISAPP) # ifeq "$(ROOT)" "" TARGET = $(DIR_INFO)/$(THISAPP) - EXTRA_CONFIG = --prefix=/usr --disable-nls - EXTRA_MAKE = - EXTRA_INSTALL = + EXTRA_CONFIG = --prefix=/usr --disable-nls --bindir=/bin else TARGET = $(DIR_INFO)/$(THISAPP)-tools EXTRA_CONFIG = --prefix=/tools --disable-nls - EXTRA_MAKE = - EXTRA_INSTALL = endif
############################################################################### @@ -53,7 +49,7 @@ objects = $(DL_FILE)
$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
-$(DL_FILE)_MD5 = 3d6c191dfd2bf307014b421c12dc8469 +$(DL_FILE)_MD5 = da981f86677d58a106496e68de6f8995
install : $(TARGET)
@@ -82,23 +78,15 @@ $(subst %,%_MD5,$(objects)) :
$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) @$(PREBUILD) - @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE) -ifeq "$(ROOT)" "" - cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/$(THISAPP)-security_fixes-1.patch -endif + @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) cd $(DIR_APP) && ./configure $(EXTRA_CONFIG) + cd $(DIR_APP) && make $(MAKETUNING) + cd $(DIR_APP) && make install ifeq "$(ROOT)" "" - cd $(DIR_APP) && sed -i 's@"BINDIR"@/bin@g' gzexe.in -endif - cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE) - cd $(DIR_APP) && make $(EXTRA_INSTALL) install -ifeq "$(ROOT)" "" - mv -v /usr/bin/gzip /bin - rm -v /usr/bin/{gunzip,zcat} - ln -sv gzip /bin/gunzip - ln -sv gzip /bin/zcat - ln -sv gzip /bin/compress - ln -sv gunzip /bin/uncompress + ln -sfv gzip /bin/gunzip + ln -sfv gzip /bin/zcat + mv -v /bin/{gzexe,zcmp,zdiff,zegrep} /usr/bin + mv -v /bin/{zfgrep,zforce,zgrep,zless,zmore,znew} /usr/bin endif @rm -rf $(DIR_APP) @$(POSTBUILD)
Signed-off-by: Marcel Lorenz marcel.lorenz@ipfire.org
--- lfs/dhcp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/lfs/dhcp b/lfs/dhcp index 9a89d40..cec8628 100644 --- a/lfs/dhcp +++ b/lfs/dhcp @@ -99,17 +99,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-gpxe-cid.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
- # Remove bundled BIND stuff. - # (requires newer autoconf) - #rm -rfv $(DIR_APP)/bind/bind.tar.gz - #cd $(DIR_APP) && autoreconf --verbose --force --install - - cd $(DIR_APP) && \ - ./configure \ + cd $(DIR_APP)/bind && tar -axf bind.tar.gz + cd $(DIR_APP) && ./configure \ --prefix=/usr \ --sysconfdir=/etc/dhcp \ --with-srv-lease-file=/var/state/dhcp/dhcpd.leases \ - --disable-static \ --enable-paranoia \ --enable-early-chroot \ --disable-dhcpv6
Hi,
what is the build issue you are trying to solve here?
Copying in a highly outdated version of the bind libs is from my point of view a big security risk.
-Michael
On Tue, 2016-03-08 at 11:09 +0100, Marcel Lorenz wrote:
Signed-off-by: Marcel Lorenz marcel.lorenz@ipfire.org
lfs/dhcp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/lfs/dhcp b/lfs/dhcp index 9a89d40..cec8628 100644 --- a/lfs/dhcp +++ b/lfs/dhcp @@ -99,17 +99,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-gpxe-cid.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
- # Remove bundled BIND stuff.
- # (requires newer autoconf)
- #rm -rfv $(DIR_APP)/bind/bind.tar.gz
- #cd $(DIR_APP) && autoreconf --verbose --force --install
- cd $(DIR_APP) && \
./configure \
- cd $(DIR_APP)/bind && tar -axf bind.tar.gz
- cd $(DIR_APP) && ./configure \
--prefix=/usr \ --sysconfdir=/etc/dhcp \ --with-srv-lease- file=/var/state/dhcp/dhcpd.leases \
--disable-static \
--enable-paranoia \ --enable-early-chroot \ --disable-dhcpv6
Am 2016-03-08 15:26, schrieb Michael Tremer:
Hi,
what is the build issue you are trying to solve here?
Copying in a highly outdated version of the bind libs is from my point of view a big security risk.
-Michael
On Tue, 2016-03-08 at 11:09 +0100, Marcel Lorenz wrote:
Signed-off-by: Marcel Lorenz marcel.lorenz@ipfire.org
Hi,
you have right, the old bind is a security risk!
This is the current lfs file without patch: ***** cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
# Remove bundled BIND stuff. # (requires newer autoconf) #rm -rfv $(DIR_APP)/bind/bind.tar.gz #cd $(DIR_APP) && autoreconf --verbose --force --install
cd $(DIR_APP) && \ *****
The error in log is "use tar axf to extract..."
The old bind is extracted while make runs. After gzip update this not working more automatic. They only need some files from bind archive to built the isc-dhcp package. Bind itself is not used. (When i understood this correct)
The: "cd $(DIR_APP)/bind && tar -axf bind.tar.gz" extract this before make runs.. That's all..
Greetings, Marcel
lfs/dhcp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/lfs/dhcp b/lfs/dhcp index 9a89d40..cec8628 100644 --- a/lfs/dhcp +++ b/lfs/dhcp @@ -99,17 +99,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-gpxe-cid.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
- # Remove bundled BIND stuff.
- # (requires newer autoconf)
- #rm -rfv $(DIR_APP)/bind/bind.tar.gz
- #cd $(DIR_APP) && autoreconf --verbose --force --install
- cd $(DIR_APP) && \
./configure \
- cd $(DIR_APP)/bind && tar -axf bind.tar.gz
- cd $(DIR_APP) && ./configure \
--prefix=/usr \ --sysconfdir=/etc/dhcp \ --with-srv-lease- file=/var/state/dhcp/dhcpd.leases \
--disable-static \
--enable-paranoia \ --enable-early-chroot \ --disable-dhcpv6
I think this *should not* break. This might be a regression in gzip then.
Do you have a snippet of the build log of the error?
-Michael
On Tue, 2016-03-08 at 18:03 +0100, Marcel Lorenz wrote:
Am 2016-03-08 15:26, schrieb Michael Tremer:
Hi,
what is the build issue you are trying to solve here?
Copying in a highly outdated version of the bind libs is from my point of view a big security risk.
-Michael
On Tue, 2016-03-08 at 11:09 +0100, Marcel Lorenz wrote:
Signed-off-by: Marcel Lorenz marcel.lorenz@ipfire.org
Hi,
you have right, the old bind is a security risk!
This is the current lfs file without patch:
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
# Remove bundled BIND stuff. # (requires newer autoconf) #rm -rfv $(DIR_APP)/bind/bind.tar.gz #cd $(DIR_APP) && autoreconf --verbose --force --install
cd $(DIR_APP) && \
The error in log is "use tar axf to extract..."
The old bind is extracted while make runs. After gzip update this not working more automatic. They only need some files from bind archive to built the isc-dhcp package. Bind itself is not used. (When i understood this correct)
The: "cd $(DIR_APP)/bind && tar -axf bind.tar.gz" extract this before make runs.. That's all..
Greetings, Marcel
lfs/dhcp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/lfs/dhcp b/lfs/dhcp index 9a89d40..cec8628 100644 --- a/lfs/dhcp +++ b/lfs/dhcp @@ -99,17 +99,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-gpxe-cid.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
- # Remove bundled BIND stuff.
- # (requires newer autoconf)
- #rm -rfv $(DIR_APP)/bind/bind.tar.gz
- #cd $(DIR_APP) && autoreconf --verbose --force --install
- cd $(DIR_APP) && \
./configure \
- cd $(DIR_APP)/bind && tar -axf bind.tar.gz
- cd $(DIR_APP) && ./configure \
--prefix=/usr \ --sysconfdir=/etc/dhcp \ --with-srv-lease- file=/var/state/dhcp/dhcpd.leases \
--disable-static \
--enable-paranoia \ --enable-early-chroot \ --disable-dhcpv6
:) as you wish:
***** Now you can type make to build ISC DHCP
cd /usr/src/dhcp-4.3.1 && make -j5 make[1]: Entering directory '/usr/src/dhcp-4.3.1' Making all in bind make[2]: Entering directory '/usr/src/dhcp-4.3.1/bind' tar: Archive is compressed. Use -z option tar: Error is not recoverable: exiting now Makefile:33: recipe for target 'all' failed ****
Marcel
Am 2016-03-08 18:06, schrieb Michael Tremer:
I think this *should not* break. This might be a regression in gzip then.
Do you have a snippet of the build log of the error?
-Michael
On Tue, 2016-03-08 at 18:03 +0100, Marcel Lorenz wrote:
Am 2016-03-08 15:26, schrieb Michael Tremer:
Hi,
what is the build issue you are trying to solve here?
Copying in a highly outdated version of the bind libs is from my point of view a big security risk.
-Michael
On Tue, 2016-03-08 at 11:09 +0100, Marcel Lorenz wrote:
Signed-off-by: Marcel Lorenz marcel.lorenz@ipfire.org
Hi,
you have right, the old bind is a security risk!
This is the current lfs file without patch:
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
# Remove bundled BIND stuff. # (requires newer autoconf) #rm -rfv $(DIR_APP)/bind/bind.tar.gz #cd $(DIR_APP) && autoreconf --verbose --force --install
cd $(DIR_APP) && \
The error in log is "use tar axf to extract..."
The old bind is extracted while make runs. After gzip update this not working more automatic. They only need some files from bind archive to built the isc-dhcp package. Bind itself is not used. (When i understood this correct)
The: "cd $(DIR_APP)/bind && tar -axf bind.tar.gz" extract this before make runs.. That's all..
Greetings, Marcel
lfs/dhcp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/lfs/dhcp b/lfs/dhcp index 9a89d40..cec8628 100644 --- a/lfs/dhcp +++ b/lfs/dhcp @@ -99,17 +99,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-gpxe-cid.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
- # Remove bundled BIND stuff.
- # (requires newer autoconf)
- #rm -rfv $(DIR_APP)/bind/bind.tar.gz
- #cd $(DIR_APP) && autoreconf --verbose --force --install
- cd $(DIR_APP) && \
./configure \
- cd $(DIR_APP)/bind && tar -axf bind.tar.gz
- cd $(DIR_APP) && ./configure \
--prefix=/usr \ --sysconfdir=/etc/dhcp \ --with-srv-lease- file=/var/state/dhcp/dhcpd.leases \
--disable-static \
--enable-paranoia \ --enable-early-chroot \ --disable-dhcpv6
Hmm, this is not giving away much. I will have a look myself and get back to you. This might take a few days though...
-Michael
On Tue, 2016-03-08 at 18:18 +0100, Marcel Lorenz wrote:
:) as you wish:
Now you can type make to build ISC DHCP
cd /usr/src/dhcp-4.3.1 && make -j5 make[1]: Entering directory '/usr/src/dhcp-4.3.1' Making all in bind make[2]: Entering directory '/usr/src/dhcp-4.3.1/bind' tar: Archive is compressed. Use -z option tar: Error is not recoverable: exiting now Makefile:33: recipe for target 'all' failed
Marcel
Am 2016-03-08 18:06, schrieb Michael Tremer:
I think this *should not* break. This might be a regression in gzip then.
Do you have a snippet of the build log of the error?
-Michael
On Tue, 2016-03-08 at 18:03 +0100, Marcel Lorenz wrote:
Am 2016-03-08 15:26, schrieb Michael Tremer:
Hi,
what is the build issue you are trying to solve here?
Copying in a highly outdated version of the bind libs is from my point of view a big security risk.
-Michael
On Tue, 2016-03-08 at 11:09 +0100, Marcel Lorenz wrote:
Signed-off-by: Marcel Lorenz marcel.lorenz@ipfire.org
Hi,
you have right, the old bind is a security risk!
This is the current lfs file without patch:
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
# Remove bundled BIND stuff. # (requires newer autoconf) #rm -rfv $(DIR_APP)/bind/bind.tar.gz #cd $(DIR_APP) && autoreconf --verbose --force --install
cd $(DIR_APP) && \
The error in log is "use tar axf to extract..."
The old bind is extracted while make runs. After gzip update this not working more automatic. They only need some files from bind archive to built the isc- dhcp package. Bind itself is not used. (When i understood this correct)
The: "cd $(DIR_APP)/bind && tar -axf bind.tar.gz" extract this before make runs.. That's all..
Greetings, Marcel
lfs/dhcp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/lfs/dhcp b/lfs/dhcp index 9a89d40..cec8628 100644 --- a/lfs/dhcp +++ b/lfs/dhcp @@ -99,17 +99,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-gpxe-cid.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
- # Remove bundled BIND stuff.
- # (requires newer autoconf)
- #rm -rfv $(DIR_APP)/bind/bind.tar.gz
- #cd $(DIR_APP) && autoreconf --verbose --force --
install
- cd $(DIR_APP) && \
./configure \
- cd $(DIR_APP)/bind && tar -axf bind.tar.gz
- cd $(DIR_APP) && ./configure \
--prefix=/usr \ --sysconfdir=/etc/dhcp \ --with-srv-lease- file=/var/state/dhcp/dhcpd.leases \
--disable-static \
--enable-paranoia \ --enable-early-chroot \ --disable-dhcpv6
Hi,
I just applied the update of gzip and it built through.
So I believe we can drop the patch for DHCP.
Best, -Michael
On Tue, 2016-03-08 at 22:39 +0000, Michael Tremer wrote:
Hmm, this is not giving away much. I will have a look myself and get back to you. This might take a few days though...
-Michael
On Tue, 2016-03-08 at 18:18 +0100, Marcel Lorenz wrote:
:) as you wish:
Now you can type make to build ISC DHCP
cd /usr/src/dhcp-4.3.1 && make -j5 make[1]: Entering directory '/usr/src/dhcp-4.3.1' Making all in bind make[2]: Entering directory '/usr/src/dhcp-4.3.1/bind' tar: Archive is compressed. Use -z option tar: Error is not recoverable: exiting now Makefile:33: recipe for target 'all' failed
Marcel
Am 2016-03-08 18:06, schrieb Michael Tremer:
I think this *should not* break. This might be a regression in gzip then.
Do you have a snippet of the build log of the error?
-Michael
On Tue, 2016-03-08 at 18:03 +0100, Marcel Lorenz wrote:
Am 2016-03-08 15:26, schrieb Michael Tremer:
Hi,
what is the build issue you are trying to solve here?
Copying in a highly outdated version of the bind libs is from my point of view a big security risk.
-Michael
On Tue, 2016-03-08 at 11:09 +0100, Marcel Lorenz wrote:
Signed-off-by: Marcel Lorenz marcel.lorenz@ipfire.org
Hi,
you have right, the old bind is a security risk!
This is the current lfs file without patch:
cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
# Remove bundled BIND stuff. # (requires newer autoconf) #rm -rfv $(DIR_APP)/bind/bind.tar.gz #cd $(DIR_APP) && autoreconf --verbose --force -- install
cd $(DIR_APP) && \
The error in log is "use tar axf to extract..."
The old bind is extracted while make runs. After gzip update this not working more automatic. They only need some files from bind archive to built the isc- dhcp package. Bind itself is not used. (When i understood this correct)
The: "cd $(DIR_APP)/bind && tar -axf bind.tar.gz" extract this before make runs.. That's all..
Greetings, Marcel
lfs/dhcp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/lfs/dhcp b/lfs/dhcp index 9a89d40..cec8628 100644 --- a/lfs/dhcp +++ b/lfs/dhcp @@ -99,17 +99,11 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-gpxe-cid.patch cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/dhcp/dhcp-stateless-DUID-LLT.patch
- # Remove bundled BIND stuff.
- # (requires newer autoconf)
- #rm -rfv $(DIR_APP)/bind/bind.tar.gz
- #cd $(DIR_APP) && autoreconf --verbose --force --
install
- cd $(DIR_APP) && \
./configure \
- cd $(DIR_APP)/bind && tar -axf bind.tar.gz
- cd $(DIR_APP) && ./configure \
--prefix=/usr \ --sysconfdir=/etc/dhcp \ --with-srv-lease- file=/var/state/dhcp/dhcpd.leases \
--disable-static \
--enable-paranoia \ --enable-early-chroot \ --disable-dhcpv6
Signed-off-by: Marcel Lorenz marcel.lorenz@ipfire.org
--- config/rootfiles/common/armv5tel/binutils | 1 + config/rootfiles/common/i586/binutils | 1 + config/rootfiles/common/x86_64/binutils | 1 + 3 files changed, 3 insertions(+)
diff --git a/config/rootfiles/common/armv5tel/binutils b/config/rootfiles/common/armv5tel/binutils index ba64237..6fcd5ba 100644 --- a/config/rootfiles/common/armv5tel/binutils +++ b/config/rootfiles/common/armv5tel/binutils @@ -60,6 +60,7 @@ usr/lib/libopcodes-2.24.so #usr/share/info/bfd.info #usr/share/info/binutils.info #usr/share/info/configure.info +#usr/share/info/dir #usr/share/info/gprof.info #usr/share/info/ld.info #usr/share/info/standards.info diff --git a/config/rootfiles/common/i586/binutils b/config/rootfiles/common/i586/binutils index fd5bfb8..5f4c113 100644 --- a/config/rootfiles/common/i586/binutils +++ b/config/rootfiles/common/i586/binutils @@ -104,6 +104,7 @@ usr/lib/libopcodes-2.24.so #usr/share/info/bfd.info #usr/share/info/binutils.info #usr/share/info/configure.info +#usr/share/info/dir #usr/share/info/gprof.info #usr/share/info/ld.info #usr/share/info/standards.info diff --git a/config/rootfiles/common/x86_64/binutils b/config/rootfiles/common/x86_64/binutils index b1f819c..bb0bf9b 100644 --- a/config/rootfiles/common/x86_64/binutils +++ b/config/rootfiles/common/x86_64/binutils @@ -104,6 +104,7 @@ #usr/share/info/bfd.info #usr/share/info/binutils.info #usr/share/info/configure.info +#usr/share/info/dir #usr/share/info/gprof.info #usr/share/info/ld.info #usr/share/info/standards.info