Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Mar 2002 17:54:44 -0500 (EST)
From:      Alan Eldridge <ports@geeksrus.net>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        portmgr@freebsd.org
Subject:   ports/35488: Mk/bsd.port.mk: dump only last 100 lines of failed config log
Message-ID:  <200203022254.g22MsiA29547@wwweasel.geeksrus.net>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203022254.g22MsiA29547>