diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-05-16 17:29:12 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-05-16 17:29:12 +0000 |
commit | 665ae28e7463b1f2d26f6939f2287047fb6ef53d (patch) | |
tree | be92f9b7a73c724e0ff1d10691bdcea414e483c6 /package/bzip2 | |
parent | 061ec439af5ccbfb31a707089767269528a2d6f9 (diff) | |
download | buildroot-novena-665ae28e7463b1f2d26f6939f2287047fb6ef53d.tar.gz buildroot-novena-665ae28e7463b1f2d26f6939f2287047fb6ef53d.zip |
This patch updates the bzip2 package to build version 1.0.3. The 1.0.3 version
of bzip2 fixes a security issue with bzip2 v.1.0.2. This patch also modifies
the .mk file so that version changes can be acomodated more easily.
http://bugs.uclibc.org/view.php?id=255
Diffstat (limited to 'package/bzip2')
-rw-r--r-- | package/bzip2/bzip2.mk | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/package/bzip2/bzip2.mk b/package/bzip2/bzip2.mk index e77a38407..f74a3196c 100644 --- a/package/bzip2/bzip2.mk +++ b/package/bzip2/bzip2.mk @@ -3,9 +3,10 @@ # bzip2 # ############################################################# -BZIP2_SOURCE:=bzip2-1.0.2.tar.gz -BZIP2_SITE:=ftp://sources.redhat.com/pub/bzip2/v102 -BZIP2_DIR:=$(BUILD_DIR)/bzip2-1.0.2 +BZIP2_VER:=1.0.3 +BZIP2_SOURCE:=bzip2-$(BZIP2_VER).tar.gz +BZIP2_SITE:=http://www.bzip.org/$(BZIP2_VER) +BZIP2_DIR:=$(BUILD_DIR)/bzip2-$(BZIP2_VER) BZIP2_CAT:=zcat BZIP2_BINARY:=$(BZIP2_DIR)/bzip2 BZIP2_TARGET_BINARY:=$(TARGET_DIR)/usr/bin/bzmore @@ -18,8 +19,8 @@ bzip2-source: $(DL_DIR)/$(BZIP2_SOURCE) $(BZIP2_DIR)/.unpacked: $(DL_DIR)/$(BZIP2_SOURCE) $(BZIP2_CAT) $(DL_DIR)/$(BZIP2_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - $(SED) "s,ln \$$(,ln -snf \$$(,g" $(BZIP2_DIR)/Makefile - $(SED) "s,ln -s (lib.*),ln -snf \$$1 ; ln -snf libbz2.so.1.0.2 libbz2.so,g" \ - $(BZIP2_DIR)/Makefile-libbz2_so + $(SED) "s,ln -s (lib.*),ln -snf \$$1 ; ln -snf libbz2.so.$(BZIP2_VER) \ + libbz2.so,g" $(BZIP2_DIR)/Makefile-libbz2_so ifneq ($(BR2_LARGEFILE),y) $(SED) "s,^BIGFILES,#BIGFILES,g" $(BZIP2_DIR)/Makefile $(SED) "s,^BIGFILES,#BIGFILES,g" $(BZIP2_DIR)/Makefile-libbz2_so @@ -28,18 +29,18 @@ endif $(SED) "s:-O2:$(TARGET_CFLAGS):" $(BZIP2_DIR)/Makefile-libbz2_so touch $(BZIP2_DIR)/.unpacked -$(STAGING_DIR)/lib/libbz2.so.1.0.2: $(BZIP2_DIR)/.unpacked +$(STAGING_DIR)/lib/libbz2.so.$(BZIP2_VER): $(BZIP2_DIR)/.unpacked $(TARGET_CONFIGURE_OPTS) \ $(MAKE) CC=$(TARGET_CC) -C $(BZIP2_DIR) -f Makefile-libbz2_so $(TARGET_CONFIGURE_OPTS) \ $(MAKE) CC=$(TARGET_CC) -C $(BZIP2_DIR) libbz2.a cp $(BZIP2_DIR)/bzlib.h $(STAGING_DIR)/include/ - cp $(BZIP2_DIR)/libbz2.so.1.0.2 $(STAGING_DIR)/lib/ + cp $(BZIP2_DIR)/libbz2.so.$(BZIP2_VER) $(STAGING_DIR)/lib/ cp $(BZIP2_DIR)/libbz2.a $(STAGING_DIR)/lib/ - (cd $(STAGING_DIR)/lib/; ln -snf libbz2.so.1.0.2 libbz2.so) - (cd $(STAGING_DIR)/lib/; ln -snf libbz2.so.1.0.2 libbz2.so.1.0) + (cd $(STAGING_DIR)/lib/; ln -snf libbz2.so.$(BZIP2_VER) libbz2.so) + (cd $(STAGING_DIR)/lib/; ln -snf libbz2.so.$(BZIP2_VER) libbz2.so.1.0) -$(BZIP2_BINARY): $(STAGING_DIR)/lib/libbz2.so.1.0.2 +$(BZIP2_BINARY): $(STAGING_DIR)/lib/libbz2.so.$(BZIP2_VER) $(TARGET_CONFIGURE_OPTS) \ $(MAKE) CC=$(TARGET_CC) -C $(BZIP2_DIR) bzip2 bzip2recover @@ -50,10 +51,10 @@ $(BZIP2_TARGET_BINARY): $(BZIP2_BINARY) $(MAKE) PREFIX=$(TARGET_DIR)/usr -C $(BZIP2_DIR) install rm -f $(TARGET_DIR)/usr/lib/libbz2.a rm -f $(TARGET_DIR)/usr/include/bzlib.h - cp $(BZIP2_DIR)/libbz2.so.1.0.2 $(TARGET_DIR)/usr/lib/ + cp $(BZIP2_DIR)/libbz2.so.$(BZIP2_VER) $(TARGET_DIR)/usr/lib/ (cd $(TARGET_DIR)/usr/lib; \ - ln -snf libbz2.so.1.0.2 libbz2.so.1.0; \ - ln -snf libbz2.so.1.0.2 libbz2.so) + ln -snf libbz2.so.$(BZIP2_VER) libbz2.so.1.0; \ + ln -snf libbz2.so.$(BZIP2_VER) libbz2.so) (cd $(TARGET_DIR)/usr/bin; \ ln -snf bzip2 bunzip2; \ ln -snf bzip2 bzcat; \ |