Date: 17 Dec 2001 01:31:10 +0100 From: "clemensF" <ino-waiting@gmx.net> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/32917: bsd.ports.mk fails for innocent $GREP_OPTIONS Message-ID: <20011217013110.B595@spotteswoode.dnsalias.org>
next in thread | raw e-mail | index | archive | help
>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 <ino-waiting@gmx.net> >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 <machine, os, target, libraries (multiple lines)> >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: <code/input/activities to reproduce the problem (multiple lines)> >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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011217013110.B595>