From owner-freebsd-ports Sat Mar 2 15: 0:53 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0EEEE37B417 for ; Sat, 2 Mar 2002 15:00:03 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g22N03k97371; Sat, 2 Mar 2002 15:00:03 -0800 (PST) (envelope-from gnats) Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.8.210.226]) by hub.freebsd.org (Postfix) with ESMTP id D430037B419; Sat, 2 Mar 2002 14:58:16 -0800 (PST) Received: (from alane@localhost) by wwweasel.geeksrus.net (8.11.6/8.11.6) id g22MsiA29547; Sat, 2 Mar 2002 17:54:44 -0500 (EST) (envelope-from alane) Message-Id: <200203022254.g22MsiA29547@wwweasel.geeksrus.net> Date: Sat, 2 Mar 2002 17:54:44 -0500 (EST) From: Alan Eldridge Reply-To: Alan Eldridge To: FreeBSD-gnats-submit@freebsd.org Cc: portmgr@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/35488: Mk/bsd.port.mk: dump only last 100 lines of failed config log 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 >Number: 35488 >Category: ports >Synopsis: Mk/bsd.port.mk: dump only last 100 lines of failed config log >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Mar 02 15:00:03 PST 2002 >Closed-Date: >Last-Modified: >Originator: Alan Eldridge >Release: FreeBSD 4.5-STABLE i386 >Organization: Geeksrus.NET >Environment: System: FreeBSD wwweasel.geeksrus.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Feb 8 21:25:34 EST 2002 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386 >Description: The current code dumps the entire configure log when a configure script fails. This is worse than useless; unless you have a 20000 line scroll buffer you probably lost all context of the terminal session you were using. It is an *impediment* to fixing port configuration problems. >How-To-Repeat: >Fix: --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- Index: Mk/bsd.port.mk =================================================================== RCS file: /home/alane/cvsroot/ports/Mk/bsd.port.mk,v retrieving revision 1.400 diff -u -3 -r1.400 bsd.port.mk --- Mk/bsd.port.mk 24 Feb 2002 16:54:34 -0000 1.400 +++ Mk/bsd.port.mk 2 Mar 2002 22:29:48 -0000 @@ -2204,8 +2204,8 @@ INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ INSTALL_SCRIPT="${INSTALL_SCRIPT}" \ ${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; then \ - ${ECHO} "===> Script \"${CONFIGURE_SCRIPT}\" failed: here are the contents of \"${CONFIGURE_LOG}\""; \ - ${CAT} ${CONFIGURE_LOG}; \ + ${ECHO} "===> Script \"${CONFIGURE_SCRIPT}\" failed: here are the last 100 lines of \"${CONFIGURE_LOG}\""; \ + ${TAIL} -100 ${CONFIGURE_LOG}; \ ${ECHO} "(end of \"${CONFIGURE_LOG}\")"; \ ${FALSE}; \ fi) --8<----8<----8<----8<----8<----8<----8<----8<----8<----8<-- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message