Thibaut Girka: Multiarch Cross-toolchains
Hi!
I have been selected to work on multiarch cross-toolchains as part of the Google summer of Code.
Although coding officially started last week, I have been busy with exams and other uni stuff at the time.
Anyway, let's talk about the project itself, that is, multiarch cross-toolchains.
What is multiarch?
In order to understand what the project is about, one need to know what multiarch is.
I'll quickly describe it, and I invite anyone interested to read the spec (really, it's interesting, and not that long).
Basically, multiarch lets you install binary packages for multiple architectures on one system,
and let package managers resolve dependencies as one would expect.
This works by identifying four sets of packages:
Note that some lib*-$ARCH-cross packages will remain (for instance, libgcc1-armhf-cross).
Indeed, those packages are different from the packages mentioned above in that
they are of the architecture of the build system and actually part of the toolchain itself.
The above isn't actually true. Indeed, those packages are runtime library cross-built during gcc's build. Likewise, cross-toolchains may build-depend on foreign packages (ex: libc6-dev). Thus, specific arch qualifiers must be handled in the Build-Depends source package field too. Changing dpkg and apt to support that should be fairly straightforward. In fact, I already have a few patches, but I need to refresh them, maybe clean them up a little, and push them a little harder to get them accepted!
- Packages that don't need to be aware of multi-arch. Such packages can only be installed for one architecture at a time, and can only be used to resolve dependencies of packages having the same architecture. Those packages are Multi-Arch: none or multiarch-unaware packages.
- Packages that can be installed for multiple architectures at a time, and can only be used to resolve dependencies of packages having the same architecture. Those packages are Multi-Arch: same packages. They typically are libs.
- Packages that can only be installed for one architecture at a time but can satisfy dependencies of any package regardless of its architecture. Those packages are Multi-Arch: foreign packages. They typically are tools working with architecture-independent interfaces. (for instance, gpg, zenity or tar).
- Packages that can only be installed for one architecture at a time but can satisfy any dependency annotated with :any , regardless of the architecture. Those packages are Multi-Arch: allowed packages. They are packages providing both arch-dependent and arch-independent interfaces. They are typically things like python, which can be used to interpret arch-indep files, but providing arch-dependent interfaces for C extensions.
The above isn't actually true. Indeed, those packages are runtime library cross-built during gcc's build. Likewise, cross-toolchains may build-depend on foreign packages (ex: libc6-dev). Thus, specific arch qualifiers must be handled in the Build-Depends source package field too. Changing dpkg and apt to support that should be fairly straightforward. In fact, I already have a few patches, but I need to refresh them, maybe clean them up a little, and push them a little harder to get them accepted!
I've just pushed out 
Email spam is a plague, but sometimes there is at least on category of
spammers it is easy to have fun with: naive manual spammers. People that try to
do more or less legal business, using Internet in an illegitimate way, for
instance (this is a real example, including the spammer's address: spamming
bots, please use it ;-) !):
Each instance (virtual machine) started from the same image is configured
identically. The same account and the same procedure will be used to
connect to it. If the machine image is public and if the instance is open
to the Internet, which is common when using commercial providers such as
The
I was worried about having to learn hundreds of configuration options to
properly set up mailman, postfix and lighttpd on Debian Squeeze. Turned out,
that except for lighttpd it all works out of the box.
Fedora 17 will be shipping next week. It's got a bunch of
Crazy title, I know.
Over the past $WHILE, I ve found myself checking for the same things. Some of these are fit for inclusion into lintian it s self others, not so much.
Here s a rundown on what my lintian wrapper (tragically also called lintian and just higher up on my $PATH. I know it s a hack.)
Since I only use lintian on .changes files - it pre-processes for some information that is stuffed in the changes.
The first step is to get all the bugs that the package closes. It then takes these bugs, and queries the BTS to see what package they re filed against. If the bug is filed against a different bug then the package s source, it ll emit a warning. It has a greylist for stuff like WNPP . This will fail if something s filed against it s binary package rather then it s source :)
Next, the wrapper will get other info from the changes. It checks if the suite is in the blacklist ( UNRELEASED , and testing , (stable for me as well, since I don t usually deal with SRUs often)).
It ll also check for the changed-by and maintainer, ensuring they re the same. This will fail for co-maint d packages.
If you ve not guessed by now, this system relies on false-positives :)
Nextly, if there are .debs in the Files, it ll go through and check the control of each. It ll print out a stanza with the short-description inside a template, to see if the description works .
After that, it ll attempt to make HTTP requests to the Homepage (and eventually URLs in the description and VCS-Browse)
If the package has python in the source name anywhere, or in any of it s binary packages, it ll trigger
As you can see, it s very (very) verbose, but i d rather cross stuff off a checklist then worry about something being off.
Anyway, it s a work in progress. Not even a serious one, at that. It s a bunch of hacks put together, so I can t really endorse anyone else using this stuff. If you feel crazy enough to do so, all the tools are found on my