You are not logged in.

#1 2007-11-24 19:05:32

IamfromIvashkovo
Member
Registered: 2006-08-16
Posts: 33

How to patch xorg? (xmodmap trouble)

Hi,
After upgrading the system I got the bad issue with xmodmap utility. So my CTRL and Caps exchange does not work any more. I found the solution here
http://bugs.archlinux.org/task/8539
But I do not understand what to do  next. What am I suppose to do with that diff(patch) file ? How to patch and what to patch (what file)?
I was tring  patch -p1 < *.diff but that does not work.
Thanks.

Last edited by IamfromIvashkovo (2007-11-24 21:08:53)

Offline

#2 2007-11-24 21:59:18

Jack B
Member
Registered: 2006-06-27
Posts: 107
Website

Re: How to patch xorg? (xmodmap trouble)

The patch in that bug report is designed to be applied to the source before it is compiled, specifically the PKGBUILD which tells makepkg how to build the package for Arch.
To apply the patch you'd have to patch the PKGBUILD in /var/abs/extra/X11/xorg-server/,  then make the package and install it.
You probably do not want to do that however, as (according to that bug report) that patch has been applied to the xorg-server package, and will soon be in the repositories, which can be installed with pacman.
HTH
Jack

-- edited: xorg 1.4-6 is not actually in the repos just yet

Last edited by Jack B (2007-11-24 22:03:34)

Offline

#3 2007-11-24 21:59:53

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: How to patch xorg? (xmodmap trouble)

As the bug report says, this patch will be applied in the next xorg-server package, 1.4-6. If you can't wait for it, add the patch to the sources array in the xorg-server PKGBUILD, optionally add a md5sum for it, and add a patch command for it after the kdb-leds-fix patch, using the same syntax as the existing patch commands.

Offline

#4 2007-11-24 22:21:25

IamfromIvashkovo
Member
Registered: 2006-08-16
Posts: 33

Re: How to patch xorg? (xmodmap trouble)

O,ok. I got the point.
Thanks a lot.

Offline

#5 2007-11-25 16:00:29

IamfromIvashkovo
Member
Registered: 2006-08-16
Posts: 33

Re: How to patch xorg? (xmodmap trouble)

Solved the problem by adding

Option "XkbOptions" "ctrl:swapcaps"

at the xorg.conf file. For my purposes that is more than enough.

Offline

Board footer

Powered by FluxBB