You are here: / home

Tue, 06 Mar 2007

Conflict finder script - The next generation

I got some feedback for the script which tries to find conflicting packages I hacked together after the Chemnitzer Linux-Tage.

Seems to be a useful tool, so it might be nice to add it to devscripts?

Some criticized, that it won't work perfectly, since I only check against files mentioned in Contents-<arch>.gz where files / folder created in a maintainer scripts are not listed.

I know that, but I don't know a useful way to solve the problem. It's better than nothing, and maybe I'll find later a way to add support for installation time created files.

Thanks to Kevin Mark and Marc Bockschmidt who pointed me to some improvements for the script, which reduced the time the script takes dramatically! While my first hack needed for a simple package nearly 15 minutes, the new one is down to one or two minutes. Thanks!

So please test it a bit; feedback is alway welcome. You can find the latest version at http://www.schmehl.info/tmp/conflicts".

Special thanks to Alexander Wirt and Thomas Viehmann who did proof of concept rewrites in perl and python. Alexanders perl version is quite fast... but needs a huge amount of memory. Thomas' python version is very elegant! You don't need to understand python to understand his script. Nice done, but could need some further improvements; since it takes as much time nearly as my bash script. And since I hope it might be interesting for devscripts maintainer, and I'm not sure if they would like to add a dependency on python, I think my bash script has - for now - the lead :))

The script could still need some improvements. For example tweaking the code a bit; I'm sure many of the things I do with pipes from awk to another awk to sort (or something like that) can be cone my awk itself. I Just don't kno how. And instead of fetching the Contents-<arch>.gz from the main server, the script could tread it from the users prefered mirror... and maybe even support for other downloaders than wget.

postet at 09:14 into [Debian] permanent link


Mon, 05 Mar 2007

Back from Chemnitz

The Chemnitzer Linux-Tage are over and I'm back home. Again it was an outstanding event. Starting from the overall organisation to the social event (and their quiz) to the catering... I'm still stuffed with the buffet of the social event :)

The first thing in the morning I did a workshop about Debian package building. It was very well visited; only two seats were left empty. The visitors were very good; understood most very fast and corrected me a couple of times, when I did copy'n paste mistakes. It was fun to do that, and I got good feedback.

BTW: If you need a small example to show someone how to create a Debian package, you might want to take a look an gnujump. The templates created by dh_make work nearly out of the box (so you can concentrate on explaining what is done, instead of fixing stuff to get it working), while the resulting package has still place for improvements (.menu and .desktop files; splitting the package into a arch dependent and an arch independent; etc.) And most important: It is compiles quite fast, while you still have something to show, so your visitors will see, that you indeed did something.

Talking about the feedback I got after the workshop: One guy asked me about a way to check for conflicting packages, and we all wondered, that there's nothing scripted available, yet. So I promised to hack something together to at least check for conflicting files. The result is available at conflict finder (and later an svn.schmehl.info, as soon as I find out how to setup webdav/svn to allow read access to some repositories and not others).

To check for packages your package should conflict with, you need to first build your package (or we won't know which files are in your package) and give the path to the resulting .deb as the first parameter to the script. If you have a Contents-foo.gz file somewhere on your hard disc, you can specify the path to that file as the second parameter (if you use apt-file or have a local mirror, it'll try to find it; if everything fails the script will try to download one).

Then the script will check for each file of your Debian-Package if there is any other package having the same file. Sounds cool, but is damn slow; the repeated zgrep over the Contents-File is quite time consuming. For a quite small package (xdialog) it took nearly 15 minutes to complete. Wow, when I hacked it together, I wouldn't have thought it would be that slow.

As far as I know Alexander Wirt is already working on an improved version using some kind of database (and perl).

postet at 18:40 into [Debian/events] permanent link


Fri, 02 Mar 2007

I'm off to Chemnitz

Not that this city would be a very attractive one (in my humble opinion), but they have one of the most interesting and well organized Linux events in germany.

If you have nothing to do during the weekend (or need an excuse for not having squashed any rc-bugs ;) get to Chemnitz; it's really worth it.

There'll be a Debian booth organized by Noel (Sorry, too lazy to dig out how to get your accents in HTML), as well as other interesting booths. I'll give a small workshop about debian package building. See you there!

postet at 15:45 into [Debian/events] permanent link


Wed, 28 Feb 2007

The emanzipation of men - or: How to get your boyfriend to go shopping with you

Dear Ladies, if you'd like your husband / boyfriend to go shopping with you, get your shop to be at least a bit friendly to him.

There is nothing wrong, if you need two hours to buy a new blouse. (Actually, I heard some men need some time for shopping, too, so that doesn't even count as "typical feemale".)

There is nothing wrong, when your man has nothing to do... beside trying to find your clothes in an other size... or trying to figure out, if that color is apricot or peach, and if it would look good to something of the color pumpkin.

What makes such trips horrible is that boutiques are often overheated (Well, that might be a must; they must not be too cold for a women to take her clothes of), narrow (How many clothes stands can you squeeze into a 10m2 shop?) and loud.

If you want us to go shopping with you, go to a boutique, where a men can at least have a seat. Possibly with a water cooler nearby. That would make it a lot easier for us.

A positive example is Eierund. They have some kind of "men and children area". Children will find comics and can watch movies, and men can read car and computer magazines (or steal the comics from the children). They even have sweet apples and a really comfortable couch. That's how you make your man enjoy going shopping with you!

PS: Having a nice girlfriend, who doesn't take that long shopping helps a lot, too.

postet at 18:51 into [Debian] permanent link


Wed, 21 Feb 2007

Note to myself:

When experimenting with rewrite rules for your Apache, don't test them with firefox / iceweasel; it's cache might fool you.

Update: Niall Donegan pointed out, that you can circumvent this problem easily by installing the Web Developer toolbar (Debian package: iceweasel-webdeveloper) which offeres the feature to disable the the browsers cache. Thanks!

postet at 01:42 into [Debian] permanent link


<<  1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 [38] 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87  >>

About

Alexander Tolimar Reichle-Schmehl lives in Hildesheim / Germany. He's an official Debian Developer. Beside maintaining various packages, his main task is being spokesman and event organizer of the Debian project.

Links