/srv/irclogs.ubuntu.com/2008/01/13/#ubuntu-classroom.txt

=== 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
somerville32crimsun, I'm sad to hear you're leaving the community.18:04
somerville32crimsun, Are you going anywhere specific?18:05
crimsunok, carried over from #ubuntu-motu, we'll be looking at paman in hardy18:05
crimsunthis source package update is pretty straightforward, but I'll summarise the background.18:05
crimsunfor hardy, we currently have a mess in the Applications>Sound & Video menu ala http://trilug.org/~crimsun/Screenshot.png18:06
crimsunthe intent is to unclutter the menus similar to how the https://wiki.ubuntu.com/MenusRevisited spec was implemented.18:07
crimsunso, to start, we make sure our apt source is current for hardy, and then we grab the paman source package from hardy.18:07
crimsun`apt-get source paman`18:08
crimsunplease note the version, 0.9.4-118:08
crimsunthe "upstream" version is 0.9.4, and the Debian source packaging revision is 1 (the hyphen is a separator).18:09
crimsunthe version, 0.9.4-1, implies that this source package in Ubuntu hardy was synced directly from Debian without any changes.18:09
crimsunsince 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
crimsunthe final version for our Ubuntu-modified source package will be 0.9.4-1ubuntu1.18:10
crimsunLuckily, the devscripts package (`apt-get install devscripts`) contains a 'dch' utility to make working with these versions easier.18:11
crimsunso, now, we'll begin editing our changelog18:11
crimsun`cd paman-0.9.4`18:12
crimsunthe next thing we'll do is use the 'dch' utility to bump the version.18:12
crimsun`dch -i`18:12
crimsunnote how the correct version and distribution release are inserted automatically at the top.18:12
crimsunpaman (0.9.4-1ubuntu1) hardy; urgency=low18:12
crimsunI'll now outline the three things we need to do;18:13
crimsun1) change the maintainer field ala https://wiki.ubuntu.com/DebianMaintainerField18:13
crimsun2) create a patch to hide the menu item for paman18:13
crimsun3) adjust the package control fields to work appropriately with our new MenusRevisited scheme18:14
crimsun---  Step 1  ---18:14
crimsunsince you're now editing debian/changelog, make an entry to note that, e.g., * Packaging:  maintainer field mangling18:15
crimsunsave, then exit the editor you're using18:16
crimsunnow the file that we'll be editing in step 1 is debian/control18:16
crimsunuse an editor with that file, and scroll down to the fourth line18:17
crimsun"Maintainer: CJ van den Berg <cj@vdbonline.com>"18:17
crimsunwe'll need to change that to "Maintainer: Ubuntu MOTU Developers <ubuntu-motu@lists.ubuntu.com>"18:17
crimsunnext, we retain the original maintainer information by inserting a line below our new one: "XSBC-Original-Maintainer: CJ van den Berg <cj@vdbonline.com>"18:18
crimsunI'm now going to skip ahead to Step 3, since in that step, we edit the same file (debian/control)18:19
crimsun---  Step 3 ---18:19
crimsunremember that one of the main points of this source package adjustment is to have the appropriate binary packages hinted18:20
crimsunthus, we need to add several binary package names to Recommends for paman18:20
crimsunin the "Package: paman" section, please see the Recommends control field18:21
crimsuncurrently paman only recommends pavumeter.  We want to amend that to recommend pavucontrol and padevchooser as well18:21
crimsun"Recommends: pavumeter, pavucontrol, padevchooser"18:22
crimsunnow, we've finished editing debian/control, and thus, we've finished Steps 1 & 3.18:22
crimsun---  Step 2  ---18:22
crimsunnow we'll use a handy utility called cdbs-edit-patch to simplify creating a patch for the menu item18:23
crimsunwhen we list the contents of the patch directory (`ls debian/patches`), we see there's already one patch18:24
crimsunnext, we check if that one patch is applied (`cat debian/patches/series`)18:24
crimsunwe see that it is.18:25
crimsunnow we'll create a patch that applies on top of that existing one.18:25
crimsunwe'll name our new patch descriptively, say, 0050-MenusRevisited.patch18:26
crimsunwe accomplish this with:18:26
crimsun`cdbs-edit-patch 0050-MenusRevisited`18:26
crimsunnow, the appropriate line we'll add is "NoDisplay=true"18:27
crimsunwe'll make this change in the shipped desktop file, src/paman.desktop18:27
crimsunsimply appending that new line to the file is sufficient18:28
crimsunlookee there, a spelling error that we can correct in the Comment field18:28
crimsun(I changed mine to "Comment=Manage your PulseAudio sound server")18:28
crimsunthat's all the edits we need to make to that desktop file18:29
crimsunsave, then exit the editor18:29
somerville32I 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-patch18:29
crimsunsomerville32: in that case, you need `apt-get build-dep paman`18:30
somerville32crimsun, installing quilt seemed to correct the issue18:32
crimsun(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:33
* somerville32 nods.18:34
crimsunat this point, we've edited src/paman.desktop, so we need to preserve our changes in 0050-MenusRevisited.patch18:36
crimsunthat's pretty straightforward:  we exit by using `exit`18:36
crimsunwe're now back in the original directory, and we've a shiny new debian/patches/0050-MenusRevisited.patch18:37
crimsunnext, we need to append that filename to debian/patches/series so that it's applied18:37
crimsun`echo 0050-MenusRevisited.patch>>debian/patches/series`18:38
crimsunand now, we summarise our changes by editing debian/changelog18:38
crimsun"* Patches:  Apply (new) patch to mask menu item ala MenusRevisited."18:39
crimsunthe next-to-last step will be to regenerate the source package:18:40
crimsun`debuild -S -uc -us`18:40
crimsunfinally, we'll generate a debdiff that we can attach to a bug report filed, using Launchpad, against the paman source package18:42
crimsun`cd ..`18:42
crimsun`debdiff paman_0.9.4-1.dsc paman_0.9.4-1ubuntu1.dsc paman_0.9.4-1ubuntu1.debdiff`18:42
crimsunerr, sorry, that last command should be:18:43
crimsun`debdiff paman_0.9.4-1.dsc paman_0.9.4-1ubuntu1.dsc > paman_0.9.4-1ubuntu1.debdiff`18:43
crimsunand we've finished!18:44
somerville32crimsun, Should we update the standards version?18:49
crimsunif 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:49
somerville32Okay18:52
somerville32I shall18:52
crimsun-> -motu18:56
=== Kestrel99__ is now known as Kestrel99
=== bigon is now known as bigon`
h1st0echo !fonts > h1st0,  h1st0 Read the private message from ubotu20:18
h1st0hrm...20:19
h1st0test20:23
h1st0!test > h1st020:23
h1st0!fonts > h1st0,   h1st0 Read the private message from ubotu.20:24
=== Kestrel99__ is now known as Kestrel99

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!