Bug 96853

Summary: graphics/exiv2: install the library with a better/correct name
Product: Ports & Packages Reporter: Joerg Pulz <Joerg.Pulz>
Component: Individual Port(s)Assignee: Michael Johnson <ahze>
Status: Closed FIXED    
Severity: Affects Only Me CC: ahze
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
graphics_exiv2.diff none

Description Joerg Pulz 2006-05-06 11:10:17 UTC
	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)

Fix: - apply the patch
	- add files directory to CVS
	- add files/patch-src::Makefile to CVS
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-05-06 11:12:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ahze

Over to maintainer
Comment 2 Joerg Pulz 2006-05-06 11:24:33 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hi,

please take a look at PR/96855 as this is the one which contains the 
PORTREVISION bump for graphics/kphotoalbum, as it depends on 
graphics/exiv2.

Thanks
Joerg

- -- 
The beginning is the most important part of the work.
 				-Plato
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFEXHljSPOsGF+KA+MRAqyNAKCScV3qdAdWZv8kJeFOy6AIKKG0ZACfVF2V
0Btjzw6a478QEo/Vx5XFneU=
=g33g
-----END PGP SIGNATURE-----
Comment 3 Michael Johnson freebsd_committer freebsd_triage 2006-05-24 23:11:01 UTC
State Changed
From-To: open->closed

Committed, Thanks!