Criando seu prĂ³prio patch
Download
Today Im preparing a patch to fix Launchpad Bug #117984, which is also Gnome Bug #451734.
References: Ubuntu Wiki, Ubuntu Packaging Guide
It turns out that to do it properly, you need to make two patches. The first one is a .diff file for Debian and upstream. The second creates a .debdiff patch for Ubuntu.
There are circumstances, of course, where one of the patches is not neccessary, and some of these steps can be skipped.
mkdir workingcd workingapt-get source packagename. This method automatically appends an .orig suffix, and unpacks the file, too. DONT download the source from packages.ubuntu.com; instead ADD the repos to your Software Sources control panel using the instructions at the Ubuntu Wikicp -r package-folder package-folder-origcd package-folder.nano path/to/file/to/fix. Fix the filecd ..diff -Nurp package-folder-orig package-folder > upstream-bug#.diff to create the upstream patch.cd package-folder.dch -i to update the changelog. Show the change and list the bug# fixed.debuild -S -us -uc to create the debdiff patch.

