I've just submitted this upstream as well.

The developer forgot to increment the version number from 1.0.4 to
1.0.5 for the shared library.
I also took an extra step to centralize the version number.

-- 
Kevin Day
Submitted By:            Kevin Day <kevin AT kevux DOT org>
Date:                    2008-04-05
Initial Package Version: 1.0.5
Upstream Status:         Submitted
Description:
Developer forgot to increment the version for the shared library.
This fixes it as well centralizes the version number so only
one or two changes need to be made.

--- bzip2-1.0.5/Makefile-libbz2_so.orig	2008-04-05 09:51:57 -0500
+++ bzip2-1.0.5/Makefile-libbz2_so	2008-04-05 09:53:00 -0500
@@ -1,6 +1,6 @@
 
 # This Makefile builds a shared version of the library, 
-# libbz2.so.1.0.4, with soname libbz2.so.1.0,
+# libbz2.so.1.0.5, with soname libbz2.so.1.0,
 # at least on x86-Linux (RedHat 7.2), 
 # with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98).  
 # Please see the README file for some important info 
@@ -25,6 +25,7 @@
 CC=gcc
 BIGFILES=-D_FILE_OFFSET_BITS=64
 CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES)
+BZIP2_VERSION=1.0.5
 
 OBJS= blocksort.o  \
       huffman.o    \
@@ -35,13 +36,13 @@
       bzlib.o
 
 all: $(OBJS)
-	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.4 $(OBJS)
-	$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.4
+	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.$(BZIP2_VERSION) $(OBJS)
+	$(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.$(BZIP2_VERSION)
 	rm -f libbz2.so.1.0
-	ln -s libbz2.so.1.0.4 libbz2.so.1.0
+	ln -s libbz2.so.$(BZIP2_VERSION) libbz2.so.1.0
 
 clean: 
-	rm -f $(OBJS) bzip2.o libbz2.so.1.0.4 libbz2.so.1.0 bzip2-shared
+	rm -f $(OBJS) bzip2.o libbz2.so.$(BZIP2_VERSION) libbz2.so.1.0 bzip2-shared
 
 blocksort.o: blocksort.c
 	$(CC) $(CFLAGS) -c blocksort.c
-- 
http://linuxfromscratch.org/mailman/listinfo/patches
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to