ports/82617: [patch] fix shared library installation in databases/libmemcache

Vasil Dimov vd at datamax.bg
Fri Jun 24 16:20:24 UTC 2005


>Number:         82617
>Category:       ports
>Synopsis:       [patch] fix shared library installation in databases/libmemcache
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 24 16:20:24 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Vasil Dimov
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
DataMax
>Environment:

>Description:

There are 2 issues about libmemcache shared libraries installation
in the port databases/libmemcache:

1. After installation no ldconfig is run to update the hints file
2. No shared library with "compatible" filename is installed, ldconfig
  puts only files named lib*.so.[0-9] in the cache

These both create problems when other ports need to depend on
this one with LIB_DEPENDS=

>How-To-Repeat:

>Fix:

--- libmemcache_shlib.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/databases/libmemcache/Makefile,v
retrieving revision 1.8
diff -u -r1.8 Makefile
--- Makefile	21 May 2005 17:39:45 -0000	1.8
+++ Makefile	24 Jun 2005 16:02:24 -0000
@@ -18,6 +18,8 @@
 
 USE_BZIP2=	yes
 
+INSTALLS_SHLIB=	yes
+
 OPTIONS=	DEBUG	"Build with debugging turned on" off
 
 .include <bsd.port.pre.mk>
@@ -33,4 +35,8 @@
 do-configure:
 	cd ${WRKSRC}; ${LOCALBASE}/bin/pmk ${PMKARGS}
 
+post-install:
+	# only files named lib*.so.[0-9] enter ld-elf.so.hints
+	${LN} -sf ${PREFIX}/lib/libmemcache.so.1.2 ${PREFIX}/lib/libmemcache.so.1
+
 .include <bsd.port.post.mk>
Index: pkg-plist
===================================================================
RCS file: /home/ncvs/ports/databases/libmemcache/pkg-plist,v
retrieving revision 1.5
diff -u -r1.5 pkg-plist
--- pkg-plist	2 Feb 2005 02:38:00 -0000	1.5
+++ pkg-plist	24 Jun 2005 16:02:24 -0000
@@ -1,4 +1,5 @@
 include/memcache.h
 lib/libmemcache.so.1.2
+lib/libmemcache.so.1
 lib/libmemcache.so
 lib/libmemcache.a
--- libmemcache_shlib.diff ends here ---

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



More information about the freebsd-ports-bugs mailing list