From owner-freebsd-gnome@FreeBSD.ORG Sun Jul 27 16:42:29 2008 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 30FC41065676 for ; Sun, 27 Jul 2008 16:42:29 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtao107.cox.net (eastrmmtao107.cox.net [68.230.240.59]) by mx1.freebsd.org (Postfix) with ESMTP id DBF8F8FC16 for ; Sun, 27 Jul 2008 16:42:28 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao107.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20080727164228.IUGB8977.eastrmmtao107.cox.net@eastrmimpo01.cox.net>; Sun, 27 Jul 2008 12:42:28 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo01.cox.net with bizsmtp id v4iT1Z00E4iy4EG024iTQ9; Sun, 27 Jul 2008 12:42:28 -0400 Date: Sun, 27 Jul 2008 11:42:29 -0500 To: "Jens Rehsack" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <488C563D.2000203@web.de> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <488C563D.2000203@web.de> User-Agent: Opera Mail/9.51 (Linux) Cc: FreeBSD GNOME Users Subject: Re: Help required: how to add a patch to gnome-commmander2 port? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jul 2008 16:42:29 -0000 On Sun, 27 Jul 2008 06:04:29 -0500, Jens Rehsack wrote: > Hi all, > > I tried to update x11-fm/gnome-commander2/ to it's current version, > but there was an error in the ./configure script. > Piotr sent me a patch (modified version attached with applies cleanly > to the port), but it patched the configure.in and the port assumes > autoconf has been already run. > > Is it enough to add autoconf to the USE_AUTOTOOLS line or do I have > check/add sth. else? You can either patch in configure or configure.in with USE_AUTOTOOLS. If you want to keep patch in configure.in. I would do like this: -------------------------------------------------- USE_AUTOTOOLS= autoconf:262:env GNU_CONFIGURE= yes [...] pre-configure: @(cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTORECONF} -W none) -------------------------------------------------- The autoreconf will rebuild configure file. If you still need to patch in configure after rebuild, then add REINPLACE_CMD under it. You can read book here: http://sourceware.org/autobook/autobook/autobook_43.html -------------------------------------------------- For instance, whenever you edit `configure.in', you must remember to re-run aclocal in case you added a reference to a new macro. You must also rebuild `configure' by running autoconf; `config.h' by running autoheader, in case you added a new AC_DEFINE; and automake to propagate any new AC_SUBSTs to the various `Makefile.in's. If you edit a `Makefile.am', you must re-run automake. In both these cases, you must then remember to re-run config.status --recheck if `configure' changed, followed by config.status to rebuild the `Makefile's. -------------------------------------------------- In your case, I think run autoreconf is good enough. But you can use 'USE_AUTOTOOLS=autoconf:262' without add pre-configure/GNU_CONFIGURE if you prefer. Read in Mk/bsd.autotools.mk for more info too. Cheers, Mezz > Thanks in advance, > Jens -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org