Bug 170893 - databases/spatialite installs pc file in wrong path
databases/spatialite installs pc file in wrong path
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Wen Heping
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-22 22:10 UTC by Pawel Pekala
Modified: 2012-09-11 18:51 UTC (History)
0 users

See Also:


Attachments
file.diff (1.12 KB, patch)
2012-08-22 22:10 UTC, Pawel Pekala
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Pekala freebsd_committer 2012-08-22 22:10:01 UTC
spatialite.pc file is installed to ${PREFIX}/lib/pkgconfig and this should be ${PREFIX}/libdata/pkgconfig

After switch from pkg-config to pkgconf databases/spatialite_gui is BROKEN because it's configure script can't find libspatialite. Before the switch this surprisingly worked fine.

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer 2012-08-22 22:10:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wen

wenheping@gmail.com => wen@ (via the GNATS Auto Assign Tool)
Comment 2 Edwin Groothuis freebsd_committer 2012-08-22 22:10:14 UTC
Maintainer of databases/spatialite,

Please note that PR ports/170893 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/170893

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer 2012-08-22 22:10:15 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 dfilter freebsd_committer 2012-09-11 18:49:33 UTC
Author: pawel
Date: Tue Sep 11 17:49:21 2012
New Revision: 304112
URL: http://svn.freebsd.org/changeset/ports/304112

Log:
  - spatialite: install pc file in correct place [1]
  - spatialite_gui: unbreak, now configures properly and is able to
    find libspatialite installed by databases/spatialite
  
  PR:		ports/170893 [1]
  Submitted by:	myself [1]
  Approved by:	maintainer timeout

Modified:
  head/databases/spatialite/Makefile
  head/databases/spatialite/pkg-plist
  head/databases/spatialite_gui/Makefile

Modified: head/databases/spatialite/Makefile
==============================================================================
--- head/databases/spatialite/Makefile	Tue Sep 11 17:34:09 2012	(r304111)
+++ head/databases/spatialite/Makefile	Tue Sep 11 17:49:21 2012	(r304112)
@@ -7,6 +7,7 @@
 
 PORTNAME=	spatialite
 PORTVERSION=	3.0.1
+PORTREVISION=	1
 CATEGORIES=	databases geography
 MASTER_SITES=	http://www.gaia-gis.it/gaia-sins/
 DISTNAME=	lib${PORTNAME}-${PORTVERSION}
@@ -34,6 +35,8 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/src/Makefile.am
 	@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/src/Makefile.in
 	@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/configure
+	@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|$$(prefix)/libdata/pkgconfig|' \
+		${WRKSRC}/Makefile.in
 
 .include <bsd.port.pre.mk>
 

Modified: head/databases/spatialite/pkg-plist
==============================================================================
--- head/databases/spatialite/pkg-plist	Tue Sep 11 17:34:09 2012	(r304111)
+++ head/databases/spatialite/pkg-plist	Tue Sep 11 17:49:21 2012	(r304112)
@@ -14,6 +14,6 @@ lib/libspatialite.a
 lib/libspatialite.la
 lib/libspatialite.so
 lib/libspatialite.so.4
-lib/pkgconfig/spatialite.pc
-@dirrm lib/pkgconfig
+libdata/pkgconfig/spatialite.pc
+@dirrmtry libdata/pkgconfig
 @dirrm include/spatialite

Modified: head/databases/spatialite_gui/Makefile
==============================================================================
--- head/databases/spatialite_gui/Makefile	Tue Sep 11 17:34:09 2012	(r304111)
+++ head/databases/spatialite_gui/Makefile	Tue Sep 11 17:49:21 2012	(r304112)
@@ -18,8 +18,6 @@ LIB_DEPENDS=	gaiagraphics:${PORTSDIR}/gr
 		freexl:${PORTSDIR}/textproc/freexl \
 		spatialite:${PORTSDIR}/databases/spatialite
 
-BROKEN=		does not configure
-
 USE_WX=		2.8
 WANT_UNICODE=	yes
 GNU_CONFIGURE=	yes
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Pawel Pekala freebsd_committer 2012-09-11 18:51:03 UTC
State Changed
From-To: feedback->closed

Sorry for fast committing but databases/spatialite_gui was broken for 
long time and 9.1-RELEASE is coming