Thank you very much...
After a while and with the approach from InfinityCircuit i figured out how this will work.
I hope this will help someone else to apply patches.
In my example i am adding the patch for using the scrollwheel with compact view in nautilus. The patch is original from Gnome bug 558659:
I modified the patch a bit and attached it to this post. Download it, place it on your Desktop and run the script below.
Code:
#requirements and tools for packaging and compiling
#there are eventually missing some more packages ;)
sudo aptitude install devscripts ubuntu-keyring
sudo apt-get build-dep libgtk2.0-0
Code:
#!/bin/sh
#create workdir
mkdir ~/Desktop/tmp
cd ~/Desktop/tmp
#get the sources and patch for libgtk2.0 in once
dget -x http://archive.ubuntu.com/ubuntu/pool/main/g/gtk+2.0/gtk+2.0_2.14.4-0ubuntu1.dsc
#unpack the patch & and use it
unp gtk+2.0_2.14.4-0ubuntu1.diff.gz
patch -p0 <gtk+2.0_2.14.4-0ubuntu1.diff
#unpack the sources and move them into the patch directory
unp gtk+2.0_2.14.4.orig.tar.gz gtk+2.0-2.14.4/
mv gtk+-2.14.4/* gtk+2.0-2.14.4/
rmdir gtk+-2.14.4/
cd gtk+2.0-2.14.4/
#add your patch
cp ../../000_scroll.patch debian/patches/
echo "000_scroll.patch" >> debian/patches/series
#put your additions to the changelog (optional)
dch --local +scroll # arbitrary changelog bump here
#compile (this will take some time)
debuild -us -uc
Code:
#i guess this will install the generated packages
#but i didn't try it and used another methode
sudo debi
greetz
Bookmarks