]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
bzip2: Update to 1.0.8
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Dec 2022 17:55:47 +0000 (17:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 16 Dec 2022 17:55:47 +0000 (17:55 +0000)
This patch also splits the library into a separate package.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
bzip2/bzip2.nm
bzip2/patches/bzip2-1.0.4-makefile-CFLAGS.patch0 [deleted file]
bzip2/patches/bzip2-1.0.6-saneso.patch0 [deleted file]
bzip2/patches/bzip2-saneso.patch [new file with mode: 0644]

index 4660dc7ad5917ef983331629e24cc6d93b0ba354..adab756581db2c0e4c72925acb75a5263fb441c1 100644 (file)
@@ -4,31 +4,23 @@
 ###############################################################################
 
 name       = bzip2
-version    = 1.0.6
-release    = 7
+version    = 1.0.8
+release    = 1
 
 groups     = Applications/Compression
-url        = http://www.bzip.org/
+url        = https://sourceware.org/bzip2/
 license    = GPLv2+
-summary    = Bzip2 is a data compressor.
+summary    = Bzip2 is a data compressor
 
 description
        bzip2 is a freely available, patent free (see below), high-quality data
        compressor that is an alternative to the GNU zip compressor.
 end
 
-source_dl  = http://www.bzip.org/%{version}/
-
-CFLAGS    += -fPIC -D_FILE_OFFSET_BITS=64
+source_dl  = https://sourceware.org/pub/bzip2/
 
 build
-       prepare_cmds
-               sed -i 's@\(ln -s -f \)\$(PREFIX)/bin/@\1@' Makefile
-               sed -e "s/\$(CC) -shared/& %{CFLAGS}/" -i Makefile-libbz2_so
-       end
-
        build
-               %{DO_FIX_LIBTOOL}
                make -f Makefile-libbz2_so %{PARALLELISMFLAGS} \
                        CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}"
 
@@ -70,13 +62,9 @@ end
 
 packages
        package %{name}
-               groups += Build
 
-               # Provide older soname to fix problem with
-               # older version of the package.
-               if "%{DISTRO_ARCH}" == "i686"
-                       provides += libbz2.so.1.0
-               end
+       package %{name}-libs
+               template LIBS
        end
 
        package %{name}-devel
diff --git a/bzip2/patches/bzip2-1.0.4-makefile-CFLAGS.patch0 b/bzip2/patches/bzip2-1.0.4-makefile-CFLAGS.patch0
deleted file mode 100644 (file)
index 5a95ed6..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
---- Makefile
-+++ Makefile
-@@ -18,10 +18,9 @@
- CC=gcc
- AR=ar
- RANLIB=ranlib
--LDFLAGS=
- BIGFILES=-D_FILE_OFFSET_BITS=64
--CFLAGS=-Wall -Winline -O2 -g $(BIGFILES)
-+CFLAGS+=-Wall -Winline $(BIGFILES) $(CPPFLAGS)
- # Where you want it installed when you do 'make install'
- PREFIX=/usr/local
---- Makefile-libbz2_so
-+++ Makefile-libbz2_so
-@@ -24,7 +24,7 @@
- SHELL=/bin/sh
- CC=gcc
- BIGFILES=-D_FILE_OFFSET_BITS=64
--CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
-+CFLAGS+=-fpic -fPIC -Wall -Winline $(BIGFILES) $(CPPFLAGS)
- OBJS= blocksort.o  \
-       huffman.o    \
diff --git a/bzip2/patches/bzip2-1.0.6-saneso.patch0 b/bzip2/patches/bzip2-1.0.6-saneso.patch0
deleted file mode 100644 (file)
index 9c4ddf0..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
---- Makefile-libbz2_so
-+++ Makefile-libbz2_so
-@@ -35,8 +35,8 @@
-       bzlib.o
- all: $(OBJS)
--      $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.6 $(OBJS)
--      $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
-+      $(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.6 $(OBJS)
-+      $(CC) $(LDFLAGS) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.6
-       rm -f libbz2.so.1.0
-       ln -s libbz2.so.1.0.6 libbz2.so.1.0
diff --git a/bzip2/patches/bzip2-saneso.patch b/bzip2/patches/bzip2-saneso.patch
new file mode 100644 (file)
index 0000000..ec76a4c
--- /dev/null
@@ -0,0 +1,12 @@
+diff -up bzip2-1.0.6/Makefile-libbz2_so.pom bzip2-1.0.6/Makefile-libbz2_so
+--- bzip2-1.0.6/Makefile-libbz2_so.pom 2010-09-11 01:07:52.000000000 +0200
++++ bzip2-1.0.6/Makefile-libbz2_so     2010-09-22 10:31:46.000000000 +0200
+@@ -35,7 +35,7 @@ OBJS= blocksort.o  \
+       bzlib.o
+ all: $(OBJS)
+-      $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.8 $(OBJS)
++      $(CC) -shared -Wl,-soname -Wl,libbz2.so.1 -o libbz2.so.1.0.8 $(OBJS)
+       $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.8
+       rm -f libbz2.so.1.0
+       ln -s libbz2.so.1.0.8 libbz2.so.1.0