Patrick Matth i: Some photos of my Turkey/Belek vacation


Over my time working with Debian packages, I've always been concerned that
I have been missing catchable mistakes by not running all the static checking
tools I could run. As a result, I've been interested in writing some code that
automates this process, a place where I can push a package and come back a few
hours later to check on the results. This is great, since it provides a slightly
less scary interface to new packagers, and helps avoid thinking they've
just been told off by a Developer.
I've spent the time to actually write this code, and I've called it
debuild.me. The code itself is in its fourth
iteration, and is built up from a few core components. The client / server code
(lucy and
ethel) are quite interconnected, but
firehose works great
on it's own, and is a single, unified (and sane!) spec that is easy
to hack with (or even on!). Hopefully, this means that our wrappers will be
usable outside of debuild.me, which is a win for everyone.
Backend Design
The backend (lucy) was the first part
I wanted to design. I made the decision (very early on) that everything was
going to be 100% Python 3.3+. This lets me use some of the (frankly, sweet)
tools in the stdlib. Since I've written this type of thing before
(i've tried to write this tool many,
many,
many,
many times before), so I had a rough
sense of how I wanted to design the backend. Past iterations had suffered from
and overly complex server half, so I decided to go ultra minimal with the
design of debuild.me.
<aside class="left">
You can find the code for the server (lucy) on
my GitHub
</aside>
The backend watches a directory (using a simple inotify script) and processes
.changes files as they come in. If the package is a source package, a set of
jobs are triggered (such as lintian, build and desktop-file-validate),
as well as a different set for binary packages (such as lintian, piuparts
and adequite). Only people may upload source packages (without any debs) and
only builders can upload binary packages (without source).
The client and server talk using
XML-RPC with BASIC HTTP
auth. I'm going to (eventually) SSL secure the transport layer, but for now,
this will work as a proof of concept.
Since I tend to like to keep my codebase simple and straightforward, I've used
MongoDB as Lucy's DB. This lets me move between
documents in Mongo to Python objects without any trouble. In addition, I
evaluated some of the queue code out there (ZMQ, etc), and they all seemed
like overkill for my problem, and had a hard time keeping track of jobs that
(must never!) get lost. As a result, I wrote my own (very simple) job queue
in Mongo, which has no sense of scheduling (at all), but can do it's job (and
do it well).
Jobs describe what's to be built with a link to the package document
that the job relates to, and it's arch and suite (don't worry about the
rest just yet). Jobs get assigned via natural sort on it's UUID based _id,
and assigned to the first builder that can process it's arch / suite.
Source packages are considered arch:all / suite:unstable (so they always
get the most up-to-date linters on any arch that comes along).
Lucy also allows for uploads to be given an X-Lucy-Group tag to manage which
set of packages they're a part of. This comes in handy for doing partial
archive rebuilds, or eventually using it to manage what jobs should be run
on which uploads. This will allow me to run much more time-consuming tools
for packages I want to review versus rebuilding to ensure packages don't
FTBFS or aren't adequite.
Client Design
The buildd client (ethel) talks with lucy
via XML-RPC to get assigned new jobs, release old jobs, close finished jobs,
and upload package report data. When the etheld requests a new job, it also
passes along what suites it knows of, which arches it can build, as well
as what types it can run (stuff like lintian, build or cppcheck.) Lucy
then assigns the builder to that job (so that we don't allocate the same job
twice), and what time it was assigned at.
<aside class="right">
You can find the code for the client (ethel) on
my GitHub
</aside>
Ethel then takes the result of the job (in the form of a firehose.model tree)
and transmits it over the line back to the Lucy server as a report (which also
contains information on if the build failed or not), at which point
lucy hands back a location (on the lucy host) that the daemon can write the log
to.
If the job was a binary build, the etheld process will dput the package to
the server, with a special X-Lucy-Job tag to signal which job that build
relates to, so that future lint runs can fetch the deb files that the build
produced.
Tooling
Ethel runs a set of static checkers on the source code, which are basically
fancy wrappers around the tools we all know and love (like
lintian,
desktop-file-validate,
or piuparts) which output Firehose in place of
home-grown stdout. This allows us to programmatically deal with the output
of these tools in a normal and consistent way.
<aside class="left">
You can read more about Firehose over in the Firehose
README.rst
</aside>
Some of the more complex runners are made of 3 parts - a runner, wrapper
and command. The server invokes the command routine, which invokes the
runner (the command just provides a unified interface to all the runners),
who's output gets parsed by the wrapper to turn it into a Firehose model
tree.
The goal here is that tons of very quick-running tools get run over a
distributed network, and machine-readable reports get filed in a central
location to aid in reviewing packages.
Ricky
In addition to the actual code to run builds, I've worked on a few tools to
aid with using debuild.me for my DD related life. I have some uncommon
use-cases that are nice to support. One such use-case is the ability to rebuild
packages from the archive (unmodified) to check that they rebuild OK against
the target. This is handy for things like arch:all packages that get
uploaded (since they never get rebuilt on the buildd machines, and FTBFSs are
sadly common) or packages that have had a Build-Dependency change on them.
Ricky is able to create a .dsc url to your friendly local mirror, and fetch
that exact version of the package. Ricky can then also use the .dsc (in a
monumental hack) to forge a package_version_source.changes file, and sign
it with an autobuild key and upload it to the debuild.me instance. Since it
can also modify the .changes's target distribution, you can also use this to
test if a package will build on stable or testing, unmodified.
Fred
Fred is a wrapper around Ricky, to help with fetching packages that may not
exist yet. Fred also contains an email scraper to read off such lists as
debian-devel-changes, and
add an entry to fetch that upload when it becomes available on the local
mirror, pass it to ricky, and allow debuild.me to rebuild new packages
that match a set of criteria.
I'm currently playing around with the idea of rebuilding all incoming
Python packages to ensure they don't FTBFS in a clean chroot.
Loofah
Loofah is also another wrapper around Ricky, but for use manually. Loofah
is able to sync down the apt Sources list, and place it in Mongo for fast
queries. This than allows me to manually run rebuilds on any Source package
that fits a set of critera (written in the form of a Mongo query), which get
pulled and uploaded by Ricky.
An example script to rebuild any packages that Build-Depend on
python3-all-dev in Debian unstable / main would look like:
<aside class="right">
You can find more queries in the Loofah
examples
</aside>
[
"version": "unstable", "suite": "main" ,
"Build-Depends": "python3-all-dev"
]
[
,
"$or": [ "Build-Depends": "cdbs" ,
"Build-Depends-Indep": "cdbs" ]
]
Sources.gz file to query off of (
including Maintainer!)
Future Work
The future work on debuild.me will be centered around making it easier for
buildd nodes to be added to the network, with more and more automation in that
process (likely in the form of debs). I also want to add better control over
the jobs, so that packages I upload only go to my personal servers.
I'd also very much like to get better EC2 / Virtualization support integrated
into the network, so that the buildd count grows with the queue size. This
is a slightly hard problem that I'm keen to fix.
I'm also considering moving the log parsing code out of the workers, so that
the parsing code can be fixed without upgrading all the workers. This would also
drop the Firehose dep on the client code, which would be nice.
Migration from a debuild.me build into a local reprepro repo is something
that would be fairly easy to do as well, likely to be done remotely via
the XML-RPC interface, which calls a couple of reprepro commands (such as
includedsc and includedeb) and publishes it to the user's repo. This is
a nice use of the debs that get built, and could also allow debuild.me to be
used like a PPA system, but this allows the user to not migrate packages
that may contain piuparts issues.
I know, I'm starting to repeat myself but: this week was again characterized
more be RC bug prevention than by actual RC bug fixing. in other
words: I was mostly dealing with not-yet release-critical bugs around the perl
5.18 transition.
actual RC bugs I've worked on (also mostly pkg-perl related):
systemd has too many dependencies, or it is bloated, or it does too many things, or is too complexNow this concern actually has a lot of different facets, and I am trying to share my opinion on each of them. systemd has too many dependencies First, let s start with too many dependencies , because that is easy to check and reason about. I have created a document which lists all dependencies of the systemd binary itself (pid 1) and all the binaries which are currently shipped by the systemd Debian package. If you don t want to take my word for granted, please read that document. Have you read the document? Very nice! As you can see, the systemd binary itself has 10 dependencies (excluding libc). Now, the question is, what is bad about dependencies? Why do people list dependencies as a top concern?
enforce_user
which uses libcap. You ll notice that the code is not complex and usage of
the libraries is clear.
Software bloat is a process whereby successive versions of a computer program become perceptibly slower, use more memory or processing power, or have higher hardware requirements than the previous version whilst making only dubious user-perceptible improvements.The first part of the definition certainly does not match systemd it is measurably faster than sysvinit. As for memory usage: systemd s RSS is 1.8 MiB, whereas sysvinit uses 0.8 MiB. As I argued on the More memory use point in the dependencies section, I think the additional resource cost is well worth the benefits. Also note that systemd s features are NOT all implemented in the binary which is PID 1. As explained in the dependency list, systemd consists of many cleanly separated binaries. So if a new version of systemd gathers an additional feature, this does not mean that your PID 1 will be bigger. While systemd runs on any hardware, it has an indirect hardware requirement: it requires some Linux kernel features (which are all enabled in Debian kernels). That might rule out usage of systemd on really old embedded hardware where you don t have a chance to update the kernel. While it is sad that those machines cannot profit from systemd, switching to systemd as a default has no downside either: Debian continues to support sysvinit for quite some time, so these machines will continue to work even with upcoming Debian versions. systemd does too many things The Wikipedia definition continues:
[ ] perceived bloat can occur from the software servicing a large, diverse marketplace with many differing requirements. Most end users will feel they only need some limited subset of the available functions and will regard the others as unnecessary bloat, even if people with different requirements do use them.I think the last part of the Wikipedia definition applies to systemd: it does service a large and diverse marketplace . That marketplace is the entirety of existing software which is started by an init system. Also, systemd can be used on a wide range of hardware (embedded devices, tablets, phones, notebooks, desktops, servers) which requires different features. As an example: on a desktop system you typically don t care strongly about a watchdog feature, but on embedded or servers that feature is very handy. Similarly, on a tablet, forward secure sealing of logfiles is not as important as on a server. Therefore, I can understand if you feel that you don t need many of the features systemd provides. But please think of other users and maintainers who are very happy with systemd s benefits. Also note that while systemd supports many things (in separate binaries!), you don t have to use them all. It still makes sense to ship them all in the same package. Take coreutils as another example in that area. The binaries belong together, even though you most likely haven t used all of them (e.g. od, pr, ptx, :-)). systemd is too complex The remaining concern is that systemd is too complex. In my experience, complexity is often inherent to a specific area and one cannot simply make it go away. Instead, there are different models of how that complexity is represented. Think of the monolithic Linux kernel versus the MINIX microkernel. The latter has a very small amount of lines of source in the kernel, but puts the complexity into userspace. The former uses a different approach with more source in the kernel. The arguments between both camps show that neither is clearly right or clearly wrong. In a way, sysvinit represents the MINIX model: it has a small core (the init binary itself), but a lot of complexity in shell scripts and external programs. The fact that solutions are copied from one init script to another leads to lots of subtle errors and makes code reuse really hard. systemd however has more source code in the binaries, but requires only very simple, descriptive, textual configuration instead of complex init scripts. To me, it seems preferable to have the complexity in a single place instead of distributed across lots of people and projects. Conclusion In a way, you are right. systemd centralizes complexity from tons of init scripts into a single place. However, it therefore makes it very easy for maintainers to write service files (equivalent of an init script) and provides a consistent and reliable interface for service management. Furthermore, it is different than sysvinit, and different solutions often seem complex at first. While systemd consumes more resources than sysvinit, it uses them to make more information available about services; its finer-grained service management requires more state-keeping, but in turn offers you more control over your services.
Australia's close ties with the US
Australia has had particularly close ties with the US for many years and just as the British GCHQ has been linked to PRISM, it seems Australia's ASIO is also in on the act. For those not familiar with the depth of this alliance, it is worth checking up on Pine Gap, the ECHELON program and the recent exposure (by Wikileaks) of one of our senators with unauthorised US spy connections - he quietly resigned for family reasons'.

I ll be spending the week after next (June 17-23) in London for the annual meeting of the International Communication Association where I ll be presenting a paper. This will be my first ICA and I m looking forward to connecting with many new colleagues in the discipline. If you re one of them, reading this, and would like to meet up in London, please let me know!
Starting June 24th, I ll be in Ann Arbor, Michigan for four weeks of the ICPSR summer program in applied statistics at the Institute for Social Research. I have been wanting to sign up for some of their advanced methods classes for years and am planning to take the opportunity this summer before I start at UW. I ll be living with my friends and fellow Berkman Cooperation Group members Aaron Shaw and Dennis Tennen.
I would love to make connections and meet people in both places so, if you would like to meet up, please get in contact.
I ve finally gotten around to listing all Waypoints (Geocaches,
Opencaches, Closedcaches, Earthcaches, Terracaches including
Locationless, Navicaches, etc.) I ve found a box, enjoyful,
educating, a good place to hide one myself, etc. and putting up
a list and, of course, generate
my own statpic.
I ll put them up for the other project members, too (already made a picture for gecko2@ but bsiegert@ still needs one; we also need to collect offline lists of found, owned and attended waypoints) A bit of background story: I decided, years ago, to have an offline list of cache finds in case something would happen. Just, I had found way too many already, so this was a huge bit of work. Oh well I of course procrastinated, and then something did happen (Opencaching wanting to force a Restricted Commons licence; me disagreeing and suggesting a change; some trigger-happy person immediately deleting my account without waiting for the discussion or the decision period to end; weeks of forum discussions; Opencaching allowing dual-licencing; them telling me they can t restore my data probably never heard of databa sorry, MySQL backups). And I still didn t have the list. Now I do; recreated even the OC information from what was still accessible and with help from one OC supporter ( mic@ , thanks); merged caches that are co-listed on several platforms, etc. (still need to put in the FTF/STF/TTF/4TF/LTF and voting/favourites information) and a statpic, all in Open Source and Open Data, in cvs(1) with mksh(1) and a frontend for libgd2 I admit, but we had been using that for the MirWebsite for a while already. I suggest every geocacher keep an offline or local record of all their finds (and hides and attended logs) for things like this, in case some platform decides to let s say, put your data into the cloud where it is? I don t know .
Recently I wanted to cleanup my "main" remote machine. It is a system I've had for many years, which started off as a i386 KVM-guest and was later migrated in place to an AMD64 installation.
These days the host runs:
mkdir -p ~/.dput.d/profiles/
cat > ~/.dput.d/profiles/ftp-master.json <<EOT
"fqdn": "ssh.upload.debian.org",
"incoming": "/srv/upload.debian.org/UploadQueue/",
"method": "sftp"
EOT
Note that uploading via SFTP will lead to debianqueued uploading the
files via FTP for you. But maybe that is more reliable than doing it yourself.
We ll see :-).
Yes! It is possible!
I ve done it!
On my production linode!
It was a bit hard, and I made quite a few mistakes, but I m convinced that a minimal system can be sanely crossgraded. I did it and only had an hour or so of server downtime In the process. However, most of the stack gets stripped down and back out, so I fear what happens with the X stack (nevermind GNOME Or anything that depends on it)
A more detailed post to follow!
Thanks to the dpkg team for making this happen!
When I was preparing my blog entry about the Gold Standard in Free communications, I had absolutely no idea that The Guardian (another Ganglia user) would be hot on my heels with dramatic revelations about US Government surveillance of dangerous terrorists and maybe sucking up a little bit of data about a few hundred million of their own citizens and another 90% of the world's population for good measure.
Some people even thought I've been a bit paranoid with my concerns about excessive surveillance. However, it is just remarkable to see that in the same week that the trial of Bradley Manning is getting under way for inappropriate use of his employer's computer, the US has been exposed plotting cyber attacks and setting a very bad example for all those little script kiddies out there.
Practical questions for every one of us
Is it time to start blocking email to and from sites like gmail and hotmail?
What about the reports that the US Government was engineering back doors in the OpenBSD operating system? Have any open source projects actually been comprised in this way?
Will spammers and other criminals take this as a cue that there is nothing morally wrong with hacking?
Have certificate authorities been infiltrated too? They may well be the elephant in the room - while everybody was joking about the NSA key hidden in the depths of Microsoft Windows, maybe one or more of the well known trusted root certificates, right under our noses, is also a back door?
The danger is real
Anybody wondering about the practical implications of all this data gathering doesn't have to look very far to find out what can go wrong. In the same week as all these things were exposed, there have been more dramatic revelations about law enforcement officers selling private data for their own commercial gain. While the vast majority of police are surely good citizens, every organisation has it's bad apples and as Bradley Manning demonstrated so well, it only takes one person to breach security and enormous volumes of data can end up escaping.
For email extensions such as SPF, DKIM and DMARC, I think the most flexible and portable system is the milter protocol. Originally developed for Sendmail, it is now also supported by Postfix, and it allows to plug specific filters in the mail server without the hassle of the previous systems like SMTP proxies.
My book about Rcpp (and its R and C++ integration) is now
available from Springer.
Amazon
still lists it as not-yet-released; I expect this to change in the next few days.
Today I was lucky enough to be able to visit the Telecom Italia telecommunications tower located in Rozzano, just south of Milano, and took some photos.
This tower, with its 187 meters, is one of the tallest man-made structures in Italy.
It was built by Telecom Italia in 1990 to create high capacity radio links to Genova and Torino and nowadays it contains radio transmitters for a TV station and many kinds of radio networks.
It is an impressive monument to an age when telcos had no optical fibers, but plenty of money.
I ll be presenting Authoritative linked data descriptions of debian source packages using ADMS.SW at OSS 2013.
Here s the abstract :
The Debian Package Tracking System is a Web dashboard for Debian contributors and advanced users. This central tool publishes the status of subsequent releases of source packages in the Debian distribution. It has been improved to generate RDF meta-data documenting the source packages, their releases and links to other packaging artifacts, using the ADMS.SW 1.0 model. This constitutes an authoritative source of machine-readable Debian facts and proposes a reference URI naming scheme for Linked Data resources about Debian packages. This should enable the interlinking of these Debian package descriptions with other ADMS.SW or DOAP descriptions of FLOSS projects available on the Semantic Web also using Linked Data principles. This will be particularly interesting for traceability with upstream projects whose releases are packaged in Debian, derivative distributions reusing Debian source packages, or with other FLOSS distributions.If you are interested, a previous paper which describes the same experiment is available online. See also previous installments on ADMS.SW in this blog.
In a previous blog entry, I posed the question whether open source communications software is really free and came to the conclusion that additional principles need to be defined for free communications, above and beyond the normal expectations of free software.
This is a fundamental problem that projects like the FreedomBox, Lumicall and other privacy-enabling free communications solutions must be familiar with. Otherwise there is a risk that development will never end as there is no finish line in sight.
Practical solutions are not so easily defined though: so let's just imagine a perfect solution for a moment. Later, we can contemplate the trade-offs that are necessary to make it practical.
Perfect privacy
Here are some attributes that may exist for a perfect solution:
Privacy must be the default: the user should not have to explicitly request privacy. If there is a risk that an incoming communication will establish a session without full privacy, the user should be able to decline the opportunity to participate.
Only participants to a communication can receive the communication
A third party should not be able to replay, modify or forge any aspect of the communication or the request to initiate a session
Only participants to a communication are aware that a communication occurred
Only participants to the communication are aware of who participated in the communication
A participant may be anonymous: but in this case, all other participants will be aware that there is an anonymous party present in the communication
Participants may not deduce any information about the other participants that is not explicitly shared (e.g. location, type of device, service provider)
In the case of real-time communication, a participant may leave the communication without any other party even realising that they left or why.
Communication is off-the-record: No participant can save and reproduce a copy of the communication in such a way that a third-party will know it was authentic.
Anonymous reception of communications - the perfect post-office box: someone may create an anonymous identifier that allows other people to call them without being able to trace their location or identity
Some consequences of a perfect solution
Just imagine if all communications worked in this manner.
There are many potential consequences. For example, if you call somebody and the call is not connected, you will get no feedback about whether their line is busy, out of service or whether they deliberately chose to reject your call.
Another example is somebody who is driving while talking on a telephone. If they have an accident, there will be no way to prove that they were using the phone. This may already be the case if somebody uses a VoIP app on their phone - the police investigating the accident later will simply find no records of calls through the mobile phone account.
Conclusion
The perfect solution described here is something of a holy grail rather than a recipe that a developer can implement. It is unlikely that such a solution will fall out of the sky in the immediate future. Most software products that offer secure communications only address less than half the issues described above: for example, digital mobile phones prevent eavesdropping with arbitrary radio receivers, but they don't prevent shops detecting the IMEI (serial numbers) of phones that pass through their store and using that information to identify repeat visits to their store.
One of the replies to the post about Debian's last groupware meeting
was from Patrick Ohly of syncevolution fame pointing out that
syncevolution already implements calendar autodetection for
CalDAV calendars as described in draft-daboo-srv-caldav-10.
While looking at the code I noticed that there's a backend for
the N900s calendar by Ove K ven as well.
When I tried Ove's latest package on my N900 it lead
to an immediate crash when doing a:
syncevolution --print-items target-config@webdav calendar
According to Patrick the bug was supposed to be fixed in recent versions so I set up
scratchbox and built a newer git snapshot for maemo (sources). This
wouldn't crash but didn't show up any items either. It turned out to
be a minor bug in calypso returning no content
type for REPORT queries which resulted in libneon discarding the
whole reply (now already fixed in calypso upstream).
With this out of the way setting up synchronisation is quiet
simple:
# Configuration
CALDAV_SERVER=192.168.0.10
syncevolution --configure username=<username> password=<password> \
calendar/backend=caldav calendar/database=https://$ CALDAV_SERVER :5233/private/my_calendar \
target-config@webdav calendar
syncevolution --configure --template SyncEvolution_Client sync=none syncURL=local://@webdav username= password= webdav
syncevolution --configure sync=two-way backend=calendar webdav calendar
You should then be able to print the items on the local (N900) and from the remote (CalDAV server) end:
# This lists the current calendar items on the server
syncevolution --print-items target-config@webdav calendar
# This lists the current calendar items on the N900
syncevolution --print-items @default calendar
And from there on sync away:
# initial slow sync
syncevolution --sync slow webdav
# from there on
syncevolution webdav
The syncevolution source code has great documentation about debugging problems (e.g.
src/backends/webdav/README). So check that in case you run into problems. The tl;dr version is
SYNCEVOLUTION_DEBUG=1 src/syncevolution loglevel=10 --print-items target-config@webdav calendar
to debug CalDAV related problems. In case you need to run syncevoluton from source be sure to set
these beforehand:
export SYNCEVOLUTION_TEMPLATE_DIR=$PWD/src/templates/
export SYNCEVOLUTION_XML_CONFIG_DIR=$PWD/src/syncevo/configs/
On the CalDAV side I used current Calypso git which (with some additional minor fixes)
now also interoperates nicely with Iceowl/Icowl-Extension aka Sunbird/Lightning
on the desktop side. There's also an ITP for it. So it'll hopefully end up in Debian soon.
A Armadillo release 3.900.0 was
provided by Conrad yesterday. It has been rolled into a new
RcppArmadillo
release 0.3.900.0 which is now on CRAN and in
Debian.
It has a number of nice changes, mostly on the performance side of things
(see below) and a minor cleanup/improvement in our Kalman filter example
(which, as I just realized, I forgot to note in the \code NEWS.Rd in the
released tarball):
Changes in RcppArmadillo version 0.3.900 (2013-06-04)Courtesy of CRANberries, there is also a diffstat report for the most recent release As always, more detailed information is on the RcppArmadillo page. Questions, comments etc should go to the rcpp-devel mailing list off the R-Forge page.
- Upgraded to Armadillo release Version 3.900.0 (Bavarian Sunflower)
- added automatic SSE2 vectorisation of elementary expressions (eg. matrix addition) when using GCC 4.7+ with -O3 optimisation
- added support for saving & loading of cubes in HDF5 format, contributed by Szabolcs Horvat
- faster
median(), contributed by Ruslan Shestopalyuk- faster handling of compound expressions with transposes of submatrix rows
- faster handling of compound expressions with transposes of complex vectors
- Kalman filter example switched from inline to \code sourceCpp , which simplifies / streamlines the C++ side a little
Next.