Click here to view code image
matthew@seymour:~$ patch -pl < ../bugfix.patch
You can exit the temporary shell by entering exit or using Ctrl+D.
Build a test package using your patch to test your changes, replacing release
with the name of the release, such as quantal, and replacing package and
version with the name and number of the package:
Click here to view code image
matthew@seymour:~$ bzr builddeb -- -S -us -uc
matthew@seymour:~$ pbuilder-dist release build ../package_version.dsc
When the build completes, install the package from
~/pbuilder/release_result/ and test to see if the bug is fixed:
Click here to view code image
matthew@seymour:~$ sudo dpkg -i package_version.deb
Test it. Get it running. Try to break it. If you are convinced the bug is fixed in
the software, only then is it time to move on. Feel free to repeat this cycle as
often as necessary until it is really fixed.
When your changes are complete, create a new entry in the
debian/changelog file:
Click here to view code image
matthew@seymour:~$ dch -i
Boilerplate text for the changelog entry that includes the first and last lines
with placeholder text for the middle is provided for you. Use a text editor to
edit the middle line(s) and include in your entry a specific bug fix tag that
indicates which Launchpad bug you are fixing. Make sure you include where
in the code you made the change(s), what you changed, and where the
discussion of the change occurred.
The format for this is quite strict and looks as follows:
Click here to view code image
matthewsapp (0.9.2-1ubuntu3) quantal; urgency=low
* debian/control: don't bacon the narwhals at midnight in line 35
as
discussed on launchpad (LP: #3263827)
-- Matthew Helmke <[email protected]> Sat, 25 Aug 2013
13:29:01 -0500
Commit the change locally: