Search Results: "joey"

1 October 2007

Joey Hess: pristine tarball generator

Keeping pristine upstream tarballs around is a pain. Wouldn't it be nice to be able to keep them in revision control? Except, it would use far too much disk... Here's a solution. It generates an binary delta between the pristine upstream tarball and a tarball created using files checked out of the repository. The delta should be quite small, and any checkout of the repository that has the same file contents as that used to create the delta can be used to regenerate the pristine tarball. Example (which would presumably be more fun and faster if I used git):
joey@kodama:~package/uqm-voice>svn switch svn+ssh://uqm.debian.net/srv/svn/uqm/tags/uqm-voice/upstream_version_0.3
D    debian
A    comm/blackur/black041.ogg
U    comm/shofixt/shofi040.ogg
U    comm/starbas/starb182.ogg
D    comm/slyland/slyla030.ogg
U    comm/chmmr/chmmr035.ogg
U    comm/supox/supox031.ogg
Updated to revision 223.
joey@kodama:~package/uqm-voice> pristine-tar extract ~/uqm-voice.delta ../uqm-voice_0.3.orig.tar.gz
The generated tarball is bit-identical to the 19 MB upstream tarball, though you have to gunzip them both to check this, since the gzip compression differs. The delta file is all of 41k large. The uqm-voice.delta file was created earlier as follows:
joey@kodama:~> pristine-tar stash lib/debian/unstable/uqm-voice_0.3.orig.tar.gz uqm-voice.delta
I've uploaded pristine-tar to incoming.

Joey Hess: git archive as distro package format

The tricky part of using a git (or other rcs) archive as distribution source package format is handling pristine upstream tarballs. One approach would be to try to create a git archive that didn't include objects present in the upstream tarball. Then, to unpack the source package, you'd unpack the upstream tarball, convert the files in it into git objects and add them into the .git directory. This way a pristine upstream tarball is available for verification, and it also has the same properties of not needing to re-upload the source for every package release as the current Debian source format. This seems like it might be possible to implement, but you'd need to know quite a lot about git internals to remove the redundant objects from the git repo and regenerate them from the tarball.
Another approach would be to keep the pristine upstream tarball in the git archive, and then the source package would consist entirely of the git archive. This doesn't have the same nice minimal bandwidth upload behavior -- unless you can git push your changes to do the upload. Storing a lot of upstream tarballs in git wouldn't be efficient, but I've written pristine-tar to take care of that. :-)

30 September 2007

Joey Hess: on debian directories in upstream tarballs

From time to time the question comes up on Debian mailing lists of whether debian directories in upstream tarballs are harmful and what do do about them. I tend hide from such threads, since all upstream tarballs I create contain debian directories. But I realised tonight that the common wisdom from those discussions is wrong, or at least incomplete. Here's why. First, it's important the notice that this is not a problem in the rpm world. Putting an rpm spec file in an upstream tarball is considered good practice. There's no downside; if a packager needs to change how the package is put together, they can replace the spec file. And users can run rpmbuild on the tarball and get an rpm spit out. Handy. So, then, why is the equivilant practice a problem in the debian world? Three intertwined reasons:
  1. The tools assume all files in debian/ are good. There's no way to make debhelper not install a debian/init script, or any similar file. Note that this problem only affects helper tools like debhelper; the core deb building tools only care about a few files that are in every debian directory. Effectively, debhelper, and (possibly) cdbs are the only tools with the problem currently.
  2. The source package format doesn't support removing files from the upstream tarball. This is a pretty silly limitation that any source format better than the current one should override. If wig and pen was ever implemented, it should support some means of deleting files.
  3. Package maintainers fear that they can't get upstream to make changes, or not fast enough, so worry about getting into a mess with files in an upstream debian/ that can't easily be fixed.
I feel that if any of these three problems is solved, an upstream debian directory is ok. #3 can be solved to some extent for some packages, though these solutions will always be the least satisfying. It's tempting to try to solve #1 in debhelper. I could add an --ignore switch, to make debhelper commands not act on a given file in the debian directory. (Update: done in version 5.0.57!) The best place to solve it, though, would be in the source package format. I'd be happy to see wig and pen be implemented, but would be happier to see us moving toward using a distributed revision control system as a source package format. Consider a source format that replaces .diff.gz with .git.tar.gz.

29 September 2007

Clint Adams: Blagscroll

Joey, I find it the creepiest when I see my words scroll across my boss's monitor.

Christian Perrier: 444444th bug

Martin Michlmayr reported Debian's 444444th bug yesterday, for those who like nice-looking numbers. This bug was reported against a Debian Installer package and closed a few hours later by an upload by Joey Hess. As one sees, even if the D-I team is still a little bit jerky after Frans Pop resignation as Debian developer and D-I release manager, the maintenance of the code is still happening. J r my Bobbio and Otavio Salvador, our new release managers, are still learning and building their knowledge to be able to release a beta version in the next months. New interesting mark in Debian's BTS is bug number 500000. It took 10 months (309 days) to go from 400000 to 444444. That means 695 days at the same rate to reach bug #500000 which means one can expect bug #500000 to be reached on Oct 18th 2008. But we all know that the bug report rate is not linear in Debian....:-) Update: thanks Frans for correcting my jerky English: "resignation" is better than "resignment".

Joey Hess: CHON

I've been reading The Omnivore's Dilemma, by Michael Pollan. The stuff about corn is interesting. I was going to talk about how this relates to CHON-food and Pohl's Gateway. After all, both books feature industalising the suface area of whole states to produce food. Though one is SF and one isn't. But I'm too tired.

Joey Hess: foo feed

I've added a foo feed to my blog. Stuff posted there won't show up in my main blog feed, so it probably won't go across your eyeballs. I've not been blogging a lot lately, because it often seems not worth wasting bandwidth for random, half-thought-out, or unimportant stuff, and often not worth the effort to try to synthesise something interesting out of it all. I'll probably use the foo feed for such things, as well as for replies to blog posts that don't add a lot of substance. Just grist for the google mill. Maybe that'll mean it becomes the interesting feed that everyone reads.. (PS, am I the only DD on Planet Debian who occasionally gets the heebie-jeebies about my every post scrolling across uncountable computer screens as part of that screensaver? Hi, you. Yes, you, the one reading this in a large-font crawl across your screen right now, who has no idea who I am, or even that there's a person typing this.)

28 September 2007

Frans Pop: Introducing debtree

Package dependency graphs on steroids
How an innocent and simple question can lead to strange development.
I was looking for a simple command that would tell me what the dependency path is from one package to some other package. That is, without having to go by trial-and-error using e.g. aptitude. Actually, I am getting quite annoyed by the fact that I regularly see e.g. gconf2 being pulled in when I install something on my (KDE-based) systems and I wanted to see how exactly they got pulled in. It should be possible to install e.g. xchat without being forced to install gconf2 too, right? For Sarge I had a similar issue with the gimp. Anyway, possibly there already is something to print dependency paths, but I did not find it. As I had some time free after dropping out of the Installer team, I decided to scratch my own itch. To get the paths I decided to recurse through dependencies using grep-available and friends, basically building a tree. An old wish was to play with dot, so I thought it would be nice to visualize the tree and so verify my code (conveniently forgetting about apt-cache dotty...). I soon had something basic working and after that it turned out to be irresistible (and surprisingly easy) to keep adding functionality. The result is that I can now produce graphs like: debtree example This is a fairly simple example. A lot of graphs are much more interesting. Oh, yes, it also answers my original question:
$ debtree xchat gconf2
xchat -> xchat-common (D) -> gconf2 (D)
The script is quite flexible and now looks solid enough for a first (Beta) release. After a few optimizations the shell script is even acceptably fast (or at least not slow) on my box. Euhh, what? Shell script? Yes. As I don't really know any of the popular languages used in Open Source, writing this in e.g. perl would just have taken too much time. OTOH, after some three years of working on D-I, I have become quite fluent in shell script. After all, about 80% of the installer (almost all functionality that does the actual installations — including the partitioner) is written in shell, so complex systems in shell are perfectly possible; thanks to Joey we even have a web server in shell! And it keeps surprising me how structured you can work in shell if you try a little. So there. Of course I'd like to see debtree re-implemented in another language, mainly to improve performance. Probably in C++ as that is what apt-cache is written in and its 'dotty' function could be a nice starting point. You'll understand from the above that I'm not going to do this myself, so if anybody is interested in working with me to do this, please contact me. debtree seems like it would be a nice addition to Debian, maybe even alongside apt-cache in apt... Enjoy!

26 September 2007

Raphaël Hertzog: DSA needs a leader

Seriously. Now that we have been using the request tracker for quite some time, it’s even more obvious that the DSA team is not up to its task. Use login “guest” and password “readonly” if you want to check the RT tickets linked in this article. The facts Note that myself and Matt do not have the needed rights to fix most of the tickets, so we provided help on a best-effort basis. Otherwise we would have done more. The communication problem It’s a multi-level problem. Each of the members has some problems with one or more other members. Joey’s behavior has been part of the recurring problems mentioned: he doesn’t use the RT, doesn’t read the DSA email alias and doesn’t follow the DSA IRC channel but he still does stuff very regularly without reporting anything and obviously problems happen. Ryan and James tried to impose him a rule to document what he does, without success apparently. On the other side, as far as I know, Ryan and James also don’t impose themselves to document everything in a central changelog. Joey has refused to provide me an explanation for his behavior. He just reminded me that he holds grudges against James and Ryan because as ftpmasters they didn’t cooperate well with him while he was stable release manager. In general, outside of all personal griefs that they might have, the DSA members do not communicate very much (at least not on their own official channels). Some examples have already been given concerning the request tracker, but it’s not much more effective on IRC. Most of the traffic on the channel is made up by local admins fixing the problems themselves without any intervention by any DSA. I also use the channel to regularly ping some DSA about simple issues and/or stuff that they usually handle. It used to work somewhat but lately fil has been busy (with the kernel summit and other conferences) and I simply got no answer at all… for example I pinged elmo, neuro and fil several times in the last weeks in the hope that they handle the tickets of the security team (#150, #157, #164) without results. There’s room for improvement. The leadership problem The team has no designated leader and every time that there’s a decision to take, they are blocked. Joey wouldn’t communicate and give his opinion, Ryan is extremely requiring and perfectionist, there’s not much room for compromise… A long time ago in a galaxy far, far away, Joey and elmo were friends. It’s even Joey who gave root rights to elmo. Nowadays, it’s rather James that is sort-of leading the team but he’s fed up of the situation and hasn’t managed to get out of this mess. He refuses to take drastic measures by himself because he’s not clearly the leader and doesn’t solicit a decision of the Debian leader (or the project) because he believes that the DSA team is not under the scope of the constitution! This can’t last any further. We’ll have to do something about it. Stay tuned.

19 September 2007

Holger Levsen: fixxx bugs like Joey Hess

Less than an hour. Thanks! :-)

18 September 2007

Chris Lamb: Graphing the Debhelper Design Pattern

(In case anyone has missed it, Debian Live is a neat framework for creating live Debian distributions on CD, DVD, USB or netboot media.) Debian Live’s primary utility, live-helper, is implemented using what Daniel calls the “Debhelper” design pattern: that is, a number of small shell scripts (or helpers) that are run just below a configuration directory. Each helper should ideally perform a single task, and running a helper is always ’safe’, meaning that any logic for determining whether the helper’s actions should take place is in the helper itself, rather than in the caller. This arrangement results in a somewhat modular design (for shell scripts, anyway) and allows for simple debugging - simply run the helpers manually, or ‘set -x‘ the helper you are interested in and re-run the lot. live-helper currently has a total 69 helpers, and included in this are a number of ‘meta-helpers’ such as lh_build, lh_chroot, etc. whose job it is to simply call other helpers in the correct order. In an attempt to tame this large number, I made this SVG (45KB). Each edge corresponds to a call in the direction of the edge. Source is available in my branch on the master tree.

16 September 2007

Joey Hess: yay, rising applachia

I finally got to hear Rising Applalachia just now (at Java J's). They're about to play a song they wrote last night called "the Shooting Sprout", about this nice little organic food store with the same name hidden in the middle of the strip mall fast food wasteland of Bristol's exit 7. I can happily reocmmend both the band, and the store, which I discovered myself on Friday. :-)

10 September 2007

Joerg Jaspert: Stats pron

Joey started a stats pron meme, so lets join, with stats from packages.debian.org AKA puccini.debian.org, which I am the local-admin for. This machine has
2007
Unique visitors 4952207
Total visits 8572139
Total pageviews 43332086
Total bandwidth (apache only) 783.28 GB
Additional traffic due to robots 53328963 pageviews adding 265.73 GB traffic
Looking at the other statistics April and May had a few percent more visitors, but other than that its pretty stable with around 600k unique visitors per month. We do not resolve IPs to hostnames due to the huge amount of useless traffic and load this would generate, so no statistics about the countries. But we do have some other stats. Like a Robot/Spider statistic. It looks like we had about 151 different spiders on our site, a few listed below.
Yahoois the most active spider, making some 97.54 GB of traffic
Googlebotfollows on second place, responsible for 43.92 GB
MSNBotcaused about 21.52 GB traffic
Python-urllibis used by multiple bots and they all made up 43.29 GB traffic
Next interesting point is that of Operating systems.
Linuxis of course the most used one, 48.1% of our visitors told us they use it.
Windowsonly on place 2, with 40.5%.
MacOSall kinds of MacOS add up to 2.5%.
There are various others in the list, but none with more than 1%. Like Sun Solaris which was used for about 63k hits (compare it to Linux with 32 378 942 hits). 5423 users did want us to believe they use CPM, another 76 tried that with VMS. Of course we are interested in more details for the 48.1% Linux users, here they are:
Debian1539753722.8 %
Ubuntu905001413.4 %
Suse5426350.8 %
Red Hat1072400.1 %
Mandriva (or Mandrake)1665450.2 %
Fedora6232420.9 %
Centos699980.1 %
GNU Linux (Unknown or unspecified distribution)64217319.5 %
Windows is boring, more than 33% are using the XP crap, all BSD version together, including that GNU/kFreeBSD variant have 0.1% all together. Browsers? Of course people do use lots of different browsers. The main browsers, if you ignore all the various versions, are Firefox with 44.7%, (shudder) MSIE with 17.7% and Mozilla with 14.6%. Konqueror is far behind with only about 8.5%, other browsers like Opera (3.4%) and Epiphany (1.5%) are even less used. One browser identification is interesting, namely Debian APT, which seems to be the “Fetch Changelog” function of aptitude. It generated about 200k hits (0.1%). Next point - from where do we get most people to our site? That are people not having any kind of referer information, 65%. The second place here goes to - yes, direct links from various people. Of course our search interface has most hits here, the rest is from some 80k different pages linking to us. Most of those seem to be upstream pages telling their users where to get a Debian package from (most are named something that fits “/software/download” or “is like sf/freshmeat” schema). Interestingly the links the BTS provides in their package overview going to packages.debian.org aren’t used all that much. Only about 30k hits in the whole year 2007 with the BTS as referrer. Only after all those individual links we have search engines giving us hits. That may be partly due to the fact that we did use robots.txt to block them (at least those that are good net citizens) for a long time from indexing our site. Final words: YES, I do know that the stats are likely to be wrong in any size you want them to be wrong. Yes, one cant really trust the User-Agent string, its too easy to change it. Yes, its easy to filter out referer, etc, etc, etc, but IMO its still nice to look at such things, it gives at least a little feeling for what we do burn all those CPU cycles. These stats are based on about 4.5GB of compressed apache logs from the last few months, it took some 14 hours to process the logfiles. Luckily future updates now happen once an hour and take only a minute or two… Ohh, you say Joeys meme was about mail stats? Damn. Ok, short text: 305k mails rejected in the last 7 days while we allowed 1097 mails to pass. For the yearly overview that means some 9.3million rejected and 73k accepted mails (that rate should get better, decreasing the accepted count, with the new etch setup we have now). Of course this isn’t as impressing as lists.debian.org mailstats are. :)

Joey Hess: video games: competition, classicism, emulation

Biella blogged about King of Kong, a movie about classic video games. I also enjoyed it, although I felt the rivalry and competition cheapened it (while also certianly giving it more of a story to tell). I wish I could enjoy competition the way Bubulle so eloquently describes. For me though, getting to the end of a game is more like raching the end of a long hike, whether you beat someone to the end or not doesn't matter, it's the personal experience of getting there that counts. Anyway.. The reason I'm really responding to Biella's post is because of the question she asks:
But what I also found amazing was how the movie conveyed the persistence of the (older) game. They live on in the lives of individuals and collectives, despite the rise of a whole, new class of games that are much more popular today. I am not sure how much longer they will live on, or if the movie was also inadvertently portraying the rise and slow decline of an era that will, in another 50 years, become part of the archive of dead history.
My guess is that the classic games will persist past the lifetime of their hardware, and that they'll keep on appealing to at least a small percentage of new gamers. Actually, I think they're more popular now than they were fifteen years ago, partly because the commercial gaming industry has moved further away from what the old games are really good at, and partly because emulation is so good that they're available to everyone. And maybe even partly because to really appreciate Kenta Cho's games or many of the other new non-commercial games that Miriam keeps finding and pushing into Debian, you need to know the classics. Even if you do suck at galaga, and even if the only version you've really played is xgalaga, which lacks ship capture. :-) I never played games in machines that ate quarters as a kid, because I didn't have many quarters, and it didn't seem to be a good value. I put one of the few quarters I've ever spent into a video game machine earlier this summer, in the corner of the Mus e M canique that's dedicated to sorta-old video machines (as opposed to ancient, lovingly restored arcade games). It was a metal slug machine. I've beat metal slug under emulation, but only at the expense of many emulated quarters. Another quarter went into vintage game of pong. I enjoyed playing them both on real hardware, but emulation was good enough for both of these and for many other games in between.

6 September 2007

Joey Hess: watching paper cranes on mbone

I was just thinking about this. 1995, in the mac lab. The mbone window using a tons of bandwidth to show video of someone's paper crane mobile. Mostly hidden in the background, but ocasionally watched as an antidote to the stess-making car-crash sounds from 30 other macs as we all learned how to make them crash programming them in assembly. Anyone else remember those paper cranes on the mbone?

Joey Hess: abram's

This evening I was going to help Megan and Eric work on their new barn, but they weren't around so I redirected over to Abram's falls and hiked down to the big falls. (Picture from here.) Standing under Abram's is the best, most theraputic shower anywhere.

4 September 2007

Joey Hess: alioth ikiwiki users

If you use ikiwiki on alioth and didn't just get a mail about it, please contact me.

2 September 2007

Joey Hess: apache cgi fork bomb

Like Russell Coker I had to deal with an apache OOM crashing my main Xen instance yesterday. In my case, it is due to the Czech IP 88.102.6.114, which decided it would be a good idea to download the entire output of viewvc, recursively, and apparently also in parallel. After 2 hours and some 40 thousand hits, this eventually started enough instances of viewvc and svn that it used up 512 mb of ram and OOMed the system. I don't have a satesfactory fix yet. Viewvc shouldn't let itself be run dozens of times simulantaneuosly, surely. Apache doesn't seem to provide a way to limit the total number of CGIs it can launch at once, except by limiting the total number of connections. Apache's rlimitnproc option sadly only applies the limits after starting a CGI, rather that applying them to apache itself. Something that could control the number of CGIs started on a per-directory and per-vhost basis would be ideal. For now, I used ulimit -u when starting apache, which prevents many viewvc processes from running at once, but allows anyone who DOSes viewvc to also DOS all other CGIs on the system.

30 August 2007

Joey Hess: high summer omelette

Nothing special about this recipe at all except it rescued an otherwise very "blah" day.
Fry squash in a small amount of olive oil, add onions and brown over medium heat for 5 minutes. Remove from pan, and turn heat high. Wisk together all ingredients, add a little ground pepper, and cook omelette quickly. Serve with bread (fresh focaccia mmm) and freshly pickled cucumbers from the garden.

28 August 2007

Holger Levsen: nine days later

I'm now only down to 55 unread mails, but I'm happy, as I'm now in the region where those mails mean actual todo stuff.

And, this weekend I've been mostly offline, having fun at a free festival. Thus enjoying my second day without internet this year and my first day without speaking or reading/writing english - though I enjoyed that much less :-)

Joey, thanks for your suggestion to turn down the frequency of polling mails. I'm happily polling every 30 minutes now too, and thinking of going down to every 60 minutes.

Next.

Previous.