=== yofel_ is now known as yofel === enli is now known as enli|away [06:49] Packaging Training: Fixing small bugs in Ubuntu: in 10 minutes - http://is.gd/bLixO [06:56] arg, lernid hates me today :) [06:56] heh [07:00] good morning everybody - who's here for the packaging training session today? === ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - http://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi || Event: Packaging Training Session - Current Session: Fixing small bugs in Ubuntu - Instructor: dholbach || Questions in #ubuntu-classroom-chat [07:01] I've never used classbot before, so I suppose you need to ask questions in #ubuntu-classroom-chat [07:02] so if you could please join that, I'd appreciate it [07:02] so who's here for the packaging training session today? :) [07:03] hum, ajmitch and imbrandon are sure going to know all of this already - maybe we should move back the session by 2h or something? [07:04] alright, let's do it now then :) [07:05] so I picked a few "easier" bugs that weren't solved yet, and we'll have a look at them and see what we can do about them [07:06] while we investigate them I'll try to explain a bit more about the processes in ubuntu, the tools, etc. so the next time you hit a somewhat similar (but different) situation you know what to do, who to talk to, etc [07:06] if you have any questions, or if I'm wrong or I don't make sense or go to fast or slow, please speak up in #ubuntu-classroom-chat :) [07:07] alright [07:07] first of all, let's install a few packages we're going to need: [07:07] sudo apt-get install --no-install-recommends libtool ubuntu-dev-tools debhelper cdbs pbuilder build-essential [07:08] - build-essential gives you tools to compile packages [07:09] - cdbs and debhelper contain scripts that streamline the packaging of applications [07:09] - pbuilder is a tool to test-build packages in a sane environment [07:10] - ubuntu-dev-tools contains a few useful scripts for developing on Ubuntu (and will pull in devscripts that contains even more useful scripts for developing and packaging :-)) [07:10] - libtool is required by one of the packages we'll work on later on [07:10] ok... a tiny bit of preparation now - I'll keep this short [07:11] Please make sure you have "source package entries" enabled in your /etc/apt/sources.list [07:11] a grep deb-src /etc/apt/sources.list will make sure [07:12] System → Administration → Software Sources → Software → Sources will work too [07:12] (I hope that's what it's called in English, I use a German Ubuntu over here.) [07:13] next please edit ~/.pbuilderrc [07:13] (if it's not there, create it) [07:13] and please add this entry [07:13] COMPONENTS="main universe multiverse restricted" [07:13] save it [07:14] next please edit ~/.bashrc (if you use the bash shell - if you use something else, edit the appropriate settings) [07:14] and add [07:14] export DEBFULLNAME='Daniel Holbach' [07:14] export DEBEMAIL='daniel.holbach@ubuntu.com' [07:14] please use your own name and email address :-) [07:14] thanks! [07:15] next please run [07:15] source ~/.bashrc [07:15] (or restart your terminal session) [07:15] next please run [07:15] sudo pbuilder create [07:15] (this will take a while) [07:15] now what did we do [07:16] 1) we enabled a source package entry for apt so we can get the source of all packages very easily [07:16] 2) told pbuilder that it should use all components by default [07:17] 3) gave a lot of packaging tools a bit more information about ourselves (so we don't need to type in our name and email manually all the time) [07:17] all good up until now? [07:18] rock and roll [07:18] ok, here's our first bug [07:18] https://bugs.launchpad.net/ubuntu/+source/mime-support/+bug/567527 [07:19] arand asks "existing gpg-key is assumed? Or not required in this case?" [07:19] it's not required, but https://help.ubuntu.com/community/GnuPrivacyGuardHowto is a good guide to get it set up [07:20] awesome, now we can speak in here too :) [07:20] thanks again pleia2 :) [07:20] sure thing :) [07:20] ok, back to our mime-support bug [07:20] apparently there's a typo in there: "form" should be "from" [07:20] let's get the source and find out [07:21] apt-get source mime-support [07:21] it's always good to read and understand the whole bug report before you start... Scott Ritchie found out that it's a problem in cautious-launcher [07:22] daniel@miyazaki:~/mime-support-3.48$ find . -name cautious-launcher [07:22] ./debian/cautious-launcher [07:22] daniel@miyazaki:~/mime-support-3.48$ [07:22] so cautious-launcher is a script that lives in the debian directory of the source, it should be safe for us to just go and edit it and fix the bug (we'll hit a different case later on where it's not that straight-forward) [07:23] so go and edit the file, and change "form" to "from" [07:23] otherwise grep -r "form an untrused" . in the source directory would point out the file ;) [07:23] arand is right :) [07:24] next we need to document what we just did and update the version number of the package [07:24] please run [07:24] dch -i [07:24] dch is a very useful script from devscripts that deals with editing debian/changelog - it should have added a new entry for you and added your name and email [07:25] let's go through the format of the changelog entry real quick [07:25] first up is the name of the source package [07:25] then we have the version number, in our case 3.48-1ubuntu2 [07:26] which means: upstream version (released by the software authors) is 3.48, 1st revision in debian, 2nd revision in ubuntu [07:26] it shows quite well the flow of the software in terms of releases [07:26] upstream → debian → ubuntu [07:27] that's something we care about a lot, which is why James Westby's comment in the bug report is important too, he says that it's an ubuntu-specific script, so in this case we don't necessarily need to forward the change to debian or upstream, but maybe we want to send the whole script to them at some stage [07:28] ok, getting back to changelog entry [07:28] mime-support (3.48-1ubuntu2) lucid; urgency=low [07:29] next up is the version of ubuntu we want to upload it to (lucid in our case) [07:29] and the urgency we can ignore for now - while Launchpad now supports urgency (I've been told) it's rarely used [07:29] my actual changelog entry looks like this [07:29] * debian/cautious-launcher: "form" → "from" (LP: #567527) [07:29] Launchpad bug 567527 in mime-support "Typo in warning dialog" [Low,Triaged] https://launchpad.net/bugs/567527 [07:30] it mentions the file we changed, mentions what we changed and also mentions the launchpad bug in a special format [07:30] it's important to refer to some kind of discussion of the problem in the changelog, so it's clearer to others later on [07:31] this special format will also make sure the bug gets automatically closed when we upload the package [07:31] next please run: [07:31] debuild -S -sa -us -uc [07:31] and if it asks you about some tarball that's missing, please just say "yes" :) [07:32] that's a packaging mistake we probably shouldn't get ourselves into right now - not our fault [07:32] did that pan out alright for everybody? [07:32] did anybody get lost along the way? [07:33] excellent [07:34] if you now would please run: [07:34] cd .. [07:34] debdiff mime-support_3.48-1ubuntu{1,2}.dsc [07:34] and paste the output to http://paste.ubuntu.com I'd appreciate it [07:34] and I'll do a quick review [07:35] what is the significance of the arguments in this command? debuild -S -sa -us -uc [07:35] good question bbordwell [07:36] "-us -uc" will tell debuild (which will pass this on to dpkg-buildpackage) to not try to sign the source package or changes file with your gpg key later on [07:36] we just do this because we didn't set up the gpg key together [07:36] (use the link above and you should be fine and can drop -us -uc in the future) [07:37] "-S" will tell debuild to rebuild the source package as opposed to build the .deb package itself [07:37] "-sa" is just necessary if you want to upload the source package somewhere [07:37] so did you post your patches to some pastebin? [07:37] can I have the links? [07:38] "debdiff mime-support_3.48-1ubuntu{1,2}.dsc" and paste the output to http://paste.ubuntu.com [07:39] also: to test-build the package, run sudo pbuilder build mime-support_3.48-1ubuntu2.dsc [07:40] a note on pbuilder: it will set up a chrooted environment which will just contain a bare base system, then install all the necessary packages to build that source package, then tear it down again [07:41] the obvious advantages of this are: the package will be built in a clean and sane environment as opposed to your probably quite modified system and you don't have to install 43217139513 of -dev packages and build-dependencies [07:41] Is this what you were looking for? http://paste.ubuntu.com/424428/ [07:41] http://pastebin.com/dDuWneYc [07:41] arand: this looks good [07:42] bbordwell: is that the changes file? [07:42] bbordwell: can you post the output of the debdiff command? [07:42] debdiff mime-support_3.48-1ubuntu{1,2}.dsc [07:43] (lp:567527) needs to be (LP: #567527) for Launchpad to trigger the closing of the bug [07:43] Launchpad bug 567527 in mime-support "Typo in warning dialog" [Low,Triaged] https://launchpad.net/bugs/567527 [07:43] but as far as I can see this looks good already [07:43] so once you have 1) found a fix, 2) test-built the package, 3) tested it you can proceed to [07:44] https://wiki.ubuntu.com/SponsorshipProcess (I'll give you some links later on again) which explains how to get a patch uploaded to Ubuntu [07:49] ok, let's crack on - bbordwell just had some issues, we hope to have figured them out [07:49] next bug [07:49] https://bugs.launchpad.net/ubuntu/+source/app-install-data-ubuntu/+bug/538221 [07:49] Launchpad bug 538221 in app-install-data-ubuntu "typo in GTK wiimote whiteboard (whitebaord)" [Undecided,New] [07:49] ok, this one is a big misleading [07:50] it says that the bug is in app-install-data-ubuntu which is the package that contains all the package descriptions for software-center (and gnome-app-install) [07:50] There are are 10 minutes remaining in the current session. [07:50] you need to know that app-install-data-ubuntu is generated from lots and lots of other packages, so very rarely the bug will be in app-install-data-ubuntu itself [07:51] to find out which package is actually concerned, I tried this: [07:51] daniel@miyazaki:~$ apt-cache search wiimote whiteboard [07:51] gtkwhiteboard - GTK+ Wiimote Whiteboard [07:51] daniel@miyazaki:~$ [07:51] so we'll do a similar dance as last time again :-) [07:51] apt-get source gtkwhiteboard [07:52] cd gtkwhiteboard-1.3+dfsg/ [07:52] grep -ri whitebaord . [07:52] will show you where the typo turned up [07:53] luckily, again it's just in files that were added by the packaging (that live in debian/) [07:54] so please go and fix all of these 3 files [07:55] There are are 5 minutes remaining in the current session. [07:56] ok, when you're done, document it again [07:56] dch -i [07:57] then run [07:57] update-maintainer [07:57] then [07:57] debuild -S -us -uc [07:58] what update-maintainer does is: change the Maintainer name/email in debian/control to preserver the debian maintainer in a different variable and set an ubuntu mailing list as maintainer [07:59] that's something our friends at debian asked us to do so they don't get bug mail for changes that were introduced in Ubuntu, etc :) [07:59] https://wiki.ubuntu.com/DebianMaintainerField for more info :) [08:00] ok, again send me the output of the debdiff command [08:00] cd .. [08:00] debdiff gtkwhiteboard_1.3+dfsg-5.2{,ubuntu1}.dsc === ChanServ changed the topic of #ubuntu-classroom to: Welcome to the Ubuntu Classroom - http://wiki.ubuntu.com/Classroom || Support in #ubuntu || Upcoming Schedule: http://is.gd/8rtIi [08:00] in the meantime a few links that will probably help you [08:01] https://wiki.ubuntu.com/MOTU/GettingStarted links to all the bits that are useful along your way [08:01] https://wiki.ubuntu.com/PackagingGuide for a quick tutorial for the packaging basics [08:01] https://wiki.ubuntu.com/UbuntuDevelopment for more info about the ubuntu development processes [08:01] https://wiki.ubuntu.com/SponsorshipProcess for getting changes uploaded into Ubuntu [08:02] did anyone get the whitebaord debdiff? :) [08:03] are there any more questions? [08:04] dholbach: If bugs are assigned to the wrong package, they should be reassigned (the one in gtkwhiteboard) [08:04] aburch: yes, totally [08:05] whatever new you find out, you should put add as information to the bug report [08:05] so even if you don't manage to fix the bug completely the next one attempting has that info already :) [08:06] I'm not sure really how to do the changelog on this one, it seems a bit much stating all the files cahnged, and a bit little to omit it completely..: http://pastebin.com/aGiMBSYg [08:06] arand: this looks good - I personally absolutely wouldn't mind listing all the files, but that's a matter of preference :) [08:07] also... if you found you like working on bugs and getting packages fixed, consider dropping in #ubuntu-packaging or #ubuntu-motu [08:07] and ask all the questions you have there [08:08] there are lots of really helpful people in there who will help you get started [08:08] thanks a lot everybody for attending [08:08] you ROCK! [08:08] thanks dholbach! [08:08] next week is Ubuntu Open Week and we'll have a bunch of sessions related to development there too [08:08] it'll be awesome === Hodge is now known as Hodgestar === DreamThi1f is now known as DreamThief === yofel_ is now known as yofel [20:20] + [21:05] hello ppl isn't a way of attending the study material of today's classroom if somone was absent at that time ?????? [21:08] simar, check the irc logs, google: ubuntu irc logs [21:09] joaopinto, is the classrooms conducted only via chat ??? 2days wad that of danial [21:09] ?? [21:09] yes, only via chat [21:11] joaopinto, ok fne [21:13] joaopinto, could you help me about triaging bugs ... i have read how to triage guide ... n i feel it insufficient knowledge to start triaging ..... like i don't know what bugs to triage ... n many more things??? [21:13] plz help [21:13] simar, this is not a support channel, the best channel to get help with bugs traging is #ubuntu-bugs [21:13] triaging [21:15] joaopinto, but nobody replies there ... is it like question should be adressed to someone or???? [21:15] it means you need to wait for someone to become available [21:17] ok