From owner-freebsd-ports Sun Dec 16 16:40:12 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 51C2D37B41C for ; Sun, 16 Dec 2001 16:40:02 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id fBH0e2g80544; Sun, 16 Dec 2001 16:40:02 -0800 (PST) (envelope-from gnats) Received: from mailout00.sul.t-online.com (mailout00.sul.t-online.com [194.25.134.16]) by hub.freebsd.org (Postfix) with ESMTP id AB98837B419 for ; Sun, 16 Dec 2001 16:31:16 -0800 (PST) Received: from fwd03.sul.t-online.de by mailout00.sul.t-online.de with smtp id 16FlgZ-0003wY-00; Mon, 17 Dec 2001 01:31:15 +0100 Received: from spotteswoode.dnsalias.org (520082050842-0001@[62.155.170.185]) by fmrl03.sul.t-online.com with smtp id 16FlgV-1xRqEKC; Mon, 17 Dec 2001 01:31:11 +0100 Received: (qmail 8958 invoked by uid 0); 17 Dec 2001 00:31:10 -0000 Message-Id: <20011217013110.B595@spotteswoode.dnsalias.org> Date: 17 Dec 2001 01:31:10 +0100 From: "clemensF" To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/32917: bsd.ports.mk fails for innocent $GREP_OPTIONS Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32917 >Category: ports >Synopsis: installing ports may fail if $GREP_OPTIONS is set >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Dec 16 16:40:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Tip Chap >Release: FreeBSD 4.3-RELEASE i386 >Organization: golden common mistakes, discorporated and irritated >Environment: System: FreeBSD spotteswoode.dnsalias.org 4.3-RELEASE FreeBSD 4.3-RELEASE #12: Tue Dec 11 12:23:45 CET 2001 root@spotteswoode.dnsalias.org:/usr/src/sys/compile/n1 i386 >Description: after installing XFree86-4.1 right from xfree86.org (freebsd binaries), i mounted to install Xwrapper from the ports. all the libs were there, all the includes, but /usr/ports/Mk/bsd.ports.mk complained the Xlibs were missing and had to be rebuilt. i had tried to do so up front, but the patches didn't apply cleanly and i couldn't get /usr/ports/x11/XFree86-4 to compile. as i was unable to find the cause for this, i went to download the binaries from xfree86.org, which installed fine, except for one thing: the installation script checks the (supplied) extract- utilities version. this utility is a hacked version of gnu-tar, and its checked using this line ``fgrep "extract (XFree86 version"''. this is when i first discovered the problems i had. i use gnu-grep, which (i think) is in freebsd's base install. with "export $GREP_OPTIONS='-Ei'" in my environment, an "unbalanced parentheses" was detected, which failed this first trial. i corrected the problem by unsetting the GREP_OPTIONS and averything thereafter went ok. without giving it much thought i switched to another shell window and went ahead to install /usr/ports/x11/Xwrapper, but this environment had unchanged $GREP_OPTIONS, and i couldn't find the actual cause for the install to insist on rebuilding the entire X installation, because the "grep -F" used to check for the name looked as unsuspicious as could be. >How-To-Repeat: >Fix: it took literally hours to find out that those GREP_OPTIONS were the cause, and i'd like the ports-maintainer to unset this option in the make file (perhaps putting ``GREP_OPTIONS=""'' somewhere near the top?). clemens fischer >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message