So, on July 31st 2011, it was exactly 10 years since I am a Debian
developer. What happened in the meantime? What lead me to this? What
turned this unskilled dude into a sometimes quite visible contributor
of one of the major free software projects?
If you're interested in that, please read on. Otherwise, well, this is
just yet another "bubulle talks about self" post and you can skip it.
Well, first of all, how did I end up being a DD?
And first of firsts, how did I end up not being a random user of
Windows, playing games on his desktop computer at work?
I am not a computer scientist, an "informaticien" as we sometimes say
in French (most often, what people who are not in computing stuff
say...thinking that all folks working more or less closely to
computers know everything about them).
I graduated with a PhD in
Materials science, in 1989 after conducting a research on "Influence
of Yttrium Oxide dispersion on the strength of titanium alloys", at
Onera, a French public research institution for aerospace and defence.
I was then hired, still at Onera (where I'm still working, 25 years
after starting my PhD work) to lead the Mechanical Testing Laboratory in the
Materials Science department.
So, my lab had many big machines
designed to conduct creep and fatigue tests often at interestingly
high temperatures such as 2000 C, on samples of various
materials that are used in aircrafts structures, engines, etc. or in
various space thingies (remember Herm s, the european shuttle?) or in
various "things that fly but just one way and you shouldn't be there
when they land".
So, we had computers handling data acquisition for these tests. So I
became involved with designing data acquisition setups, or even
programming data acquisition programs (one of mine, written in Forth,
ran all Onera creep tests until 2004 and successfully passed Y2K
because I knew that 2000 was a leap year. It could even pass 2100 as I
knew this is not a leap year..:-)
One day, I had to buy a modem in order to communicate with out italian
counterpart (CIRA) and exchange tests results. Then I had to learn how
modems work in MS-Dos(yeah...). Then, I discovered "online"
resources...indeed more that strange world that was then called "BBS"
(Bulletin Board Systems), those mysterious things ran by some happy
few who were using modems at their home place to communicate in
"forums" and everything related to technology.
PC-Board, Remote
Access, Fidonet, etc. became familiar to me these days, back in
1988-1990. So familiar that I ended up running my own BBS at home,
killing our phone bills and using very sophisticated techniques such as
US Robotics "High Speed Transfer" modems that could be used at
19200bps asymetrical for very high speed transfers of kilobytes and
kilobytes of useless MS-Dos "freeware" and "shareware".
Indeed, my
very first BBS didn't even have one of these: it was using a cheaper
V.22bis modem operating at 2400bps. I was waiting for my order of a
sophisticated HST modem to arrive from USA through obscure import
channels meant to circumvent the French telephone company regulations
that were forbidding the use of "unapproved" systems, in order to
protect the famous French Telephone System from interferences brought
by Bad American Material.
Bubulle System was born.
During those years, I discovered very interesting things: computers can
run together once you draw a wire between them. That's called Local
Area Network and you can even transfer data at 1Mbps between two
computers, assuming you don't forget to put terminating resistors at
the end of the line on these funny 10-baseT connectors at the back of
your home-assembled PC that was using 2MB of RAM (bought for very
cheap through the help of an American friend who was in touch with
some Chinese folks who were selling 256kb RAM sticks for half the
retail price....assuming you want to drive in a mysterious storing
place close to Charles de Gaulle airport or Eurodisney).
Hello Gordon. Yes, I know, we're still friends on Facebook and you're
probably still using that weird programming language which you were,
IIRC, the only person in the world to use.
2MB, that should be enough for barely anything, including running
*multitasking* software where, miracle, I could run two tasks at the
same time on my one and only PC at home. Miracle, I don't have to
shutdown my BBS if I want to read forums on my friends BBS. Yay for
Desqview/386! Multitasking for dummies
Still, I have to build one of these "networks" at home. Elizabeth
won't like that as it means one more box (home-made of course) in our
living room and some more wires. And why the hell is it running 24/7?
So that friends can visit the BBS, darling... And I can even
communicate with them: I write a message, I get an answer the day
after and so on. In one full week, we can have a great conversation
that would have taken *minutes* to have in the real life. Isn't this
the miracle of technlogy?
And, yes, this is a good reason for having
phone bills raising up to 500 Francs/month: people can "exchange"
programs through my BBS, that horrible white box running in the living
room. Often, these programs are written for free and some of them are
even given with "source code", which allows people to *modify* them.
And that even makes friends, you know? Imagine that some day we have
to move from one house to another: then I can just call out "who
wants to help bubulle moving?", and probably a dozen of (sometimes
scary but always nice and polite...and sometimes even showered) geeks
will pop up and happily carry boxes full of my vinyl LP collection all
day long. An entire world of friends.
"bubulle", you say, dear? What's that? That's my nickname. It was
invented by one of these friends, a really strange guy named Ren
Cougnenc who wrote this "free software" program anmed BBTH, which
allows you to use modems to connect to BBS, and even to those many
"Minitel" BBS we have in France, thanks to our wonderful world-leading
technology using V.23 communication.
Many people know me as "bubulle" because, you know, Perrier water has
bubbles and Ren likes Gaston Lagaffe fish companion who he named "bubulle".
Ren , I love you. You chose to leave this world back in 1998. We'll no
longer have our "p'tits midis" in Antony where you were showing me the
marvels of what's coming in next episode.
All this was around 1988 and about 1992, doing all these mysterious
things at home (between Jean-Baptiste and Sophie's diapers) while
still working with data acquisition MS-Dos machines at work.
How did this end up being a Debian Developer? You'll know in the next
episode..:-)
Linux 2.6.24, released more than three years ago, introduced two very
interesting features: PID and network namespaces. They
allow to create a process that does not share the same PID namespace
or the same network namespace than other processes. Those namespaces
are then inherited by the children (unless they are assigned new namespaces).
kill(2). Moreover,
the process that was created first in a namespace will get PID 1. If
it gets killed, the namespace is destroyed and all other processes
contained in this namespace are killed as well. systemd, a
system and service manager for Linux, targeted as a replacement for
the old SysV init, clone(2)
(search for CLONE_NEWPID).
UPDATED: In fact, systemd does not use PID namespaces but
cgroups to group processes together. There is no PID numbering here
but spawned processes are all enclosed into one cgroup and therefore
can be killed easily.
For example, here is the result of pstree -p inside a PID namespace:
root@guybrush:/# pstree -p bash(1) pstree(8) sleep(7)
sleep is 7. In the global namespace, it is 31762
instead. But it is the same processus!
root@guybrush:/# ps -eo pid,command grep sleep 31762 sleep 1000
debootstrap is used to build a new complete system
inside a directory and chroot allows to enter into this new
system. Tools like schroot can become handy if you need to do that often.
Unfortunately, you only get an isolated filesystem. When you start
launching daemons and mounting partitions, you need to keep track of
all your actions to undo them. Quitting the chroot will not kill any
daemon nor unmount any partition.
Extending an existing tool, like schroot to use PID and mount
namespaces seems the best way to prevent such problems. I have filed
bug #637870 for this purpose. However, this is not as
simple as it seems since schroot allows to run a process into an
existing session. When the session is a chroot, this is quite easy:
just chroot into the same root filesystem and launch the process
here. With other kind of namespaces, you need to use a new system
call, setns(), to change the current namespace of the running
process. However, some bits are still missing. First, the GNU C
Library does not implement the appropriate wrapper. Second, Linux (as
of 3.0) does not contain the support to change the PID namespace of a
running process yet.
Other tools exist, like lxc (aka Linux Containers). However, it
is more targeted at providing a complete container. I have reported
that lxc-execute is not able to spawn a standalone shell
but got no luck.
UPDATED: systemd ships with systemd-nspawn which was exactly
what I needed. However, it requires systemd. Otherwise, it seems
less basic than the alternative that I describe below (some sensible
mount points are setup, the console is correctly configured, signals
are correctly transmitted, ). If you use systemd, look at it!
chroot clone using namespaces is quite easy. The only
difficulty is the use of clone(2). Here is a sketch:
int main() pid_t pid; int ret; long stack_size = sysconf(_SC_PAGESIZE); void *stack = alloca(stack_size) + stack_size; /* New process with its own PID/IPC/NS namespace */ pid = clone(step2, stack, SIGCHLD CLONE_NEWPID CLONE_NEWIPC CLONE_NEWNS CLONE_FILES, NULL); /* Wait for the child to terminate */ while (waitpid(pid, &ret, 0) < 0 && errno == EINTR) continue; return WIFEXITED(ret)?WEXITSTATUS(ret):EXIT_FAILURE; static int step2(void *a) /* Mount /proc as an example */ mount("proc", "/proc", "proc", 0, ""); /* Chroot */ chroot("/srv/debian"); chdir("/"); /* Drop privileges */ setgid(1000); setgroups(0, NULL); setuid(1000); /* Exec shell */ execl("/bin/bash", "/bin/bash", NULL);
$ cat fstab proc /proc proc defaults 0 0 sys /sys sysfs defaults 0 0 /home /home none bind,rw 0 0 /dev/pts /dev/pts none bind,rw 0 0 /var/run /var/run tmpfs rw,nosuid,noexec,mode=755 0 0 /etc/resolv.conf /etc/resolv.conf none bind,ro 0 0 $ sudo jchroot -f fstab -n test /srv/debian/squeeze /bin/bash # hostname test # ps auxww USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.0 0.0 19480 1888 pts/1 S 15:18 0:00 /bin/bash root 3 0.0 0.0 16536 1184 pts/1 R+ 15:18 0:00 ps auxww # /etc/init.d/postgresql start Starting PostgreSQL 9.0 database server: main. # exit $ ps auxwwc grep postgres $
chroot(8). Anyone knows if this would have a
chance to be accepted?
Once upon a time, there was Deb and Ian. That was about exactly 18 years ago. We don t talk about the 0.939000 format any more, but they eventually settled on:
$ ar rc pkg_1.0_all.deb debian-binary control.tar.gz data.tar.gz $ hexdump -C pkg_1.0_all.deb head 00000000 21 3c 61 72 63 68 3e 0a 64 65 62 69 61 6e 2d 62 !<arch>.debian-b 00000010 69 6e 61 72 79 20 20 20 31 33 31 33 36 38 33 35 inary 13136835 00000020 32 39 20 20 31 30 30 36 20 20 32 30 30 20 20 20 29 1006 200 00000030 31 30 30 36 34 34 20 20 34 20 20 20 20 20 20 20 100644 4 00000040 20 20 60 0a 32 2e 30 0a 63 6f 6e 74 72 6f 6c 2e .2.0.control. 00000050 74 61 72 2e 67 7a 20 20 31 33 31 33 36 38 33 35 tar.gz 13136835 00000060 32 39 20 20 31 30 30 36 20 20 32 30 30 20 20 20 29 1006 200 00000070 31 30 30 36 34 34 20 20 31 33 39 31 20 20 20 20 100644 1391 00000080 20 20 60 0a 1f 8b 08 00 00 00 00 00 00 03 ed 59 ............Y 00000090 eb 6f db 36 10 f7 d7 f0 af b8 3a 5e 9b 74 b1 f5 .o.6......:^.t..
By then, systems were a.out(5), and everything was good. (Of course, if you look at the mtimes, you ll notice I faked this. But it s really equivalent to the real thing.
But oh horror! GNU binutils, not always everyone s friend, switched from using BSD style Unix Archiver libraries in ar(1) to SYSV style libraries on elf(5) systems:
$ ar rc on-elf debian-binary control.tar.gz data.tar.gz $ hexdump -C on-elf head 00000000 21 3c 61 72 63 68 3e 0a 64 65 62 69 61 6e 2d 62 !<arch>.debian-b 00000010 69 6e 61 72 79 2f 20 20 31 33 31 33 36 38 33 35 inary/ 13136835 00000020 32 39 20 20 31 30 30 36 20 20 32 30 30 20 20 20 29 1006 200 00000030 31 30 30 36 34 34 20 20 34 20 20 20 20 20 20 20 100644 4 00000040 20 20 60 0a 32 2e 30 0a 63 6f 6e 74 72 6f 6c 2e .2.0.control. 00000050 74 61 72 2e 67 7a 2f 20 31 33 31 33 36 38 33 35 tar.gz/ 13136835 00000060 32 39 20 20 31 30 30 36 20 20 32 30 30 20 20 20 29 1006 200 00000070 31 30 30 36 34 34 20 20 31 33 39 31 20 20 20 20 100644 1391 00000080 20 20 60 0a 1f 8b 08 00 00 00 00 00 00 03 ed 59 ............Y 00000090 eb 6f db 36 10 f7 d7 f0 af b8 3a 5e 9b 74 b1 f5 .o.6......:^.t..
Can you spot the difference?
Of course, ELF is what you want , so there is little choice. Unix Archiver libraries are system dependent, and no format has ever been normed, but DEB files use it as format so what is one to do?
$ GNUTARGET=a.out-i386-linux ar rc with-aout \ > debian-binary control.tar.gz data.tar.gz $ md5sum pkg_1.0_all.deb with-aout on-elf 248f78d42f8ca8f2a3560f9800b2bf01 pkg_1.0_all.deb 248f78d42f8ca8f2a3560f9800b2bf01 with-aout 09eca70c9b11b6b55bbadcab5c3201fb on-elf
OK, and what do I do on my Debian/m68k system?
ar(1) uses bfd, and GNU binutils can not only forcibly set the target emulation but also show them:
debian_m68k$ ar -h 2>&1 grep '^ar: supported targets'
ar: supported targets: elf32-m68k a.out-m68k-linux elf32-little elf32-big plugin srec symbolsrec verilog tekhex binary ihex trad-core
debian_i386$ ar -h 2>&1 grep '^ar: supported targets'
ar: supported targets: elf32-i386 a.out-i386-linux pei-i386 elf32-little elf32-big elf64-x86-64 elf32-x86-64 pei-x86-64 elf64-l1om elf64-k1om elf64-little elf64-big plugin srec symbolsrec verilog tekhex binary ihex trad-core
debian_i386$ ar -h 2>&1 grep '^ar: supported targets' # binutils-multiarch
ar: supported targets: elf32-i386 a.out-i386-linux pei-i386 elf32-little elf32-big elf64-alpha ecoff-littlealpha elf64-little elf64-big elf32-littlearm elf32-bigarm elf32-hppa-linux elf32-hppa elf64-x86-64 elf32-x86-64 elf64-l1om elf64-k1om elf64-ia64-little elf64-ia64-big pei-ia64 elf32-m68k a.out-m68k-linux coff-m68k versados ieee a.out-zero-big elf32-tradbigmips elf32-tradlittlemips ecoff-bigmips ecoff-littlemips elf32-ntradbigmips elf64-tradbigmips elf32-ntradlittlemips elf64-tradlittlemips elf32-powerpc aixcoff-rs6000 elf32-powerpcle ppcboot elf64-powerpc elf64-powerpcle aixcoff64-rs6000 aix5coff64-rs6000 elf32-s390 elf64-s390 elf32-shbig-linux elf32-sh-linux elf32-sh64-linux elf32-sh64big-linux elf64-sh64-linux elf64-sh64big-linux elf32-sparc a.out-sparc-linux elf64-sparc a.out-sunos-big pei-x86-64 elf32-m32r-linux elf32-m32rle-linux elf32-spu plugin srec symbolsrec verilog tekhex binary ihex trad-core
mirbsd_i386$ ar -h 2>&1 grep '^ar: supported targets'
ar: supported targets: elf32-i386 coff-a29k-big a.out.adobe aix5coff64-rs6000 a.out-zero-big a.out-mips-little epoc-pe-arm-big epoc-pe-arm-little epoc-pei-arm-big epoc-pei-arm-little coff-arm-big coff-arm-little a.out-arm-netbsd pe-arm-big pe-arm-little pei-arm-big pei-arm-little b.out.big b.out.little efi-app-ia32 efi-app-ia64 elf32-avr elf32-big elf32-bigarc elf32-bigarm elf32-bigarm-symbian elf32-bigarm-vxworks elf32-bigmips elf32-cr16c elf32-cris elf32-crx elf32-d10v elf32-d30v elf32-dlx elf32-fr30 elf32-frv elf32-frvfdpic elf32-h8300 elf32-hppa-linux elf32-hppa-netbsd elf32-hppa elf32-i370 elf32-i386-freebsd elf32-i386-vxworks elf32-i860-little elf32-i860 elf32-i960 elf32-ia64-hpux-big elf32-ip2k elf32-iq2000 elf32-little elf32-littlearc elf32-littlearm elf32-littlearm-symbian elf32-littlearm-vxworks elf32-littlemips elf32-m32r elf32-m32rle elf32-m32r-linux elf32-m32rle-linux elf32-m68hc11 elf32-m68hc12 elf32-m68k elf32-m88k elf32-mcore-big elf32-mcore-little elf32-mn10200 elf32-mn10300 elf32-msp430 elf32-nbigmips elf32-nlittlemips elf32-ntradbigmips elf32-ntradlittlemips elf32-openrisc elf32-or32 elf32-pj elf32-pjl elf32-powerpc elf32-powerpc-vxworks elf32-powerpcle elf32-s390 elf32-sh elf32-shbig-linux elf32-shl elf32-shl-symbian elf32-sh-linux elf32-shl-nbsd elf32-sh-nbsd elf32-sh64 elf32-sh64l elf32-sh64l-nbsd elf32-sh64-nbsd elf32-sh64-linux elf32-sh64big-linux elf32-sparc elf32-tradbigmips elf32-tradlittlemips elf32-us-cris elf32-v850 elf32-vax elf32-xstormy16 elf32-xtensa-be elf32-xtensa-le elf64-alpha-freebsd elf64-alpha elf64-big elf64-bigmips elf64-hppa-linux elf64-hppa elf64-ia64-big elf64-ia64-hpux-big elf64-ia64-little elf64-little elf64-littlemips elf64-mmix elf64-powerpc elf64-powerpcle elf64-s390 elf64-sh64 elf64-sh64l elf64-sh64l-nbsd elf64-sh64-nbsd elf64-sh64-linux elf64-sh64big-linux elf64-sparc elf64-tradbigmips elf64-tradlittlemips elf64-x86-64 mmo pe-powerpc pei-powerpc pe-powerpcle pei-powerpcle a.out-cris demo64 ecoff-bigmips ecoff-biglittlemips ecoff-littlemips ecoff-littlealpha coff-go32 coff-go32-exe coff-h8300 coff-h8500 a.out-hp300hpux a.out-i386 a.out-i386-bsd coff-i386 a.out-i386-freebsd a.out-i386-lynx coff-i386-lynx msdos a.out-i386-netbsd i386os9k pe-i386 pei-i386 coff-i860 coff-Intel-big coff-Intel-little ieee coff-m68k coff-m68k-un a.out-m68k-lynx coff-m68k-lynx a.out-m68k-netbsd coff-m68k-sysv coff-m88kbcs a.out-m88k-mach3 a.out-m88k-openbsd mach-o-be mach-o-le mach-o-fat coff-maxq pe-mcore-big pe-mcore-little pei-mcore-big pei-mcore-little pe-mips pei-mips a.out-newsos3 nlm32-alpha nlm32-i386 nlm32-powerpc nlm32-sparc coff-or32-big a.out-pc532-mach a.out-ns32k-netbsd a.out-pdp11 pef pef-xlib ppcboot aixcoff64-rs6000 aixcoff-rs6000 coff-sh-small coff-sh coff-shl-small coff-shl pe-shl pei-shl coff-sparc a.out-sparc-little a.out-sparc-linux a.out-sparc-lynx coff-sparc-lynx a.out-sparc-netbsd a.out-sunos-big sym a.out-tic30 coff-tic30 coff0-beh-c54x coff0-c54x coff1-beh-c54x coff1-c54x coff2-beh-c54x coff2-c54x coff-tic80 a.out-vax-bsd a.out-vax-netbsd a.out-vax1k-netbsd versados vms-alpha vms-vax coff-w65 coff-we32k coff-z8k elf32-am33lin elf32-ms1 srec symbolsrec tekhex binary ihex netbsd-core
Wow. While binutils share no single supported working target, they can be built multiarch, or (on MirBSD) with --enable-targets=all --enable-64-bit-bfd. Doesn t help if you want to stay portable: GNUTARGET=srec is common on all Debian (sid) binutils versions (single or multiarch), but errors out on older binutils. The a.out-* targets are not common. Sure, you could hack around things, but this is tedious. If you follow things or know me a little, you might already have guessed that I wouldn t let that stand.
pax(1) to the rescue. On MirBSD, we use paxtar, which has cpio(1) and tar(1) front-ends and supports multiple formats (4 cpio and 2 tar variants) and has already been extended a lot and is lovingly called paxmirabilis (mirabilos peace in Latin) it has options to anonymise archives: set uid and gid to zero, set mtime to zero, (for ustar) only write the numeric uid and gid to the archive, (for cpio formats) serialise inodes and device information, write content of hardlinked files only once (breaks partial extraction but saves a lot of space, e.g. 2 MiB off the Grml initrd.gz). And, recently, the ability to append a trailing slash to pathnames of ustar members which are directories (GNU tar does it and I thought some Debian utilities check for it). So why not (the -M dist and fakeroot set the uid/gid to 0)
$ find debian-binary control.tar.gz data.tar.gz \ > mircpio -oHar -Mdist >with-mircpio $ mirpax -w -M dist -f with-mirpax -x ar \ > debian-binary control.tar.gz data.tar.gz $ mirtar -M dist -A -cf with-mirtar \ > debian-binary control.tar.gz data.tar.gz $ GNUTARGET=a.out-i386-linux fakeroot ar rc with-aout-ar \ > debian-binary control.tar.gz data.tar.gz $ md5sum with-* a466e2fd57cdee141fe585a43245548f with-aout-ar a466e2fd57cdee141fe585a43245548f with-mircpio a466e2fd57cdee141fe585a43245548f with-mirpax a466e2fd57cdee141fe585a43245548f with-mirtar
Voil . I got it, and even appending is possible. It supports the BSD format with special focus on DEB files, and deals with long filenames, but not symbol or filename tables (used by ranlib(1) or strange formats, respectively, but since we don t create *.a files to use with some native linker/binder/loader, we don t need that anyway).
On extraction (oh, and listing!) it deals with SYSV style filenames as well.
$ mirtar tvf on-elf -rw-r--r-- 1 tg tg 4 Aug 18 16:05 debian-binary -rw-r--r-- 1 tg tg 1391 Aug 18 16:05 control.tar.gz -rw-r--r-- 1 tg tg 18135 Aug 18 16:05 data.tar.gz $ mirtar tvf with-aout -rw-r--r-- 1 tg tg 4 Aug 18 16:05 debian-binary -rw-r--r-- 1 tg tg 1391 Aug 18 16:05 control.tar.gz -rw-r--r-- 1 tg tg 18135 Aug 18 16:05 data.tar.gz
One of the real benefits is that you can use the front-ends interchangably for example, mirtar tzf foo.cpio.gz would work (which GNU tar can t do), and mircpio s ustar implementation, unlike GNU cpio s, is not horribly broken. Of course, there are some drawbacks: it s not GNU tar or GNU cpio, so there are absolutely zero --long-options. Some of their features are missing (but tar s -O is implemented now), so it s no replacement (but very well usable alongside it). The format called pax, committee-designed to replace ustar, isn t yet supported ironically, but that s on the TODO.
So, what do you think?
tg@frozenfish:~/Debs/dists/sid/wtf/Pkgs/mircpio $ ll *.deb -rw-r--r-- 2 tg freewrt 78140 Aug 17 11:04 mircpio_20110817-0wtf2_amd64.deb -rw-r--r-- 3 tg freewrt 72262 Aug 17 11:00 mircpio_20110817-0wtf2_i386.deb -rw-r--r-- 1 tg freewrt 67446 Aug 17 18:21 mircpio_20110817-0wtf2_m68k.deb
Should I upload this to Debian proper? As for the licence: 3-clause UCB (and 2-clause BSD, which is a subset of it), so no problem. I m asking because the other package which I had been using for a long time and not uploaded, jupp, got uploaded recently (during DebConf) on user input (people wondered why it did not yet exist in Debian proper). I guess the old saying if it s not in Debian, it doesn t exist holds true in many parts of the OSS world. It s up to date wrt. standards btw, and lintian-clean save for two pedantic-class warnings (no upstream changelog file, no homepage link) which aren t fulfillable (could link this wlog entry as homepage). If you know Alioth you re familiar with the software formerly known as SourceForge, formerly known as GForge, currently known as FusionForge. My employer both uses it and contributes to it, we run an adapted (mostly themed, prototyping new functions that often end up in FusionForge itself, and backporting functions from FF to our production codebase ) version.
I ve backported the extratabs plugin to appease project managers and other non-technical people while we move our codebase to FF 5.1, and I did so on an installed version of the plugin rather than the source because the latter was tightly integrated with rather heavy packaging style changes.
[ ] dh_builddeb # create fusionforge-plugin-extratabs binary package toplev=$$(pwd); cd plugins/fusionforge-plugin-extratabs; \ p=$$(print -r -- $$(sed -n '/^Package: /s///p' C/control head -1)); \ v=$$(print -r -- $$(sed -n '/^Version: /s///p' C/control head -1)); \ a=$$(print -r -- $$(sed -n '/^Architecture: /s///p' C/control head -1)); \ d=$$ p _$$ v _$$ a .deb; \ rm -f $$toplev/../$$d control.tar.gz data.tar.gz; \ (cd control; find . fgrep -v /.svn sort \ mircpio -oC512 -Hustar -M0x0B -Mgslash) gzip -n9 >control.tar.gz; \ (cd data; find . fgrep -v /.svn sort \ mircpio -oC512 -Hustar -M0x0B -Mgslash) gzip -n9 >data.tar.gz; \ mirtar -M dist -Acf $$toplev/../$$d debian-binary cont*gz dat*gz; \ rm -f control.tar.gz data.tar.gz; \ cd $$toplev; dpkg-distaddfile $$d non-free/devel optional
The hardest part of extending debian/rules with that was to get the autobuild and dpkg-distaddfile call right. This works, even though I d call it a temporary kludge. (No need to tell me I should have used && I know. And I only shell out to mksh(1) because the inner part was already there from before, when I still used ar(1). This was slightly edited for the wlog.) In the meanwhile, apt-extracttemplates can deal with SYSV style filenames in DEB files on Debian sid, but not on Kubuntu hardy, which some people are using as Desktop OS still
A very popular refrain on tech sites is that the high street cannot support multiple competing phone ecosystems. It s a reasonable position to take. Do phone stores want to train their employees on six or seven different OSes? Do consumers understand the differences, and should they need to? Do app developers want to rewrite their app six or seven times? The obvious answer to all of these is no . Stores only want to train their employees once, developers want to write their app once. Choice is bad, because choice is complicated. You can have it in any colour, so long as it s black.
The problem is, we need those competing efforts, for the entire market to increase in quality. Until the iPhone appeared on the market, Google s nascent mobile phone OS looked more like a poor man s Blackberry OS than what ended up shipping on the HTC Dream and later devices. Windows Phone 7 didn t ship with any multitasking at all and now the Mango update will be incorporating a multitasking model largely thieved from WebOS. iOS only just got support for updating the phone s firmware without being plugged into a host PC via USB, something which a few Android devices and all WebOS devices have always supported.
Consider, for comparison, the web browser market. It would be easiest if there was only one web browser but that browser would quickly stagnate and cause pain, the way Internet Explorer 6 did when it had almost the entire market. It wasn t until upstarts like Firefox and Opera and Chrome and more started showing off their unique ideas that the entire pack started improving including IE, with IE9 supporting most of the features that the competition introduced.
Every smartphone shipping today has something to offer that other devices don t and every smartphone OS shipping today has something to offer that other OSes don t. iOS has the widest app catalog. Android is Open Source (FSVO Open ). WebOS has the best multitasking, and Just Type . Windows Phone 7 offers a drastic new user interface paradigm. Blackberry OS is built for messaging tasks, and has the best sysadmin control. Symbian is well, okay, sometimes there s a time to let go but the same applies for web browsers too.
Smartphones are communication devices that people use every day of their lives, and every consumer has different needs we shouldn t try to push them into an ill-fitting category, just to satisfy ourselves that it s probably only possible for three mobile platforms to succeed in the mass-market . For some people, Blackberry OS really *is* the best choice, and no matter how much you pretend, an iPhone would enhance their lives. And as for the app question tough shit. Plenty of app developers only target iOS even though Android is overtaking in the market, and if they really want to reach as many people as possible, then use a cross-platform framework like PhoneGap or some of Xamarin s products. Single-ecosystem apps are a low-effort push to reach as many people possible with minimal investment, and the only way to satisfy that class of developer is to eliminate ALL competition in the marketplace iOS-only devs are this decade s IE6-only devs.
Everyone is entitled to their opinion, but I for one am sick of all the tales of doom and gloom that immediately surround any effort which isn t iOS or pure Android. We have a marketplace of ideas, which we should be celebrating, and not dumping on. I m eagerly awaiting delivery of my HP Pre 3, with all the unique possibilities it offers me which simply another Android device wouldn t have. And the big difference between WebOS and Nokia s Maemo/MeeGo efforts, for those who are still doubtful, is HP haven t spent years trying to deliberately sabotage the platform. Give it time. If I m wrong, the worst-case scenario is being lumbered with an awesome phone.
You might not know who Peter is because he s not very visible on Debian mailing lists. He s very active however and in particular on IRC. He was an admin of the OFTC IRC network at the time Debian switched from Freenode to OFTC. Nowadays he s a member of the Debian System Administration team who runs all the debian.org servers.
If you went to a Debconf you probably met him since he s always looking for new signatures of his GPG key. He owns the best connected key in the PGP web of trust. He also wrote caff a popular GPG key signing tool.
Raphael: Who are you?
Peter: I m Peter Palfrader, also known as weasel. I m in my early 30s, born
and raised in Innsbruck, Austria and am now living and working in
Salzburg, Austria. In my copious free time, other than help running
Debian s servers I also help maintaining the Tor project s infrastructure.
Away from the computer I enjoy reading fiction (mostly English language
Science Fiction and Fantasy), playing board games and going to the movies.
Weather permitting, I also occasionally do some cycling.
Raphael: How did you start contributing to Debian?
Peter: I installed my first Debian the week slink came out. That was Debian
2.1 for the youngsters, in early 1999. The one thing I immediately
liked about slink was that Debian s pppd supported RAS
authentication which my university s dial-up system required. No way
I d go back to SuSE 5.3 when I had working Internet with my Debian box. debcheck, still produces parts of the qa.d.o website, tho the relevance of
that nowadays is probably negligible.
While trying to learn more Perl earlier, I had written a program to
produce syntax highlighted HTML for code snippets in various languages.
I didn t really know what I was doing but it kinda worked, and probably
still does since I still get mail from users every now and then.
I figured that it would be really nice if people could just get my
software together with Debian. According to code2html s
Debian changelog the initial release of the package was done on a
weekday at 2:30 in the morning early in 2000, and if my memory serves me
correctly, shorty uploaded it shortly afterwards.
I started packaging a couple of other piece of software and in the same
year I sent my mail to the debian account managers to register my intent
to become a DD. No new developers where being accepted at that time
since the DAMs wanted to overhaul the entire process so I wasn t
surprised to not get any immediate reply. Of course what the silence
also meant was that the mail had been lost, but I only learned of that
later when I took all my courage to ask DAM about the status of
application a couple months later. Once that was sorted out I was
assigned an AM, did the usual dance, and got my account late in November
2000.
Raphael: Four years ago, the Debian System Administration team was a real bottleneck
for the project and personal conflicts made it almost impossible to
find solutions. You were eager to help and at some point you got
dropped as a new member in that team. Can you share your story and how
you managed the transition in the difficult climate at that time?
Peter: Ah, that was quite the surprise for an awful lot of people, me included.
Branden Robinson, who was our DPL for the 2005-2006 term, tried to get
some new blood added to DSA who were at the time quite divided. He
briefly talked to me on IRC some time in summer 2005, telling me I had
come recommended for a role on the sysadmin team . In the course of
these 15 minutes he outlined some of the issues he thought a new member
of DSA would face and asked me if I thought I could help. My reply was
cautiously positive, saying that I didn t want to step on anybody s toes
but maybe I could be of some assistance.
And that was the first and last of it, until some fine November day two
years later I got an email from Phil Hands saying I ve just added
you to the adm group, and added you to the debian-admin@d.o
alias. and welcome on board . *blink* What!?
My teammates at the time were James Troup (elmo), Phil Hands (fil),
Martin Joey Schulze and Ryan Murray (neuro).
The old team, while apparently not on good terms with one another, was
however still around to do heavy lifting when required. I still remember
when on my first or second day on the team two disks failed in the raid5
of ftp-master.debian.org aka ries. Neuro did the reinstall once new
disks had arrived at Brown University. I m sure I d have been way out
of my league had this job fallen to me.
Fortunately my teammates were all willing and able to help me find
whatever pieces of information existed that might help me learn how
debian.org does its stuff. Unfortunately a lot of it only existed in
various heads, or when lucky, in one of the huge mbox archives of the
debian-admin alias or list. Anyway, soon I was able to get my hands
dirty with upgrading from sarge to etch, which had been released about
half a year earlier.
Raphael: I know the DSA team has accomplished a lot over the last few years.
Can you share some interesting figures?
Peter: Indeed we have accomplished a lot. In my opinion the most important
of these accomplishment is that we re actually once again a team
nowadays. A team where people talk to one another and where nobody
should be a SPoF.
Since this year s debconf we are six people in the admin team: Tollef
Fog Heen (Mithrandir) and Faidon Liambotis (paravoid) joined the
existing members: Luca Filipozzi, Stephen Gran, Martin Zobel-Helas, and
myself. Growing a core team, especially one where membership comes with
uid0 on all machines, is not easy and that s why I m very glad we
managed to actually do this step.
I also think the infrastructure and our workflows have matured well over
the last four years.
We now have essential monitoring as a matter of course: Nagios not only
checks whether all daemons that should be running are in fact running,
but it also monitors hardware health of disks, fans, etc. where
possible. We are alerted of outstanding security updates that need to
be installed and of changes made to our systems that weren t then
explicitly acked by one of us.
We have set up a centralized configuration system, puppet, for some of
our configuration that is the same, or at least similar, on all our
machines.
Most, if not all, pieces of software, scripts and helpers that we use on
debian.org infrastructure is in publicly accessible git repositories.
We have good communication with other teams in Debian that need our
support, like the ftp folks or the buildd people.
As for figures, I don t think there s anything spectacular. As of the
time of our BoF at this year s DebConf, we take care of approximately
135 systems, about 100 of them being real iron, the other virtual
machines (KVM). They are hosted at over 30 different locations, tho we
are trying to cut down on that number, but that s a long and difficult
process.
We don t really collect a lot of other figures like web hits on
www.debian.org or downloads from the ftp archive. The web team might do
the former and the latter is pretty much impossible due to the
distributed nature of our mirrors, as you well know.
Raphael: The DSA team has a policy of eating its own dog food, i.e. you re trying to rely only on what s available in Debian. How does that work out and what are the remaining gaps?
Peter: Mostly Debian, the OS, just meets our needs. Sure, the update frequency
is a bit high, we probably wouldn t mind a longer release cycle. But on
the other hand most software is recent enough. And when it s not,
that s easy to fix with backports. If they aren t on backports.debian.org
already, we ll just put them there (or ask somebody else to prepare a
backport for us) and so everybody else benefits from that work too.
Some things we need just don t, and probably won t, exist in Debian.
These are mainly proprietary hardware health checks like HP s tools for
their servers, or various vendors programs to query their raid
controller. HP actually makes packages for their stuff which is very
nice, but other things we just put into /usr/local, or if we really need
it on a number of machines, package ourselves.
The push to cripple our installers and kernels by removing firmware was
quite annoying, since it made installing from the official media next to
impossible in some cases. Support for working around these limitations
has improved with squeeze so that s probably ok now.
One of the other problems is that especially on embedded platforms most
of the buildd work happens on some variation of development boards,
usually due to increased memory and hard disk requirements than the
intended market audience. This often implies that the kernel shipped
with Debian won t be usable on our own debian.org machines. This makes
keeping up with security and other kernel fixes way more error prone and
time intensive. We keep annoying the right people in Debian to add
kernel flavors that actually boot on our machines, and things are
getting better, so maybe in the future this will no longer be a problem.
Raphael: If you could spend all your time on Debian, what would you work on?
Peter: One of the things that I think is a bit annoying for admins that
maintain machines all over the globe is mirror selection. I shouldn t
have to care where my packages come from, apt-get should just fetch them
from a mirror, any mirror, that is close by, fast and recent. I don t
need to know which one it was.
We have deployed geodns for security.debian.org a while ago, and it
seems to work quite well for the coarse granularity we desired for that
setup, but geodns is an ugly hack (I think it is a layer violation), it
might not scale to hundreds or thousands of mirrors, and it doesn t play
well with DNSSEC.
What I d really like to see is Debian support apt s mirror method that
I think (and I apologize if I m wronging somebody) Michael Vogt implemented
recently. The basic idea is that you simply add deb
mirror://mirror.debian.org/ or something like that to your
sources.list, and apt goes and asks that server for a list of mirrors it
should use right now.
The client code exists, but I don t know how well tested it is. What is
missing is the server part. One that gives clients a mirror, or list of
mirrors, that are close to them, current, and carry their architecture.
It s probably not a huge amount of work, but at the same time it s also
not entirely trivial. If I had more time on my hands this is something
that I d try to do. Hopefully somebody will pick it up.
Raphael: What motivates you to continue to contribute year after year?
Peter: It s fun, mostly. Sure, there are things that need to be done regularly
that are boring or become so after a while, but as a sysadmin you tend
to do things once or twice and then seek to automate it.
DSA s users, i.e. DDs, constantly want to play with new services or
approaches to make Debian better and often they need our support or help
in their endeavors. So that s a constant flow of interesting
challenges.
Another reason is that Debian is simply where some of my friends are.
Working on Debian with them is interacting with friends.
I not only use Debian at debian.org. I use it at work, I use it on my
own machines, on the servers of the Tor project. When I was with OFTC
Debian is what we put on our machines. Being a part of Debian is one
way to ensure what Debian releases is actually usable to me,
professionally and with other projects.
Raphael: Is there someone in Debian that you admire for their contributions?
Peter: That s a hard one. There are certainly people who I respect greatly for
their technical or other contributions to Debian, but I don t want to
single anybody out in particular. I think we all, everyone who ever
contributed to Debian with code, support or a bug report, can be very
proud of what we are producing one of the best operating systems out
there.
No comment Liked this article? Click here. My blog is Flattr-enabled.
single-debian-patch option to debian/source/options so that a single Debian patch is generated, and include a patch header that points people interested in the individual changes to the public Git repository where they were originally done.
My reasoning for doing so was the following: most upstream developers will hardly care enough to come check the patches applied against their source in Debian, so it's not so important to have a clean source package with separated and explained patches. But then there is the people who will actually care about the patches: other distribution developers. Not imposing a specific VCS on them to review the patches applied in Debian is a nice thing to do.
Then I wrote a script called git-export-debian-patches (download, manpage), which was partly inspired by David Bremner's script. It exports all commits in the Debian packaging branch that do not touch files under debian/ and were not applied upstream to debian/patches. The script also creates an appropriate debian/patches/series files. The script is even smart enough to detect patches that were later reverted in the Debian branch and exclude them (and the commit that reverted them) from the patch list.
The advantage I see over gbp-pq is that I don't need to rebase (and thus lose history) to have a clean set of patches. The advantage over the gitpkg quilt-patches-deb-export-hook hook is that I don't need to explicitly say which ranges I want: every change that is merged in master, was not applied upstream and was not reverted gets listed as a patch. To be honest I don't have any experience with either gbp-pq or gitpkg and these advantages were based on what I read, so please leave a (nice ;-)) comment if I said something stupid.
I am looking forward to receive feedback about the tool, specially about potential corner cases in which it would break. For now I have tested it in a package with simple changes agains upstream source, and it seems fine.
git add -p is one of my favourite git features. It lets you selectively
add the local changes hunk by hunk to the staging area. This is
especially nice if you want to commit one change in a file, but not a
second one, you also already did.
Recently I noticed that
you can also selectively revert changes already in the staging area
using git reset -p HEAD. The user interface is exactly
the same as for git add -p.
Today I discovered another selective undo in git by just trying it out
of curiosity if that works, too: Undoing local changes selectively
using git checkout -p. Maybe less useful than those
mentioned above, but nevertheless most times quicker than firing up
your favourite editor and undoing the changes manually.
Another nice git feature which I discovered by accidentially using it
(this time even unwittingly) is git checkout - which
behaves like cd -, just for branches instead of
directories, i.e. it switches back to the previously checked out
branch. Very useful for quickly changing between two branches again
and again.
Wondering what is going on with the port of Debian to the Minix 3 microkernal? Here's an update.
dpkg Ported
Well, the big news as I mentioned in my last post is that dpkg has been successfully ported. I haven't sent the patches to the maintainers just yet as they need review and clean up but I will do that ASAP. The architecture name is defined as minix_i386. (There is no k because I am using the Minix libc as well as the kernel.) I am currently targetting squeeze.
A Maze of Twisty Dependencies All Different
Armed with my new dpkg, I have begun building packages which has been an interesting experience. The Debian packaging systems greatest asset dependencies is also its most frustrating during initial bootstrapping. Take debhelper for instance; nowadays most packages depend on it and I personally wouldn't think of creating a .deb without it but it build-depends e.g. po4a which build-depends on...debhelper. Also some programs which are assumed to be present on linux such as ldconfig are simply not available on Minix. So currently theres a lot of dpkg --force-depends and even --force-all going on. Of course this is only a temporary problem until I get a full set of base packages built. The equivs package is coming in handy too. In lieu of working .debs, I have been using Minix native packages to fill in the gaps. They use NetBSD pkgsrc which is a new experience for me. I can't say I'm that impressed but they work and, being uptodate, are a good source of patches.
Works in Progress
The two big packages I need to work on next are perl 5.10.1 and gcc 4.4.5. I haven't touched the latter yet. Perl is failing in its second-stage bootstrap for reasons I haven't gotten to the bottom of just yet. I suspect it has more to do with deficiencies in my build environment than a problem in perl itself.
libc Deficiencies
As I mentioned last time, the situation has improved tremendously since Minix switched over to using the NetBSD libc but I am still running into problems with unimplemented APIs. Take getpwent(3) and getpwuid(3) for instance. Being able to map between user ids and names is kind of important you know? Even worse instead of being completely absent some of these exist as stubs. So they compile and link without warning but always return ENOFILE and so on. I was surprised to find that there is no standardized API for getting information on mounted filesystems. (Which e.g. df(1) needs.) Linux uses getmnt(3) similar but incompatible with System V. The BSDs use getmntinfo so probably this is what Minix will implement. GNU programs are good about portability but a lot of Free software is unfortunately Linux-centric. Hopefully the Debian FreeBSD port already has patches for these cases. There are several annoyances like this but I suppose I shouldn't complain too much. I am using an unreleased version of Minix which is under heavy development and I must say the upstream developers have been good about responding to my concerns.
Looking forward: fakeroot, grub2, ext2
fakeroot is a very handy development tool that frees a developer from having to create .debs as root. Alas it won't work under Minix as it depends on LD_PRELOAD and Minix doesn't even support shared libraries. fakeroot-ng sounds a bit more promising as it uses the ptrace(2) system call which is implemented in the Minix kernel though I don't know how well.
Minix is now multiboot compliant so it is possible to use grub2 instead of the Minix boot loader. Definitely something I'm going to look at soon.
Minix now supports ext2 (though not ext3 or ext4) in addition to its native file system. For compatability this should become the default in the Debian port. While the kernel support is part of the standard Minix system, the userland support (e2fsprogs) is not for some reason. So I'll have to see about porting that.
Can I Help the Porting Effort?
Sorry not yet. Though if you are determined I'll try and help you get set up. Hopefully in a month or less I will be able to distribute a pre-alpha version so I suggest waiting for that. I am definitely going to be looking for outside help.

Photograph taken by Julia Palandri
14 comments Liked this article? Click here. My blog is Flattr-enabled.
The first day of the Desktop Summit was yesterday, Saturday, August 6. I loved it and gave a presentation. There are two very different stories I can tell on the topic of gender equality in
free software. I'll start with the bad.
$ for i in $(seq -f %03g 1 100); do convert -scale 640x480 -quality $i /path/to/original.jpg $i.jpg; echo $i; doneThen I generated a data file by calculating the size of each file with du and piping the results through sed and awk:
$ du -b [0-9]*.jpg sed 's/.jpg//' awk ' print $2 " " $1 'The generated data file looks this, with JPEG quality in first column and file size in bytes in the second column:
001 20380 002 20383 003 20634 004 21106 [...]Regarding to file size, it seems like between 1 and 50, file size grows sublinearly with quality. Beyond that, the curve reaches an inflection point and grows in a way that looks, if not exponentially, at least polynomially.
The above plot was produced in a R session that looked like this:
$ R
R version 2.13.1 (2011-07-08)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i486-pc-linux-gnu (32-bit)
R um software livre e vem sem GARANTIA ALGUMA.
Voc pode redistribu -lo sob certas circunst ncias.
Digite 'license()' ou 'licence()' para detalhes de distribui o.
R um projeto colaborativo com muitos contribuidores.
Digite 'contributors()' para obter mais informa es e
'citation()' para saber como citar o R ou pacotes do R em publica es.
Digite 'demo()' para demonstra es, 'help()' para o sistema on-line de ajuda,
ou 'help.start()' para abrir o sistema de ajuda em HTML no seu navegador.
Digite 'q()' para sair do R.
> png()
> data <- read.table('points.dat')
> quality <- data[[1]]
> quality
[1] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
[19] 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
[37] 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
[55] 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
[73] 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
[91] 91 92 93 94 95 96 97 98 99 100
> filesize <- data[[2]]
> filesize
[1] 20380 20383 20634 21106 21551 22012 22469 22878 23323 23715
[11] 24103 24494 24952 25327 25725 26127 26507 26886 27216 27550
[21] 27917 28288 28627 28945 29271 29583 29919 30280 30516 30813
[31] 31099 31367 31679 31873 32232 32538 32704 33072 33324 33443
[41] 33860 34055 34253 34633 34804 35074 35216 35491 35871 35935
[51] 36030 36443 36743 36898 37120 37382 37726 38077 38307 38581
[61] 39002 39270 39700 39962 40388 40762 41086 41629 42062 42544
[71] 43048 43392 44062 44824 45023 45682 46532 47347 47833 48701
[81] 49612 50423 51694 52637 53635 55243 56340 58304 59709 62162
[91] 64207 66273 70073 74617 79917 86745 94950 105680 128158 145937
> plot(quality, filesize, xlab = 'JPEG Quality', ylab = 'File size')
>
Save workspace image? [y/n/c]: y
Looking at the actual generated thumbnails, somewhere after quality > 60 I stopped noticing the difference between increasing quality factors. Settling with a default quality of 75 seems to be good enough: the resulting static HTML album generated from a folder with 82 pictures dropped from 12MB with the default ImageMagick quality factor to 6MB with quality 75, with very little perceivable image quality loss.
FreedomBox activities at Debconf11
I spent the last two weeks of July 2011 in Banja Luka. The occasion was the
annual Debian developer's conference,
Debconf11 and preceding work week known as
Debcamp. This was my tenth successive year attending Debconf, and I had a
very productive and pleasant time! The facilities were good, the local team
was friendly, enthusiastic, and very helpful, and in addition to giving three
talks and hosting a couple panel discussions, I managed to put a burst
of energy into work on FreedomBox. Several
other developers working on FreedomBox were also present, and a good number of
Sheeva
and
Dream
plugs were evident in the hacklabs sporting new FreedomBox stickers.
Working together in the same place for several days, we made good progress
on several projects, and also had some great discussions about what we want
to do going forward.
image building tools
For some time, I've been working towards a light-weight tool set to build
FreedomBox software images. Shortly before Debconf started, I chose the
name 'freedom-maker' for this tool and shared a link to a readable copy of my
git repository with other developers I expected to work with in Banja Luka.
With input from Bert Agaz and Jonas Smedegaard during Debcamp, freedom-maker
went from almost useful to actually useful. It still deserves work to be
more useful to others, but I have now pushed a copy of the git repository to
git.debian.org so that we can take advantage of the tools supported there to
enable others to more easily contribute to the code.
Very soon, Bert plans to add support to freedom-maker for using Lars Wirzenius'
vmdebootstrap to build x86 images
suitable for testing in a virtualized environment. At the same time, we plan
to refactor the existing code slightly
to enable lists of desired packages for the various image flavors we expect
to produce independently of the configuration for each specific image building
tool.
Jonas continued in parallel to work on his alternate packaging toolset
boxer.
It offers some potentially interesting features for the future, and we may
eventually merge some or all of it into freedom-maker, but for now it remains
a separate utility.
uAP user space tools
Several weeks ago, we received from Marvell the source code to two user space
programs that are necessary for configuring and monitoring the binary firmware
provided for the uAP wireless chip used in the DreamPlug. Early during my
stay in Banja Luka, I packaged these for Debian as
uaputl and
uapevent, and I am pleased to note
that they were quickly accepted into the archive and are now present in Debian
mirrors.
u-boot
Another bit of code received very shortly before Debconf started was the
source for the version of u-boot shipped by
Globalscale in the DreamPlug
units we're working with. During Debcamp, Clint Adams passed a copy of this
source to Jason Cooper, who was already trying to add support for the
DreamPlug to upstream u-boot, but had stalled due to a lack of
information. Jason has now merged his own work with the sources we got
from the manufacturer, and is
making good progress towards merging DreamPlug support into upstream u-boot.
Once that happens, we should be able to flash our Sheeva and Dream plug devices
with a u-boot image built from the source in the Debian u-boot package, in the
process enabling things that matter to us like the ability to boot from an
ext2 partition, and hopefully the ability to execute command scripts from that
partition instead of having to hard-code kernel filenames in flash. This will
allow us to support the ongoing effort in Debian to move away from the need
for kernel symlinks.
DreamPlug kernels
With respect to kernels, another work stream at Debconf primarily involving
H ctor Or n and Nick Bane was to analyze the current state of the patches from
Marvell and Globalscale used to support the DreamPlug against both upstream
and current Debian kernel sources. To my surprise and our collective pleasure,
the remaining patch set required against current upstream kernels is much
smaller than we previously believed! There are still several patches critical
to us that are not merged upstream, but the work remaining to be able to build
images for our devices from mainline and Debian kernel source trees now seems
like something we might be able to complete before Debian's next stable
release.
One of our discoveries during the u-boot and kernel work during Debconf was
that Globalscale did not obtain a new machine id for the DreamPlug, but
instead re-used the one for the GuruPlug series, despite there being some
differences in the hardware that require at least one additional driver. After
much discussion, we plan to continue using the existing machine id instead
of requesting another, particularly because the ARM kernel community
has apparently stopped issuing new ids for the moment. We will add a new
kernel config option for the DreamPlug, however, and are likely to build
distinct Sheeva and Dream kernel packages that do not require initrd for use
in FreedomBox images, even if doing so is not strictly necessary. This will
allow us to optimize both the in-memory footprint and boot times for our
devices.
software configuration
Another area of investigation in Banja Luka was technology for package
configuration. Mirsal Ennaime performed various tests using debconf and
Config::Model, with some results reflected in this commit
relating to configuring the bitcoind daemon in the bitcoin package for Debian.
identity and trust management
While we did not actually do any FreedomBox specific work on the trust
management layer we know is necessary, after several rounds of conversation,
I am now more convinced than ever that the right path forward is to base our
trust relationships on OpenPGP keys using GnuPG and Monkeysphere as starting
software elements. Our thinking to date is captured on an
Identity Management
page in the wiki.
communication services
Another thing that became fairly clear to me during discussions at Debconf
is that in the near term, planning to build communication services around
XMPP is the approach most likely to give good results. Investigating the
software choices available to build an interesting XMPP infrastructure is
now a high priority for me. Jonas has done some work towards
configuring and integrating ejabberd
or Prosody, I've started studying
yate as a possible call manager and VoIP
server choice with
XMPP/jingle support, and we await with great interest a release from the
Buddycloud developers to evaluate as
a possible basis for deploying social network services.
Some of these software choices will lead us to use Apache as our web services
base technology because of the need for features that only it supports well
among daemons that are Free Software.
Jonas completed packaging GNU Sip Witch
for Debian, and it is now available in the mirror network. Tzafrir Cohen and
Jonas did some initial testing on its use.
documentation
A number of new wiki pages were written
(or at least started) in order to sum up ideas, design various aspects of
FreedomBox, and reflect discussions that happened during DebConf11. A lot
of work is needed to complete these pages though, as well as others to capture
more of the current state of the project.
press coverage
Finally, while in Banja Luka I got some great press coverage for FreedomBox!
On Sunday the 24th, I was
interviewed
by the main television network serving the Republika Srpska. This led
to a couple of minutes of coverage near the top of the national news program
that night, immediately following the lead story about the President and
several ministers appearing at Debian Day that morning to help open the
conference. This interview was later re-used in
another TV program
that summarized Debconf11. On the morning of Thursday the 28th, I was part
of a small group that spent more than an hour meeting with the Minister of
Science and Technology in his office, and the relationship between Debian
and our work on FreedomBox was one of the items of discussion in that meeting
and the associated press conference. I'm told this resulted in more press
coverage, but if true I have not seen it yet.
summary
On Friday afternoon the 29th, I gave a talk in the main Debconf program containing a FreedomBox Progress Report . In it, I talked about the structure of the FreedomBox Foundation, progress the foundation has made, and the work that was still then underway in Banja Luka. It was streamed live over the internet, and replays are available online. The reaction from Debian developers present was very positive, which was good to learn since by that time my energy level was quite low after the nearly two weeks of intense technical and social interaction that is Debconf!
All in all, we got lots of work done on FreedomBox in Banja Luka, enough that
I think at least the next few steps along the road towards an eventual "1.0"
release of a reference implementation are now much clearer than they were two
weeks ago!
Hello, this is the fourth report for the project. First, I d like totypdef struct ncInstance_t
...
char reservationId[CHAR_BUFFER_SIZE];
char userId[CHAR_BUFFER_SIZE];
char archId[CHAR_BUFFER_SIZE]; // arch field added
int retries;
...
This is my monthly summary of my Debian related activities. If you re among the people who made a donation to support my work (170 , thanks everybody!), then you can learn how I spent your money. Otherwise it s just an interesting status update on my various projects.
This month passed by very quickly since I attended both the Libre Software Meeting / RMLL and the DebConf.
Libre Software Meeting / RMLL
I attended only 3 days out of the 6 but that was a deliberate choice since I was also attending DebConf for a full week later in the month.
During those 3 days I helped with the Debian booth that was already well taken care of by Fr d ric Perrenot and Arnaud Gambonnet. Unfortunately we did not have any goodies to sell. We (as in Debian France) should do better in this regard next time.
One of the talks I attended presented EnVenteLibre. This website started as an online shop for two French associations (Ubuntu-fr, Framasoft). They externalize all the logistic to a company and only have to care about ordering goodies and delivering to the warehouse of the logistic company. They can also take some goodies from the warehouse and ship them for a conference, etc. We discussed a bit to see how Debian France could join, they are even ready to study what can be done to operate at the international level (that would be interesting for Debian with all the local associations that we have throughout the world).
Back to the LSM, while I had 3 good days in Strasbourg, it seems to mee that the event is slowly fading out it s far from being an international event and the number of talks doesn t make for a better quality.
BTW, do you remember that Debconf 0 and Debconf 1 were associated to this event while it was in Bordeaux?
dpkg-source improvements
During my time in Strasbourg (and in particular the travel to go there and back!) I implemented some changes to 3.0 (quilt) source format. It will now fail to build the source package if there are upstream changes that are not properly recorded in a quilt patch:
dpkg-source: info: local changes detected, the modified files are: 2ping-1.1/README dpkg-source: info: you can integrate the local changes with dpkg-source --commit dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/2ping_1.1-1.diff.cki8YBAs the error message hints, there s a new
--commit command supported by dpkg-source that will generate the required quilt patch to fix this. In the processe you will have to submit a name and edit the patch header (pre-formatted with DEP3 compatible fields). You can get back the old behavior with the --auto-commit option.
Build flags changes
Ever since we adopted the Ubuntu changes to let dpkg-buildpackage set some build related environment variables (see #465282), many Debian people expressed their concerns with this approach both because it broke some packages and because those variables are not set if you execute debian/rules directly.
In the end, the change was not quickly reverted and we fixed the package that this change broke. Despite this we later decided that the correct approach to inject build flags would be a new interface: dpkg-buildflags.
Before changing dpkg-buildpackage to no longer set the compilation flags, I wanted to ensure dpkg-buildflags had some decent coverage in the archive (to avoid breaking too many packages again). My criteria was that CDBS and dh (of debhelper) should be using it. With the recent debhelper change (see #544844) this has been reached so I changed dpkg-buildpackage accordingly.
Makefile snippets provided by dpkg
At the same time, I also wanted an easy way for maintainers not using dh or CDBS to be able to fix their package easily and go back to injecting the compilation flags in the environment but doing it from the rules files. Starting with the next version of dpkg, this will be possible with something like this:
DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mkWithout DPKG_EXPORT_BUILDFLAGS the variables are not exported in the environment and have no effect unless you use them somewhere. More than build flags, this will also provide a bunch of other variables that can be useful in a rules files: all the variables provided by dpkg-architecture, vendor related variables/macro and some basic package information (mainly version related). dpkg-buildflags improvements Given the renewed importance that dpkg-buildflags will take now that dpkg-buildpackage no longer sets the corresponding environment variables, I thought that I could give it some love by fixing all the open issues and implementing some suggestions I got. I also had a chat with a few members of the technical committee to discuss how hardening build flags could be enabled in Debian and this also resulted in a few ideas of improvements. In the end, here are the main changes implemented:
--export=configure command to inject build flags on the ./configure command line (see commit);--dump command that is the default (see #603435).No comment Liked this article? Click here. My blog is Flattr-enabled.
git pull
--rebase --stat, which I aliased to git update, or the whole
concept of aliases, or how this all plays with 3.0 source packages). I've
left the basic instructions for now, but I think at some point I may cede
the tutorial aspect to other sites and just collect neat tricks that
aren't part of the basic workflow that everyone describes.
So, the fifth Debconf I ve had the chance to attend is clearly over now. It was great, and all organizers (and sponsors) really deserve huge thank you for making this event so successful. I m already looking forward to next year s edition.
Debconf has been very productive for me. I chaired 4 sessions:
As Redis writes to disk asychronously, it is not sufficient to monitor whether it is still listening to TCP/IP connections - you must check whether it is managing to persist the in-memory data to disk.
However, as it is not currently possible to deterministically monitor the status of these background saves, we are limited to checking that the number of seconds since the last save has not exceeded some specific number. This is possible by using last_save_time which is available via the INFO command:
$ redis-cli info grep last_save_time
last_save_time:1312045364
#!/usr/bin/env python import sys import time import redis def main(host, warning, critical): try: client = redis.Redis(host=host) last_save = time.time() - client.info()['last_save_time'] except Exception, e: print "CRITICAL: %s" % e return 2 ret = 0 state = 'OK' for limit, state_, ret_ in ( (int(warning), 'WARNING', 1), (int(critical), 'CRITICAL', 2), ): if last_save > limit: ret = ret_ state = state_ print "%s: Last dump was %d seconds ago" % (state, last_save) return ret if __name__ == '__main__': sys.exit(main(*sys.argv[1:]))
$ check_redis 127.0.0.1 3600 86400
Next.