ports/105525: [MAINTAINER] math/simd-viterbi: fix shared library version number

Thomas Sandford freebsduser at paradisegreen.co.uk
Tue Nov 14 13:40:05 UTC 2006


>Number:         105525
>Category:       ports
>Synopsis:       [MAINTAINER] math/simd-viterbi: fix shared library version number
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 14 13:40:01 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Sandford
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
Paradise Green Technical Services
>Environment:
System: FreeBSD almaz.paradisegreen.co.uk 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 15 12:31:08 BST 2005
>Description:

Shared library was being created as libviterbi.so.2.0.1 which means it
was not found by ldconfig.

Change it to libviterbi.so.2.

(since library hasn't changed, and ldconfig didn't find it anyway I don't think
the shared library version needs to be bumped as a result of this change).

Bump PORTREVISION

Also replace deprecated INSTALLS_SHLIB with USE_LDCONFIG. 

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- simd-viterbi-2.0.3_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/math/simd-viterbi-orig/Makefile /usr/ports/math/simd-viterbi/Makefile
--- /usr/ports/math/simd-viterbi-orig/Makefile	Wed May 10 23:37:13 2006
+++ /usr/ports/math/simd-viterbi/Makefile	Tue Nov 14 13:29:58 2006
@@ -7,6 +7,7 @@
 
 PORTNAME=	simd-viterbi
 PORTVERSION=	2.0.3
+PORTREVISION=	1
 CATEGORIES=	math
 MASTER_SITES=	http://www.ka9q.net/code/fec/
 
@@ -15,13 +16,13 @@
 
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
-INSTALLS_SHLIB=	yes
+USE_LDCONFIG=	yes
 MAKEFILE=	makefile
 
 MAN3=		simd-viterbi.3
 
 PLIST_FILES=	include/parity.h include/viterbi27.h include/viterbi29.h \
-		lib/libviterbi.a lib/libviterbi.so lib/libviterbi.so.2.0.1
+		lib/libviterbi.a lib/libviterbi.so lib/libviterbi.so.2
 PLIST=		${WRKDIR}/pkg-plist
 
 .include <bsd.port.pre.mk>
diff -ruN --exclude=CVS /usr/ports/math/simd-viterbi-orig/files/patch-makefile.in /usr/ports/math/simd-viterbi/files/patch-makefile.in
--- /usr/ports/math/simd-viterbi-orig/files/patch-makefile.in	Wed Jun 29 17:00:29 2005
+++ /usr/ports/math/simd-viterbi/files/patch-makefile.in	Tue Nov  7 16:45:58 2006
@@ -1,15 +1,18 @@
---- makefile.in.orig	Wed Jun 29 17:35:03 2005
-+++ makefile.in	Wed Jun 29 17:36:53 2005
-@@ -5,7 +5,7 @@
+--- makefile.in.orig	Mon Feb  4 18:57:37 2002
++++ makefile.in	Tue Nov  7 16:45:09 2006
+@@ -5,9 +5,9 @@
  VPATH = @srcdir@
  CC=@CC@
  
 -CFLAGS=@CFLAGS@ -I. -Wall @ARCH_OPTION@
 +CFLAGS=@CFLAGS@ -I. -Wall -fPIC
  
- SHARED_LIB=libviterbi.so. at VERSION@
+-SHARED_LIB=libviterbi.so. at VERSION@
++SHARED_LIB=libviterbi.so.2
  STATIC_LIB=@STATIC_LIB@
-@@ -22,13 +22,12 @@
+ 
+ CLIB=viterbi27port.o viterbi29port.o parity.o
+@@ -22,19 +22,18 @@
  	./vtest29
  
  install: all
@@ -26,13 +29,53 @@
 +	$(BSD_INSTALL_MAN) simd-viterbi.3 @mandir@/man3
  
  vtest27: vtest27.o $(STATIC_LIB)
- 	gcc -g -o $@ $^
-@@ -53,7 +52,7 @@
+-	gcc -g -o $@ $^
++	cc -g -o $@ $^
+ 
+ vtest29: vtest29.o $(STATIC_LIB)
+-	gcc -g -o $@ $^
++	cc -g -o $@ $^
+ 
+ vtest27.o: vtest27.c viterbi27.h parity.h
+ 
+@@ -53,31 +52,31 @@
  	ar rv $@ $^
  
  $(SHARED_LIB): $(STATIC_LIB)
 -	gcc -shared -Xlinker -soname=libviterbi.so. at SO_NAME@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive -lc
-+	gcc -shared -fPIC -Xlinker -soname=libviterbi.so. at SO_NAME@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive -lc
++	cc -shared -fPIC -Xlinker -soname=libviterbi.so. at SO_NAME@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive -lc
  
  viterbi27port.o: viterbi27.c viterbi27.h parity.h
- 	gcc -c $(CFLAGS) -o $@ $<
+-	gcc -c $(CFLAGS) -o $@ $<
++	cc -c $(CFLAGS) -o $@ $<
+ 
+ viterbi27mmx.o: viterbi27.c viterbi27.h parity.h
+-	gcc -c $(CFLAGS) -DMMX=1 -o $@ $<
++	cc -c $(CFLAGS) -DMMX=1 -o $@ $<
+ 
+ viterbi27sse.o: viterbi27.c viterbi27.h parity.h
+-	gcc -c $(CFLAGS) -DSSE=1 -o $@ $<
++	cc -c $(CFLAGS) -DSSE=1 -o $@ $<
+ 
+ viterbi27sse2.o: viterbi27.c viterbi27.h parity.h
+-	gcc -c $(CFLAGS) -DSSE2=1 -o $@ $<
++	cc -c $(CFLAGS) -DSSE2=1 -o $@ $<
+ 
+ viterbi29port.o: viterbi29.c viterbi29.h parity.h
+-	gcc -c $(CFLAGS) -o $@ $<
++	cc -c $(CFLAGS) -o $@ $<
+ 
+ viterbi29mmx.o: viterbi29.c viterbi29.h parity.h
+-	gcc -c $(CFLAGS) -DMMX=1 -o $@ $<
++	cc -c $(CFLAGS) -DMMX=1 -o $@ $<
+ 
+ viterbi29sse.o: viterbi29.c viterbi29.h parity.h
+-	gcc -c $(CFLAGS) -DSSE=1 -o $@ $<
++	cc -c $(CFLAGS) -DSSE=1 -o $@ $<
+ 
+ viterbi29sse2.o: viterbi29.c viterbi29.h parity.h
+-	gcc -c $(CFLAGS) -DSSE2=1 -o $@ $<
++	cc -c $(CFLAGS) -DSSE2=1 -o $@ $<
+ 
+ clean:
+ 	rm -f *.o $(SHARED_LIB) *.a vtest27 vtest29 core
--- simd-viterbi-2.0.3_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list