My experiences at Mini Debconf Pune 2010 (Day 2)

Posted: August 15, 2010 in computing, Debian, Internet, Systems/Network Administration

Morning Session 8/8/2010.
—————————————-

I woke up a bit early and reached the venue at around 7.50 PM as Praveen had scheduled another session of Debian Packaging at around 8.00 PM to around 10.00 PM and I wanted to really learn the Packaging Part as I want to start contributing to Debian straight way.

Debian GNU/Linux Packaging session
——————————————————–

The morning session started with a session by Praveen on how to Install the lekhonee-gnome package by the Autotools method.

a) Download the latest stable source of lekhonee

——————————————————————————————————————–
obadiah@wisdom:~/Downloads$ ll lekhonee-gnome-0.11.tar.bz2
-rw-r–r–. 1 obadiah obadiah 195930 Aug 11 02:45 lekhonee-gnome-0.11.tar.bz2
obadiah@wisdom:~/Downloads$
——————————————————————————————————————–

b) Use tar -xvjf lekhonee-gnome-0.11.tar.bz2 command to untar the .tar.bz2 file.

———————————————————————————————————————–
obadiah@wisdom:~/Downloads$ tar -jxvf lekhonee-gnome-0.11.tar.bz2
lekhonee-gnome-0.11/
lekhonee-gnome-0.11/missing
lekhonee-gnome-0.11/Makefile.am
lekhonee-gnome-0.11/config.h.in
lekhonee-gnome-0.11/aclocal.m4
lekhonee-gnome-0.11/INSTALL
lekhonee-gnome-0.11/vapi/
lekhonee-gnome-0.11/vapi/Makefile.am
lekhonee-gnome-0.11/vapi/Makefile.in
lekhonee-gnome-0.11/vapi/config.vapi
lekhonee-gnome-0.11/vapi/gtkspell-2.0.vapi
lekhonee-gnome-0.11/Makefile.in
lekhonee-gnome-0.11/intltool-extract.in
lekhonee-gnome-0.11/intltool-merge.in
lekhonee-gnome-0.11/data/
lekhonee-gnome-0.11/data/lekhonee-gnome.desktop.in.in
lekhonee-gnome-0.11/data/Makefile.am
lekhonee-gnome-0.11/data/lekhonee-gnome.desktop.in
lekhonee-gnome-0.11/data/Makefile.in
lekhonee-gnome-0.11/data/icons/
lekhonee-gnome-0.11/data/icons/Makefile.am
lekhonee-gnome-0.11/data/icons/Makefile.in
lekhonee-gnome-0.11/data/icons/lekhonee-gnome.png
lekhonee-gnome-0.11/ui/
lekhonee-gnome-0.11/ui/Makefile.am
lekhonee-gnome-0.11/ui/list.png
lekhonee-gnome-0.11/ui/Makefile.in
lekhonee-gnome-0.11/ui/draft.png
lekhonee-gnome-0.11/ui/insert-image.png
lekhonee-gnome-0.11/ui/new.ui
lekhonee-gnome-0.11/ui/link.png
lekhonee-gnome-0.11/ui/p.png
lekhonee-gnome-0.11/ui/download_theme.png
lekhonee-gnome-0.11/ui/internet.png
lekhonee-gnome-0.11/ChangeLog
lekhonee-gnome-0.11/NEWS
lekhonee-gnome-0.11/configure.ac
lekhonee-gnome-0.11/po/
lekhonee-gnome-0.11/po/uk.po
lekhonee-gnome-0.11/po/POTFILES.in
lekhonee-gnome-0.11/po/es.po
lekhonee-gnome-0.11/po/POTFILES.skip
lekhonee-gnome-0.11/po/ps.po
lekhonee-gnome-0.11/po/sr.po
lekhonee-gnome-0.11/po/pl.po
lekhonee-gnome-0.11/po/zh_TW.po
lekhonee-gnome-0.11/po/sr@latin.po
lekhonee-gnome-0.11/po/bb.po
lekhonee-gnome-0.11/po/nl.po
lekhonee-gnome-0.11/po/hu.po
lekhonee-gnome-0.11/po/de.po
lekhonee-gnome-0.11/po/ru.po
lekhonee-gnome-0.11/po/da.po
lekhonee-gnome-0.11/po/fr.po
lekhonee-gnome-0.11/po/Makefile.in.in
lekhonee-gnome-0.11/po/pt_BR.po
lekhonee-gnome-0.11/po/zh_CN.po
lekhonee-gnome-0.11/po/it.po
lekhonee-gnome-0.11/po/hi.po
lekhonee-gnome-0.11/po/bn_IN.po
lekhonee-gnome-0.11/configure
lekhonee-gnome-0.11/depcomp
lekhonee-gnome-0.11/mkinstalldirs
lekhonee-gnome-0.11/COPYING
lekhonee-gnome-0.11/README
lekhonee-gnome-0.11/intltool-update.in
lekhonee-gnome-0.11/AUTHORS
lekhonee-gnome-0.11/install-sh
lekhonee-gnome-0.11/src/
lekhonee-gnome-0.11/src/LekhoneeOperations.vala
lekhonee-gnome-0.11/src/pref_dialog.vala
lekhonee-gnome-0.11/src/LekhoneeDialogs.vala
lekhonee-gnome-0.11/src/account_action.c
lekhonee-gnome-0.11/src/Makefile.am
lekhonee-gnome-0.11/src/edit_account.vala
lekhonee-gnome-0.11/src/LekhoneeOperations.c
lekhonee-gnome-0.11/src/account_widget.c
lekhonee-gnome-0.11/src/pref_dialog.c
lekhonee-gnome-0.11/src/lekhonee_gnome_vala.stamp
lekhonee-gnome-0.11/src/hig_table.vala
lekhonee-gnome-0.11/src/LekhoneeMain.c
lekhonee-gnome-0.11/src/Makefile.in
lekhonee-gnome-0.11/src/Wordpress.vala
lekhonee-gnome-0.11/src/LekhoneeMain.vala
lekhonee-gnome-0.11/src/web_url.c
lekhonee-gnome-0.11/src/accounts.c
lekhonee-gnome-0.11/src/account_action.vala
lekhonee-gnome-0.11/intltool-update.in
lekhonee-gnome-0.11/AUTHORS
lekhonee-gnome-0.11/install-sh
lekhonee-gnome-0.11/src/
lekhonee-gnome-0.11/src/LekhoneeOperations.vala
lekhonee-gnome-0.11/src/pref_dialog.vala
lekhonee-gnome-0.11/src/LekhoneeDialogs.vala
lekhonee-gnome-0.11/src/account_action.c
lekhonee-gnome-0.11/src/Makefile.am
lekhonee-gnome-0.11/src/edit_account.vala
lekhonee-gnome-0.11/src/LekhoneeOperations.c
lekhonee-gnome-0.11/src/account_widget.c
lekhonee-gnome-0.11/src/pref_dialog.c
lekhonee-gnome-0.11/src/lekhonee_gnome_vala.stamp
lekhonee-gnome-0.11/src/hig_table.vala
lekhonee-gnome-0.11/src/LekhoneeMain.c
lekhonee-gnome-0.11/src/Makefile.in
lekhonee-gnome-0.11/src/Wordpress.vala
lekhonee-gnome-0.11/src/LekhoneeMain.vala
lekhonee-gnome-0.11/src/web_url.c
lekhonee-gnome-0.11/src/accounts.c
lekhonee-gnome-0.11/src/account_action.vala
lekhonee-gnome-0.11/src/account_widget.vala
lekhonee-gnome-0.11/src/Wordpress.c
lekhonee-gnome-0.11/src/LekhoneeDialogs.c
lekhonee-gnome-0.11/src/hig_table.c
lekhonee-gnome-0.11/src/accounts.vala
lekhonee-gnome-0.11/src/web_url.vala
lekhonee-gnome-0.11/src/edit_account.c
————————————————————————————-

c) List the contents of the lekhonee-gnome-0.11 directory.

—————————————————————————————–
obadiah@wisdom:~/Downloads$ ll lekhonee-gnome-0.11
total 504
-rw-r–r–. 1 obadiah obadiah 66691 Jun 24 11:33 aclocal.m4
-rw-r–r–. 1 obadiah obadiah 38 Apr 6 00:28 AUTHORS
-rw-r–r–. 1 obadiah obadiah 32918 Jun 3 14:30 ChangeLog
-rw-r–r–. 1 obadiah obadiah 2005 Jun 24 11:33 config.h.in
-rwxr-xr-x. 1 obadiah obadiah 234980 Jun 24 11:33 configure
-rw-r–r–. 1 obadiah obadiah 2230 Jun 24 11:33 configure.ac
-rw-r–r–. 1 obadiah obadiah 35147 Apr 5 11:53 COPYING
drwxr-xr-x. 3 obadiah obadiah 4096 Jun 24 14:10 data
-rwxr-xr-x. 1 obadiah obadiah 18615 Apr 8 01:10 depcomp
-rw-r–r–. 1 obadiah obadiah 15578 Apr 8 01:10 INSTALL
-rwxr-xr-x. 1 obadiah obadiah 13663 Apr 8 01:10 install-sh
-rw-r–r–. 1 obadiah obadiah 0 Apr 8 01:10 intltool-extract.in
-rw-r–r–. 1 obadiah obadiah 0 Apr 8 01:10 intltool-merge.in
-rw-r–r–. 1 obadiah obadiah 0 Apr 8 01:10 intltool-update.in
-rw-r–r–. 1 obadiah obadiah 215 Apr 5 14:43 Makefile.am
-rw-r–r–. 1 obadiah obadiah 22941 Jun 24 11:33 Makefile.in
-rwxr-xr-x. 1 obadiah obadiah 11419 Apr 8 01:10 missing
-rwxr-xr-x. 1 obadiah obadiah 3538 Apr 8 01:10 mkinstalldirs
-rw-r–r–. 1 obadiah obadiah 0 Apr 5 12:05 NEWS
drwxr-xr-x. 2 obadiah obadiah 4096 Jun 24 14:11 po
-rw-r–r–. 1 obadiah obadiah 284 Apr 6 11:59 README
drwxr-xr-x. 2 obadiah obadiah 4096 Jun 24 14:10 src
drwxr-xr-x. 2 obadiah obadiah 4096 Jun 24 14:11 ui
drwxr-xr-x. 2 obadiah obadiah 4096 Jun 24 14:11 vapi
obadiah@wisdom:~/Downloads$
————————————————————————————-

d) Open the README file to check for the libraries required to install lekhonee-gnome.

————————————————————————————-
obadiah@wisdom:~/Downloads/lekhonee-gnome-0.11$ cat README
This is the Gnome frontend for Lekhonee.
The icon for link (link.png) is taken from http://en.wikipedia.org/wiki/File:Gnome-insert-link.svg and is licensed as described there.

https://fedorahosted.org/lehonee

Libraries required:

libxml
libsoup
gtksourceview2
gtkspell2
webkit-1.0

obadiah@wisdom:~/Downloads/lekhonee-gnome-0.11$
————————————————————————————————————————

e) Use the ./confgure, make, make install’ command to compile lekhonee-gnome from souce.

One of the hiccups I noticed when I compiled lekhonee-gnome from scratch was it did not contain the gee.h header. This was resolved by searching for the libgee debian package and installing it.

—————————————————————————-
obadiah@wisdom:~$ apt-cache search gee
.
.
.
libgee-dev – GObject based collection library (development files)
libgee2-dbg – GObject based collection library – library symbols
libgee2 – GObject based collection library
.
.
.
obadiah@wisdom:~$
————————————————————————————————

f) Now use the apt-get install command to install the libgee libraries.

obadiah@wisdom:~$ sudo apt-get install libgee-dev libgee2-dbg libgee2

———————————————————————————————————-
Now follow the autotools method ./configure, make, make install procedure and lekhonee-gnome-0.11 should be installed on your system withut any issues.

Packaging lekhonee-gnome-0.11 for Debian
——————————————————————

Once the Autools method of Installation was compete, we move into how to package lekhonee-gnome-0.11 for Debian.

1) The first step involved editing the README file and adding libgee as one of the libraries required for installation of lekhonee- gnome-0.11 on Debian.

2) Now use dh_make is a tool to convert a regular source code package into one formatted according to the requirements of the Debian Policy

————————————————————————–
obadiah@wisdom:~/Downloads/lekhonee-gnome-0.11$ dh_make -f ../lekhonee-gnome-0.11.tar.bz2
—————————————————————————

[ Note the path of the original source provided as a argument to lekhonee-gnome-0.11.tar.bz2 ]

This will prompt you to choose the type of package.
————————————————————————————————–
Type of package: single binary, indep binary, multiple binary, library, kernel module, kernel patch or cdbs?
[s/i/m/l/k/n/b] s ————————————————————————————————-

Choose ‘s’ for single Binary

Once this is done you will be prompted to enter the Maintainer Name,
Email Address, Date, Package Name, Version, License, Type of package
etc.

——————————————————————————————————-
Maintainer name : Vivek Cherian
Email-Address : vivekcherian@gmail.com
Date : Sun, 08 Aug 2010 22:24:11 +0530
Package Name : lekhonee-gnome
Version : 0.11
License : GPL V2
Using dpatch : no
Type of Package : Single
Hit to confirm:
Done. Please edit the files in the debian/ subdirectory now. lekhonee-gnome
uses a configure script, so you probably don’t have to edit the Makefiles.

3) Once this is done check out the ‘debian’ directory created inside
the lekhonee-gnome-0.11 directory with the ls command.
————————————————————————————————————————-
obadiah@wisdom:~/lekhonee-gnome-0.11$ ls

aclocal.m4 configure.ac INSTALL Makefile.am po
AUTHORS COPYING install-sh Makefile.in README
ChangeLog data intltool-extract.in missing src
config.h.in debian intltool-merge.in mkinstalldirs ui
configure depcomp intltool-update.in NEWS vapi
—————————————————————————————————————————

4) Now change into the debian directory with the cd command

obadiah@wisdom:~/lekhonee-gnome-0.11$ cd debian/

——————————————————————————————————
obadiah@wisdom:~/lekhonee-gnome-0.11/debian$ ls

changelog emacsen-startup.ex manpage.xml.ex README.source
compat init.d.ex menu.ex rules
control lekhonee-gnome.cron.d.ex postinst.ex source
copyright lekhonee-gnome.default.ex postrm.ex watch.ex
docs lekhonee-gnome.doc-base.EX preinst.ex
emacsen-install.ex manpage.1.ex prerm.ex
emacsen-remove.ex manpage.sgml.ex README.Debian

obadiah@wisdom:~/lekhonee-gnome-0.11/debian$
——————————————————————————————–

5) Remove the *.ex files which are basically example files.

———————————————————————————————
obadiah@wisdom:~/lekhonee-gnome-0.11/debian$ rm *.ex
obadiah@wisdom:~/lekhonee-gnome-0.11/debian$ ls
changelog control docs README.Debian rules
compat copyright lekhonee-gnome.doc-base.EX README.source source
————————————————————————————————–

6) Once this is done change one directory back up into the lekhonee-gnome-0.11
directory.
———————————————————————————————————————
obadiah@wisdom:~/lekhonee-gnome-0.11$ pwd
/home/obadiah/lekhonee-gnome-0.11
aclocal.m4 config.log data intltool-extract.in Makefile.in README
AUTHORS config.status debian intltool-merge.in missing src
ChangeLog configure depcomp intltool-update.in mkinstalldirs stamp-h1
config.h configure.ac INSTALL Makefile NEWS ui
config.h.in COPYING install-sh Makefile.am po vapi
————————————————————————————————————-

7) Now issue the dpkg-buildpackage -uc -us -sa commmand as follows

————————————————————————————————————-
obadiah@wisdom:~/lekhonee-gnome-0.11$ dpkg-buildpackage -uc -us -sa
————————————————————————————————————-

8 ) Now move up one more directory using the cd.. command and list the contents
with the ls command as follows.
————————————————————————————————————-
obadiah@wisdom:~$ ls
Desktop lekhonee-gnome-0.11 Music
Documents lekhonee-gnome_0.11-1.debian.tar.gz Pictures
Downloads lekhonee-gnome_0.11-1.dsc Public
hello-debhelper-2.5 lekhonee-gnome_0.11-1_i386.changes Templates
hello-debhelper_2.5-1.diff.gz lekhonee-gnome_0.11-1_i386.deb Videos
hello-debhelper_2.5-1.dsc lekhonee-gnome_0.11.orig.tar.bz2
hello-debhelper_2.5.orig.tar.gz lekhonee-gnome-0.11.tar.bz2
obadiah@wisdom:~$
————————————————————————————————————-

9) Now you can see the .deb package as lekhonee-gnome_0.11-1_i386.deb

10) Now issue the dpkg -i command to install the lekhonee-gnome package.

——————————————————————————————————– —
obadiah@wisdom:~$ sudo dpkg -i lekhonee-gnome_0.11-1_i386.deb
————————————————————————————————————–

11) You can also use the lintian package to test if it has any bugs and policy violations.

Afternoon Session on 8/8/2010.
———————————————–

This was the most boring session where the CDAC team presented a spineless presentation of BOSS. The BOSS team did not even know where the Bug Tracker System of the BOSS project itself was located.

Praveen and Karthik was very diplomatic in putting questions across to the BOSS Team who were sweating to find answers to the questions posed by a Debian Developer and a Debian Maintainer.


On a question about the BOSS Team’s contribution to the upstream the answer was “BOSS was not designed for the upstream, but for the common people”. What a pathetic answer CDAC to a very genuine concern from the Debian community.

At this point Praveen intervened and once again pointed them to the Debian Derivatives Front Desk URL, the clueless BOSS team nodded thier head. God alone knows if they understood anything at all.

Evening session (8/8/2010).
————————————-
Once the conference was spared of the BOSS team, there was a Debian Keysigning Party in the evening where Karthik Mistry, Praveen A, Kushal Das, Abhijeet and myself did a Key Signing Party which a few students also joined.

Once the Conference was over Myself, Kartik, Praveen, Ramkrishna Reddy, Abhijeet, Vipul and myself went for for supper, where we had a lively discussion on everything from politics to corruption to FOSS to what not….

I slept that night in Ramakrishna Reddy’s house and boarded a Volo Bus from the Pune Bus Stand for Mumbai, the bus departed from Pune at around 8.30 AM on 9/8/2010 and I reached Mumbai by around 12.15 PM.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s