Bug 171139

Summary: [PATCH] textproc/iksemel: add dependency on pkg-config
Product: Ports & Packages Reporter: Frank Wall <freebsd>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Frank Wall 2012-08-28 14:00:10 UTC
The port textproc/iksemel requires pkg-config to be build. The build dependency for it is missing, thus the port won't compile if devel/pkgconf is not already installed.

Fix: apply the patch:

------------------- start inline patch -------------------
--- textproc/iksemel/Makefile.orig	2011-09-24 00:25:43.000000000 +0200
+++ textproc/iksemel/Makefile	2012-08-28 14:47:02.000000000 +0200
@@ -7,7 +7,7 @@
 
 PORTNAME=	iksemel
 PORTVERSION=	1.4
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	textproc
 MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 
@@ -16,6 +16,7 @@
 
 LIB_DEPENDS=	gnutls.47:${PORTSDIR}/security/gnutls
 
+USE_PKGCONFIG=	build
 USE_AUTOTOOLS=	aclocal autoheader automake autoconf libtool
 ACLOCAL_ARGS=	-I ${LOCALBASE}/share/aclocal
 GNU_CONFIGURE=	yes
------------------- end inline patch -------------------

Patch attached with submission follows:
How-To-Repeat: - make sure devel/pkgconf is NOT installed
- try to install textproc/iksemel
- build will fail with a syntax error during the configure phase:

===>  Extracting for iksemel-1.4_3
=> SHA256 Checksum OK for iksemel-1.4.tar.gz.
===>  Patching for iksemel-1.4_3
===>  Applying FreeBSD patches for iksemel-1.4_3
===>   iksemel-1.4_3 depends on file: /usr/local/bin/automake-1.12 - found
===>   iksemel-1.4_3 depends on file: /usr/local/bin/autoconf-2.69 - found
===>   iksemel-1.4_3 depends on package: libtool>=2.4 - found
===>   iksemel-1.4_3 depends on shared library: gnutls.47 - found
===>  Configuring for iksemel-1.4_3
checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel
[...]
checking for getaddrinfo... yes
./configure: 11910: Syntax error: word unexpected (expecting ")")
===>  Script "configure" failed unexpectedly.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-08-28 14:00:36 UTC
Maintainer of textproc/iksemel,

Please note that PR ports/171139 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/171139

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2012-08-28 14:00:40 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Bryan Drewery freebsd_committer freebsd_triage 2012-08-28 20:34:25 UTC
State Changed
From-To: feedback->closed

Thank you for your report. It's been reported in ports/170771 and should 
be fixed in the next week.
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-09-02 22:23:18 UTC
Author: bdrewery
Date: Sun Sep  2 21:23:07 2012
New Revision: 303577
URL: http://svn.freebsd.org/changeset/ports/303577

Log:
  - Fix build by adding dependency on pkgconfig
  - Remove ABI version from LIB_DEPENDS
  
  PR:		ports/170771 [1]
  Submitted by:	bdrewery [1]
  PR:		ports/171139 [2]
  Submitted by:	Frank Wall <fw@moov.de> [2]
  Approved by:	maintainer timeout (2w)
  Approved by:	bapt (mentor)

Modified:
  head/textproc/iksemel/Makefile

Modified: head/textproc/iksemel/Makefile
==============================================================================
--- head/textproc/iksemel/Makefile	Sun Sep  2 21:01:06 2012	(r303576)
+++ head/textproc/iksemel/Makefile	Sun Sep  2 21:23:07 2012	(r303577)
@@ -14,7 +14,7 @@ MASTER_SITES=	${MASTER_SITE_GOOGLE_CODE}
 MAINTAINER=	rhaamo@gruik.at
 COMMENT=	XML parser library mainly designed for Jabber applications
 
-LIB_DEPENDS=	gnutls.47:${PORTSDIR}/security/gnutls
+LIB_DEPENDS=	gnutls:${PORTSDIR}/security/gnutls
 
 USE_AUTOTOOLS=	aclocal autoheader automake autoconf libtool
 ACLOCAL_ARGS=	-I ${LOCALBASE}/share/aclocal
@@ -22,6 +22,7 @@ GNU_CONFIGURE=	yes
 CPPFLAGS+=	${CXXFLAGS} -I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 USE_LDCONFIG=	yes
+USE_PKGCONFIG=	build
 
 INFO=	iksemel
 
_______________________________________________
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"