On Sat, Jun 22, 2013 at 4:22 PM, Jérémie Courrèges-Anglas
<[email protected]> wrote:
> Tristan Le Guern <[email protected]> writes:
>
>> Hi,
>
> Hi Tristan,
>
>> Attached is an unfinished port of xkb-qwerty-fr, a qwerty layout with
>> French extensions but no dead-keys. It's on openbsd-wip for those who
>> cares.
>>
>> The port install a file under "/usr/X11R6/share/X11/xkb/symbols/", but
>> systrace complains and forbids it. How can I do that? Is there a
>> standard place under "/usr/local" for additional keymap files?
>
> I think the cleanest way would be to just install the file in
> ${PREFIX}/share/X11/xkb/, and then tell users to use setxkbmap -I ...
> Just tried this but it seems I can't make it work. :)
I tried it too and the result is weird.
With us_fr installed under "/usr/X11R6/share/X11/xkb/symbols/" everything is ok:
[leguern@le5410]setxkbmap -v 6 us_fr
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwerty)
types: complete
compat: complete
symbols: pc+us_fr+inet(pc105)+terminate(ctrl_alt_bksp)
geometry: pc(pc105)
[leguern@le5410:xkb][14:31]echo $?
0
If it is under "/usr/local/X11R6/share/X11/xkb/symbols/" or
"/usr/local/share/X11/xkb/symbols/" the output is the same but there
is an error:
[leguern@le5410]setxkbmap -v 6 -I /usr/local/share/X11/xkb/symbols
us_fr
Warning! Multiple definitions of keyboard layout
Using command line, ignoring X server
Trying to build keymap using the following components:
keycodes: xfree86+aliases(qwerty)
types: complete
compat: complete
symbols: pc+us_fr+inet(pc105)+terminate(ctrl_alt_bksp)
geometry: pc(pc105)
Error loading new keyboard description
[leguern@le5410]echo $?
251
> Possible other ways to do it:
> 2. include the mapping into xenocara. Perhaps you could ask the author
> to change the licence?
> 3. install in ${PREFIX}/share/examples/xkb-qwerty-fr and then @sample it
> in /usr/X11R6. Dunno if that's ok for other porters and X11 people.
> 4. patch setxkbmap so that it also looks at /usr/local/share/X11/xkb/.
> But a custom PREFIX at port build time to would break this, and
> that'd be one more patch Matthieu has to deal with.
I haven't tried these yet, but I will.
>> Also I put it in the "misc" section, but it should probably use "x11",
>> what do you think?
>
> I think x11 would be nicer too.
Done.
> Some hints for your port:
> - I'd tweak COMMENT, something like "qwerty keyboard layout for french
> users"
Done.
> - your PKGNAME doesn't include a version number, it should. You could
> set V = 0.5 and then use it in PKGNAME and INTERNAL
Done. It fixes one of my problem!
> - PERMIT_PACKAGE_FTP and PERMIT_DISTFILES_FTP are not needed anymore.
Done.
> Also I think it would be better to install the copyright notice.
> (I've seen some ports removing them in the past and felt a bit
> puzzled...)
Done, I now also install the keymap.txt file.
> - it's better not to try to be smart about MASTER_SITES
What do you mean?
> - most if not all porters prefer variable assignements to be properly
> aligned with tabs
Done.
Thanks for your reply :)
--
Tristan Le Guern
Epitech 2013