From emaste@FreeBSD.org  Mon May 27 13:01:27 2013
Return-Path: <emaste@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id C104BAAE
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 May 2013 13:01:27 +0000 (UTC)
	(envelope-from emaste@FreeBSD.org)
Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87])
	by mx1.freebsd.org (Postfix) with ESMTP id B2DCCA2
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 May 2013 13:01:27 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
	by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r4RD1R3Q041499
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 May 2013 13:01:27 GMT
	(envelope-from emaste@freefall.freebsd.org)
Received: (from emaste@localhost)
	by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r4RD1R5M041498;
	Mon, 27 May 2013 13:01:27 GMT
	(envelope-from emaste)
Message-Id: <201305271301.r4RD1R5M041498@freefall.freebsd.org>
Date: Mon, 27 May 2013 13:01:27 GMT
From: Ed Maste <emaste@freebsd.org>
Reply-To: Ed Maste <emaste@freebsd.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: devel/ncurses: no .pc files - needed for straightforward static linking
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         179005
>Category:       ports
>Synopsis:       devel/ncurses: no .pc files - needed for straightforward static linking
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rafan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 27 13:10:00 UTC 2013
>Closed-Date:    Fri Sep 20 15:42:43 UTC 2013
>Last-Modified:  Fri Sep 20 15:42:43 UTC 2013
>Originator:     Ed Maste
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
FreeBSD
>Environment:
System: FreeBSD freefall.freebsd.org 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r250391: Wed May 8 23:39:18 UTC 2013 peter@freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64

>Description:
Libncurses recently(?) gained a dependency on libtinfo.  For dynamically linked
ncurses consumers this poses no problem, but does for static linking.

This can be solved automatically by pkgconf, which should list both -lncurses
and -ltinfo in "pkg-config --static --libs ncurses".

>How-To-Repeat:
% pkg-config --static --libs ncurses
Package ncurses was not found in the pkg-config search path.
Perhaps you should add the directory containing `ncurses.pc'
to the PKG_CONFIG_PATH environment variable

>Fix:



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->rafan 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon May 27 13:10:09 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179005 

From: Ed Maste <carpeddiem@gmail.com>
To: bug-followup@FreeBSD.org, emaste@freebsd.org
Cc:  
Subject: Re: ports/179005: devel/ncurses: no .pc files - needed for
 straightforward static linking
Date: Mon, 27 May 2013 09:53:27 -0400

 This is related to ports/160695: devel/ncurses libncurses.a doesn't
 contain libtinfo.a

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/179005: commit references a PR
Date: Sat,  8 Jun 2013 05:58:53 +0000 (UTC)

 Author: rafan
 Date: Sat Jun  8 05:58:44 2013
 New Revision: 320235
 URL: http://svnweb.freebsd.org/changeset/ports/320235
 
 Log:
   - Install pkg-config files to support static linking
   - Bump PORTREVISION
   
   PR:		ports/179005, ports/160695
 
 Modified:
   head/devel/ncurses/Makefile
   head/devel/ncurses/pkg-plist
 
 Modified: head/devel/ncurses/Makefile
 ==============================================================================
 --- head/devel/ncurses/Makefile	Sat Jun  8 02:30:13 2013	(r320234)
 +++ head/devel/ncurses/Makefile	Sat Jun  8 05:58:44 2013	(r320235)
 @@ -3,7 +3,7 @@
  
  PORTNAME=	ncurses
  PORTVERSION=	${RELEASE}
 -PORTREVISION=	1
 +PORTREVISION=	2
  CATEGORIES=	devel
  MASTER_SITES=	${MASTER_SITE_GNU}
  MASTER_SITE_SUBDIR=	${PORTNAME}
 @@ -21,7 +21,7 @@ CONFIGURE_SCRIPT=../configure
  CONFIGURE_ARGS=	--datadir=${PREFIX}/share/misc --disable-overwrite \
  		--enable-termcap --enable-bsdpad --enable-getcap \
  		--enable-colorfgbg --disable-home-terminfo \
 -		--with-pkg-config=no \
 +		--with-pkg-config=yes --enable-pc-files \
  		--includedir=${PREFIX}/include/ncurses \
  		--with-shared \
  		--without-curses-h --with-termlib --program-prefix= \
 @@ -33,9 +33,11 @@ OPTIONS_DEFINE=	EXTCOLORS TRACE DEBUG
  EXTCOLORS_DESC=	256-color support (only for ncursesw)
  TRACE_DESC=	Add trace() function to all models of ncurses
  
 -CONFIGURE_ENV=	gnat_exists="no"
 +CONFIGURE_ENV=	PKG_CONFIG_LIBDIR=${LOCALBASE}/libdata/pkgconfig \
 +		gnat_exists="no"
  
  USE_LDCONFIG=	yes
 +USE_GNOME=	pkgconfig
  
  WIDEC_WRKSRC=	${WRKSRC}/build.widec
  NOWIDEC_WRKSRC=	${WRKSRC}/build.nowidec
 
 Modified: head/devel/ncurses/pkg-plist
 ==============================================================================
 --- head/devel/ncurses/pkg-plist	Sat Jun  8 02:30:13 2013	(r320234)
 +++ head/devel/ncurses/pkg-plist	Sat Jun  8 05:58:44 2013	(r320235)
 @@ -91,6 +91,28 @@ lib/libtinfo.so.%%REL_VER%%
  %%WIDEC%%lib/libtinfow.so.%%REL_VER_WIDEC%%
  %%WIDEC%%%%DEBUG%%lib/libtinfow_g.a
  %%WIDEC%%%%PROFILE%%lib/libtinfow_p.a
 +libdata/pkgconfig/form.pc
 +%%DEBUG%%libdata/pkgconfig/form_g.pc
 +%%PROFILE%%libdata/pkgconfig/form_p.pc
 +%%WIDEC%%libdata/pkgconfig/formw.pc
 +libdata/pkgconfig/menu.pc
 +%%DEBUG%%libdata/pkgconfig/menu_g.pc
 +%%PROFILE%%libdata/pkgconfig/menu_p.pc
 +%%WIDEC%%libdata/pkgconfig/menuw.pc
 +libdata/pkgconfig/ncurses++.pc
 +%%WIDEC%%libdata/pkgconfig/ncurses++w.pc
 +libdata/pkgconfig/ncurses.pc
 +%%DEBUG%%libdata/pkgconfig/ncurses_g.pc
 +%%PROFILE%%libdata/pkgconfig/ncurses_p.pc
 +%%WIDEC%%libdata/pkgconfig/ncursesw.pc
 +libdata/pkgconfig/panel.pc
 +%%DEBUG%%libdata/pkgconfig/panel_g.pc
 +%%PROFILE%%libdata/pkgconfig/panel_p.pc
 +%%WIDEC%%libdata/pkgconfig/panelw.pc
 +libdata/pkgconfig/tinfo.pc
 +%%DEBUG%%libdata/pkgconfig/tinfo_g.pc
 +%%PROFILE%%libdata/pkgconfig/tinfo_p.pc
 +%%WIDEC%%libdata/pkgconfig/tinfow.pc
  %%TERMINFO%%share/misc/tabset/std
  %%TERMINFO%%share/misc/tabset/stdcrt
  %%TERMINFO%%share/misc/tabset/vt100
 _______________________________________________
 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"
 
State-Changed-From-To: open->closed 
State-Changed-By: rafan 
State-Changed-When: Fri Sep 20 15:42:42 UTC 2013 
State-Changed-Why:  
Fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179005 
>Unformatted:
