Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Sep 2013 02:19:35 +0400 (MSK)
From:      Dmitry Marakasov <amdmi3@amdmi3.ru>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        johans@FreeBSD.org
Subject:   ports/182266: [PATCH] textproc/gnugrep: unbreak PCRE option
Message-ID:  <20130920221935.863D0CA7@hades.panopticon>
Resent-Message-ID: <201309202220.r8KMK0A1069301@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         182266
>Category:       ports
>Synopsis:       [PATCH] textproc/gnugrep: unbreak PCRE option
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 20 22:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 9.1-RELEASE-p4 amd64
>Organization:
>Environment:
System: FreeBSD hades.panopticon 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0 r251956: Tue Jun 18 21:41:37 MSK
>Description:
PCRE option is broken:

---
checking pcre.h usability... no
checking pcre.h presence... no
checking for pcre.h... no
checking pcre/pcre.h usability... no
checking pcre/pcre.h presence... no
checking for pcre/pcre.h... no
configure: WARNING: libpcre development library was not found or not usable.
configure: WARNING: GNU grep will be built without pcre support.
---

This happens because there's no path to ${LOCALBASE}/include in CPPFLAGS and to ${LOCALBASE}/lib in LDFLAGS:

---
configure:35216: checking pcre.h usability
configure:35216: cc -std=gnu99 -c -O2 -pipe -march=nocona -fno-strict-aliasing  -D_THREAD_SAFE conftest.c >&5
conftest.c:510:18: error: pcre.h: No such file or directory
---

The attached path fixes that by always adding local include/library directories to flags.

Port maintainer (johans@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: SVN)
>How-To-Repeat:
>Fix:

--- gnugrep-2.14.patch begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 327756)
+++ Makefile	(working copy)
@@ -23,6 +23,9 @@
 		grep.1
 INFO=		grep
 
+CPPFLAGS+=	-I${LOCALBASE}/include
+LDFLAGS+=	-L${LOCALBASE}/lib
+
 OPTIONS_DEFINE=	PCRE NLS
 
 .include <bsd.port.options.mk>
@@ -29,7 +32,7 @@
 
 .if ${PORT_OPTIONS:MNLS}
 USES+=		gettext
-LDFLAGS+=	-lintl -L${LOCALBASE}/lib
+LDFLAGS+=	-lintl
 PLIST_SUB+=	NLS=
 .else
 CONFIGURE_ARGS+=	--disable-nls
--- gnugrep-2.14.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130920221935.863D0CA7>