Luciano Bello: Avancez
Este post tambi n est escrito en espa ol.
Este post tambi n est escrito en espa ol.
At work, I'm dealing with lots of different database setups, luckily mostly
PostgreSQL running on Debian. At the same time, a fair amount of the tools in
the PostgreSQL ecosystem (not the PostgreSQL server packages itself) are not in
the best shape in the Debian archive.
I'm trying to change that by adopting some of the packages. So far, I have
fixed a few RC bugs where packages where suddenly trying to build against
PostgreSQL 9.0 while expecting 8.4. To my surprise, there are no packages yet
in the archive that support multiple PostgreSQL versions in parallel. There is
even a package ready to help doing this -
postgresql-server-dev-all,
but apparently nobody has used it yet. It turned out that after working around
a few trivial problems and adding just a few lines of sh code, it was pretty
straightforward
to port skytools and
postgresql-pllua
to 9.0 while keeping 8.4 support. The latter has no version-specific code left
in debian/ except for a list of supported versions in debian/pgversions, so a
future port to 9.1 will be trivial. (Fun fact: the old postgresql-pllua version
0.8.1 was actually a typoed 0.3.1 version.)
Most PostgreSQL tools use a common
subversion repository on Alioth,
but there is no common mailing list address that is put into the Uploaders
fields, so it is hard to get an overview over the state of all packages. I've
compiled a list of all packages in svn, git, bzr (the server packages), and a
few others
in DDPO
to fix that for now.
Other packages I've updated so far are
pgtune,
pgbouncer, and
pgpool2.
There have been a lot of web browsers embedding the Gecko engine, especially through the gtkmozembed library (it was not really a proper library but let s call it like that). I remember being a happy user of galeon, which went on as epiphany, but there were also all these small applications that just need a good HTML renderer in one of their widgets, like yelp, or several Python applications using python-gtkmozembed.
Anyone having had to deal with these applications, especially the most complex ones, could tell you a few things:
A while ago I said Koen from Emweb made an interesting proposal at FOSDEM about emerge, the KDE Windows build tool.
Yesterday, Jaros aw Staniek and I reaffirmed our commitment to emerge . Today, I d like to go a bit further: let s bring more developers to emerge by opening it up to other projects. Keep reading!
What is emerge, why is it important and what was Koen s proposal?
Fact: Microsoft Windows is very different to Unix in regards to development.
On Unix platforms -that includes Linux and Mac OS X-, software is usually installed to /usr: applications in /usr/bin and /usr/sbin, libraries in /usr/lib, headers in /usr/include, common resources in /usr/share, etc. Also, dependency management is usually something you can count on: when you install kdelibs5-dev in Ubuntu, it will automatically install libqt4-dev, kdelibs5-data, libfreetype (runtime), etc That makes setting up a development environment a very easy task: look for shared libraries, header files, etc in the common places and you will probably find them.
On Windows there is nothing like that. When you want to compile an application, you need to provide (build and install) all its dependencies, and you need to tell Visual Studio where to find everything. Even CMake usually needs some help in the form of a hint for CMAKE_PREFIX_PATH. As you may imagine, building KDE, which has more than 200 third party dependencies and tens of modules (and with the move + split to git, many more) becomes an almost insurmountable task.
Emerge to the rescue: inspired by Gentoo s emerge, Ralf Habacker, Christian Ehrlicher, Patrick Spendrin and others (yours faithfully included) developed a tool which downloads the source, configures, builds, installs and packages KDE and its dependencies. It makes a world of difference when building KDE. Actually, it makes building KDE on Windows possible. Once more: thank you very much guys, impressive tool.
There are two well-differentiated parts in emerge, the engine and the recipes .
The engine takes care of downloading the sources (tarballs, checkouts from Subversion and git clones, etc) , configuring and building for the usual build systems (QMake, CMake, NMake makefiles, etc), installing, bundling packages together and much more. All that for four compilers (MSVC2008, MSVC2010, MinGW32 and MinGW-W64). It s the equivalent to Gentoo s emerge, Debian s dpkg + debhelper/cdbs or Homebrew and MacPorts for Macintosh.
The recipes are the package-specific instructions a particular piece of software needs to build: what s the name of the tarball? URL to download from? What versions are available? What build system to use to configure and build? Does it need any Windows-specific patch? They are written in Python using some helper modules emerge provides (the debhelper-like part I mentioned above).
Currently, there are about 70 recipes in emerge, organized in our portage tree (bear in mind the names are taken from Gentoo but the internals of the tool are completely different). With those 70 recipes, we are able to build most KDE modules. Problem is to provide all the optional features, we are missing probably 200 to 250 more recipes. Given that KDE on Windows is quite short on developers, we have to decide: either we fix bugs and improve the integration of KDE on Windows, or we keep track of the dependencies. I won t lie: for KDE on Windows, I d rather focus on development than on packaging.
Given that writing and maintaining recipes does not strictly require programming skills (although they help
After >7 years of working on my own Linux machine, I now have to work on a Windows XP laptop for my new employer.
I found some time ago this site which aims at proving that Linux desktops are currently over 1%. So, I registered my and my wife's Debian GNU/Linux desktops to contribute to the statistic.gpg --keyserver your-preferred-key-server --recv-key 7C5BB6A5
Recent attacks against the DNS infrastructure have exposed the limitations of relying on TLS/SSL certificates for securing connections on the Internet.openssl s_client -connect pop.gmail.com:995 -showcerts
openssl s_client -connect imap.gmail.com:993 -showcertsopenssl x509 -fingerprint -md5 -noout -in gmail.outpoll pop.gmail.com protocol pop3 user "remoteusername" is "localusername" password "mypassword" fetchall ssl sslproto ssl3 sslfingerprint "12:34:AB:CD:56:78:EF:12:34:AB:CD:56:78:EF:12:34"openssl s_client -connect mail.yourisp.net:465 -showcerts
openssl x509 -fingerprint -sha1 -noout -in isp.outrelayhost = mail.isp.net
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = fingerprint
smtp_tls_mandatory_ciphers = high
smtp_tls_mandatory_protocols = !SSLv2, !SSLv3
smtp_tls_fingerprint_digest = sha1
smtp_tls_fingerprint_cert_match =
12:34:AB:CD:56:78:EF:90:12:AB:CD:34:56:EF:78:90:AB:CD:12:34
kdeinit4: preparing to launch /usr/bin/knotify4At the user/password prompt of kdm I can login, the KDE splash screen appears and then, suddenly, the connection fails and I'm back at the kdm login again. I tried to look for already existing bug reports, but KDE is quite large and with many programs. Are there any pointers for a bug report or even a solution/fix for the problem, dear LazyWeb? UPDATE 21:51:
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)knotify(16474) KNotify::event: 1 ref= 0
QMetaObject::invokeMethod: No such method KUniqueApplication::loadCommandLineOptionsForNewInstance()kdeinit4: preparing to launch /usr/bin/plasma-desktop
kded4: Fatal IO error: client killedkdeinit4: Fatal IO error: client killed
kdeinit4: sending SIGHUP to children.
klauncher: Exiting on signal 1
Mike Gerber reported the Debian bug
#620000 on Tuesday March 29th, against the imvirt package.
Bug #610000 was reported as of January 14th. That makes 2.5 months for
10,000 bugs, a higher ratio than we had for 600000-610000.
This is probably a consequence of the resumed development after the
release of squeeze.
And don't forget aboutthe
bug prediction contest.
I just found this out, so I'm posting it, since it might be useful both as a
reminder, and for others to read.
Suppose you have a "classical" Subversion web interface, like
svn.openstreetmap.org. This will show you the last revision by default.
What if you want to see a particular revision? I found this by googling a bit:
http://<yoursvn>/!svn/bc/<revision>/<path>
So, say, using the above example, you want to see the sites/ directory
of revision 20000: here you are (compare with current).
This obviously works with files too.
pmount to support mounting image files using loop devices. This has required a little more work than I thought, since I had to add support for configuration files for pmount, as loopback mounting is by essence insecure, so the support for it had to be user-configurable. I have tried hard to make the loopback mounting as secure as possible, for instance by ensuring that a user cannot bypass file permissions with it, but of course lookback mount still means that a user has read-write access to a mounted FS which can be used to exploit potential weaknesses in the kernel...
I have uploaded a new version of pmount to experimental. Comments, bug reports, exploits are welcome !
jrollins and i recently did a bunch of cleanup work on debirf, with the result that debirf 0.30 can now build all the shipped example profiles without error (well, as long as debootstrap --variant=fakechroot is working properly -- apprently that's not the case for fakechroot 2.9 in squeeze right now, which is why i've uploaded a backport of 2.14). To try to avoid getting into a broken state again, we set up an autobuilder to create the images from the three example profiles (minimal, rescue, and xkiosk) for amd64 systems. The logs for these builds are published (with changes) nightly at: git://debirf.cmrg.net/debirf-autobuilder-logsBut even better, we are also publishing the auto-generated debirf images themselves. So, for example, if you've got an amd64-capable machine with a decent amount of RAM (512MiB is easily enough), you can download a rescue kernel and image into /boot/debirf/, add a stanza to your bootloader, and be able to reboot to it cleanly, without having to sort out the debirf image creation process yourself. We're also providing ISOs so people who still use optical media don't have to format their own. Please be sure to verify the checksums of the files you download. The checksums themselves are signed by the OpenPGP key for Debirf Autobuilder <debirf@cmrg.net>, which i've certified and published to the keyserver network. What's next? It would be nice to have auto-built images for i386 and other architectures. And if someone has a good idea for a new example profile that we should also be auto-building, please submit a bug to the BTS so we can try to sort it out.Tags: debirf
So the other day, I was able to do this in an Ubuntu natty amd64 chroot
for the first time.
# cat > /etc/apt/apt.conf.d/multiarch-me
APT::Architectures "amd64"; "i386"; ;
^D
# cat >> /etc/dpkg/dpkg.cfg
foreign-architecture i386
^D
# apt-get update
# apt-get install flashplugin-installer:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
[...]
The following NEW packages will be installed:
flashplugin-installer:i386 flashplugin-nonfree:i386 gcc-4.5-base:i386
libatk1.0-0:i386 libavahi-client3:i386 libavahi-common-data:i386
libavahi-common3:i386 libc6:i386 libcairo2:i386 libcomerr2:i386
libcups2:i386 libdatrie1:i386 libdbus-1-3:i386 libdrm2:i386
libegl1-mesa:i386 libexpat1:i386 libfontconfig1:i386 libfreetype6:i386
libgcc1:i386 libgcrypt11:i386 libgdk-pixbuf2.0-0:i386 libgl1-mesa-glx:i386
libglib2.0-0:i386 libgnutls26:i386 libgpg-error0:i386 libgssapi-krb5-2:i386
libgtk2.0-0:i386 libgtk2.0-common libice6:i386 libjasper1:i386
libjpeg62:i386 libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386
libkrb5support0:i386 libnspr4:i386 libnspr4-0d:i386 libnss3:i386
libnss3-1d:i386 libpango1.0-0:i386 libpcre3:i386 libpixman-1-0:i386
libpng12-0:i386 libselinux1:i386 libsm6:i386 libsqlite3-0:i386
libstdc++6:i386 libtasn1-3:i386 libthai-data libthai0:i386 libtiff4:i386
libudev0:i386 libuuid1:i386 libx11-6:i386 libx11-data libx11-xcb1:i386
libxau6:i386 libxcb-dri2-0:i386 libxcb-render0:i386 libxcb-shape0:i386
libxcb-shm0:i386 libxcb-xfixes0:i386 libxcb1:i386 libxcomposite1:i386
libxcursor1:i386 libxdamage1:i386 libxdmcp6:i386 libxext6:i386
libxfixes3:i386 libxft2:i386 libxi6:i386 libxinerama1:i386 libxrandr2:i386
libxrender1:i386 libxt6:i386 libxxf86vm1:i386 x11-common zlib1g:i386
0 upgraded, 78 newly installed, 0 to remove and 3 not upgraded.
Need to get 15.1 MB/15.6 MB of archives.
After this operation, 48.9 MB of additional disk space will be used.
Do you want to continue [Y/n]?
It is a truly heady experience, after so many years of talking about the
need to properly support multiarch in Debian and Ubuntu, to see support for
cross-installation of packages come to fruition. If you've talked to me any
time in the past couple of weeks and noticed it's a little hard to get me to
change the subject, well, that's why.
Many who have grown accustomed to Debian and Ubuntu's lack of support for
installing i386 packages on amd64 (or vice versa) may wonder what the fuss
is about. (Whereas others who are well versed in distributions such as Red
Hat and SuSE may laugh and wonder what took us so long...) So maybe a few
words of explanation are in order.
If you've ever installed ia32-libs on an amd64 machine anywhere; if you've
ever noticed a bug where ia32-libs didn't work right because of wrong system
paths, or had to file a request for another library to be added to ia32-libs
because it wasn't included in the set of libraries Debian decided to package
up in this grotesque, all-in-one 32-bit compatibility bundle; if you've ever
decided not to install a 64-bit OS on your perfectly 64-bit-capable hardware
because of concern that you wouldn't be able to run
$random32-bitonly_application; multiarch is for you.
If you've gotten stuck maintaining a lib32foo "biarch" package in Debian
due to popular demand, multiarch is definitely for you. :)
If you've ever cross-compiled software for a different Debian architecture
than the one you were running, multiarch is for you.
If you've ever wanted to run binaries for a different architecture under
emulation, and found it awkward to set up the library dependencies,
multiarch is for you, too.
Because although the .deb world may be a little late to the party, we're
also naturally taking things much
further than anyone's done
with rpm. Multiarch won't just give you the ability to install 32-bit libs
on 64-bit systems; it'll give you the ability to install libs for any known
architecture on any system. And a whole lot of pain just falls out of the
equation in the process. A cross-compiling environment looks the same as a
native-compiling environment. An emulated system looks the same as a native
system. We can start to seriously consider cross-grading systems from one
architecture to another.
And all this is happening now. The groundwork is there in Ubuntu natty.
Wheezy will be the release that brings multiarch to Debian. When dpkg
1.16.0 is uploaded to unstable real soon
now, the
bootstrapping will begin.
I am immensely grateful to everyone who's helped make multiarch a reality -
to Tollef,
Matt and others for seeding the vision;
Aurelien, Matthias and Arthur for their work to
ready the toolchain;
David
and Michael for the apt implementation;
Guillem and Raphael for the dpkg
implementation, and Linaro's support to help make
this possible; and the many other developers who've helped to refine this
design over the years in numerous other BoFs, sessions and mailing list
threads.
I'm excited to find out what the Debian community will do with multiarch now
that it's upon us. Christian, maybe you should start a pool for how long it
will take before all the libraries shipped in ia32-libs have been converted
to multiarch and we can drop ia32-libs from the archive?
grub-reboot also
available for those using grub2, and that it will only configure the
boot, but not reboot the computer itself. As each time I wrote some text in
English, I'm not sure my version correctly transmit my meaning.
By the way, I'm changing my blog. The old
one contain a
post
on my search of a solution for this. Thanks to stbuehler and Jochen
for the indication leading to the correct solution for this.
Thanks also to Vadim Solomin for a
patch
to make pm-hibernate notice the configured method for shutting-down
the computer.
For the second time, I chose an iMac as a computer at work. I like a lot
its simplicity. Only one cable, few options, a big screen and that's all.
The other manufacturer where it is easy to order has a complex offer. Is
the computer for playing ? for the office ? at home or in a company ? A
public one, a private one ?
I nervously installed Debian as soon as the machine arrived. What if it did
not work, would I have to use OS X for the next three or four years ?
Luckily, everything went well, and the
procedure is much simpler than it looks:
install rEFIt, shrink the system partition
with
diskutil,
add two partitions for Debian and its virtual memory with Disk
Utility, and restart on the
Squeeze installation CD-ROM, be
guided by the installer, make sure to install the GRUB on the Debian
partition, not on the master boot record. Just in case I would suddenly
need it, I also installed the proprietary ATI
drivers, that provide graphical
acceleration.
I then installed Grid
Engine, to take the best out of the hyper-threaded four cores of the processor. The README.Debian file is very clear and allows a simple configuration in a couple of minutes. Being a beginner, I still had to try two times, because at the beginning I was using localhost instead of a more proper name for the machine. It also took me some time to find two key parameters: slots for executing multiple jobs simultaneoutly, and priority to avoid the calculations freeze my desktop, because it is still just a desktop computer.
I do not know if under OS X recent iMacs heat that much, but in these times
of heater restrictions, I can conveniently heat my hands on the aluminum
case of the machine. However, I am a bit worried for this summer, when
restrictions will be on air conditioning.
So, the first half of my spring challenge is over. I managed to run
the 50km version of Paris
Eco-Trail on Saturday.
50km, this is what was advertized... The reality was 55km and, believe
me, these extra 5K were worth a lot of pain..:-). I managed to
complete the whole run in 6h36. As you can see, a lot slower (about
8.5km/h) than
marathon races (where I managed to keep a 11.5 km/h pace) but, eh,
marathons don't have 1000m positive slope!
Eco-Trail is a great race. The start was in Versailles Castle park,
with 5 kilometers around the Grand Canal and a few more in the
castle's neighbourhood, so that the 1500-runners
crowd can be a little bit dispersed before we start the forests'
single track trails. Then, after 8K, we enter forests, which we won't
leave until km 45, except a few street crossing here or there.
Paris forests (Satory, Versailles, V lizy, Meudon, Fausses-Reposes,
Saint-Cloud) are great in the springtime. The weather was a little bit
"hot", which explains the quite high ratio of non finishers (11% for
the 50K trail and nearly 15% for the 80K race).
I managed well until KM44 where cramps began to appear. The difference
between road races and trail races are rhythm differences: nobody
(except the very first runners) is running when climbing hills, that
would be virtual suicide. So, you have to manage this as well.
My goal was keeping a 6'/km pace on the first 15K, which was quite
achieved. Later on, the succession of hills makes it impossible to use
one's pace as a reference. The point is mostly keeping things smooth,
arrive at first food point on KM26 in very good shape and drink,
drink, drink.
After a 5mins stop at KM26, I started the hardest part of the trail,
until KM44: this part is mostly made of ups and downs and is the real
challenge: legs start burning, downhill running becomes harder and
harder and you need to save some energy for the final kilometers.
The second food point was in St-Cloud park, with a very nice view on
the Eiffel Tower, far far away. That one is the Grail to reach...but,
when here, we already have more than a marathon in our legs. So, the
stop is quite longer (about 10 minutes), just to be sure about "drink,
drink, drink" (eating is nearly a no-no at this point).
The final 10K along river Seine, from Saint-Cloud to Eiffel Tower were
really though. I was alternating walk and running, in attempts to
avoid cramps (I still remember my 35K trail back in June, where I
completed the last 3K with cramps in both legs, a real nightmare). I
still managed to run most of the time, though very slowly. Most of us
were indeed looking like zombies when crossing a small park on le
Saint-Germain with kids playing football and families hanging around,
enjoying the (still nice) weather. Now, even a 3-meter high climbing
means walking..:-)
The final kilometer was fun: at that point, you know you'll make it
and you try to look proud and fine while running among the Eiffel
Tower neighbourhood tourist crowd. And the applauses for the final
500meters are the real final gift with dozens of people yelling your
name (it was written along with our numbers, of course!). Yay.
I finally managed to finish 416th out of 1291 finishers, 50th in my
age/gender category. Not that bad for the first test beyond 42K.
Now the challenge is "rest, rest, rest" until April 10th and the Paris
Marathon. The first marathon of my second half-century. I, of course, know that this one will be really hard. No
idea, indeed, what goal I should set. Certainly not my marathon
personal best (3h40'). I think I would probably already be happy to finish in
less than 4 hours. If I feel really really well, I'll set 3h49' as my
goal (that was my time in Paris Marathon last year). We'll see if
that's crazy or not.
Doh, I really have weird ideas for the gifts I offer myself for my birthday...
As students will be able to submit applications to GSoC later today (see timeline), it's time to promote that phpMyAdmin again participates.
The ideas list is based on the one from last year with few additions, but as always, you are welcome to bring your own ideas. All information you want to know before applying can be found in our applicant guide. The most important thing is that we require you to submit patches to fix some bug or implement feature request before deadline for application submission. This proved last year to be useful to get people in touch with code base before accepting them, so that they have all things set up even before community bonding period.
So all students are welcome, you will be able to apply later today on our GSoC page.
Filed under: English Phpmyadmin 1 comments Flattr this!
Next.