From owner-freebsd-ports@FreeBSD.ORG Wed Dec 8 01:09:42 2010 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 C62B4106566C for ; Wed, 8 Dec 2010 01:09:42 +0000 (UTC) (envelope-from jonathan@kc8onw.net) Received: from mail.kc8onw.net (kc8onw.net [206.55.209.81]) by mx1.freebsd.org (Postfix) with ESMTP id A20B58FC14 for ; Wed, 8 Dec 2010 01:09:42 +0000 (UTC) Received: from [10.70.3.3] (c-98-223-39-129.hsd1.in.comcast.net [98.223.39.129]) by mail.kc8onw.net (Postfix) with ESMTPSA id F0EED37BBD for ; Tue, 7 Dec 2010 20:09:41 -0500 (EST) Message-ID: <4CFEDAB5.5030309@kc8onw.net> Date: Tue, 07 Dec 2010 20:09:09 -0500 From: Jonathan User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20101207022753.GB5042@comcast.net> In-Reply-To: <20101207022753.GB5042@comcast.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: failed configure of multimedia/handbrake 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, 08 Dec 2010 01:09:42 -0000 (Forgot to send to list initially) On 12/6/2010 9:27 PM, Charlie Kester wrote: > I'm getting a strange error while trying to install the handbrake port: > > ===> Configuring for handbrake-0.9.3 > sed: > /usr/ports/multimedia/handbrake/work/HandBrake-0.9.3//usr/ports/multimedia/handbrake/work/HandBrake-0.9.3/configure: > No such file or directory > *** Error code 1 > > Stop in /usr/ports/multimedia/handbrake. > > Looking at the port Makefile and bsd.port.mk, I can't see why sed is > being run here. Nor can I see why ${WRKSRC} is appearing twice in the > path to the configure script. The code that is running the failing sed is in /usr/ports/Mk/bsd.autotools.mk starting on line 381 > .if !target(patch-autotools-libtool) > patch-autotools-libtool:: > . if defined(_AUTOTOOL_rule_libtool) > @for file in ${LIBTOOLFILES}; do \ > ${REINPLACE_CMD} -e \ > "/^ltmain=/!s|\$$ac_aux_dir/ltmain.sh|${LIBTOOLFLAGS} ${LTMAIN}|g; \ > /^LIBTOOL=/s|\$$(top_builddir)/libtool|${LIBTOOL}|g" \ > ${PATCH_WRKSRC}/$$file; \ > done; > . else > @${DO_NADA} > . endif > .endif ${PATCH_WRKSRC} and $$file from ${LIBTOOLFILES} have the full path to the target file which when combined causes the not found error. I'm guessing this has something to do with the recent autotools changes so I'm cc'ing ade@ I found what appears to be the offending line but I don't know anywhere near enough about how the ports makefiles work to find the root of the problem. HTH, jonathan