aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman I Khimov <khimov@altell.ru>2010-09-20 22:33:45 +0400
committerRoman I Khimov <khimov@altell.ru>2010-09-21 09:57:36 +0400
commit6cb49edc280db07a7ebbd6ca374d9cf8371c6e85 (patch)
treee0cc0e6e90a7dd67221404e11b874e21e1d93ca4
parent3e9ff12c2c9306b73de0892e7a02a90930458e8d (diff)
downloadopenembedded-6cb49edc280db07a7ebbd6ca374d9cf8371c6e85.zip
openembedded-6cb49edc280db07a7ebbd6ca374d9cf8371c6e85.tar.gz
openembedded-6cb49edc280db07a7ebbd6ca374d9cf8371c6e85.tar.bz2
bzip2: remove 1.0.2
Very old, not pinned, has known bugs and security issues. Signed-off-by: Roman I Khimov <khimov@altell.ru> Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
-rw-r--r--recipes/bzip2/bzip2-1.0.2/installpaths.patch103
-rw-r--r--recipes/bzip2/bzip2-1.0.2/ldflags.patch14
-rw-r--r--recipes/bzip2/bzip2_1.0.2.bb45
3 files changed, 0 insertions, 162 deletions
diff --git a/recipes/bzip2/bzip2-1.0.2/installpaths.patch b/recipes/bzip2/bzip2-1.0.2/installpaths.patch
deleted file mode 100644
index e7d09a7..0000000
--- a/recipes/bzip2/bzip2-1.0.2/installpaths.patch
+++ /dev/null
@@ -1,103 +0,0 @@
-
-#
-# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
-#
-
---- bzip2-1.0.2/Makefile~installpaths
-+++ bzip2-1.0.2/Makefile
-@@ -12,8 +12,12 @@
- CFLAGS=-Wall -Winline -O2 -fomit-frame-pointer -fno-strength-reduce $(BIGFILES)
-
- # Where you want it installed when you do 'make install'
--PREFIX=/usr
--
-+DESTDIR=
-+prefix=/usr
-+bindir=$(prefix)/bin
-+mandir=$(prefix)/man
-+includedir=$(prefix)/include
-+libdir=$(prefix)/lib
-
- OBJS= blocksort.o \
- huffman.o \
-@@ -58,43 +62,43 @@
- @cat words3
-
- install: bzip2 bzip2recover
-- if ( test ! -d $(PREFIX)/bin ) ; then mkdir -p $(PREFIX)/bin ; fi
-- if ( test ! -d $(PREFIX)/lib ) ; then mkdir -p $(PREFIX)/lib ; fi
-- if ( test ! -d $(PREFIX)/man ) ; then mkdir -p $(PREFIX)/man ; fi
-- if ( test ! -d $(PREFIX)/man/man1 ) ; then mkdir -p $(PREFIX)/man/man1 ; fi
-- if ( test ! -d $(PREFIX)/include ) ; then mkdir -p $(PREFIX)/include ; fi
-- cp -f bzip2 $(PREFIX)/bin/bzip2
-- cp -f bzip2 $(PREFIX)/bin/bunzip2
-- cp -f bzip2 $(PREFIX)/bin/bzcat
-- cp -f bzip2recover $(PREFIX)/bin/bzip2recover
-- chmod a+x $(PREFIX)/bin/bzip2
-- chmod a+x $(PREFIX)/bin/bunzip2
-- chmod a+x $(PREFIX)/bin/bzcat
-- chmod a+x $(PREFIX)/bin/bzip2recover
-- cp -f bzip2.1 $(PREFIX)/man/man1
-- chmod a+r $(PREFIX)/man/man1/bzip2.1
-- cp -f bzlib.h $(PREFIX)/include
-- chmod a+r $(PREFIX)/include/bzlib.h
-- cp -f libbz2.a $(PREFIX)/lib
-- chmod a+r $(PREFIX)/lib/libbz2.a
-- cp -f bzgrep $(PREFIX)/bin/bzgrep
-- ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep
-- ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep
-- chmod a+x $(PREFIX)/bin/bzgrep
-- cp -f bzmore $(PREFIX)/bin/bzmore
-- ln $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless
-- chmod a+x $(PREFIX)/bin/bzmore
-- cp -f bzdiff $(PREFIX)/bin/bzdiff
-- ln $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp
-- chmod a+x $(PREFIX)/bin/bzdiff
-- cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1
-- chmod a+r $(PREFIX)/man/man1/bzgrep.1
-- chmod a+r $(PREFIX)/man/man1/bzmore.1
-- chmod a+r $(PREFIX)/man/man1/bzdiff.1
-- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzegrep.1
-- echo ".so man1/bzgrep.1" > $(PREFIX)/man/man1/bzfgrep.1
-- echo ".so man1/bzmore.1" > $(PREFIX)/man/man1/bzless.1
-- echo ".so man1/bzdiff.1" > $(PREFIX)/man/man1/bzcmp.1
-+ if ( test ! -d $(DESTDIR)$(bindir) ) ; then mkdir -p $(DESTDIR)$(bindir) ; fi
-+ if ( test ! -d $(DESTDIR)$(libdir) ) ; then mkdir -p $(DESTDIR)$(libdir) ; fi
-+ if ( test ! -d $(DESTDIR)$(mandir) ) ; then mkdir -p $(DESTDIR)$(mandir) ; fi
-+ if ( test ! -d $(DESTDIR)$(mandir)/man1 ) ; then mkdir -p $(DESTDIR)$(mandir)/man1 ; fi
-+ if ( test ! -d $(DESTDIR)$(includedir) ) ; then mkdir -p $(DESTDIR)$(includedir) ; fi
-+ cp -f bzip2 $(DESTDIR)$(bindir)/bzip2
-+ cp -f bzip2 $(DESTDIR)$(bindir)/bunzip2
-+ cp -f bzip2 $(DESTDIR)$(bindir)/bzcat
-+ cp -f bzip2recover $(DESTDIR)$(bindir)/bzip2recover
-+ chmod a+x $(DESTDIR)$(bindir)/bzip2
-+ chmod a+x $(DESTDIR)$(bindir)/bunzip2
-+ chmod a+x $(DESTDIR)$(bindir)/bzcat
-+ chmod a+x $(DESTDIR)$(bindir)/bzip2recover
-+ cp -f bzip2.1 $(DESTDIR)$(mandir)/man1
-+ chmod a+r $(DESTDIR)$(mandir)/man1/bzip2.1
-+ cp -f bzlib.h $(DESTDIR)$(includedir)
-+ chmod a+r $(DESTDIR)$(includedir)/bzlib.h
-+ cp -f libbz2.a $(DESTDIR)$(libdir)
-+ chmod a+r $(DESTDIR)$(libdir)/libbz2.a
-+ cp -f bzgrep $(DESTDIR)$(bindir)/bzgrep
-+ ln $(DESTDIR)$(bindir)/bzgrep $(DESTDIR)$(bindir)/bzegrep
-+ ln $(DESTDIR)$(bindir)/bzgrep $(DESTDIR)$(bindir)/bzfgrep
-+ chmod a+x $(DESTDIR)$(bindir)/bzgrep
-+ cp -f bzmore $(DESTDIR)$(bindir)/bzmore
-+ ln $(DESTDIR)$(bindir)/bzmore $(DESTDIR)$(bindir)/bzless
-+ chmod a+x $(DESTDIR)$(bindir)/bzmore
-+ cp -f bzdiff $(DESTDIR)$(bindir)/bzdiff
-+ ln $(DESTDIR)$(bindir)/bzdiff $(DESTDIR)$(bindir)/bzcmp
-+ chmod a+x $(DESTDIR)$(bindir)/bzdiff
-+ cp -f bzgrep.1 bzmore.1 bzdiff.1 $(DESTDIR)$(mandir)/man1
-+ chmod a+r $(DESTDIR)$(mandir)/man1/bzgrep.1
-+ chmod a+r $(DESTDIR)$(mandir)/man1/bzmore.1
-+ chmod a+r $(DESTDIR)$(mandir)/man1/bzdiff.1
-+ echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzegrep.1
-+ echo ".so man1/bzgrep.1" > $(DESTDIR)$(mandir)/man1/bzfgrep.1
-+ echo ".so man1/bzmore.1" > $(DESTDIR)$(mandir)/man1/bzless.1
-+ echo ".so man1/bzdiff.1" > $(DESTDIR)$(mandir)/man1/bzcmp.1
-
- distclean: clean
- clean:
diff --git a/recipes/bzip2/bzip2-1.0.2/ldflags.patch b/recipes/bzip2/bzip2-1.0.2/ldflags.patch
deleted file mode 100644
index c7da5bc..0000000
--- a/recipes/bzip2/bzip2-1.0.2/ldflags.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-diff -urN bzip2-1.0.2.orig/Makefile-libbz2_so bzip2-1.0.2/Makefile-libbz2_so
---- bzip2-1.0.2.orig/Makefile-libbz2_so 2001-12-30 02:15:59.000000000 +0000
-+++ bzip2-1.0.2/Makefile-libbz2_so 2009-04-02 12:42:43.000000000 +0000
-@@ -20,8 +20,8 @@
- bzlib.o
-
- all: $(OBJS)
-- $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 $(OBJS)
-- $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.2
-+ $(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.2 $(OBJS)
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.2
- rm -f libbz2.so.1.0
- ln -s libbz2.so.1.0.2 libbz2.so.1.0
-
diff --git a/recipes/bzip2/bzip2_1.0.2.bb b/recipes/bzip2/bzip2_1.0.2.bb
deleted file mode 100644
index c454ef9..0000000
--- a/recipes/bzip2/bzip2_1.0.2.bb
+++ /dev/null
@@ -1,45 +0,0 @@
-DESCRIPTION = "Very high-quality data compression program."
-SECTION = "console/utils"
-PR = "r2"
-
-LICENSE = "bzip2"
-SRC_URI = "ftp://sources.redhat.com/pub/bzip2/v102/bzip2-${PV}.tar.gz \
- file://installpaths.patch \
- file://ldflags.patch"
-
-CFLAGS_append = " -fPIC -fpic -Winline -fno-strength-reduce -D_FILE_OFFSET_BITS=64"
-
-do_compile () {
- oe_runmake -f Makefile-libbz2_so
- ln -sf libbz2.so.1.0.2 libbz2.so.1.0
- ln -sf libbz2.so.1.0.2 libbz2.so.1
- ln -sf libbz2.so.1.0.2 libbz2.so
- oe_runmake libbz2.a bzip2 bzip2recover
-}
-
-do_stage () {
- install -m 0644 bzlib.h ${STAGING_INCDIR}/
- oe_libinstall -a -so libbz2 ${STAGING_LIBDIR}
-}
-
-do_install () {
- oe_runmake 'DESTDIR=${D}' install
- oe_libinstall -a -so libbz2 ${D}${libdir}
- mv ${D}${bindir}/bunzip2 ${D}${bindir}/bunzip2.${PN}
- mv ${D}${bindir}/bzcat ${D}${bindir}/bzcat.${PN}
-}
-
-
-pkg_postinst_${PN} () {
- update-alternatives --install ${bindir}/bunzip2 bunzip2 bunzip2.${PN} 100
- update-alternatives --install ${bindir}/bzcat bzcat bzcat.${PN} 100
-}
-
-
-pkg_prerm_${PN} () {
- update-alternatives --remove bunzip2 bunzip2.${PN}
- update-alternatives --remove bzcat bzcat.${PN}
-}
-
-SRC_URI[md5sum] = "ee76864958d568677f03db8afad92beb"
-SRC_URI[sha256sum] = "4b526afa73ca1ccd6f5f1f5fd23813f159f715c3d0e00688f1df54b51f443cdd"