From owner-freebsd-bugs@FreeBSD.ORG Sat Apr 3 15:10:19 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F128616A4CF for ; Sat, 3 Apr 2004 15:10:19 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1C8943D48 for ; Sat, 3 Apr 2004 15:10:19 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i33NAJbv068956 for ; Sat, 3 Apr 2004 15:10:19 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i33NAJkG068955; Sat, 3 Apr 2004 15:10:19 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 3 Apr 2004 15:10:19 -0800 (PST) Resent-Message-Id: <200404032310.i33NAJkG068955@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robert Millan Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51D1416A4CE for ; Sat, 3 Apr 2004 15:03:48 -0800 (PST) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CE6F43D1D for ; Sat, 3 Apr 2004 15:03:48 -0800 (PST) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i33N3m72023032 for ; Sat, 3 Apr 2004 15:03:48 -0800 (PST) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.10/8.12.10/Submit) id i33N3mng023031; Sat, 3 Apr 2004 15:03:48 -0800 (PST) (envelope-from nobody) Message-Id: <200404032303.i33N3mng023031@www.freebsd.org> Date: Sat, 3 Apr 2004 15:03:48 -0800 (PST) From: Robert Millan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Subject: misc/65142: fix bootstrap target in usr.bin/lex X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Apr 2004 23:10:20 -0000 >Number: 65142 >Category: misc >Synopsis: fix bootstrap target in usr.bin/lex >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 03 15:10:19 PST 2004 >Closed-Date: >Last-Modified: >Originator: Robert Millan >Release: 5.2.1+20040403 >Organization: Debian >Environment: >Description: The bootstrap target in src/usr.bin/lex/Makefile (meant to build lex on a lex-less system) is broken. It generates scan.c but not parse.h which is also needed. >How-To-Repeat: Remove (or rename) /usr/bin/lex and, in src/usr.bin/lex, try: make bootstrap ; make >Fix: Copy the dynamicaly generated parse.h into initparse.h, then apply this to Makefile: diff -Nur src/usr.bin/lex.old/Makefile src/usr.bin/lex/Makefile --- src/usr.bin/lex.old/Makefile 2002-05-12 18:00:44.000000000 +0200 +++ src/usr.bin/lex/Makefile 2004-02-17 21:14:26.000000000 +0100 @@ -31,11 +31,13 @@ skel.c: mkskel.sh flex.skl sh ${.CURDIR}/mkskel.sh ${.CURDIR}/flex.skl > skel.c -bootstrap: initscan.c +bootstrap: initscan.c initparse.h @cmp -s ${.CURDIR}/initscan.c scan.c || { \ echo "Bootstrapping flex" ; \ rm -f scan.c ; \ cp -f ${.CURDIR}/initscan.c scan.c ; \ + rm -f parse.h ; \ + cp -f ${.CURDIR}/initparse.h parse.h ; \ } test: check >Release-Note: >Audit-Trail: >Unformatted: