NetBSD Problem Report #57375
From adrian@mx.aik.onl Sun Apr 23 17:20:25 2023
Return-Path: <adrian@mx.aik.onl>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 2097A1A9239
for <gnats-bugs@gnats.NetBSD.org>; Sun, 23 Apr 2023 17:20:25 +0000 (UTC)
Message-Id: <20230423172020.6809A2721D@www3.kiess.onl>
Date: Sun, 23 Apr 2023 19:20:20 +0200 (CEST)
From: adrian@mx.aik.onl
Reply-To: adrian@kiess.onl
To: gnats-bugs@NetBSD.org
Subject: Bugfix to enable Russian, French an German keyboard within the package kvkbd
X-Send-Pr-Version: 3.95
>Number: 57375
>Category: pkg
>Synopsis: Bugfix to enable Russian, French an German keyboard within the package kvkbd
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: ryoon
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Apr 23 17:25:00 +0000 2023
>Last-Modified: Thu May 04 04:35:01 +0000 2023
>Originator: Adrian Immanuel Kiess
>Release: NetBSD 9.3
>Organization:
KIESS.ONL
>Environment:
System: NetBSD www3.kiess.onl 9.3 NetBSD 9.3 (GENERIC) #0: Thu Aug 4 15:30:37 UTC 2022 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Dear maintainers of the pkg xvkbd,
using the default xvkbd installation from the pre-built binaries on NetBSD/amd64, it is not possible to enable the Russian keyboard.
To use the Russian, French and German keyboard within xvkbd, the following changes are necessary:
% cat /usr/pkg/lib/X11/app-defaults/XVkbd
#include "XVkbd-common"
#include "XVkbd-german"
#include "XVkbd-french"
#include "XVkbd-russian"
XVkbd searches for the keyboard definitions, in a other directory then where the installation of the pkg puts them:
% ln -s /usr/pkg/lib/X11/app-defaults/XVkbd-russian /usr/X11R7/lib/X11/app-defaults/XVkbd-russian
% ln -s /usr/pkg/lib/X11/app-defaults/XVkbd-french /usr/X11R7/lib/X11/app-defaults/XVkbd-russian
% ln -s /usr/pkg/lib/X11/app-defaults/XVkbd-german /usr/X11R7/lib/X11/app-defaults/XVkbd-russian
Now you can use Russian, French and German keyboard.
Sincerely,
Adrian Kiess
>How-To-Repeat:
# pkgin install xvkbd, launch xvkbd as user, -> xvkbd menu -> Change keyboard layout -> Russian
>Fix:
As described in main message.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Sun, 23 Apr 2023 18:15:09 +0000
Responsible-Changed-Why:
Over to maintainer
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/57375: Bugfix to enable Russian, French an German keyboard
within the package kvkbd
Date: Thu, 4 May 2023 04:33:30 +0000
On Sun, Apr 23, 2023 at 05:25:01PM +0000, adrian@mx.aik.onl wrote:
> Dear maintainers of the pkg xvkbd,
>
> using the default xvkbd installation from the pre-built binaries on NetBSD/amd64, it is not possible to enable the Russian keyboard.
>
> To use the Russian, French and German keyboard within xvkbd, the following changes are necessary:
>
> % cat /usr/pkg/lib/X11/app-defaults/XVkbd
> #include "XVkbd-common"
> #include "XVkbd-german"
> #include "XVkbd-french"
> #include "XVkbd-russian"
(Why is it using app-defaults anyway? Did we fall into a timewarp back
to 1992?)
> XVkbd searches for the keyboard definitions, in a other directory then where the installation of the pkg puts them:
>
> % ln -s /usr/pkg/lib/X11/app-defaults/XVkbd-russian /usr/X11R7/lib/X11/app-defaults/XVkbd-russian
This is problematic because packages shouldn't touch files outside the
package tree.
Better to fix the search path.
--
David A. Holland
dholland@netbsd.org
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.