=== bigon is now known as bigon` === bigon` is now known as bigon === bigon is now known as bigon` === thekorn__ is now known as thekorn === Pricey is now known as PriceChild === Kestrel99__ is now known as Kestrel99 [18:04] crimsun, I'm sad to hear you're leaving the community. [18:05] crimsun, Are you going anywhere specific? [18:05] ok, carried over from #ubuntu-motu, we'll be looking at paman in hardy [18:05] this source package update is pretty straightforward, but I'll summarise the background. [18:06] for hardy, we currently have a mess in the Applications>Sound & Video menu ala http://trilug.org/~crimsun/Screenshot.png [18:07] the intent is to unclutter the menus similar to how the https://wiki.ubuntu.com/MenusRevisited spec was implemented. [18:07] so, to start, we make sure our apt source is current for hardy, and then we grab the paman source package from hardy. [18:08] `apt-get source paman` [18:08] please note the version, 0.9.4-1 [18:09] the "upstream" version is 0.9.4, and the Debian source packaging revision is 1 (the hyphen is a separator). [18:09] the version, 0.9.4-1, implies that this source package in Ubuntu hardy was synced directly from Debian without any changes. [18:10] since we'll be amending the source package, we'll be sure to note that in the version string by appending "ubuntu1" after the Debian source packaging revision (1). [18:10] the final version for our Ubuntu-modified source package will be 0.9.4-1ubuntu1. [18:11] Luckily, the devscripts package (`apt-get install devscripts`) contains a 'dch' utility to make working with these versions easier. [18:11] so, now, we'll begin editing our changelog [18:12] `cd paman-0.9.4` [18:12] the next thing we'll do is use the 'dch' utility to bump the version. [18:12] `dch -i` [18:12] note how the correct version and distribution release are inserted automatically at the top. [18:12] paman (0.9.4-1ubuntu1) hardy; urgency=low [18:13] I'll now outline the three things we need to do; [18:13] 1) change the maintainer field ala https://wiki.ubuntu.com/DebianMaintainerField [18:13] 2) create a patch to hide the menu item for paman [18:14] 3) adjust the package control fields to work appropriately with our new MenusRevisited scheme [18:14] --- Step 1 --- [18:15] since you're now editing debian/changelog, make an entry to note that, e.g., * Packaging: maintainer field mangling [18:16] save, then exit the editor you're using [18:16] now the file that we'll be editing in step 1 is debian/control [18:17] use an editor with that file, and scroll down to the fourth line [18:17] "Maintainer: CJ van den Berg " [18:17] we'll need to change that to "Maintainer: Ubuntu MOTU Developers " [18:18] next, we retain the original maintainer information by inserting a line below our new one: "XSBC-Original-Maintainer: CJ van den Berg " [18:19] I'm now going to skip ahead to Step 3, since in that step, we edit the same file (debian/control) [18:19] --- Step 3 --- [18:20] remember that one of the main points of this source package adjustment is to have the appropriate binary packages hinted [18:20] thus, we need to add several binary package names to Recommends for paman [18:21] in the "Package: paman" section, please see the Recommends control field [18:21] currently paman only recommends pavumeter. We want to amend that to recommend pavucontrol and padevchooser as well [18:22] "Recommends: pavumeter, pavucontrol, padevchooser" [18:22] now, we've finished editing debian/control, and thus, we've finished Steps 1 & 3. [18:22] --- Step 2 --- [18:23] now we'll use a handy utility called cdbs-edit-patch to simplify creating a patch for the menu item [18:24] when we list the contents of the patch directory (`ls debian/patches`), we see there's already one patch [18:24] next, we check if that one patch is applied (`cat debian/patches/series`) [18:25] we see that it is. [18:25] now we'll create a patch that applies on top of that existing one. [18:26] we'll name our new patch descriptively, say, 0050-MenusRevisited.patch [18:26] we accomplish this with: [18:26] `cdbs-edit-patch 0050-MenusRevisited` [18:27] now, the appropriate line we'll add is "NoDisplay=true" [18:27] we'll make this change in the shipped desktop file, src/paman.desktop [18:28] simply appending that new line to the file is sufficient [18:28] lookee there, a spelling error that we can correct in the Comment field [18:28] (I changed mine to "Comment=Manage your PulseAudio sound server") [18:29] that's all the edits we need to make to that desktop file [18:29] save, then exit the editor [18:29] I get dpkg-checkbuilddeps: Unmet build dependencies: quilt autotools-dev libpulse-dev libgtkmm-2.4-dev libglademm-2.4-dev lynx asciidoc xmlt when I attempt to use cdbs-edit-patch [18:30] somerville32: in that case, you need `apt-get build-dep paman` [18:32] crimsun, installing quilt seemed to correct the issue [18:33] (right, that's sufficient for the problem at hand. I'm being a bit more verbose to cover, for posterity/logs, what people may need without an sbuild or pbuilder) [18:34] * somerville32 nods. [18:36] at this point, we've edited src/paman.desktop, so we need to preserve our changes in 0050-MenusRevisited.patch [18:36] that's pretty straightforward: we exit by using `exit` [18:37] we're now back in the original directory, and we've a shiny new debian/patches/0050-MenusRevisited.patch [18:37] next, we need to append that filename to debian/patches/series so that it's applied [18:38] `echo 0050-MenusRevisited.patch>>debian/patches/series` [18:38] and now, we summarise our changes by editing debian/changelog [18:39] "* Patches: Apply (new) patch to mask menu item ala MenusRevisited." [18:40] the next-to-last step will be to regenerate the source package: [18:40] `debuild -S -uc -us` [18:42] finally, we'll generate a debdiff that we can attach to a bug report filed, using Launchpad, against the paman source package [18:42] `cd ..` [18:42] `debdiff paman_0.9.4-1.dsc paman_0.9.4-1ubuntu1.dsc paman_0.9.4-1ubuntu1.debdiff` [18:43] err, sorry, that last command should be: [18:43] `debdiff paman_0.9.4-1.dsc paman_0.9.4-1ubuntu1.dsc > paman_0.9.4-1ubuntu1.debdiff` [18:44] and we've finished! [18:49] crimsun, Should we update the standards version? [18:49] if you wish to verify that 3.7.3 is adhered to and then update it in debian/control, sure. I didn't, because I didn't verify. [18:52] Okay [18:52] I shall [18:56] -> -motu === Kestrel99__ is now known as Kestrel99 === bigon is now known as bigon` [20:18] echo !fonts > h1st0, h1st0 Read the private message from ubotu [20:19] hrm... [20:23] test [20:23] !test > h1st0 [20:24] !fonts > h1st0, h1st0 Read the private message from ubotu. === Kestrel99__ is now known as Kestrel99