Tue, 06 Mar 2007
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
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
Mon, 05 Mar 2007
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
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 (
.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
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).
Fri, 02 Mar 2007
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!
Wed, 28 Feb 2007
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
peach, and if it would look good to something of the
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.
Wed, 21 Feb 2007
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!