Comment 14 for bug 581032

Revision history for this message
YvesDelannoy (yves-delannoy) wrote :

  Following the preceding post, it seems that there is a permission problem in the source package for xserver-xorg (which is downloaded by 'apt-get source xserver-xorg-core').
  In brief, a man page was installed as executable what prevented it to be recoded in UTF-8 (perhaps it is related to my locale, fr_FR.UTF-8), and perhaps it would disappear if you build the packages as root...
  But nevertheless, a workaround is to modify the procedure from post #6 as follow (mv, sed and chmod added) :

  $ sudo apt-get install build-essential fakeroot dpkg-dev devscripts
  $ apt-get source xserver-xorg-core
  $ sudo apt-get build-dep xserver-xorg-core
  $ cd xorg-server-1.7.6/
  $ patch -p1 </tmp/xorg-patch.patch
$ mv debian/rules debian/rules.orig
$ sed -e '244s/install/install -m 644/' debian/rules.orig > debian/rules
$ chmod 755 debian/rules
  $ dpkg-buildpackage -rfakeroot -uc -b
  $ cd ..
  $ sudo dpkg -i xserver-common_1.7.6-2ubuntu7_all.deb
  $ sudo dpkg -i xserver-xorg-core_1.7.6-2ubuntu7_amd64.deb

  Of course, you sould replace /tmp/xorg-patch.patch by the path to the patch file downloaded from post #9; and you should do all that from a temporary directory where you have rights. Note that I don't use dch -i because I'm not the maintainer of the package, and consequently the new version is different from the one of post #6
  In the last command, replace amd64 by i386 if you're working with a 32 bit version of ubuntu.