Vitavonni

Sun, 11 Sep 2005

Layered subversion coming along

I've been hacking code todays quite efficiently... my "layered subversion" client is coming along nicely.

You'll probably wonder what "layered subversion" is supposed to be.

Basically it's an overlay of multiple subversion repositories, the same thing you would get by exporting them and then copying them over each other.

Except that I want to be able to check-in my changes to the repository where the file came from...

So I e.g. have a configuration like this:

Configuration 'Host foo /etc' has the following layers:
Layer ID: 'base' is 'http://confighost/svn/layers/base'
Layer ID: 'selinux' is 'http://confighost/svn/layers/selinux'
Layer ID: 'firewall' is 'http://confighost/svn/layers/firewall'
Layer ID: 'foo' is 'http://confighost/svn/layers/foo'

I have a set of configuration files common for all my servers. These files are stored in the base layer, and when I update my machines I want to recieve the latest updates.

Then I have the SELinux layer, which e.g. contains policies, but also overrides some of the default init scripts (removing stuff which won't work on SELinux due to security restrictions, e.g. updatedb)

The third layer is shared for my firewall boxes, whereas the fourth layer contains e.g. /etc/hostname which is unique for this host.

Now assume I've changed some files in my configuration (e.g. by runing apt-get upgrade), I now want to commit these changes to their respective layers. While I could do this manually, or by merging somehow etc. I want this to be automated as far as possible. In most cases, files won't move from one layer to another; even the case where a file exists in multiple layers (the SELinux cronjob example above) is very rare.

Here's an output of my current "laysvn status" command:

M foo   fstab
? ---   foobargnarf
M base  magic
? ---   foo
First I've modified the fstab, which is in the foo layer (the topmost). I've created a new file named "foobargnarf" which is new, so the tool doesn't know in which layer to place it into. The file "magic" is from the base layer, while the folder "foo" with some contents is new, too.

There is still lots of stuff missing. Some of the code is also rather ugly, it's more of a hack into the python subversion API: the only way I've found to query whether a (not yet existant) file is to be ignored (in which case I will not look in lower layers, so I can "delete" files in upper layers!) or if it is just a new file is really odd in pysvn: a new file will give an empty result for the status() call, whereas an ignored file actually is found as ignored... it would be nice to get a proper "404" return code in the first case.

I have no idea yet of the semantics to be used in conflicts, or which issues will arise with the "update" call. I have a rather clear view of the latter through...

When I'm at a point where I can use this tool for my needs I'll release it, and hope that someone else picks it up and adds the functionality to either regular subversion or svk... ;-) Long live OpenSource!

[category: /en/linux | Permalink]

How Xfree86 died...

Many of us developers will remember when XFree86 changed it's licence with the release of 4.3.something (officialy with 4.4). When Debian decided to stay with the last version that still had the old licence and backport drivers selectively that do not have the new licence terms (which were most of them IIRC. I remember Alan Cox explicitely not agreeing to have his code's licence changed)

Noone ever noticed Xfree86.org releasing 4.5, did you?

Xfree86.org has gone entirely off the FLOSS radar.

In retrospect, the project killed itself by changing their licence, putting in some clauses many users, developers or maintainers found inacceptable. (FSF says the licence is incompatible with the GPL, i.e. a GPL program cannot use the xlibs from xfree86.org)

Everybody is using X.org now. (well, we at Debian are still shipping xfree86 only in sarge, but we are only providing security updates for it anyway, and we have an updated version to which the old licence still applies).

And I actually think that it was a good thing:

X development has picked up a lot since back then, I have the impression that more people are actually working on it than before. (But that may also be due to the joint efforts of GNOME and KDE at freedesktop.org)

With X.org we've seen a couple of new developments that have long been requested for Linux, including the famous Screenshots with real transparency and real shadows by Keith Packard which made users scream for X.org at the poor Debian maintainers... (although performance depends very much on your driver, and maybe stability and other archs are more important...)

One of the bigger things for developers - which will happen with the 7.0 according to schedule - is the modularization and autotoolization of X.org sourcecode, which should make maintaining them a lot easier apparently. Yay!

[category: /en/linux | Permalink]

Noone is playing any more / Niemand spielt mehr hier

Another shot from friday night: a childrens' playground scarely illuminated by the street lights. Actually it is a very new playground, and there is only a walkway here, no road.

Noch ein Foto von freitag abend: ein Kinderspielplatz, der von den Straßenlampen nur spärlich beleuchtet wird. Es ist sogar ein sehr neuer Spielplatz, und keine Straße in der Nähe, nur der Fahrradweg an der S-Bahn.

Noone is playing here

Noone is playing here / Niemand spielt mehr hier

[category: /photos | Permalink]
Menu
[planet.debian]
[planet.xmlhack]
[planet SELinux]
[munichblogs]
[email]
[RSS 2 feed]
[English RSS 2]
Categories
< September 2005 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
252627282930 
Archives
2010-Mar
2010-Feb
2010-Jan
2009-Dec
2009-Nov
2009-Oct
2009-Sep
2009-Aug
2009-Jul
2009-Jun
2009-May
2009-Apr
2009-Mar
2009-Feb
2009-Jan
2008-Dec
2008-Nov
2008-Oct
2008-Sep
2008-Aug
2008-Jul
2008-May
2008-Apr
2008-Mar
2008-Feb
2008-Jan
2007-Dec
2007-Nov
2007-Oct
2007-Sep
2007-Aug
2007-Jul
2007-Jun
2007-May
2007-Apr
2007-Mar
2007-Feb
2007-Jan
2006-Dec
2006-Nov
2006-Oct
2006-Sep
2006-Aug
2006-Jul
2006-Jun
2006-May
2006-Apr
2006-Mar
2006-Feb
2006-Jan
2005-Dec
2005-Nov
2005-Oct
2005-Sep
2005-Aug
2005-Jul
2005-Jun
2005-May
2005-Apr
2005-Mar
2005-Feb
2005-Jan
2004-Dec
2004-Nov
2004-Oct
2004-Sep
2004-Aug
2004-Jul
Other links:
Swing and the City - Lindy Hop in Munich