Bug 22153 - grub2-kbdcomp requires the ckbcomp command which isn't available in Mageia
Summary: grub2-kbdcomp requires the ckbcomp command which isn't available in Mageia
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Barry Jackson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-09 00:45 CET by Martin Whitaker
Modified: 2017-12-11 01:25 CET (History)
3 users (show)

See Also:
Source RPM: grub2-2.02.0-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description Martin Whitaker 2017-12-09 00:45:53 CET
grub2-kbdcomp calls ckbcomp to convert Xkb keyboard descriptions into an intermediate format before converting the intermediate format into a keyboard layout mapping file that grub2 can use. However, ckbcomp is not available in any Mageia package. I found it in the Debian console-setup package:

  https://anonscm.debian.org/cgit/d-i/console-setup.git/

All that is needed for grub2-kbdcomp is the ckbcomp script by itself - it's a standalone Perl script.
Comment 1 Marja Van Waes 2017-12-10 09:54:07 CET
(In reply to Martin Whitaker from comment #0)
> grub2-kbdcomp calls ckbcomp to convert Xkb keyboard descriptions into an
> intermediate format before converting the intermediate format into a
> keyboard layout mapping file that grub2 can use. However, ckbcomp is not
> available in any Mageia package. I found it in the Debian console-setup
> package:
> 
>   https://anonscm.debian.org/cgit/d-i/console-setup.git/
> 
> All that is needed for grub2-kbdcomp is the ckbcomp script by itself - it's
> a standalone Perl script.

So this is all that's needed?
https://anonscm.debian.org/cgit/d-i/console-setup.git/tree/Keyboard/ckbcomp

I don't find it in CPAN, that doesn't mean it isn't there, though.

Assigning to the unregistered maintainer of grub2.

CC'ing the Perl maintainers

Assignee: bugsquad => zen25000
CC: (none) => marja11, perl

Comment 2 Martin Whitaker 2017-12-10 10:31:35 CET
(In reply to Marja van Waes from comment #1)
> So this is all that's needed?
> https://anonscm.debian.org/cgit/d-i/console-setup.git/tree/Keyboard/ckbcomp

That's right (sorry, I should have given the link myself!). I just copied that file into my local bin directory, and grub2-kbcomp then worked.

The reason I'm using grub2-kbdcomp is to build keyboard mapping files to go on the ISOs, to make it easier for users with non-US keyboards to edit the boot command line. So it would be good to get this fixed, so others can reproduce my work.
Comment 3 Shlomi Fish 2017-12-10 11:24:41 CET
(In reply to Marja van Waes from comment #1)
> (In reply to Martin Whitaker from comment #0)
> > grub2-kbdcomp calls ckbcomp to convert Xkb keyboard descriptions into an
> > intermediate format before converting the intermediate format into a
> > keyboard layout mapping file that grub2 can use. However, ckbcomp is not
> > available in any Mageia package. I found it in the Debian console-setup
> > package:
> > 
> >   https://anonscm.debian.org/cgit/d-i/console-setup.git/
> > 
> > All that is needed for grub2-kbdcomp is the ckbcomp script by itself - it's
> > a standalone Perl script.
> 
> So this is all that's needed?
> https://anonscm.debian.org/cgit/d-i/console-setup.git/tree/Keyboard/ckbcomp
> 
> I don't find it in CPAN, that doesn't mean it isn't there, though.
> 
> Assigning to the unregistered maintainer of grub2.
> 
> CC'ing the Perl maintainers

I've now packaged the console-setup package based on the Fedora RawHide package into Cauldron and it seems to include ckbcomp.

CC: (none) => shlomif

Comment 4 Martin Whitaker 2017-12-10 13:41:47 CET
Thanks Shlomi!
Comment 5 Barry Jackson 2017-12-11 01:03:44 CET
So I guess we need grub2-common to require console-setup?
Comment 6 Barry Jackson 2017-12-11 01:25:04 CET
Fixed in svn

r1182161 | barjac | 2017-12-11 00:22:15 +0000 (Mon, 11 Dec 2017) | 2 lines

- requires console-setup (Mga#22153
- (grub2-kbdcomp requires the ckbcomp command which isnt available in Mageia)

So closing as fixed

Thanks Shlomi & Martin.

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.