From owner-freebsd-ports Thu Jul 18 20:37:43 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE70A37B400 for ; Thu, 18 Jul 2002 20:37:40 -0700 (PDT) Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30FB843E6A for ; Thu, 18 Jul 2002 20:37:40 -0700 (PDT) (envelope-from edwin@mavetju.org) Received: from k7.mavetju (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 1509E2B8E8; Fri, 19 Jul 2002 05:37:37 +0200 (CEST) Received: by k7.mavetju (Postfix, from userid 1001) id C3DEF6A711E; Fri, 19 Jul 2002 13:37:31 +1000 (EST) Date: Fri, 19 Jul 2002 13:37:31 +1000 From: Edwin Groothuis To: Cyrille Lefevre Cc: Thierry Thomas , ports@FreeBSD.ORG Subject: Re: Possibly unbuildable ports reminder Message-ID: <20020719033731.GI574@k7.mavetju> References: <200207141700.g6EH021r064341@freefall.freebsd.org> <20020716220633.GA32807@hobbes.oban.frmug.org> <20020717195442.GA17100@gits.dyndns.org> <20020717201231.GA84947@graf.pompo.net> <20020718070809.GA6946@gits.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20020718070809.GA6946@gits.dyndns.org> User-Agent: Mutt/1.4i 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 On Thu, Jul 18, 2002 at 09:08:09AM +0200, Cyrille Lefevre wrote: > On Wed, Jul 17, 2002 at 10:12:31PM +0200, Thierry Thomas wrote: > > Le 17 jul 02 à 21:54:42 +0000, Cyrille Lefevre écrivait : > > > > For 4-STABLE, a lot of build errors are similar to: > > > > > > > > sed: illegal option -- i > > > > usage: sed script [-Ean] [file ...] > > > > sed [-an] [-e script] ... [-f script_file] ... [file ...] > > > > *** Error code 1 > > > > > > > > Is it because the build environment does not have a recent 'sed' yet? > > > > > > if I'm right, the problem come from a misplaced USE_REINPLACE. > > > USE_REINPLACE *must* be before .include , not after. > > > > I do not think so: for example, there is this error for news/newsx > > > > > > > > and it does not include bsd.port.pre.mk. > > same here w/ a port working some days ago (i.e. isc-dhcp3). > so, something has changed in bsd.port.mk which breaks USE_REINPLACE. > > # pwd > /usr/ports/net/isc-dhcp3 > # make -V REINPLACE_CMD > sed -i.bak It's not. It's broken because /usr/local/bin/sed_inplace isn't listed as a dependancy for a package. Which is true. But it is a dependancy for a port. Which is true. And confusing. For both the port and me. And you probably too :-) Possible solutions? - Add textproc/sed_inplace as a run-dependency if the port has USE_REINPLACE. Cons: sed_inplace isn't a run-dependency. - Automatic install textproc/sed_inplace even if it's not needed. Cons: It doesn't check if the USE_REINPLACE is defined properly. - Update /usr/bin/sed to the version which understands the -i parameter. - Wait until Bento has FreeBSD 460101 installed: 4.6-STABLE after MFC of `sed -i' I would go for the last solution. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php bash$ :(){ :|:&};: | Interested in MUDs? http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message