Comment 11 for bug 222164

Revision history for this message
gborzi (gborzi) wrote :

Hello Nicolas,
I've not written a tutorial for rebuilding the package with the suggested patch because nobody asked for it, until today. So, here is a brief howto:
1) make a build directory, move there and get the source for the original package:
mkdir mybuilddir (or whatever name you like)
cd mybuilddir
apt-get source xf86-input-evtouch
2) install the required build libraries
sudo apt-get build-dep xf86-input-evtouch
3) move to the patches directory and add the attached patch
cd xf86-input-evtouch-0.8.7/debian/patches
mv <where you downloaded the patch attached to this message>/09_lrrotation_fix.patch .
echo 09_lrrotation_fix.patch >> series
4) modify the debian/changelog file to have a different version number for the package
vi ../changelog
and add something like this
----
xf86-input-evtouch (0.8.7-3ubuntu2) hardy; urgency=low

  * Adds a patch to fix left and right screen rotation

 -- Giuseppe Borzi <email address hidden> Fri, 09 May 2008 14:32:28 +0200

----
5) go to the xf86-input-evtouch-0.8.7 directory and start the building process
cd ../..
dpkg-buildpackage -rfakeroot (perhaps you'll need to install fakeroot, I don't remember if it's installed by build-essential)

In a short time the package should be compiled, don't worry if it complains about the inability to sign the package.
Please let me know of any problem you encounter following this howto. It surely works on 8.04, hope it'll work on 8.10.