See https://serverfault.com/questions/71299/installing-fedora-rpms-in-centos. Generally, your best bet will be to install from the source package.
Some information on building source RPMs: http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch11s03.html
To apply the suggested fix to CentOS 6.5, you can follow these steps:
- Prep for rpmbuild
- Download source RPMs
Unpack the SRPM
rpm -U xorg-x11-server-1.13.0-23.1.el6_5.src.rpm
Create a working dir within rpmbuild. This can really be anywhere.
cd rpmbuild mkdir dmxfix cd dmxfix
Grab the spec file and the original source tarball.
cp ../SPECS/xorg-x11-server-1.13.0.spec . cp ../SOURCES/xorg-x11-server-1.13.0.tar.bz2 .
Untar the source; we need two copies. One is the original, the other is our working path. We'll use these for diffs later.
tar -xzvf xorg-x11-server-1.13.0.tar.bz2 mv xorg-x11-server-1.13.0 xorg-x11-server-1.13.0-pristine tar -xzvf xorg-x11-server-1.13.0.tar.bz2
Apply changes. You can apply patches you found somewhere else, or make your own changes directly to the code.
Create the patch file.
diff -ur xorg-x11-server-1.13.0-pristine xorg-x11-server-1.13.0 > dmx-pointer.patch # Insert "From:" line. rpmbuild uses git, and the patches require an email # address to track the committer. Put your name/email here. sed -i '1i From: Your Name <spam@email.com>' dmx-pointer.patch cp dmx-pointer.patch ../SOURCES
Modify spec file that you copied into your work directory earlier. You'll need to make a few changes.
- Change the Release: line... the best bet is to increment the minor number, like change from
23.1%{?dist}
to23.2%{?dist}
. - Add a PatchNN: line. e.g.
Patch56: xdmx-pointer.patch
Add a line to changelog, starting at the top of the
%changelog
section:* Tue Sep 02 2014 John Doeseph <fake@email.com> 1.13.0-23.2 - Fix pointer jumps on click (freedesktop.org #63486)`
- Change the Release: line... the best bet is to increment the minor number, like change from
Build from our newly modified spec file
rpmbuild -ba xorg-x11-server-1.13.0.spec
Install from new RPMs in ../RPMS
yum install ../RPMS/x86_64/xorg-x11-server-Xdmx-1.13.0-23.2.el6.x86_64.rpm
The above steps were mostly derived from http://www.owlriver.com/tips/patching_srpms/
Note that the rpmbuild will create 8 different xorg-x11-server packages: common, debuginfo, devel, Xdmx, Xephyr, Xnest, Xorg, and Xvfb. I install/upgrade ALL xorg-x11-server-* files on all machines running DMX to maintain consistency. Unfortunately, the two changes suggested on freedesktop.org did not seem to fully fix my DMX mouse pointer issues. (I'm interested in hearing other's results.)