DebDiff
|
Size: 1865
Comment:
|
← Revision 12 as of 2016-01-29 10:17:21 ⇥
Size: 2103
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| <<Include(UbuntuStudio/Navigation/DevSideBar)>> | |
| Line 4: | Line 5: |
''You may also read about doing debdiffs [[http://packaging.ubuntu.com/html/traditional-packaging.html|here]].'' |
|
| Line 8: | Line 11: |
| {{{ $ pull-lp-source ubiquity-slideshow-ubuntu $ sudo apt-get build-dep ubiquity-slideshow-ubuntu }}} |
|
| Line 13: | Line 12: |
| `$ pull-lp-source ubiquity-slideshow-ubuntu`<<BR>> `$ sudo apt-get build-dep ubiquity-slideshow-ubuntu` <<BR>> |
|
| Line 17: | Line 20: |
| {{{ $ cd ubiquity-slideshow-ubuntu-67 $ (do your changes to the source) }}} |
`$ cd ubiquity-slideshow-ubuntu-67` <<BR>> Now, do your changes to the source. |
| Line 23: | Line 26: |
| {{{ $ dch -i }}} |
|
| Line 27: | Line 27: |
| Example of what it looks like initially. {{{ ubiquity-slideshow-ubuntu (67ubuntu1) UNRELEASED; urgency=low |
`$ dch -i` |
| Line 31: | Line 29: |
| * | <<BR>> Example of what it looks like initially: |
| Line 33: | Line 32: |
| -- Kaj Ailomaa <zequence@mousike.me> Sun, 10 Mar 2013 23:07:01 +0100 }}} |
|
| Line 36: | Line 33: |
| `ubiquity-slideshow-ubuntu (67ubuntu1) UNRELEASED; urgency=low` `*` `-- Kaj Ailomaa <zequence@mousike.me> Sun, 10 Mar 2013 23:07:01 +0100` <<BR>> |
|
| Line 37: | Line 41: |
| {{{ ubiquity-slideshow-ubuntu (68) raring; urgency=low |
|
| Line 40: | Line 42: |
| * Updated the ubuntustudioslideshow for new release | |
| Line 42: | Line 43: |
| -- Kaj Ailomaa <zequence@mousike.me> Sun, 10 Mar 2013 23:07:01 +0100 }}} |
`ubiquity-slideshow-ubuntu (68) raring; urgency=low` |
| Line 45: | Line 45: |
| `* Updated the ubuntustudioslideshow for new release` `-- Kaj Ailomaa <zequence@mousike.me> Sun, 10 Mar 2013 23:07:01 +0100` <<BR>> |
|
| Line 46: | Line 51: |
| {{{ $ debuild -sa -S }}} |
|
| Line 50: | Line 52: |
| `$ debuild -sa -S` <<BR>> |
|
| Line 51: | Line 56: |
| {{{ $ cd ../ $ debdiff ubiquity-slideshow-ubuntu_67.dsc ubiquity-slideshow-ubuntu_68.dsc > ubiquity.debdiff }}} |
|
| Line 56: | Line 57: |
| `$ cd ../` `debdiff ubiquity-slideshow<oldversion>.dsc ubiquity-slideshow<newversion>.dsc > ubiquity-slideshow<newversion>.debdiff` <<BR>> |
Create a debdiff
You may also read about doing debdiffs here.
Using ubiquity-slideshow-ubuntu as an example here. We're pulling from released source, which you might not want to do. You might want to first branch off the original bzr branch.
First, get the source and the build dependencies.
$ pull-lp-source ubiquity-slideshow-ubuntu
$ sudo apt-get build-dep ubiquity-slideshow-ubuntu
This will pull down a few things. We need the source dir where to make changes, and the .dsc file for making the debdiff.
So, let's head to the source dir, and make our changes.
$ cd ubiquity-slideshow-ubuntu-67
Now, do your changes to the source.
Edit the changelog to include your changes
$ dch -i
Example of what it looks like initially:
ubiquity-slideshow-ubuntu (67ubuntu1) UNRELEASED; urgency=low
*
-- Kaj Ailomaa <zequence@mousike.me> Sun, 10 Mar 2013 23:07:01 +0100
Example of how it could look like after I'm done. Notive I've added a description of the change, replaced "67ubuntu1" with 68, to make it a new version, and set the release name to "raring".
ubiquity-slideshow-ubuntu (68) raring; urgency=low
* Updated the ubuntustudioslideshow for new release
-- Kaj Ailomaa <zequence@mousike.me> Sun, 10 Mar 2013 23:07:01 +0100
When you're done, your dir will be renamed to ubiquity-slideshow-ubuntu-68. Now, we rebuild the source. This will also sign the dsc and change files.
$ debuild -sa -S
To get the debdiff, we do:
$ cd ../ debdiff ubiquity-slideshow<oldversion>.dsc ubiquity-slideshow<newversion>.dsc > ubiquity-slideshow<newversion>.debdiff
Now, you need to pass the debdiff to a sponsor who can use it to patch the debian source, and upload the new version to the repo. It's simply a textfile.
UbuntuStudio/DebDiff (last edited 2016-01-29 10:17:21 by 83)


