From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Nov 18 18:50:28 2005 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DF68616A41F for ; Fri, 18 Nov 2005 18:50:27 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9FF643D55 for ; Fri, 18 Nov 2005 18:50:26 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id jAIIoQq6062773 for ; Fri, 18 Nov 2005 18:50:26 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id jAIIoQdB062772; Fri, 18 Nov 2005 18:50:26 GMT (envelope-from gnats) Resent-Date: Fri, 18 Nov 2005 18:50:26 GMT Resent-Message-Id: <200511181850.jAIIoQdB062772@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Seán Farley Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC4FA16A41F for ; Fri, 18 Nov 2005 18:49:32 +0000 (GMT) (envelope-from sean@farley.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4788C43D46 for ; Fri, 18 Nov 2005 18:49:32 +0000 (GMT) (envelope-from sean@farley.org) Received: from thor.farley.org (thor.farley.org [IPv6:2001:470:1f01:290:1::5]) by mail.farley.org (8.13.1/8.13.1) with ESMTP id jAIInT0m099531 for ; Fri, 18 Nov 2005 12:49:30 -0600 (CST) (envelope-from sean@gw.farley.org) Received: from thor.farley.org (localhost [127.0.0.1]) by thor.farley.org (8.13.4/8.13.4) with ESMTP id jAIIovqo090261 for ; Fri, 18 Nov 2005 12:50:57 -0600 (CST) (envelope-from sean@thor.farley.org) Received: (from sean@localhost) by thor.farley.org (8.13.4/8.13.4/Submit) id jAIIoui4090260; Fri, 18 Nov 2005 12:50:56 -0600 (CST) (envelope-from sean) Message-Id: <200511181850.jAIIoui4090260@thor.farley.org> Date: Fri, 18 Nov 2005 12:50:56 -0600 (CST) From: Seán Farley To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/89248: autoheader run in wrong order in run-autotools rule X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Seán Farley List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2005 18:50:28 -0000 >Number: 89248 >Category: ports >Synopsis: autoheader run in wrong order in run-autotools rule >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 18 18:50:26 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Seán Farley >Release: FreeBSD 6.0-STABLE i386 >Organization: >Environment: System: FreeBSD thor.farley.org 6.0-STABLE FreeBSD 6.0-STABLE #1: Thu Nov 17 14:07:35 CST 2005 root@thor.farley.org:/usr/obj/usr/src/sys/THOR i386 >Description: Within the run-autotools rule in ports, autoheader is run after automake and autoconf. If a port needs to run all four auto* tools, then it will (at least for me) fail. >How-To-Repeat: Run make configure on a port that only has a configure.ac and Makefile.am. The output I get: configure.ac: installing `./install-sh' configure.ac: installing `./missing' common/b5c/Makefile.am: installing `./depcomp' configure.ac:20: installing `./config.guess' configure.ac:20: installing `./config.sub' configure.ac:4: required file `config.h.in' not found autoheader is the one creating the config.h.in. >Fix: Just place autoheader before automake in the run-autotools rule. ------------------------------------------ --- bsd.autotools.mk.orig Fri Nov 18 12:36:20 2005 +++ bsd.autotools.mk Fri Nov 18 12:36:20 2005 @@ -331,6 +331,10 @@ @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${ACLOCAL} \ ${ACLOCAL_ARGS}) . endif +. if defined(AUTOTOOL_autoheader) + @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOHEADER} \ + ${AUTOHEADER_ARGS}) +. endif . if defined(AUTOTOOL_automake) @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOMAKE} \ ${AUTOMAKE_ARGS}) @@ -338,10 +342,6 @@ . if defined(AUTOTOOL_autoconf) @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOCONF} \ ${AUTOCONF_ARGS}) -. endif -. if defined(AUTOTOOL_autoheader) - @(cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTOHEADER} \ - ${AUTOHEADER_ARGS}) . endif .endif ------------------------------------------ >Release-Note: >Audit-Trail: >Unformatted: