Christoph Berg: Tab completion in vim
Vim's habit of completing the full filename of the first match on :e has always
annoyed me. Rhonda pointed me to wildmode - thanks!
set wildmode=longest,list:longest,list:full
Vim's habit of completing the full filename of the first match on :e has always
annoyed me. Rhonda pointed me to wildmode - thanks!
set wildmode=longest,list:longest,list:full
While
other people are squashing RC bugs
I was using this week to fix (or investigationg) some more kFreeBSD issues -- mostly looking at
failed build logs and trying to fix the problems and after some nice
fish for dinner writing things up.
So this is the 2nd time I ran into a problem like this again. My FAT32 file system on the external USB HDD, all of a sudden, started reporting:00:47:32 rrs@champaran:/tmp$ sudo dosfsck /dev/sdb1dosfsck 3.0.9, 31 Jan 2010, FAT32, LFNLogical sector size is zero.
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.
kfreebsd-* build daemons from me some time ago, but still:
smile of the day.
Thanks, Russ.
Transitioning Python modules to dh_python2 is
straightforward.
I removed LOADS of magic from python-radix. I especially like the complexity reduction in
debian/rules,
but debian/control also got some fields removed.
I'm coming as well! Really looking forward to meet the people from Debconf9 again. Also people from the Games Team and the buildd and kfreebsd folks. And ideally there will be some more people interested in (Common) Lisp as well, we'll see
What is Unknown Horizons?
Unknown Horizons is a Free Strategy
game I have written about from time to time about and do from time to
time contribute. I also build Packages for Debianoids. Unknown
Horizons is not a new thing, it has been there for some years now. It
currently gets boosted by 3 very active
GSoC Students and evolving steadily.
Preparing for 2011.2
Unknown Horizons is Preparing for
another Release, 2011.2. As part of the effort I have updated the
official Unknown Horizons Debian and
Ubuntu
weekly archives with new rc
builds to get some more testing before the release happens. Please
test!
Why isn't it in Debian main yet?
Unknown Horizons hasn't been uploaded to Debian yet. This is mostly due to 2
factors: The game engine Unknown Horizons build upon, FIFE isn't in Debian,
evolving fast and not providing much of a stable interface and
therefor Unknown Horizons has traditionally had a strict dependency to
some VCS state of approximately the same age. Not good for a Debian
package obviously. And second, Unknown Horizons got rid of some
content that was not free (as in "main") just recently.
Personally I'm hoping we can have some packages soon as the freeness
stuff is sorted out now and I haven't seen any troubling breakages
with regard to the engine recently.
Looking around old files I have put online ages ago I stumbled upon a
Unknown Horizons
Code Swarm
Video I
have created back in September 2009. Feeling more than a bit sad this
piece of software died soon after being released. Searching the web
for "Code Swarm" still finds lots of old Videos created back then.
#!/usr/bin/python
from btsutils.debbugs import debbugs
import mailbox
import re
import sys
mailbox = mailbox.Maildir(sys.argv[1], factory=False)
bts = debbugs()
for key in mailbox.keys():
message = mailbox[key]
if not 'S' in message.get_flags():
if message['X-Debian-PR-Message']:
try:
bugnr = message['X-Debian-PR-Message'].split()[1]
except IndexError:
continue
else:
test = re.search('Bug#(\d 6 )', message['Subject'])
if test:
bugnr = test.group(0)[4:]
else:
continue
try:
bug = bts.get(bugnr)
except AttributeError:
print bugnr
continue
if bug.getStatus() == u'done':
message.set_flags(message.get_flags() + 'S')
mailbox[key] = message
mailbox.flush()
Run it like python cleanbugsmail.py ~/Maildir/.debian.bugs. Anyone
aware of a better solution?
At April 30, I took over maintenance of of
Debian's kFreeBSD
autobuilders. Means getting something
like 4,5k e-Mails this month (gladly no need to sign all those 4k
successful builds any more!), filling nearly 30 RC Bugs (quite a lot
of which got fixed just within hours after filling, wow!),
investigating some of the more strange build failures and such
stuff. In general it turned out to be quite some fun.
Quite interesting which libraries turn out to be rather central to the
Archive. I wouldn't have guessed that a uninstallable libmtp would
prevent a reasonable fraction of the builds to fail -- including
packages like subversion.
Packages builds failing because the disk space is exhausted may be
something most of us have already witnessed, especially those here
that use one of these small notebook hard drives. Build failures
caused by a lack of RAM might certainly be imaginable as well,
especially on highly parallel builds. But have you ever seen gcc fail
because the virtual address space was exhausted on 32 bit
architectures?
Also there's a interesting lot of packages with misspelled build
dependencies which sbuild can't find and therefore can't build the
package. Maybe having a lintian check for some of these problems would
be a good idea?
I'm also regularly seeing build failures that look easy enough to fix
-- like some glob in a *.install for some python package matching
lib.linux*. I try to fix some of these as I see them but my time is
unfortunately limited as well. Someone interested in quick&easy
noticed about these kind of issues? I could put URLs to build-logs on
identi.ca or somewhere on IRC.
There are also some really strange failures like llvm, which builds
flawlessly on my local kFreeBSD boxes all the time, inside and outside
schroot but hangs all the time in the same testcase when building on
any of the autobuilders (any hints welcome!) or perl failing on
kfreebsd-amd64 selectively but all the time.
Because of some problem with Denic's DNSSEC testbed and bind resolvers,
dlv.isc.org has removed all DLV records for *.de domains. WTF.
Imagine you have a old postgresql database. Further imagine it has
it's encoding set to something like LATIN-1 but some PHP web
application has put in UTF-8 strings. Now what would you do if you
have some python application actually respecting the encoding and
recoding the db content from latin-1 to UTF-8 giving you
garbage. Seems you can easily trick postgresql to now believe it is
UTF-8:
UPDATE pg_database SET encoding = 6 WHERE datname = 'foo';
For a summary of these magic numbers the
PostgreSQL Manual
is usefull.
From the java point of view
Recently I had to get some Scala Tool working correctly. Unfortunately
there are basically no packages in the Debian
Archive at all so I had to use maven to install these (or download +
install manually). Being a highly paranoid person downloading and
executing code from the internet without any cryptographic
verification at all one after the other practically drove me
nuts. Looking a bit deeper I noticed that some of the software in
maven's repository have some signatures
next to them -- signed by the author or release manager of this
specific project.
Why secure sources matters
With my experience in mind I got some Input from other people. One of
the things I was told is that some scala tools just aren't security
critical -- they're only installed and used as the current user. In my
opinion this is, for my desktop system, totally wrong. The important
things on my private Computers are my GPG and
SSH keys as well as my private data. For messing with these no super
user access is needed at all.
Comparing to the Common Lisp situation
Being a Common Lisp fan of course I noticed basically the same problem
for installing Common Lisp libraries. Here the situation in
Debian is quite a bit better -- and I'm
working in the pkg-common-lisp Team to improve this even more. Common
Lisp has some maven-alike tool for
downloading and installing dependency trees called
quicklisp -- without any cryptographic
verification as well. However there's light at the end of this tunnel:
There are plans to add GPG verification of
the package lists really soon.
Comparing the maven and the quicklisp model
So there are basically two different approaches to be seen here. In
maven the software author confirms with his
signature the integrity of his software while in
quicklisp the distributor confirms all
users get the same software that he downloaded. Now the
quicklisp author can't and won't check
all the software that is downloadable using
quicklisp. This won't be doable anyway as
there's way to much software or a single person to check.
Now in some kind of perfect World the maven
way would be vastly superior as there's a End-To-End verification
and verification of the full way the software takes. However there's
a big problem: I don't know any of these Authors personally and
there's no reason I should just trust any of them.
Now comparing this to the Distribution /
quicklisp model. Here I would just have
to trust one person or group -- here the
quicklisp team -- to benefit from the
crypto which might be possible based on karma inside the using
community. However here I don't gain the possibility that the software
is integer.
However idealized if some of these pieces of software was forged
between upstream and the quicklisp team
and attacker would also intercept me downloading the software from the
same address so I get the source from upstream matching the checksum
from quicklisp -- assuming the
quicklisp team does indeed know the
correct website. Additionally I get the confirmation that all other
quicklisp users get the same source (if
the quicklisp guys are fine of course) so
no-one inside the community complaining is a good indication the
software is fine. For this to work there's of course a relevant
user-base of the distributor (quicklisp)
necessary.
Relevance for Debian
So how do conventional Linux
Distributions like Debian fit in
here. Ideally we would have maintainers understanding and checking the
software and confirming the integrity using their private key or at
least know their upstreams and having at least a secured way getting
the software from upstream and a trust relationship with them. Of
course that's just illusionary thinking of complex and important
software (think libreoffice,
gcc or
firefox for example). Maintainers won't
fully understand a lot simpler pieces of software. And loads of
upstream projects don't provide a verified way of getting the correct
source code though that's a bit better on the real high-impact
projects where checksums signed by the Release Manager are more common
than in small projects.
A misguided thought at the end
As I'm a heavy emacs user I like
to have snapshots from current
emacs development
available. Fortunately binary packages with this are available from a
Debian guy I tend to trust who is also involved upstream so adding the
key from his repository to the keyring apt trusts. Now my first
thoughts were along the lines "It would be really nice if I could pin
that key to only the emacs
snapshot packages" so this guy can't just put libc packages in his
repository and my apt would trust them. Now thinking of it again a
bogus upload of the emacs
snapshot package could just as well put some binary or library on the
system at some place in front of the real on in the system path
which would be rather similar bad.
b
29. April 2011
After two weeks of work, I've just released
git-annex version 0.20110417,
with some big new features that open up some interesting use cases:
*
This is so easy to use and neato I just have to show it off:joey@gnu:~/tmp/repo> git annex initremote cloud type=S3 encryption=joey@kitenet.net initremote cloud (checking bucket) (creating bucket in US) ok joey@gnu:~/tmp/repo> git annex add bigfile add bigfile ok (Recording state in git...) joey@gnu:~/tmp/repo> git annex move bigfile --to cloud move bigfile (gpg) (checking cloud...) (to cloud...) ok (Recording state in git...) joey@gnu:~/tmp/repo> file bigfile bigfile: broken symbolic link joey@gnu:~/tmp/repo> git annex get bigfile get bigfile (copying from cloud...) (gpg) ok (Recording state in git...) joey@gnu:~/tmp/repo> file bigfile bigfile: symbolic link
* This feature isn't available in Debian yet, blocked by a lack of
the Haskell hS3 library packaged for Debian. Someone should fix that,
ideally not me. Getting missingh updated for the ghc7 transition
so git-annex is buildable in unstable would also be nice..
|
We celebrate the 4th edition of Debian Groupware meeting last weekend at Linuxhotel in Essen. A weekend with 'full-time-hacking' on Groupware related stuff. So now we have Icedove 3.1 and translation packages for Iceowl in Sid. Another task was bugfixing and try to solve license/trademark problems with z-push.
Due to the lovely weather on Saturday, we have BBQ together with some people from FROSCON. And these people carried unwittingly Debian swirled sweets. Just in one phrase: I'm looking forward to the 5th Groupware meeting in 2012. |
|
Next.