NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18k stars 14.01k forks source link

xfce4-xkb-plugin fails to find xkbcomp (via libxklavier) #3173

Closed geraldus closed 10 years ago

geraldus commented 10 years ago

I have XFCE installed and ru_RU.UTF-8 locale. Cyrillic characters are rendered well everywhere except of Terminal application. There is error from X log:

$ cat ~/.xsession-errors 
[1404419782,000,xklavier_config_xkb.c:xkl_config_get_keyboard/]     Could not exec /nix/store/bm3mmwagznnc7xhn622vw5ag4cbpfy1f-xkeyboard-config-2.11/etc/X11/xkb/xkbcomp: 2
*** Error in `/nix/store/rivsxqbh7346v8cjqm0ssm039rs41ap1-xfce4-xkb-plugin-0.5.4.3/libexec/xfce4/panel-plugins/xfce4-xkb-plugin': free(): invalid pointer: 0x0000000000e94e02 ***
[1404419782,000,xklavier_config_xkb.c:xkl_config_get_keyboard/]     Could not open the temporary xkm file /tmp/fileURt5es
xfce4-panel-Message: Plugin xkb-plugin-16 has been automatically restarted after crash.
[1404419785,000,xklavier_config_xkb.c:xkl_config_get_keyboard/]     Could not exec /nix/store/bm3mmwagznnc7xhn622vw5ag4cbpfy1f-xkeyboard-config-2.11/etc/X11/xkb/xkbcomp: 2

I tried to install xlibs.xkbcomp package, but this did not helped.

vcunat commented 10 years ago

I'm investigating it; looks like a problem in path settings of our libxklavier.

geraldus commented 10 years ago

How can I check it and maybe help to do something with this?

2014-07-06 19:50 GMT+06:00 Vladimír Čunát notifications@github.com:

I'm investigating it; looks like a problem in path settings of our libxklavier.

— Reply to this email directly or view it on GitHub https://github.com/NixOS/nixpkgs/issues/3173#issuecomment-48112300.

vcunat commented 10 years ago

I can think of no way where explaining the thing is significantly simpler than doing it ;-)

vcunat commented 10 years ago

I have a fix for that problem now. @geraldus: would you also test it, including the maintenance update of that panel plugin? https://github.com/vcunat/nixpkgs/compare/p/xfce-xkb

vcunat commented 10 years ago

I renamed the issue to better reflect the real problem.

aflatter commented 10 years ago

Works for me! Thanks!

geraldus commented 10 years ago

So, sorry for stupid question, I should update xkb-plugin, right?

vcunat commented 10 years ago

Yes, the plugin is what needs replacing (it will pickup the libxklavier change).

geraldus commented 10 years ago

Hmmm. I've done following (I have pkgs.xfce.xfce4_xkb_plugin listed as sys package in configuration.nix):

nix-chanell update
nixos-rebuild switch --upgrade

But still having ? instead of correct glyphs.

aflatter commented 10 years ago

I used something like:

git clone https://github.com/vcunat/nixpkgs /tmp/ cd /tmp/nixpkgs git checkout p/xfce-xkb nixos-rebuild switch -I nixpkgs=.

vcunat commented 10 years ago

@geraldus: I'm quite confident this solves the issue, so I'll push it without you needing to test it first.

vcunat commented 10 years ago

The channels might take even a few days to pick up the change.

geraldus commented 10 years ago

Sorry, friends, for delayed answer! I have NixOS installed on virtual machine and host OS is broken for now. I assume I will be able test new version this evening. Thanks anyway!

vcunat commented 10 years ago

@geraldus: probably avoid 3.14 kernel, as it seems to cause X problems in VM. We unfortunately have it as the default since recently.