From owner-freebsd-ports-bugs@FreeBSD.ORG Sat May 6 10:10:44 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3360816A444 for ; Sat, 6 May 2006 10:10:44 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D873843D4C for ; Sat, 6 May 2006 10:10:22 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k46AAM7P057996 for ; Sat, 6 May 2006 10:10:22 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k46AAM1E057995; Sat, 6 May 2006 10:10:22 GMT (envelope-from gnats) Resent-Date: Sat, 6 May 2006 10:10:22 GMT Resent-Message-Id: <200605061010.k46AAM1E057995@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Joerg Pulz Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4795716A401; Sat, 6 May 2006 10:01:24 +0000 (UTC) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from mailhost.frm2.tum.de (mailhost.frm2.tum.de [129.187.179.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id B823043D46; Sat, 6 May 2006 10:01:20 +0000 (GMT) (envelope-from Joerg.Pulz@frm2.tum.de) Received: from localhost (mailhost.frm2.tum.de [129.187.179.12]) by mailhost.frm2.tum.de (8.13.4/8.13.4) with ESMTP id k46A1FQl084822; Sat, 6 May 2006 12:01:15 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (hades.admin.frm2 [172.25.1.10]) by mailhost.frm2.tum.de (8.13.4/8.13.4) with ESMTP id k46A1F0s084818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 6 May 2006 12:01:15 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: from hades.admin.frm2 (localhost [127.0.0.1]) by hades.admin.frm2 (8.13.4/8.13.4) with ESMTP id k46A1Fng055488; Sat, 6 May 2006 12:01:15 +0200 (CEST) (envelope-from jpulz@frm2.tum.de) Received: (from jpulz@localhost) by hades.admin.frm2 (8.13.4/8.13.4/Submit) id k46A1EAj055487; Sat, 6 May 2006 12:01:14 +0200 (CEST) (envelope-from jpulz) Message-Id: <200605061001.k46A1EAj055487@hades.admin.frm2> Date: Sat, 6 May 2006 12:01:14 +0200 (CEST) From: Joerg Pulz To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Maintainer Subject: ports/96853: graphics/exiv2: install the library with a better/correct name X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joerg Pulz List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 May 2006 10:10:45 -0000 >Number: 96853 >Category: ports >Synopsis: graphics/exiv2: install the library with a better/correct name >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat May 06 10:10:17 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Joerg Pulz >Release: FreeBSD 6.1-PRERELEASE i386 >Organization: TU-Munich / ZWE FRM-II >Environment: System: FreeBSD hades.admin.frm2 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #11: Wed Feb 22 19:01:44 CET 2006 root@hades.admin.frm2:/usr/obj/usr/src/sys/HADES i386 >Description: Currently the graphics/exiv2 port installs the libexiv2 library with the name libexiv2-0.9.1.so which is IMO really bad, as the library will not show up in the "ldconfig -r" output and other ports which depend on the graphics/exiv2 library have to set the dependency by using: BUILD_DEPENDS= exiv2:${PORTSDIR}/graphics/exiv2 RUN_DEPENDS= ${BUILD_DEPENDS} The main problem is that the library is created by using libtool in mode=link with the -release argument, which leads to this obscure library name. The patch modifies the libtool call to use -version-number instead of -release and the resulting library will get the name libexiv2.so.0. With this name, the library will show up in the "ldconfig -r" output and other ports can depend on it in the usual way: LIB_DEPENDS= exiv2.0:${PORTSDIR}/graphics/exiv2 Makefile: - bump PORTREVISION for the library name change pkg-plist: - chase the new library name files/patch-src::Makefile (new) - adopt the libtool call to generate the library with a better/correct name The only port that depends on graphics/exiv2 is graphics/kphotoalbum and I've verified that the patch will not break it with a tinderbox run on RELENG_6 i386. Patch tested on: RELENG_4 i386 (tinderbox) RELENG_5 i386 (tinderbox) RELENG_6 i386 amd64 (tinderbox) CURRENT i386 (tinderbox) >How-To-Repeat: >Fix: - apply the patch - add files directory to CVS - add files/patch-src::Makefile to CVS --- graphics_exiv2.diff begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/graphics/exiv2/Makefile,v retrieving revision 1.14 diff -u -r1.14 Makefile --- Makefile 23 Apr 2006 14:12:23 -0000 1.14 +++ Makefile 5 May 2006 11:00:17 -0000 @@ -7,6 +7,7 @@ PORTNAME= exiv2 PORTVERSION= 0.9.1 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= http://www.exiv2.org/ Index: pkg-plist =================================================================== RCS file: /home/ncvs/ports/graphics/exiv2/pkg-plist,v retrieving revision 1.5 diff -u -r1.5 pkg-plist --- pkg-plist 23 Apr 2006 14:12:23 -0000 1.5 +++ pkg-plist 5 May 2006 11:00:17 -0000 @@ -26,10 +26,10 @@ include/exiv2/tags.hpp include/exiv2/types.hpp include/exiv2/value.hpp -lib/libexiv2-0.9.1.so lib/libexiv2.a lib/libexiv2.la lib/libexiv2.so +lib/libexiv2.so.0 %%PORTDOCS%%%%DOCSDIR%%/actions_8hpp.html %%PORTDOCS%%%%DOCSDIR%%/actions_8hpp__incl.map %%PORTDOCS%%%%DOCSDIR%%/actions_8hpp__incl.md5 Index: files/patch-src::Makefile =================================================================== RCS file: files/patch-src::Makefile diff -N files/patch-src::Makefile --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-src::Makefile 5 May 2006 11:00:17 -0000 @@ -0,0 +1,11 @@ +--- src/Makefile.orig Fri May 5 11:46:42 2006 ++++ src/Makefile Fri May 5 11:47:15 2006 +@@ -199,7 +199,7 @@ + bin: lib $(BINARY) $(EXIV2BIN) $(MCBIN) path-test + + lib: $(OBJ) +- $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) $(LOBJ) -o $(LIBRARY) -rpath $(libdir) -release $(EXIV2_VERSION) ++ $(LIBTOOL) --mode=link $(CXX) $(LDFLAGS) $(LOBJ) -o $(LIBRARY) -rpath $(libdir) -version-number $(subst .,:,$(EXIV2_VERSION)) + @touch lib + + path-test: path-test.o utils.o --- graphics_exiv2.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: