From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 20 22:20:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3DE073DD for ; Fri, 20 Sep 2013 22:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 1DB9625CE for ; Fri, 20 Sep 2013 22:20:01 +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 r8KMK0mt069302 for ; Fri, 20 Sep 2013 22:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8KMK0A1069301; Fri, 20 Sep 2013 22:20:00 GMT (envelope-from gnats) Resent-Date: Fri, 20 Sep 2013 22:20:00 GMT Resent-Message-Id: <201309202220.r8KMK0A1069301@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dmitry Marakasov Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1B67D3D5; Fri, 20 Sep 2013 22:19:45 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [92.53.117.29]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id D00C425C8; Fri, 20 Sep 2013 22:19:44 +0000 (UTC) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1VN931-0002xg-W8; Sat, 21 Sep 2013 02:19:36 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 9D084552; Sat, 21 Sep 2013 02:19:35 +0400 (MSK) Received: by hades.panopticon (Postfix, from userid 1000) id 863D0CA7; Sat, 21 Sep 2013 02:19:35 +0400 (MSK) Message-Id: <20130920221935.863D0CA7@hades.panopticon> Date: Sat, 21 Sep 2013 02:19:35 +0400 (MSK) From: Dmitry Marakasov To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/182266: [PATCH] textproc/gnugrep: unbreak PCRE option Cc: johans@FreeBSD.org X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Sep 2013 22:20:01 -0000 >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 @@ -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: