Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] An alternative keyboard layout is lost
Date: Sat, 18 Oct 2014 09:13:12
Message-Id: 201410181012.40561.michaelkintzios@gmail.com
In Reply to: [gentoo-user] An alternative keyboard layout is lost by gevisz
1 On Saturday 18 Oct 2014 09:34:53 gevisz wrote:
2 > This is the continuation from the thread
3 > "XFCE weather plugin does not work"
4 >
5 > 2014-10-18 10:03 GMT+03:00 Gevisz <gevisz@×××××.com>:
6 > > On Fri, 17 Oct 2014 23:37:16 +0100
7 > >
8 > > David W Noon <dwnoon@××××××××.com> wrote:
9 > >> -----BEGIN PGP SIGNED MESSAGE-----
10 > >> Hash: SHA1
11 > >>
12 > >> On Fri, 17 Oct 2014 22:33:45 +0100, Neil Bothwick (neil@××××××××××.uk)
13 > >> wrote about "Re: [gentoo-user] Re: XFCE weather plugin does not work"
14 > >>
15 > >> (in <20141017223345.16c96ec8@××××××××××.uk>):
16 > >> > On Fri, 17 Oct 2014 21:13:52 +0000 (UTC), James wrote:
17 > >> >> And last, can any patch that ends in .patch be applied to the
18 > >> >> intended ebuild or does the gentoo ebuild auther have to put some
19 > >> >> special code into an (EAPI-5) ebuild to facilitate user patches?
20 > >> >
21 > >> > AFAIR the ebuild simply has to call epatch_user() in src_unpack()
22 > >> > and any matching patches in /etc/portage/patches are applied.
23 > >>
24 > >> The usual place is src_prepare().
25 > >>
26 > >> I have prepared some patches from the Xfce repository with line
27 > >> addressing to match the Gentoo sources tarball. I attach a tarball of
28 > >> theses patches that can be untarred in /etc/portage/patches/.
29 > >
30 > > I have unpacked your patches to /etc/portage/patches as described here:
31 > > http://wiki.gentoo.org/wiki//etc/portage/patches
32 > > and then run # emerge xfce4-weather-plugin
33 > >
34 > > After restarting xfce4, the weather-plugin started to work. Thank you.
35 > >
36 > > Nevertheless, just
37 > > # emerge --update --deep --with-bdeps=y --newuse --backtrack=90 --ask
38 > > world instead of # emerge xfce4-weather-plugin
39 > > did not worked.
40 > >
41 > >> The ebuild should have the following lines added:
42 > >>
43 > >> src_prepare() {
44 > >>
45 > >> epatch_user
46 > >>
47 > >> }
48 > >
49 > > I have not done this relying on the promise by Greg Kubaryk
50 > > that the ebuild is epatch_user enabled.
51 > >
52 > >> Don't forget to redo the manifest for the ebuild.
53 > >
54 > > I never dealt with ebuilds on a maintaner level.
55 > > So, may I ask if it is really necessary and for which purpose.
56 >
57 > Just after emerging xfce4-weather-plugin with the patches
58 > provided by David W Noon, I have noticed that I lost all my
59 > alternative keyboard layouts.
60 >
61 > I tried to set them anew via xfce4 Keyboard Layouts Plugin
62 > version 0.5.6 but there is no keyboard layout that suits my
63 > keyboard.
64 >
65 > Unfortunately, unmerging xfce4-weather-plugin did not help.
66 >
67 > Another thing I did just before re-emerging xfce4-weather-plugin
68 > was a routine system update. This time only net-dns/libidn package
69 > was updated from version 1.28 to version 1.29, and before that
70 > update my alternative keyboard layouts were still present, as
71 > I remember using them just after the update but before rebooting
72 > the system.
73 >
74 > So, it also may be that updating libidn package caused the damage.
75 >
76 > I remember that, while installing Gentoo about 15 months ago,
77 > I set my keyboard layout not via an xfce4 plugin but somewhere
78 > in the X11 settings. (At that time I had gnome2 instead of xfce4 anyway).
79 >
80 > So, may be now, re-emerging xfce4-weather-plugin, or trying
81 > to set the alternative keyboard layout anew, I have created some
82 > xfce4 configuration file that shadows X11 (or old gnome2) settings
83 > that xfce4 used for keyboard layout previously.
84 >
85 >
86 > Any thoughts?
87
88 I think you are referring to the XkbLayout. In /etc/X11/xorg.conf.d/10-
89 evdev.conf you can add a section like so with the keyboard languages of your
90 choice:
91
92
93 Section "InputClass"
94 Identifier "evdev keyboard catchall"
95 MatchIsKeyboard "on"
96 MatchDevicePath "/dev/input/event*"
97 Driver "evdev"
98 Option "XkbLayout" "gb,el"
99 Option "XkbOptions"
100 "grp:alt_shift_toggle,grp_led:scroll,compose:menu,terminate:ctrl_alt_bksp"
101 EndSection
102
103
104 --
105 Regards,
106 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] An alternative keyboard layout is lost Gevisz <gevisz@×××××.com>