Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 328455 - x11-misc/xkeyboard-config: broken layouts
Summary: x11-misc/xkeyboard-config: broken layouts
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 331241 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-15 18:16 UTC by Foad Nosrati Habibi
Modified: 2011-03-08 11:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
.xsession-errors (.xsession-errors,28.73 KB, text/plain)
2010-07-19 21:01 UTC, Foad Nosrati Habibi
Details
The original xkb directory just before running etc-update (xkb.tar.lzma,261.55 KB, text/plain)
2010-08-05 08:40 UTC, Kete Tefid
Details
Original file in xkeyboard-config-1.9 (ir,9.36 KB, text/plain)
2010-08-07 04:25 UTC, Foad Nosrati Habibi
Details
Patch (ir-patch,848 bytes, patch)
2010-08-07 04:27 UTC, Foad Nosrati Habibi
Details | Diff
new ebuild which applies two patches to fix the include statements for ir,in,lk and sy. (xkeyboard-config-1.9-r1.ebuild,1.21 KB, patch)
2010-08-23 02:51 UTC, momesana
Details | Diff
This patch fixes include statements for in,lk and sy keyboard layouts (in_lk_sy-include.patch,1.23 KB, patch)
2010-08-23 02:56 UTC, momesana
Details | Diff
This patch fixes include statements for ir keyboard layouts. (ir-include.patch,945 bytes, patch)
2010-08-23 02:58 UTC, momesana
Details | Diff
Fixed xkeyboard-config-2.0 to generate the *.dir files (xkeyboard-config-2.0-r1.ebuild,997 bytes, text/plain)
2010-11-01 11:02 UTC, Oldrich Jedlicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Foad Nosrati Habibi 2010-07-15 18:16:27 UTC
I update my computer with # emerge -uD world.
Then every time I login to gnome, an error appears:
"Error activating XKB configuration.
It can happen under various circumstances:
- a bug in libxklavier library
- a bug in X server (xkbcomp, xmodmap utilities)
- X server with incompatible libxkbfile implementation

X server version data:
The X.Org Foundation
10706000

If you report this situation as a bug, please include:
- The result of xprop -root | grep XKB
- The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd"

And then I can't switch keyboard layouts however There are 2 layouts in keyboard preferences.

Here is what you may need:

$ xprop -root | grep XKB
_XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "evdev", "us", "", ""
_XKB_RULES_NAMES(STRING) = "evdev", "evdev", "us", "", ""

$ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
 layouts = [us,ir]
 options = [grp	grp:alts_toggle,terminate	terminate:ctrl_alt_bksp,grp	grp:alt_shift_toggle]
 model = acer_laptop

x11-base/xorg-x11-1.7.6
x11-base/xorg-server-1.7.6
x11-apps/setxkbmap-1.1.0
x11-apps/xkbcomp-1.1.1
x11-apps/xkbevd-1.1.0
x11-apps/xkbutils-1.0.2
x11-libs/libxkbfile-1.0.6
x11-libs/libxkbui-1.0.2

Reproducible: Always

Steps to Reproduce:
1. Login to gnome.




# emerge --info
Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0, 2.6.32-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.32-gentoo-r7-i686-Intel-R-_Core-TM-2_Solo_CPU_U3500_@_1.40GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 14 Jul 2010 01:45:01 +0000
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/foad/Projects/ebuilds"
SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
USE="X acl avahi berkdb bzip2 cli cracklib crypt cups cxx dbus dri fortran gdbm gnome gpm gtk hal iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon ati radeonhd intel fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 W.J.M. van der Hamsvoord 2010-07-17 22:00:56 UTC
(In reply to comment #0)
> I update my computer with # emerge -uD world.
> Then every time I login to gnome, an error appears:
> "Error activating XKB configuration.
> It can happen under various circumstances:
> - a bug in libxklavier library
> - a bug in X server (xkbcomp, xmodmap utilities)
> - X server with incompatible libxkbfile implementation
> 
> X server version data:
> The X.Org Foundation
> 10706000
> 
> If you report this situation as a bug, please include:
> - The result of xprop -root | grep XKB
> - The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd"
> 
> And then I can't switch keyboard layouts however There are 2 layouts in
> keyboard preferences.
> 
> Here is what you may need:
> 
> $ xprop -root | grep XKB
> _XKB_RULES_NAMES_BACKUP(STRING) = "evdev", "evdev", "us", "", ""
> _XKB_RULES_NAMES(STRING) = "evdev", "evdev", "us", "", ""
> 
> $ gconftool-2 -R /desktop/gnome/peripherals/keyboard/kbd
>  layouts = [us,ir]
>  options = [grp grp:alts_toggle,terminate       terminate:ctrl_alt_bksp,grp    
> grp:alt_shift_toggle]
>  model = acer_laptop
> 
> x11-base/xorg-x11-1.7.6
> x11-base/xorg-server-1.7.6
> x11-apps/setxkbmap-1.1.0
> x11-apps/xkbcomp-1.1.1
> x11-apps/xkbevd-1.1.0
> x11-apps/xkbutils-1.0.2
> x11-libs/libxkbfile-1.0.6
> x11-libs/libxkbui-1.0.2
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. Login to gnome.
> 
> 
> 
> 
> # emerge --info
> Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.11.2-r0,
> 2.6.32-gentoo-r7 i686)
> =================================================================
> System uname:
> Linux-2.6.32-gentoo-r7-i686-Intel-R-_Core-TM-2_Solo_CPU_U3500_@_1.40GHz-with-gentoo-1.12.13
> Timestamp of tree: Wed, 14 Jul 2010 01:45:01 +0000
> app-shells/bash:     4.0_p37
> dev-java/java-config: 2.1.11
> dev-lang/python:     2.6.5-r2, 3.1.2-r3
> dev-util/cmake:      2.6.4-r3
> sys-apps/baselayout: 1.12.13
> sys-apps/sandbox:    1.6-r2
> sys-devel/autoconf:  2.13, 2.65
> sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
> sys-devel/binutils:  2.20.1-r1
> sys-devel/gcc:       4.3.4, 4.4.3-r2
> sys-devel/gcc-config: 1.4.1
> sys-devel/libtool:   2.2.6b
> virtual/os-headers:  2.6.30-r1
> ACCEPT_KEYWORDS="x86"
> ACCEPT_LICENSE="* -@EULA"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-O2 -march=i686 -pipe"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/share/X11/xkb"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
> /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d
> /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d
> /etc/texmf/updmap.d /etc/texmf/web2c"
> CXXFLAGS="-O2 -march=i686 -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="assume-digests distlocks fixpackages news parallel-fetch
> protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
> GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/
> http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
> LANG="C"
> LDFLAGS="-Wl,-O1"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
> --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
> --exclude=/local --exclude=/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> PORTDIR_OVERLAY="/home/foad/Projects/ebuilds"
> SYNC="rsync://rsync.asia.gentoo.org/gentoo-portage"
> USE="X acl avahi berkdb bzip2 cli cracklib crypt cups cxx dbus dri fortran gdbm
> gnome gpm gtk hal iconv ipv6 modules mudflap ncurses nls nptl nptlonly openmp
> pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd
> unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x
> ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel
> intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci"
> ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file
> hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug
> rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic
> authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm
> authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache
> dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
> filter headers include info log_config logio mem_cache mime mime_magic
> negotiation rewrite setenvif speling status unique_id userdir usertrack
> vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux"
> LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
> text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon ati radeonhd
> intel fglrx" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset
> ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark
> dhcpmac delude chaos account" 
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL,
> LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> 

On AMD64 I have basically the same problem, or so it seems. However, I noticed that, before updating the fonts, in the gnome-keyboard-preferences applet under Layouts > Keyboardmodel there was an option "Evdev" which has mysteriously disappeared. Could it be that xf86-input-evdev-2.4.0, which was also recently updated has, something to do with this XKB mishap ?
Comment 2 Foad Nosrati Habibi 2010-07-18 15:38:53 UTC
I make a downgrade from xf86-input-evdev-2.4.0 to 2.3.2, but it don't fix problem!
Comment 3 Pacho Ramos gentoo-dev 2010-07-19 18:37:22 UTC
Do you have the same problem on a new created user account? Can you please attach ~/.xsession-errors file just after reproducing the problem? What x11-libs/libxklavier version do you have installed?

Remember that you can look for updated packages reviewing /var/log/emerge.log file
Comment 4 Foad Nosrati Habibi 2010-07-19 21:01:04 UTC
Created attachment 239453 [details]
.xsession-errors
Comment 5 Foad Nosrati Habibi 2010-07-19 21:22:45 UTC
(In reply to comment #3)
> Do you have the same problem on a new created user account? Can you please
> attach ~/.xsession-errors file just after reproducing the problem? What
> x11-libs/libxklavier version do you have installed?
> 
> Remember that you can look for updated packages reviewing /var/log/emerge.log
> file
> 

Yes I have the same problem on a new user.
In .xsession-errors it looks like some problem with screenlets! But I unmerge screenlets long time ago! no longer exist!
x11-libs/libxklavier-4.0

These are those packages emerged in that update:

app-arch/cpio-2.11
media-libs/jpeg-8b
app-arch/tar-1.23-r2
sys-apps/shadow-4.1.4.2-r4
sys-apps/util-linux-2.17.2
sys-apps/coreutils-8.5
x11-proto/xproto-7.0.17
x11-libs/libdrm-2.4.20
x11-libs/libxcb-1.6
sys-kernel/gentoo-sources-2.6.34-r1
dev-dotnet/mono-addins-0.5
dev-libs/libtasn1-2.7
media-fonts/font-bh-ttf-1.0.1
media-plugins/gst-plugins-gconf-0.10.21
dev-java/java-config-2.1.11
media-fonts/font-bh-type1-1.0.1
dev-dotnet/gnome-keyring-sharp-1.0.0-r2
net-print/cups-1.3.11-r2
media-libs/gst-plugins-bad-0.10.18
x11-libs/libX11-1.3.4
x11-drivers/ati-drivers-10.6
x11-drivers/xf86-input-evdev-2.4.0
x11-drivers/xf86-video-ati-6.13.0
media-libs/libpng-1.4.3
media-libs/libao-1.0.0
media-fonts/font-util-1.1.1-r1
x11-libs/pixman-0.18.2
x11-apps/sessreg-1.0.6
media-libs/audiofile-0.2.7
x11-libs/libXext-1.1.2
x11-libs/libXrender-0.9.6
x11-libs/libXfixes-4.0.5
net-dns/libidn-1.19
x11-apps/xlsatoms-1.1.0
media-sound/vorbis-tools-1.4.0
x11-libs/libXfont-1.4.2
x11-libs/libXdamage-1.1.3
dev-python/numpy-1.4.1
x11-libs/libXcomposite-0.4.2
www-client/elinks-0.11.7
x11-apps/xlsclients-1.1.0
media-fonts/encodings-1.0.3-r1
media-fonts/font-alias-1.0.2
media-libs/mesa-7.8.2
media-libs/gst-plugins-good-0.10.21
x11-misc/xkeyboard-config-1.9
media-plugins/gst-plugins-x-0.10.28
x11-apps/xinput-1.5.2
sys-apps/parted-2.3
net-libs/farsight2-0.0.17
media-fonts/font-misc-misc-1.1.0
media-fonts/font-xfree86-type1-1.0.2
media-fonts/font-adobe-utopia-100dpi-1.0.2
media-fonts/font-ibm-type1-1.0.1
media-fonts/font-adobe-75dpi-1.0.1
media-fonts/font-micro-misc-1.0.1
media-fonts/font-adobe-utopia-75dpi-1.0.2
media-fonts/font-misc-ethiopic-1.0.1-r1
media-fonts/font-sony-misc-1.0.1
media-fonts/font-screen-cyrillic-1.0.2
media-fonts/font-jis-misc-1.0.1
media-fonts/font-bh-100dpi-1.0.1
media-fonts/font-cursor-misc-1.0.1
media-fonts/font-misc-cyrillic-1.0.1
media-fonts/font-arabic-misc-1.0.1
media-fonts/font-bitstream-100dpi-1.0.1
media-fonts/font-misc-meltho-1.0.1
media-fonts/font-adobe-100dpi-1.0.1
media-fonts/font-bh-75dpi-1.0.1
media-fonts/font-cronyx-cyrillic-1.0.1
media-fonts/font-daewoo-misc-1.0.1
media-fonts/font-mutt-misc-1.0.1
media-fonts/font-bitstream-speedo-1.0.1
media-fonts/font-sun-misc-1.0.1
media-fonts/font-bitstream-75dpi-1.0.1
media-fonts/font-adobe-utopia-type1-1.0.2
media-fonts/font-bh-lucidatypewriter-100dpi-1.0.1
media-fonts/font-winitzki-cyrillic-1.0.1
media-fonts/font-dec-misc-1.0.1
media-fonts/font-schumacher-misc-1.1.0
media-fonts/font-isas-misc-1.0.1
media-fonts/font-bitstream-type1-1.0.1
media-fonts/font-bh-lucidatypewriter-75dpi-1.0.1
x11-libs/cairo-1.8.8-r1
dev-dotnet/libgdiplus-2.6.4
x11-misc/imake-1.0.3
dev-lang/yasm-1.0.1
app-text/libspectre-0.2.5
dev-dotnet/pe-format-1
www-plugins/adobe-flash-10.1.53.64
dev-lang/mono-2.6.4-r1
dev-dotnet/gtk-sharp-gapi-2.12.10
dev-dotnet/glib-sharp-2.12.10
dev-dotnet/pango-sharp-2.12.10
dev-dotnet/atk-sharp-2.12.10
dev-dotnet/gdk-sharp-2.12.10
dev-dotnet/gtk-sharp-2.12.10
dev-dotnet/glade-sharp-2.12.10
Comment 6 Pacho Ramos gentoo-dev 2010-07-20 16:26:53 UTC
Maybe it's due recent Xorg update... but I don't know how could I confirm that or what should I check :-/ X11 team, do you have any idea about how to deal with this problem? Thanks
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-07-28 20:43:29 UTC
Could be fallout from xkeyboard-config-1.9 update, which dropped support for some xkbmodels (most notably, evdev).

Repoter: Check if that problems occurs for a newly created user, too.
Comment 8 Foad Nosrati Habibi 2010-07-28 21:37:29 UTC
(In reply to comment #7)
> Could be fallout from xkeyboard-config-1.9 update, which dropped support for
> some xkbmodels (most notably, evdev).
> 
> Repoter: Check if that problems occurs for a newly created user, too.
> 

Yes you are right. When I downgrade to xkeyboard-config-1.7 everything works fine!
I checked it before, new users have the same problem.

thank you a lot.
Comment 9 Kete Tefid 2010-08-05 08:40:05 UTC
Created attachment 241471 [details]
The original xkb directory just before running etc-update
Comment 10 Kete Tefid 2010-08-05 08:41:35 UTC
I have had this problem for a fairly long time. Everything I did in vain. The problem rises when you etc-update and it overwrites all the configuration files in /usr/share/X11/xkb/. The only solution I found was to get an untouched version of that directory and restore it. That solved it. Unpack the attached as the original xkb directory. Of course this is only a workaround.
cheers,


(In reply to comment #8)
> (In reply to comment #7)
> > Could be fallout from xkeyboard-config-1.9 update, which dropped support for
> > some xkbmodels (most notably, evdev).
> > 
> > Repoter: Check if that problems occurs for a newly created user, too.
> > 
> 
> Yes you are right. When I downgrade to xkeyboard-config-1.7 everything works
> fine!
> I checked it before, new users have the same problem.
> 
> thank you a lot.
> 

Comment 11 Foad Nosrati Habibi 2010-08-05 09:30:53 UTC
Thank you Kete Tefid.

At last I find out problem:

In file /usr/share/X11/xkb/symbols/ir
at "include" lines    21, 22, 24, 25, 33, 34, 36, 37
at the end of lines they shouldn't be ';'.
When I removed these 8 ';', problem fixed.

Maybe this problem appeared in other /usr/share/X11/xkb/symbols/?? files.
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2010-08-06 07:28:06 UTC
(In reply to comment #11)
> Thank you Kete Tefid.
> 
> At last I find out problem:
> 
> In file /usr/share/X11/xkb/symbols/ir
> at "include" lines    21, 22, 24, 25, 33, 34, 36, 37
> at the end of lines they shouldn't be ';'.
> When I removed these 8 ';', problem fixed.
> 
> Maybe this problem appeared in other /usr/share/X11/xkb/symbols/?? files.
> 

So you had to modify *system* files to get this to work? Did it ever work without the tweaking?

In theory, you should *never* have to modify those files manually as they are "owned" by portage.

Thanks
Comment 13 Foad Nosrati Habibi 2010-08-06 20:34:15 UTC
(In reply to comment #12)
> (In reply to comment #11)
> > Thank you Kete Tefid.
> > 
> > At last I find out problem:
> > 
> > In file /usr/share/X11/xkb/symbols/ir
> > at "include" lines    21, 22, 24, 25, 33, 34, 36, 37
> > at the end of lines they shouldn't be ';'.
> > When I removed these 8 ';', problem fixed.
> > 
> > Maybe this problem appeared in other /usr/share/X11/xkb/symbols/?? files.
> > 
> 
> So you had to modify *system* files to get this to work? Did it ever work
> without the tweaking?
> 
> In theory, you should *never* have to modify those files manually as they are
> "owned" by portage.
> 
> Thanks
> 

I should modify these files to make them work. without changing them, it never works.
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2010-08-06 22:01:51 UTC
(In reply to comment #13)
> I should modify these files to make them work. without changing them, it never
> works.

Could you attach the file(s) that you've modified? Or better yet, a patch/diff?

Thanks
Comment 15 Foad Nosrati Habibi 2010-08-07 04:25:24 UTC
Created attachment 241711 [details]
Original file in xkeyboard-config-1.9
Comment 16 Foad Nosrati Habibi 2010-08-07 04:27:21 UTC
Created attachment 241713 [details, diff]
Patch

Here is original xkeyboard-config-1.9 file and patch for it.
This is only ir patch, maybe other languages have the same problem.
Comment 17 momesana 2010-08-23 02:51:51 UTC
Created attachment 244139 [details, diff]
new ebuild which applies two patches to fix the include statements for ir,in,lk and sy.

This ebuild applies two patches that fix the include statement bugs in:
symbol/ir
symbol/in
symbol/lk
symbol/sy
The patches were taken from the upstream project and need to be placed into:
/usr/portage/x11-misc/xkeyboard-config/files
You need to create the files directory first. After placing ir-include.patch and in_lk_sy-include.path into /usr/portage/x11-misc/xkeyboard-config/files you need to run the following command as root:
ebuild /usr/portage/x11-misc/xkeyboard-config/xkeyboard-config-1.9-r1.ebuild manifest
Afterwards you can update xkeyboard-config and expect things to work again:
emerge --oneshot xkeyboard-config

Those two patches I mentioned above are also attached to this Bug report. Get them there.
Comment 18 momesana 2010-08-23 02:56:25 UTC
Created attachment 244141 [details, diff]
This patch fixes include statements for in,lk and sy keyboard layouts

To be used with my proposed ebuild "x11-misc/xkeyboard-config-1.9-r1" which is also attached to this bugreport. Put this file and the other patch "ir-include.patch" into the files directory and follow the instructions given for the above mentioned ebuild.
Comment 19 momesana 2010-08-23 02:58:01 UTC
Created attachment 244143 [details, diff]
This patch fixes include statements for ir keyboard layouts.

To be used with my proposed ebuild "x11-misc/xkeyboard-config-1.9-r1" which is also attached to this bugreport. Put this file and the other patch "in_lk_sy-include.patch" into the files directory and follow the instructions given for the above mentioned ebuild.
Comment 20 momesana 2010-08-23 03:10:26 UTC
I checked out the xkeyboard-config sources from the respective git repository and found out that the bug has been fixed since the fourth of june:

commit ddaa1ddb70edee56e5e204f98cf8276705c1afdc
Author: Sergey V. Udaltsov <svu@gnome.org>
Date:   Fri Jun 4 22:15:29 2010 +0100

    fixed syntax of include lines
    
    https://bugs.freedesktop.org/show_bug.cgi?id=28387

About a month later a few more files were fixed:

commit 393204e792de332457b1175b3831170d6970a98f
Author: Sergey V. Udaltsov <svu@gnome.org>
Date:   Thu Jul 1 22:22:13 2010 +0100

    Fixed syntax errors in include statements
    ...

Since it is a more or less grave bug (at least for us iranians and anybody else who is affected by this bug) I would suggest to the xkeyboard-config ebuild maintainers to include a patch that fixes the problem. In the meantime you can use the modified xkeyboard-config ebuild in addition to the patches (ir-include.patch and in_lk_sy-include.patch) that I have attached to this bugreport. Those patches were created using diffs taken from the upstream project. Maybe it proves to be useful to some of you guys.
Comment 21 Mamadou Babaei 2010-09-05 11:45:44 UTC
Thank you guys!!

I had the exact same problem
http://bugs.gentoo.org/show_bug.cgi?id=329527

And after a long long time your solution fixed it.
Comment 22 Rémi Cardona (RETIRED) gentoo-dev 2010-09-21 22:43:53 UTC
*** Bug 331241 has been marked as a duplicate of this bug. ***
Comment 23 Rémi Cardona (RETIRED) gentoo-dev 2010-09-21 22:45:39 UTC
The easy workaround is to use the -9999 ebuild from the x11 overlay.

Otherwise, I'll get to patching xkeyboard-config Real Soon (tm).

Thanks
Comment 24 Tomáš Chvátal (RETIRED) gentoo-dev 2010-10-31 11:36:46 UTC
Is the 2.0 version of xkeyboard-config working as expected? Please test and report us success/failiture thanks :)
Comment 25 Oldrich Jedlicka 2010-11-01 11:02:21 UTC
Created attachment 252787 [details]
Fixed xkeyboard-config-2.0 to generate the *.dir files
Comment 26 Oldrich Jedlicka 2010-11-01 11:04:53 UTC
(In reply to comment #24)
> Is the 2.0 version of xkeyboard-config working as expected? Please test and
> report us success/failiture thanks :)

Before you try 2.0 version, use the attached xkeyboard-config-2.0-r1.ebuild, otherwise you will end up with broken layouts again (but for a different reason). The upstream package contains incomplete *.dir files, so they need to be regenerated.

This might be unrelated to the bug originally reported, but this is what I've faced and I think others in this bug report will have too.
Comment 27 Tomáš Chvátal (RETIRED) gentoo-dev 2010-11-01 12:16:27 UTC
(In reply to comment #26)
> (In reply to comment #24)
> > Is the 2.0 version of xkeyboard-config working as expected? Please test and
> > report us success/failiture thanks :)
> 
> Before you try 2.0 version, use the attached xkeyboard-config-2.0-r1.ebuild,
> otherwise you will end up with broken layouts again (but for a different
> reason). The upstream package contains incomplete *.dir files, so they need to
> be regenerated.
> 
> This might be unrelated to the bug originally reported, but this is what I've
> faced and I think others in this bug report will have too.
> 

Thanks for the report, I added -r1 to main tree.
Comment 28 Tomáš Chvátal (RETIRED) gentoo-dev 2011-03-08 11:47:27 UTC
Ok given the fact nobody complain about current 2.1 or 2.0-r1 i am closing this :)