Niels Thykier: Updates in the Lintian World
Documentation!
That is what the next version of Lintian will have. In 2.5.1, Lintian
had support for adding options in the lintianrc. Unfortunately, the
user had to guess the syntax, which makes the feature less useful.
With the next release, the manpage and the example config file[1]
will contain documentation and examples. The User Manual[2] also saw some improvements. Particularly, it will
mention that lintian can process a .changes file and that it does
cross-package checks. Of course, it also documents the format of the
new Vendor Profiles. Though even with these improvements, the current
documentation still leaves much to be wanted. The last unpack script (
was replaced by a smarter version of
that Lintian can now schedule
collections (namely
good time to upgrade our
multi-tarball source packages. Previously Lintian only extracted the
index from the base tarball. The
extracted fields from the control file (in the .deb, etc.) into a
directory. Each field became a file and the value of the field would
be written in the field. Today, the collection basically looks like
this:
upgrade to fetch these fields itself. This change should remove some
unnecessary file I/O in a normal run[3]. If you have a friend with his/her own little home-grown Lintian check
(or collection)[4], they will have to update it to A) not depend on
depend on index for source packages if it uses the index information.
For the latter,
index. Lintian has also seen a lot of decrufting in the 2.5.2 development
cycle. The new test suite now features skeletons ( standard base
environments ) and template support for all package test suites[5]. This means it takes a lot less of writing (or copy/waste) to generate
a simple specialized test in the low-level test suites. As a part
of cleaning up the test-suites, I got to run:
is among my favorite ones in the 2.5.2 development cycle. Finally, if you are one of the few that have ever used the
be deprecated in 2.5.2 and replaced by
old option had some specialized format, whereas the new option parses
the file (or
more
the packages-file parser from lintian 2.5.1:
in every package (the fields were cached, once they were read). Not
to mention a directory listing and having to remove the files again
later. [4] Of course, you do not have such a thing Because we all know
that no one (except this not too close friend of yours) messes with
Internal APIs of other projects [5] The exception being that the changes suite does not have a
standard base environment, since it would be completely unused.
had support for adding options in the lintianrc. Unfortunately, the
user had to guess the syntax, which makes the feature less useful.
With the next release, the manpage and the example config file[1]
will contain documentation and examples. The User Manual[2] also saw some improvements. Particularly, it will
mention that lintian can process a .changes file and that it does
cross-package checks. Of course, it also documents the format of the
new Vendor Profiles. Though even with these improvements, the current
documentation still leaves much to be wanted. The last unpack script (
unpack-srcpkg-l1) was finally removed andwas replaced by a smarter version of
index collection. This meansthat Lintian can now schedule
index in parallel with a few othercollections (namely
unpacked, which is the current bottleneck).
The speed improvement is probably not noticeable, but it was also agood time to upgrade our
index collection to properly handlemulti-tarball source packages. Previously Lintian only extracted the
index from the base tarball. The
fields collection also saw some attention. Previously itextracted fields from the control file (in the .deb, etc.) into a
directory. Each field became a file and the value of the field would
be written in the field. Today, the collection basically looks like
this:
[...]
if (-d 'fields')
system('rm', '-rf', 'fields') == 0
or die 'Could not remove old fields directory';
[...]
It has been deprecated the minute Lintian::Collect API saw a littleupgrade to fetch these fields itself. This change should remove some
unnecessary file I/O in a normal run[3]. If you have a friend with his/her own little home-grown Lintian check
(or collection)[4], they will have to update it to A) not depend on
fields, B) use the Lintian::Collect API for accessing fields and C)depend on index for source packages if it uses the index information.
For the latter,
Lintian::Collect has grown support for source packageindex. Lintian has also seen a lot of decrufting in the 2.5.2 development
cycle. The new test suite now features skeletons ( standard base
environments ) and template support for all package test suites[5]. This means it takes a lot less of writing (or copy/waste) to generate
a simple specialized test in the low-level test suites. As a part
of cleaning up the test-suites, I got to run:
$ git rm t/ source,debs /*/copyright
without breaking a single test. I have to admit that commit 8584996is among my favorite ones in the 2.5.2 development cycle. Finally, if you are one of the few that have ever used the
--packages-file option, then I am pleased to inform you that it willbe deprecated in 2.5.2 and replaced by
--packages-from-file. Theold option had some specialized format, whereas the new option parses
the file (or
stdin) as one package per line . The latter being farmore
"find -name '*.deb' "-friendly.
In case you are wondering why --packages-file is deprecated, here isthe packages-file parser from lintian 2.5.1:
while (my $line = <$pkgin>)
chomp($line);
my (undef, undef, undef, $file) = split(/\s+/, $line, 4);
$pool->add_file($file);
-
[1] Installed as /etc/lintianrc
[2] Installed as /usr/share/doc/lintian/lintian. html/,txt.gz
[3] Namely, 2 opens + 2 closes + 1 read and one write for each fieldin every package (the fields were cached, once they were read). Not
to mention a directory listing and having to remove the files again
later. [4] Of course, you do not have such a thing Because we all know
that no one (except this not too close friend of yours) messes with
Internal APIs of other projects [5] The exception being that the changes suite does not have a
standard base environment, since it would be completely unused.
Together with
Another year, another Debconf and now it is passed. Pictures are processes and all are now
Debian GNU/kFreeBSD was first released with Squeeze in last february. The technology preview label indicated, among other things, that it had a number of limitations when compared with what users would expect: missing features, incomplete functionality, etc.
But it has seen many noteworthy improvements since then. Here are some that I would like to mention:
As
Good pile of fixes made it worth to release current klibc git master. Patches came from Gentoo, Google and Openembedded. For details see
Many people still install Linux from CDs. But a growing number install from USB. In an ideal world you'd be able to download one image that would let you do either, but it turns out that that's quite difficult. Shockingly enough, it's another situation where the system firmware exists to make your life difficult.
The trip down from Gratz to Banja Luka was much easier than the day before.
After a while you just get used to being sat in a car for ages. Plenty of
nice scenery to enjoy through Slovenia. After a while our car's GPS's began
to fail, showing us driving through fields, and we were stuck for 1.5 hours
in a traffic jam when the 4 lane highway seemed to end. Got around
that with some guesswork, and on into Croatia by back roads.
The Bosnian border was an interesting experience, all the guards could say
in English was "green card! green card!" -- which from an American POV is
an unsettling thing to be asked for at a border, especially if they've
already taken your passport away -- but at least we were not
Oppdatering: Jeg har skrevet
Martin Michlmayr is a Debian developer since 2000 and I share quite a few things with him, starting with his age and involvement in the quality assurance team. He managed to be elected Debian Project Leader in