Packaging Notes
I've done easy fixes (debdiffs) in Ubuntu and find I need to look up exactly how I want to do a debdiff every time. Last time I had to look at 5 different docs to get all the commands I needed. The bug I based this on was a debian only change (Init script), I plan to update it next time I have an actual source change.
- Start a new VM/ Cloud instance
- sudo apt-get install packaging-dev
- apt-get source <package_name> ; apt-get build-dep <package_name>
- cd into-directory-created
- Make the change (if it's only a debian/ change)
- dch -i (document it)
- debuild -S -us -uc (build it)
- debdiff rrdtool_1.4.7-1.dsc rrdtool_1.4.7-1ubuntu1.dsc > rrdtool_1.4.7-1ubuntu1.debdiff (make the debdiff - note to me, change the name later)
- cd into-directory; DEB_BUILD_OPTIONS='nostrip noopt debug' fakeroot debian/rules binary (build it)
- Test it
- http://packaging.ubuntu.com/html/traditional-packaging.html
- http://packaging.ubuntu.com/html/fixing-a-bug-example.html
- http://cheesehead-techblog.blogspot.com/2008/10/creating-patch-to-fix-ubuntu-bug.html
- https://wiki.debian.org/IntroDebianPackaging
- https://wiki.debian.org/BuildingTutorial