From owner-freebsd-bugs Fri Aug 2 7:10:12 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 DA27937B400 for ; Fri, 2 Aug 2002 07:10:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A34543E42 for ; Fri, 2 Aug 2002 07:10:05 -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 g72EA5JU040405 for ; Fri, 2 Aug 2002 07:10:05 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g72EA5L4040404; Fri, 2 Aug 2002 07:10:05 -0700 (PDT) Date: Fri, 2 Aug 2002 07:10:05 -0700 (PDT) Message-Id: <200208021410.g72EA5L4040404@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: conf/41241: sysinstall build uses kbdcontrol keymaps from the host instead of the source tree Reply-To: Peter Pentchev 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 The following reply was made to PR conf/41241; it has been noted by GNATS. From: Peter Pentchev To: David Sanderson Cc: bug-followup@FreeBSD.org Subject: Re: conf/41241: sysinstall build uses kbdcontrol keymaps from the host instead of the source tree Date: Fri, 2 Aug 2002 17:03:38 +0300 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 02, 2002 at 09:54:36AM -0400, David Sanderson wrote: > | > >Fix: > | > The following patch to my copy of src/release/sysinstall/Makefile see= ms > | > to do the trick: > | >=20 > | > @@ -82,7 +82,7 @@ > | > keymap.h: > | > rm -f keymap.tmp > | > for map in ${KEYMAPS} ; do \ > | > - kbdcontrol -L $$map | \ > | > + (cd ${.CURDIR}/../../share/syscons/keymaps; kbdcontro= l -L $$map) | \ > | > sed -e '/^static accentmap_t/,$$d' >> keymap.= tmp ; \ > | > done > | > echo "static struct keymapInfo keymapInfos[] =3D {" >> keymap= .tmp > |=20 > | Might it not be better to use 'kbdcontrol -L ${.CURDIR}/$$map' ? [snip]=20 > The problem with doing this is that kbdcontrol incorporates the path > given on the command line into the names of the variables it creates. > For instance (using installed keymaps): >=20 > $ kbdcontrol -L /usr/share/syscons/keymaps/ua.koi8-u.kbd | grep ua_koi8 > static keymap_t keymap__usr_share_syscons_keymaps_ua_koi8_u_kbd =3D { 0xe= c, { > static accentmap_t accentmap__usr_share_syscons_keymaps_ua_koi8_u_kbd =3D= { 0 }; > $ kbdcontrol -L ua.koi8-u.kbd | grep ua_koi8 > static keymap_t keymap_ua_koi8_u_kbd =3D { 0xec, { > static accentmap_t accentmap_ua_koi8_u_kbd =3D { 0 }; Ah.. I wasn't aware of that. Too lazy to check, basically :( OK then, I see your point. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence claims to be an Epimenides paradox, but it is lying. --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9SpE67Ri2jRYZRVMRAoG5AJ4nKJ4jYAUvQehx65seuJOsQk0g7ACePCiR qNAN5Q9LdRX3WXExIGM25EA= =yXJ5 -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message