Bug 96853 - graphics/exiv2: install the library with a better/correct name
Summary: graphics/exiv2: install the library with a better/correct name
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Michael Johnson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-06 11:10 UTC by Joerg Pulz
Modified: 2006-05-24 23:12 UTC (History)
1 user (show)

See Also:


Attachments
graphics_exiv2.diff (1.71 KB, patch)
2006-05-06 11:10 UTC, Joerg Pulz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 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 2006-05-24 23:11:01 UTC
State Changed
From-To: open->closed

Committed, Thanks!