Bug 30797 - The command "setupcon" crashes because several newlines are escaped with slashes instead of backslashes.
Summary: The command "setupcon" crashes because several newlines are escaped with slas...
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: All Packagers
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-09-01 17:44 CEST by Ihar Areshchankau
Modified: 2022-09-04 10:39 CEST (History)
3 users (show)

See Also:
Source RPM: xkeyboard-config-2.36-1.mga9
CVE:
Status comment:


Attachments
Patch for the file: /usr/share/X11/xkb/rules/base (1.85 KB, patch)
2022-09-01 17:44 CEST, Ihar Areshchankau
Details | Diff

Description Ihar Areshchankau 2022-09-01 17:44:19 CEST
Created attachment 13367 [details]
Patch for the file: /usr/share/X11/xkb/rules/base

Description of problem:

  The command "setupcon" doesn't applies keyboard settings from the file "/etc/default/keyboard". It prints the messages:
  WARNING: Syntax error in the following line in "rules/base":
  WARNING: armada asus_laptop benqx btc5090 btc6301urf btc9019u /
  Died at /usr/bin/ckbcomp line 3228, <RULES> line 105.

Version-Release number of selected component (if applicable):

  Mageia Cauldron

How reproducible:

  Execute "setupcon" command in a virtual text console.

Steps to Reproduce:
1. Switch to the virtual text console (Ctrl+Alt+F1).
2. Login as root user.
3. Enter "setupcon".

Cause of problem:
  RPM "xkeyboard-config-2.36-1.mga9.src.rpm" contains the file "/usr/share/X11/xkb/rules/base" with syntax errors: "/" instead "\" as end-of-line escape characters.
Comment 1 Marja Van Waes 2022-09-02 00:07:49 CEST
Thanks Ihar :-)

Assigning to all packagers collectively, since there is no registered maintainer for this package.

CC'ing tv because he is the de facto maintainer.

Source RPM: (none) => xkeyboard-config-2.36-1.mga9
CC: (none) => marja11, thierry.vignaud
Keywords: (none) => PATCH
Summary: The command "setupcon" crashes => The command "setupcon" crashes because several newlines are escaped with slashes instead of backslashes.
Assignee: bugsquad => pkg-bugs

Comment 2 Jani Välimaa 2022-09-03 17:13:32 CEST
Upstream fix for this was already added to 2.36 [1][2], but it was not applied. I applied it and other patches from upstream in xkeyboard-config-2.36-2.mga9.

[1] https://svnweb.mageia.org/packages?view=revision&revision=1867767
[2] https://svnweb.mageia.org/packages/cauldron/xkeyboard-config/current/SOURCES/0001-rules-use-backslashes-instead-of-slashes-for-line-co.patch?view=markup&pathrev=1867767
Comment 3 Jani Välimaa 2022-09-04 10:39:28 CEST
Closing as FIXED. Feel free to re-open if needed.

Status: NEW => RESOLVED
Resolution: (none) => FIXED
CC: (none) => jani.valimaa


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