/srv/irclogs.ubuntu.com/2008/08/15/#ubuntu-classroom.txt

nhandlerPlease modify your copy of 01_kubuntu_fix_etc_sensors_conf.diff to match my patch.00:00
LaneyQUESTION: Debian have bumped to libsensors4. Shouldn't we investigate this patch more closely as it looks tied to libsensors3?00:01
nhandlerLaney: That is a very good point.00:01
nhandlerIf you look at the changelog, you will see that Richard Johnson (nixternal) was the one who made this change00:02
nhandlerIf you were doing this merge for real, you would want to talk to Richard as well as look at Launchpad Bug #194103 to verify that this change is still needed.00:03
ubot5Launchpad bug 194103 in ksensors "ksensors is not finding k8sensors so it is no longer reporting cpu core temps" [Medium,Fix released] https://launchpad.net/bugs/19410300:03
nhandlerI have already taken care of this, and the change is still needed.00:03
nhandlerHowever, we need to modify the patch slightly to allow it to be applied to the modified file00:03
nhandlerDid that answer your question?00:04
LaneyI trust you ;)00:04
Laney(yes)00:04
nhandlerNow that we know all of the changes we want are present, we need to document these changes in debian/changelog.00:04
nhandlerEnter 'dch -e' to edit the changelog. You should see an entry that resembles this: http://paste.ubuntu.com/37315/00:04
nhandlerIf anyone gets any errors when they run that command, it is most likely because you do not have devscripts installed.00:05
nhandlerThere are a few things you should notice about the changelog entry. First, on the first line, it says 'intrepid'. This is because Ubuntu 8.10, Intrepid Ibex, is the current development release of Ubuntu. Second, the last line of the entry should have your name and email address.00:06
nhandlerBefore we can finish this changelog entry, we need to create a bug report on https://launchpad.net/. Somebody has already done this, and you can view the report here: https://bugs.launchpad.net/ubuntu/+source/ksensors/+bug/254660. Please refrain from uploading the patches you will produce in a little bit to this bug report. I will take care it so that we don't have everyone in this channel uploading their patch. However, you do want00:08
nhandlerto copy the bug number, 254660, from the report.00:08
ubot5Launchpad bug 254660 in ksensors "Please merge ksensors-0.7.3-16(universe) from debian unstable" [Wishlist,Confirmed]00:08
nhandlerNow, go back to the changelog, and edit the line that says "* Merge from debian unstable, remaining changes:" to say "* Merge from debian unstable, remaining changes (LP: #254660):". The '(LP: #254660)' part will cause the bug to be marked as 'Fix Released' once the patch has been uploaded.00:08
nhandlerWe now need to document what Ubuntu changes we kept. These are the Ubuntu changes that have not been added upstream in Debian, but are still needed.00:09
nhandlerWe now need to document what Ubuntu changes we kept. These are the Ubuntu changes that have not been added upstream in Debian, but are still needed.00:10
nhandlerThe Ubuntu changes that you need to include are:00:10
nhandlerAdd quilt as a Build-Depends for patch management00:10
nhandlerModify debian/menu to install in kmenu/utilities instead of kmenu/system00:10
nhandlerAdd 01_kubuntu_fix_etc_sensors_conf.diff to have ksensors use /etc/sensors3.conf instead of sensors.conf00:10
nhandlerAdd dh_icons to debian/rules00:10
nhandlerUpdate debian/rules for patch and unpatch00:10
nhandlerAside from the Ubuntu changes that we kept, we also introduced a brand new one.00:13
nhandlerThis change was the one from james_w that we added in debian/rules to allow us to build the package00:13
nhandlerWe need to make sure we add something like "admin/config.{sub,guess} are removed by libtool, copy them back to allow this package to be built again."00:14
nhandlerOnce you make these changes, please upload you changelog file to http://paste.ubuntu.com/, and paste a link in #ubuntu-classroom-chat.00:14
nhandlerYou can view my debian/changelog entry here: http://paste.ubuntu.com/37569/00:16
nhandlerThe only thing left to do now is generate the patch. First, we have to build the source package. To do this, type 'debuild -S'. If you don't have a GPG key, you can do 'debuild -S -us -uc'.00:16
nhandlerThis will create a file called ksensors_0.7.3-16ubuntu1.dsc. We now need to make sure that our new version of the package builds in a clean intrepid environment.00:21
nhandlerI usually use pbuilder to do this. You can read https://wiki.ubuntu.com/PbuilderHowto to learn about creating an intrepid pbuilder chroot.00:22
nhandlerIf you already have an intrepid pbuilder chroot created, you can run this command to try and build our new version of ksensors:00:22
nhandlersudo pbuilder build ~/Merges/ksensors/ksensors_0.7.3-16ubuntu1.dsc00:22
nhandlerHopefully, james_w's fix should allow pbuilder to build the package without any errors00:25
* james_w crosses his fingers00:26
nhandlerIf it builds successfully, you should end up with a .deb file for ksensors in /var/cache/pbuilder/result00:26
nhandlerOnce it finishes building, we have to generate 2 debdiff files. One will show the changes between the Debian version, 0.7.3-16, and this one, 0.7.3-16ubuntu1. The second one will show the changes between the last Ubuntu version, 0.7.3-15ubuntu2, and this one, 0.7.3-16ubuntu1. You can generate the Debian->Ubuntu debdiff by running this command from ~/Merges/ksensors:00:27
nhandlerWell, it looks like the fix still didn't work. We are most likely missing a Build-Depends in debian/control. pbuilder produces this error "/bin/sh: ifneq: not found"00:29
nhandlerWe won't worry about this, and we will assume that it built successfully.00:30
nhandlerThe command to generate the Debian->Ubuntu debdiff is:00:30
nhandlerdebdiff ksensors_0.7.3-16.dsc ksensors_0.7.3-16ubuntu1.dsc > ksensors_0.7.3-16ubuntu1.debdiff00:30
nhandlerThis is where many people accidentally make mistakes when performing a merge. They simply attach the debdiff to the bug report without even looking at it. You should ALWAYS open up the debdiff, and verify that it only contains the changes you want. For the Debian->Ubuntu debdiff, all of the changes you see should be listed in debian/changelog.00:31
james_wnhandler: the "ifneq" line shouldn't be indented00:32
nhandlerjames_w: It must have gotten indented when I was copying and pasting. I'm rebuilding it now00:34
nhandlerBack to the lesson, after verifying that the debdiff had the correct changes, you would then attach that patch to the bug report that we made earlier.00:34
nhandlerYou can generate the Ubuntu->Ubuntu debdiff by running this command from ~/Merges/ksensors:00:35
nhandlerdebdiff ksensors_0.7.3-15ubuntu2.dsc ksensors_0.7.3-16ubuntu1.dsc > ksensors_0.7.3-16ubuntu1.debdiff00:35
nhandlerYou might be wondering why we have to generate an Ubuntu->Ubuntu debdiff. The reason for this is because in some instances, the Ubuntu->Ubuntu debdiff is smaller than the Debian->Ubuntu debdiff. This makes it easier to check for mistakes, and then sponsor. This usually happens when the most recent Ubuntu batch of changes was very large, and the most recent Debian version introduced very little changes.00:35
nhandlerAfter verifying that the Ubuntu->Ubuntu debdff only contains the changes you want, you would then attach that patch to the bug report as well.00:37
nhandlerThis step isn't required, but it is still a good thing to do. You should add a comment in the bug report on Launchpad, that contains the debian/changelog entry that we made. This allows a person who is reviewing the merge to quickly figure out what Ubuntu changes were kept in the merge.00:37
nhandlerThe last step is to add our bug to the sponsorship queue (https://wiki.ubuntu.com/MOTU/Sponsorship/SponsorsQueue). Once it is in the queue, a MOTU will review our patch. If it is acceptable, he/she will upload it.00:38
nhandlerTo add our bug to the queue, set the Status to 'Confirmed', and make sure it isn't assigned to anybody. Now, we need to subscribe, not assign, 'ubuntu-universe-sponsors' to the bug since the package is in Universe. If it had been in main or restricted, we would subscribe 'ubuntu-main-sponsors' instead.00:39
nhandlerAfter you have done that, I would suggest adding a comment on DaD that says 'Bug #254660'. This makes it easier for other people to quickly figure out what packages still need to be merged/synced.00:39
nhandlerNow, you are done with the merge!00:40
nhandlerAt this point, I would like to apologize. This lesson did not go nearly as smooth as I originally intended.00:41
nhandlerI still hope that at least some of you learned something from listening to it.00:41
medo_thanks a lot it was really helpfull and enjoyable00:42
nhandlerI gave a similar lecture a while ago. You can find the IRC log on my wiki. Feel free to read through it if you are interested. https://wiki.ubuntu.com/Cheater7/Lectures/Merges_080613.00:42
nhandlerDoes anyone have any questions?00:43
medo_Nop00:44
nhandlerIf you have any interest at all in merging packages. Please feel free to ask me for help.00:44
nhandlerWell, if nobody has any more questions, I guess the lesson on merging packages from Debian is over.00:46
james_wthanks a lot nhandler00:48
james_wI'll post logs shortly or tomorrow morning00:48
nhandlerThat is fine james_w.00:53
=== Moot2 is now known as MootBot
Traveler7irc?20:23

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