How to apply a patch (under Ubuntu)

Listen to this.

Someone wants to know how to apply Bugzilla patch 124290 under Ubuntu.

sudo apt-get build-dep metacity
apt-get source metacity
cd metacity-2.24.0
wget -O - | patch -p1
sudo make install

(I would include the output but it’d be in Welsh.)

Published by

Thomas Thurman

Mostly themes, triaging, and patch review.

4 thoughts on “How to apply a patch (under Ubuntu)”

  1. Alternatively you could also say “dpkg-buildpackage -rfakeroot” and “sudo dpkg -i metacity…” instead of “configure, make, make install” and the result would be deb packages.

  2. I’d be inclined to replace the last three lines with

    dch -i
    # change the version number to ‘ubuntuXmypatch1’ or something
    # describe which the patch you’ve applied
    sudo dpkg -i ../*metacity*deb

    That would let the packaging system know that you’ve got a slightly newer version of metacity than what Ubuntu currently does, but that the next Ubuntu version will be newer than the one you have.

Comments are closed.

Leave a Reply

Your email address will not be published. Required fields are marked *