From owner-freebsd-ports@FreeBSD.ORG Wed Oct 1 23:03:06 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E3511065694; Wed, 1 Oct 2008 23:03:06 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 3EF398FC15; Wed, 1 Oct 2008 23:03:06 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 604471A9119; Wed, 1 Oct 2008 15:56:53 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OJILVW-hwQIc; Wed, 1 Oct 2008 15:56:52 -0700 (PDT) Received: from [10.47.1.10] (vpn.office.miralink.com [10.0.0.5]) by plato.miralink.com (Postfix) with ESMTP id 79B531A90D3; Wed, 1 Oct 2008 15:56:52 -0700 (PDT) Message-ID: <48E401A8.7080803@miralink.com> Date: Wed, 01 Oct 2008 16:03:04 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <48E10860.1070200@miralink.com> <20080930024316.GA24335@icarus.home.lan> <48E19339.4090709@miralink.com> <20080930025938.GA24534@icarus.home.lan> In-Reply-To: <20080930025938.GA24534@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jeremy Chadwick Subject: Re: [RELENG 6] imake-6 build failure[RESOLVED via sudoers] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2008 23:03:06 -0000 Jeremy Chadwick wrote: > On Mon, Sep 29, 2008 at 07:47:21PM -0700, Sean Bruno wrote: > >> Jeremy Chadwick wrote: >> >>> On Mon, Sep 29, 2008 at 09:54:56AM -0700, Sean Bruno wrote: >>> >>> >>>> Anyone else seeing this on RELENG 6? >>>> >>>> >>>> [sbruno@desdemona /usr/ports/devel/imake-6]$ sudo make all >>>> "Makefile", line 58: Malformed conditional (${X_WINDOW_SYSTEM:L} != xorg) >>>> "Makefile", line 63: if-less endif >>>> make: fatal errors encountered -- cannot continue >>>> >>>> >>> Note that ports/devel/imake-6 was migrated to devel/image 16 months ago. >>> >>> http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/imake-6/Attic/Makefile >>> >>> >>> >> Ok, I'm not sure what is going on then. Help? >> >> [sbruno@desdemona /usr/ports]$ sudo portupgrade -aP >> ** Port marked as IGNORE: devel/imake-6: >> "Makefile", line 63: if-less endif >> ** Proceeding anyway since NO_IGNORE is defined >> /usr/local/lib/ruby/site_ruby/1.8/pkgversion.rb:41:in `initialize': : >> Not in due form: '[_][,]'. (ArgumentError) >> from /usr/local/sbin/portupgrade:645:in `new' >> from /usr/local/sbin/portupgrade:645:in `main' >> from /usr/local/sbin/portupgrade:613:in `each' >> from /usr/local/sbin/portupgrade:613:in `main' >> from /usr/local/sbin/portupgrade:588:in `catch' >> from /usr/local/sbin/portupgrade:588:in `main' >> from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call' >> from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `parse_in_order' >> ... 7 levels... >> from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' >> from /usr/local/sbin/portupgrade:229:in `new' >> from /usr/local/sbin/portupgrade:229:in `main' >> from /usr/local/sbin/portupgrade:2208 >> >> > > I can't help with the portupgrade craziness that's going on there (I do > not use portupgrade), but it's obvious it's induced by the Makefile > being broken. > > The fact you still have ports/devel/imake-6 indicates: > > 1) Outdated ports tree, > 2) A corrupt or incorrect /var/db/sup/ports-all tree (if you remove > this directory, you will need to rm -fr /usr/ports/* as well) > 3) When building the machine you chose "ports" from the list of things > to install (from CD/DVD/FTP/whatever), but never "adopted" them. The > "adopted" ordeal is explained in the cvsup documentation (in this > case, also applies to csup): > http://www.cvsup.org/faq.html#caniadopt > 4) Read-only filesystem where /usr/ports resides (e.g. csup won't work), > 5) Bizarre file flags on parts of the ports tree (e.g. schg set on > some ports for some reason; maybe some chflags -R script went crazy), > 6) Corrupt filesystem (boot into single-user and do fsck -y. And yes, > the single-user part is important). > > Item #3 is why I advocate folks do not choose "src" and "ports" from > their installation media unless absolutely forced to, and to simply do a > full csup once the system is up for the first time. > > Just to close the loop on this. I discovered that my update of sudo in ports was the initiating factor in this issue. I am not well versed in FreeBSD system administration and recently came to the realization that I hadn't been updating ports on my system. Probably, they hadn't been updated since 6.3 was released. So, when I updated ports, a new sudo was installed. The cuurent version of sudo changed the behavior of how environment variables are passed from the calling shell to the sudo shell. The previous version of sudo defaulted to passing ALL environment variables except those that are excluded to the sudo shell. The updated version of sudo defaults to passing NO environment variables except those that are included. Since I didn't merge my sudoers file correctly(or at all!) I effectively eliminated all environment variables from my sudo invocation! Once I understood what was happening, it was easily resolved by merging the example sudoers file in /usr/local/etc/sudoers.default with my version of the sudoers file. Sorry for the noise for those who were trying to help me. -- Sean Bruno MiraLink Corporation 6015 NE 80th Ave, Ste 100 Portland, OR 97218 Cell 503-358-6832 Phone 503-621-5143 Fax 503-621-5199 MSN: sbruno@miralink.com Google: seanwbruno@gmail.com