PkgUpdate

Revision 2 as of 2009-09-01 18:17:19

Clear message

Dev Week -- How to update a package -- didrocks -- Tue, Sep 1st, 2009

UTC

(02:00:30 PM) didrocks: I'll wait for a couple of minutes before beginning :)
(02:00:48 PM) didrocks: In the meanwhile, you can install a few packages:
(02:00:49 PM) didrocks: sudo apt-get install build-essential devscripts ubuntu-dev-tools debhelper diff patch quilt fakeroot lintian libtool gnome-common gnome-doc-utils gtk-doc-tools
(02:01:18 PM) didrocks: and ensure you have "deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted" in /etc/apt/sources.list (and then executes sudo apt-get update)
(02:03:27 PM) didrocks: DING DONG, it's time to get started and fire some package updates!
(02:03:49 PM) didrocks: just to know a little about the audience, who is ready to update some packages? (answer on #ubuntu-clasroom-chat) :)
(02:05:05 PM) didrocks: waow, some people there! For those who don't know the basics/can't practice, there will be a lot of copy/paste in pastebin so that you can follow the lesson :)
(02:05:42 PM) didrocks: you can follow the session and do what I type in a jaunty ubuntu box
(02:06:07 PM) didrocks: just ensure you installed and changed what I said earlier ^
(02:06:40 PM) didrocks: I will begin with a very generalist introduction so that people can follow what will be in this lesson
(02:07:11 PM) didrocks: <Quarth> didrock should I change jaunty for kamic?
(02:07:32 PM) didrocks: Quarth: no no, really, I adapted the lesson so that you can use jaunty :)
(02:07:50 PM) didrocks: so, just drop the "deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted" line
(02:08:05 PM) didrocks: ok, some introduction:
(02:08:08 PM) didrocks: As most of user want to live on the edge about what best the Open Source community has to offer, we are going to see how to update a package to offer the very last release to all ubuntu users.
(02:08:40 PM) didrocks: First, be warned that once a release is out and for all supported releases (jaunty soon!), we never update a package to a new software version (appart from backports repository and ppa, when requested).
(02:08:48 PM) didrocks: We only cherrypick bug and security fixes from a new release to adapt it an older version. This is intended to have as little breakage as possible.
(02:09:26 PM) didrocks: So, that why OpenOffice 3 didn't do it into Intrepid. On the contrary, Jaunty that I hope all of you use, have it :)
(02:10:02 PM) didrocks: do you have any queston about what can be elected as an update, and what can't?
(02:10:56 PM) didrocks: apparently, everyone knows, so, I'm going on :)
(02:11:09 PM) didrocks: Today, we are going to update gnome-terminal. We will see quickly what are the different steps we have to handle generally to update packages, but the best is, of course, to practice!
(02:11:46 PM) didrocks: Even if I use bzr-buildpackage now to work on, we will not use it today. The Unstoppable James Westby will give an introduction on this this week
(02:12:13 PM) didrocks: Also, this lesson is not intended to teach you how to package. For this, see the corresponding courses in last developpers week session (https://wiki.ubuntu.com/UbuntuDeveloperWeek). Don't forget also the excellent packaginguide: https://wiki.ubuntu.com/PackagingGuide.
(02:12:28 PM) didrocks: ell, ready? Let's download the current version of gnome-terminal:
(02:12:37 PM) didrocks: mkdir gnome-terminal && cd gnome-terminal && apt-get source gnome-terminal
(02:12:49 PM) didrocks: This will download the last release present in jaunty, which is 2.26.0.
(02:12:58 PM) didrocks: tell me on -chat when you are ready :)
(02:14:22 PM) didrocks: ok, most of people seems to be ready. Let's get into the source package: cd gnome-terminal-2.26.0
(02:14:36 PM) didrocks: To check if new release is available, if a debian/watch file is present, we just have to use: uscan --report --verbose.
(02:15:01 PM) didrocks: The output should be something like this: http://paste.ubuntu.com/262929/. You can see there that a new version is available and corresponds to 2.27.91
(02:15:38 PM) didrocks: <EagleScreen> QUESTION: in which package is scan command?
(02:15:49 PM) didrocks: EagleScreen: it's not scan, but _uscan_
(02:16:16 PM) didrocks: this one will be pull as a dep of devscripts (see before for compulsory package)
...