[02:59] Hello everyone [03:03] I do not think anyone is home today. I see the schedule is tomorrow. bye === issyl0_ is now known as issyl0 === joaopinto_ is now known as joaopinto === mohi_away is now known as mohi1 === starshiptrooper is now known as apachelogger === 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 an Ubuntu bug with bzr - Instructor: james_w || Questions in #ubuntu-classroom-chat [16:01] hi [16:02] Who is here for the packaging training session? [16:06] I'll wait a couple more minutes for people to join [16:07] right, hello everyone [16:07] most of the names that just joined I recognise, so I won't take it too slowly today [16:08] this is all a bit last-minute though, so I don't have anything prepared [16:08] so I'm happy to answer any questions you have [16:08] right, so a quick introduction [16:09] you can now use bzr for doing a lot of packaging work, instead of having to learn how to generate debdiffs and the like [16:09] debdiffs are ok, they have some disadvantages, but the main thing is that they aren't something used in other projects [16:10] bzr is a version control system, and so is probably more familiar to newcomers [16:10] so, if you want to make use of it, please install bzr and bzr-builddeb if you don't already have them installed [16:10] bzr-builddeb is a plugin for bzr that knows about packaging stuff [16:11] once you have those, then you can run [16:11] bzr branch lp:ubuntu/ [16:11] to get the current source of any package in ubuntu as a bzr branch [16:11] there is also lp:ubuntu/karmic/source etc. as well [16:12] you can run bzr log and bzr annotate and the like to see how the package evolved over time [16:13] that gets useful when debugging etc. [16:13] now, you can build a package by using "bzr builddeb" from one of these branches [16:13] "bzr bd" for short [16:13] to build a source package use "bzr bd -S" [16:13] QUESTION: is there a specific bzr revision for each different version commited to the archives ? [16:13] yes [16:14] grab a branch of a package you know and have a look [16:14] or click around on launchpad [16:14] https://launchpad.net/ubuntu/+source/package [16:14] and then click on "Branches" and you can browse them online [16:14] Question: Would it make sense to automatically handle "-v" when doing "bzr builddeb -S" (so that it auto-adds the last uploaded version with it)? [16:14] that would be cool [16:14] however, you can't do it automatically [16:15] without querying something remote to find out what the current version is, and I don't want building a package to require that [16:16] so, we currently require a human to tell us what value to use [16:16] what I would like to do is have a flag to say "this is a merge from Debian", so use -vlast-ubuntu-version and -sa if needed [16:17] the main thing stopping me is that I can't come up with a good name for that flag ;-) [16:18] so, once you have built the package with your changes and tested it, you can commit [16:18] how do you get someone to upload that for you? [16:19] to do that you should propose the branch for merging on launchpad [16:19] first, push it to your namespace on launchpad [16:19] bzr push lp:~LP-ID/ubuntu/lucid/package/some-descriptive-name [16:19] then open up the branch page on launchpad and click "Propose for merging" [16:20] explain what you have done and click "Propose" [16:20] a couple of timesavers here: [16:20] bzr lp-open [16:20] running that after you pushed will open your browser at the right page [16:20] bzr lp-propose [16:21] instead of clicking around on the webapp this will let you type your description in to your editor, like when you commit, and then make the merge proposal for you [16:21] someone will review your changes and vote on them [16:22] if they would like you to fix something then you can just make the changes locally, "bzr commit", "bzr push" and then comment on the merge proposal to say you have done it [16:22] once they are happy they will upload it for you [16:22] QUESTION: Are there branches for Debian packages (lp:debian/package) ? [16:22] indeed [16:22] you can find any debian package that way as well [16:23] the history isn't nearly as complete for Debian packages, but it will improve from here on out [16:23] so, what can you do with the Debian branches? [16:23] diff between Ubuntu and Debian when investigating something [16:23] merge from Debian to pull in their changes [16:23] cherry-pick from them when near release time and you just want part of their changes [16:24] use the branches to generate a diff to send back to them [16:24] let's look at merging [16:24] from a copy of an ubuntu branch you can run [16:24] bzr merge-package lp:debian/sid/package [16:24] to merge from the sid version of the package [16:26] this may give you conflicts, which you can resolve [16:26] run "bzr diff" if you want to check the changes that are being pulled in [16:26] then commit when you are happy [16:26] running [16:26] bzr diff --old lp:debian/sid/package [16:26] will tell you the current diff from Debian, so you can see if there is anything that should be submitted back [16:26] again you can push this up and request the merge [16:27] QUESTION: re auto-using "-v" with "bzr bd", couldn't you use the last tag from mark-uploaded? Does mark-uploaded do anything besides creating a tag only? [16:27] first, no, mark-uploaded is just creating a tag [16:27] in maverick you will just be able to run "bzr tag" thanks to jelmer [16:28] as for using the last tag from mark-uploaded that's an interesting idea, but I'm not sure if it would be reliable enough [16:28] might be worth a go [16:28] I'd be happy to help you implement it if you like [16:28] QUESTION: so no more debdiffs ? [16:28] you don't have to use debdiffs to get sponsored any more [16:28] they may have their use from time to time [16:29] any more questions before I move on? [16:31] QUESTION: are there branchs for PPAs ? [16:31] only if you make them [16:31] you can branch from Ubuntu, make your changes, and then push it [16:31] uploading the source package to your PPA [16:31] they aren't created automatically or anything though [16:36] QUESTION: more bzr related. Is it possible to get the "diff" after a merge annotated? When diffing, you see what's added, but not from what particular merged revision. [16:36] I don't think that's possible [16:36] ask in #bzr [16:36] QUESTION: branches for PPA: is there planned anything to get them created automatically? [16:36] no [16:37] there's not a lot of payoff there [16:37] and you can just use bzr to manage the PPAs [16:38] right, we've looked at merging from Debian [16:38] let's look briefly at merging from upstream [16:38] this is based around the inventively named "bzr merge-upstream" command [16:39] from one of the branches we got earlier we can merge a new upstream release by passing it the URL of the tarball of the new upstream release (or a local path if you have already downloaded it) [16:39] and the version number that is assigned to this release [16:39] bzr merge-upstream --version 1.2 http://example.org/foo-1.2.tar.gz [16:40] works with tar.gz tar.bz2 .zip and a couple more [16:40] again it will leave you with a diff to review and any conflicts to fix up [16:40] I plan to make it use uscan, so that you don't even have to tell it that stuff if you have a watch file [16:41] "bzr merge-upstream" would just find everything out and do the obvious thing for you [16:41] I think this is one of the coolest things [16:42] and I plan to add more things as cool as that and build on top of it [16:42] so, what else do we have planned? [16:42] work is currently underway to add support in Launchpad for building from branches [16:43] that means you will be able to go from the branch you just pushed up to a package in your PPA without building and uploading it [16:43] we will probably extend that to Ubuntu itself once we are happy with it [16:44] this will allow us to do lots of great things [16:44] daily builds will be just a few clicks [16:44] it will be easy for people to find a patch upsteam, stick it in to bzr, and put it in their PPA for people on the bug to test [16:44] like, one command easy if someone wants to automate that [16:45] and building on top of bzr makes it easier for an Ubuntu developer to hoover up such patches after testing and merge them all together [16:46] QUESTION: are you doing anything with ground control to get these features in that? [16:46] not yet [16:46] but I want to have some of that stuff [16:46] there's a possible SoC project to lay the groundwork for that [16:46] we're not /quite/ at the point where we can have something as slick as groundcontrol, but very close [16:47] and because we are just using bzr, launchpad etc. it should be easy to modify groundcontrol to do packages as well as projects [16:47] right, any more questions for the last 10 minutes [16:48] right, some cool stuff === apachelogger is now known as starshiptrooper [16:49] bzr gannotate or the qt equivalent when you find a bad line of code can tell you when it was changed, regardless of whether upstream debian or ubuntu changed it [16:49] assuming that it's v3 quilt right now [16:50] and you can then go from that to the diff of the revision that uploaded it, so see the rationale in the changelog [16:50] There are are 10 minutes remaining in the current session. [16:50] and if you want to revert it, it's one bzr command, rather than doing it by hand, or trying to generate a patch to reverse-apply [16:51] similar with cherry picking [16:51] you can grab the changes in the last debian upload and pull them in to your tree [16:51] bzr merge -c 1 lp:debian/sid/package [16:52] then use "bzr revert" and "bzr shelve --destroy" to remove the parts you don't want [16:52] and keep only the parts you do [16:52] you don't need to rely on Merge-o-Matic to have the merge ready for you to apply [16:52] you can merge from testing, unstable, experimental as you like [16:52] or the branch of anyone else in the same way [16:53] you have a version control system so you can just "bzr revert" if you get in to a strange situation, rather than having to blow away your workspace and unpack the source package again like you had to sometimes before [16:53] and plenty more as well [16:54] there's loads of opportunity for automating tasks and the like now, so if you have an idea for something like that I would be happy to help you implement it [16:54] and I'm keen that the tools are usable, so if you find something that is too hard or doesn't make sense, please file a bug [16:55] any last questions? [16:55] There are are 5 minutes remaining in the current session. [16:58] ok, let's call it a day and go make lucid even better :-) [16:58] thanks all === 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 === yofel_ is now known as yofel === starshiptrooper is now known as apachelogger === mohi1 is now known as mohi_away === mohi_away is now known as mohi1 [21:02] james_w: are you still around? [21:02] yeah === mohi1 is now known as mohi_away === mohi_away is now known as mohi1 === mohi1 is now known as mohi_away === mohi_away is now known as mohi1 === janito_ is now known as joaopinto_ === mohi1 is now known as mohi_away === mohi_away is now known as mohi1