Cyril Brulebois: G-I, part 3
Last night was the third one spent on playing around with
I took care of
Of course, there are many more features to test, but that sounds like
we re going in the right direction (and this is not a joke about
RTL).
Next step
Have a look at the green boxes, which may require to have a closer
look at
X in a
d-i environment.
Making sure X actually works
So far, running X
was nice already, but is it really possible to run some applications
inside? Bad news is that many trivial applications (xeyes, xclock,
) pull more dependencies than
previously packaged.
Finally, xev was chosen, and it indeed works fine (provided one
makes sure it gets the focus).
X was crashing when the (only last) client was exiting, and that
wasn t normal. Thankfully the bug was reproducible outside d-i and
Julien
sent a patch
a few minutes later.
In the meanwhile, using -noreset did the trick to keep X running.
Another way to run X applications there, is to point the host
environment to the guest environment using DISPLAY=$GUEST:0
xterm. With VirtualBox, I followed those steps:
- Forward the host s
6000/tcpto the guest s6000/tcp. - Answer the language-related questions in
debconfso that network configuration happens, which is needed for the next steps to work (just gettinglocalhostset up is probably sufficient, but let s be lazy and let the installer take care of it for now). - Run
Xin the guest, disabling access control, with:X -retro -noreset -ac - Start
xtermfrom the host with:DISPLAY=localhost:0 xterm
udebs. Legend:
- Red box:
udebwe no longer want to depend on. - Blue boxes:
udebsto be tweaked first. - Green boxes:
udebsto be tweaked afterwards. - Ellipse:
udebprovided by the one pointed to (magenta edge).
udebs of
interest:
I took care of gtk+2.0 while Julien hacked pango1.0 and
cairo. Some more libraries were needed, but being X libraries,
tweaking the packaging was as trivial as for the first X libraries,
and it only took a couple of minutes: libxcomposite, libxdamage,
and libxinerama.
Once those added to localudebs/ and to pkg-lists/local, and once
the image rebuilt, I prepared a tiny Hello world -style application:
- Grab the source code from the GTK+ 2.0 Tutorial.
- Built it against the
x11flavour:gcc -o hello $(pkg-config --cflags gtk+-2.0) hello.c -lgtk-x11-2.0 - Grab it from within
d-i, and make it executable. - Start
Xas previously explained, then:DISPLAY=:0 ./hello
(hello:1991): Pango-WARNING **: failed to choose a font, expect
ugly output. engine-type='PangoRenderFc', script='latin'
Indeed, since no fonts were included, there was a tiny issue. No big
deal, adding ttf-dejavu-udeb did the trick. I wanted to play around
with a non-Latin language, so I asked for an example (thanks,
Theppitak!), and once ttf-thai-tlwg-udeb added as well, one gets:
Of course, there are many more features to test, but that sounds like
we re going in the right direction (and this is not a joke about
RTL).
Next step
Have a look at the green boxes, which may require to have a closer
look at g-i s integration within d-i (it might be needed to see
how it s supposed to be started, that might help testing the tweaked
packages).



This is the story of a weirdly unfriendly/non-compliant IMAP server, and some nice interactions that arose from a debugging session around it. Over the holidays, i got to do some computer/network debugging for friends and family. One old friend (I'll call him
Mika Tiainen reported the Debian
[1] Unfortunately X doesn't seem to work at all yet, it just segfaults. :(
In the interest of sharing best practices, here is my RC
bug squashing workflow:

Kudos for the
tips!
Command aliases
Annoyed by the fact that