From owner-freebsd-bugs Thu Aug 1 11:50:13 2002 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 36B9937B400 for ; Thu, 1 Aug 2002 11:50:04 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C07CA43E70 for ; Thu, 1 Aug 2002 11:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g71Io1JU029831 for ; Thu, 1 Aug 2002 11:50:01 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g71Io1Se029830; Thu, 1 Aug 2002 11:50:01 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93D7637B401 for ; Thu, 1 Aug 2002 11:41:13 -0700 (PDT) Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5607843E65 for ; Thu, 1 Aug 2002 11:41:13 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g71IfCOT045725 for ; Thu, 1 Aug 2002 11:41:13 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.4/8.12.4/Submit) id g71IfCtA045724; Thu, 1 Aug 2002 11:41:12 -0700 (PDT) Message-Id: <200208011841.g71IfCtA045724@www.freebsd.org> Date: Thu, 1 Aug 2002 11:41:12 -0700 (PDT) From: David Sanderson To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: conf/41241: sysinstall build uses kbdcontrol keymaps from the host instead of the source tree Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 41241 >Category: conf >Synopsis: sysinstall build uses kbdcontrol keymaps from the host instead of the source tree >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: Thu Aug 01 11:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: David Sanderson >Release: FreeBSD 4.6-RELEASE >Organization: Panasas >Environment: FreeBSD rack-bsd3 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Tue Jun 11 06:14:12 GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i386 >Description: The build of sysinstall runs kbdcontrol -L with the unadorned names of keymap files, which kbdcontrol finds on the host system instead of the source tree. This is a problem when trying to compile the 4.6 sysinstall on an older system that does not have all the keymaps. For instance, on FreeBSD 4.3 there is no ua.koi8-u.shift.alt keymap file. >How-To-Repeat: mv /usr/share/syscons/keymaps /usr/share/syscons/keymaps.save and try to build sysinstall. >Fix: The following patch to my copy of src/release/sysinstall/Makefile seems to do the trick: @@ -82,7 +82,7 @@ keymap.h: rm -f keymap.tmp for map in ${KEYMAPS} ; do \ - kbdcontrol -L $$map | \ + (cd ${.CURDIR}/../../share/syscons/keymaps; kbdcontrol -L $$map) | \ sed -e '/^static accentmap_t/,$$d' >> keymap.tmp ; \ done echo "static struct keymapInfo keymapInfos[] = {" >> keymap.tmp >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message