From owner-freebsd-stable@FreeBSD.ORG Wed Jul 12 02:47:10 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C775316A4DA for ; Wed, 12 Jul 2006 02:47:10 +0000 (UTC) (envelope-from noackjr@alumni.rice.edu) Received: from smtp105.biz.mail.re2.yahoo.com (smtp105.biz.mail.re2.yahoo.com [206.190.52.174]) by mx1.FreeBSD.org (Postfix) with SMTP id 3ABEC43D45 for ; Wed, 12 Jul 2006 02:47:09 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 55881 invoked from network); 12 Jul 2006 02:47:09 -0000 Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@24.99.22.177 with login) by smtp105.biz.mail.re2.yahoo.com with SMTP; 12 Jul 2006 02:47:09 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 48CE26121; Tue, 11 Jul 2006 22:47:08 -0400 (EDT) X-Virus-Scanned: amavisd-new at noacks.org Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iO+exxzjai7G; Tue, 11 Jul 2006 22:47:06 -0400 (EDT) Received: from [192.168.1.102] (unknown [192.168.1.102]) by optimator.noacks.org (Postfix) with ESMTP id 7FA3B60E8; Tue, 11 Jul 2006 22:47:06 -0400 (EDT) Message-ID: <44B462AB.3040509@alumni.rice.edu> Date: Tue, 11 Jul 2006 22:47:07 -0400 From: Jonathan Noack User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Atanas References: <44B40863.9060403@asd.aplus.net> <44B43029.1060309@asd.aplus.net> In-Reply-To: <44B43029.1060309@asd.aplus.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Matthias Andree , freebsd-stable@freebsd.org Subject: Re: portupgrade bug: -M no longer works after v2.1.0 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2006 02:47:10 -0000 Atanas wrote: > Matthias Andree said the following on 7/11/06 1:48 PM: >> Atanas writes: >> >>> Recent portupgrade versions no longer obey the -M command line switch, >>> i.e. any optional arguments to be prepended to each make command. >>> >>> How to reproduce: >>> >>> # portinstall -M "APACHE_HARD_SERVER_LIMIT=1024" www/apache13 >>> ... >>> ===> src/ap >>> cc -c -I../os/unix -I../include -I/usr/local/include -funsigned-char >>> -O2 -fno-strict-aliasing -pipe >>> -DDOCUMENT_LOCATION=\"/usr/local/www/data\" >>> -DDEFAULT_PATH=\"/bin:/usr/bin:/usr/local/bin\" -DHARD_SERVER_LIMIT=512 >>> `../apaci` ap_cpystrn.c >>> ... >>> >>> Note the -DHARD_SERVER_LIMIT=512 above. >> >> Does it work if you type (you can omit the env in /bin/sh, bash, (pd)ksh >> and other Bourne-like shells): >> >> env APACHE_HARD_SERVER_LIMIT=1024 portinstall www/apache13 >> > Of course it would, but this just bypasses the problem. There are other > ways to work this around as well - like not using portupgrade at all and > building everything with make. > > The problem is that there's a bug introduced by some of the recent > portupgrade versions that changes its documented behavior. The '-M' > switch in partucular no longer works, thus causing any existing > port/package installation scripts depending on that switch to build > packages with incorrect optional parameters. > > It's not a problem with a particular port. The www/apache13 port was > given just as example how to reproduce the bug. > > This affects _all_ ports when installed/upgraded/built via portupgrade > and when the '-M' switch is used. Try '-m' as a workaround. -Jonathan