Search Results: "gwolf"

17 April 2007

Gunnar Wolf: On system init schemes

I was delighted at finding Erich's series of posts regarding init schemes - In fact, when reading the bottom of your third message I got disappointing at you stating that this concludes this series of blog posts. Maybe someone can follow up with some details on upstart (which seems to be the most promising init replacement)? - I expected you to delve a bit into other schemes, such as file-rc (which is, AFAIK, quite similar to the standard sysv-rc, but instead of having directories with symlinks has files describing each runlevel in similar terms, and I understand works in quite a similar logic to sysv-rc), runit seems to work in a way quite similar to BSD's RC...
I was particularly interested on your point of view on something like Init NG - And, of course, Upstart sounds sexy, and besides, being Scott's brainchild automatically stamps a must be good legend on it, at least for me. Shame that you didn't follow on with the series - but hey, nobody's paying you to do it ;-)
Anyway... I was thinking on a way we could get at least Debian maintainers work more easily towards having more than one init scheme for our daemons and such - or at least, shipping less cruft for derived distributions to clean up. Specifically, yes, our most notorious descendant goes Upstart, so /etc/init.d/* becomes crufty for them. So, what if:
This means, yes, a serious explosion of very small packages. But it also means less dependency on a specific maintainer to be sympathetic to yet-another-init-scheme. If I'm pushing superb-init, which does preemptive reverse dependency tracking and invention and works based on the oh-so-3v1l aptsh, and I'm having a hard time convincing anybody to update their packages to support my init scheme before it matures, I can at least come up with all the needed scripts to get my system usable and considerable for the masses. Sounds decent? Did I smoke too much crack? No, I haven't had my morning coffee yet, so I'll go grab some while this hits the planet.

13 April 2007

Sven Mueller: Init HackFest / New init systems in Debian

In his “Init followup” post, Erich posted a reference to his Debian-Wiki post about a proposed Debian HackFest after Etch was released (which would be about 5 days ago<smile />). Anyway, since that page at the wiki is protected, which means I can’t edit it, I’m posting my thoughts here. I agree with Erich and some other commentors at Gunnar Wolf’s blog post that it doesn’t make sense to add X init-script-only-packages for any daemon to support X init systems. Instead, each package containing one or more daemons should contain the meta information needed to create all init scripts. Basically, this would probably include script snippets which do the following operations: Additionally, some control information would be needed including, but probably not limited to: The script snippets listed above should allow basically any operation on a daemon, including the force-reload and try-restart commands not yet implemented by all current sysv-initscripts.

Erich Schubert: Init followup

Gunnar Wolf commented on my recent series of init script posts. Thanks for the feedback.The thing is that I've been doing a lot of Debian stuff these days (such as our GSoC coordination, and lots of stuff you saw in this blog). But I shouldn't... instead I should be trying to finally get my diploma thesis done.I had my exams last july. If I had been focused, I could have been finished with my degree last christmas. Now it will likely by this fall. :-( All that is remaining is my final thesis. It should be written in 6 months, but I still havn't submitted my topic yet. So if you are wondering what took me 8 months already: I investigated two topics, but they didn't work out. Then I started researching for my 'current' topic, and I have a vision for it, but I still havn't managed to convince my professor (which of course is largely due to me not being able to convey this idea, and that the topic is in information management and representation, where it's probaly often hard to find a solid theoretical part. I have examples I'd like to do, and I hope they are actually convincing, but I have no idea how to 'prove' something here; it's too much about social aspects and human perception I guess, and I'm not really qualified or capable to do solid research in that field.)(And as you can probably imagine, I'm pretty fed up with studying now. A year ago, I'd have considered to go for a PhD afterwards, but now I just want to get out, and work on my projects.)Anyway, I got distracted. Back to the init topic.I already posted this link: Init Hackfest, as well as a pointer to the initscripts-ng mailing list. I'd really like to get this topic on it's way for lenny. So please, join this effort. While I'd like to push it, I shouldn't; on contrary, I should suspend my Debian efforts.As for your (Gunnar) suggestion on how to handle multiple inits: what's wrong with just including multiple init scripts in one package? They are not particularly large and compress well. A single init script package might already be bigger than all the init scripts.The problem is more on how to write these init scripts; by the time we're done with this project, we might actually have hit 1000 init scripts. Yes; I didn't just make up this number: packages.debian.org has 890 hits for /etc/init.d; the init-like scripts in /etc/dbus-1/event.d not included. So if just want to add support to 5 alternate init systems, this means we would need to write 5000 new init scripts. Ouch. So we maybe should convert them to 1000 meta-init-scripts instead, and generate the 6000 real init scripts from them.Please join the discussion, and lets get this project going, despite having to face such scaringly high numbers...

10 April 2007

Gunnar Wolf: Etch is done! Sarge is done once again! Sam rules! Yay for the weekend!

Wow, what a wonderful weekend was this for Debian. And, yet again, I managed to miss the live announcement and party on IRC.
So... We got a shiny, new, French DPL. Just after that, we got one last release for Sarge, and right away we got a stable Etch - Who says having a new DPL cannot speed up things? ;-) Anyway... I don't remember where I started the meme when Sarge was released (it was not on my blog, it seems)... But here it goes again:
What were you doing at...
Etch release? Having a nice time with Nadezhda, walking around this broken and dear city in my last day of vacations.
Sarge release? At my psychologist. Yes, Sarge drove us all nuts.
Woody release? Sitting at a lent workstation at Departamento de Seguridad en C mputo in my University. Of course, the announcement was broadcasted right away to everybody around me ;-) I was in NM by then, and was a bit disappointed because my work didn't appear in the release.
Potato release? Don't know... I was not yet involved with Debian by then.
[Update]: Thanks to Wouter, my old meme-starting message appeared - is he more patient than I am, or just more organized? :-) Anyway, boo for Jaws breaking old URLs (I upgraded 0.4->0.5->0.6->0.7 since then)

9 April 2007

Wouter Verhelst: Gunnar,

It was on your blog. At least if I didn't miscopy the URL back then. And, no, I again don't remember where I was when Sarge released. I do know where I was when etch released, though—at home, on IRC. :-P

7 April 2007

Gunnar Wolf: Version 3.14 of the CoPL released

As I've posted before, I recently read Lawrence Rosen's Open Source Licensing Software Freedom and Intellectual Property Law. And I'm sure many of you will recognize the enormous constructive value of early-morning cavilations. Well, today I woke up thinking about strengths and weaknesses in th different Free Software licenses, and I decided to add my grain to the world of license proliferation. So, here goes version 3.14 of the CoPL. I wonder how long will it take before it reaches /usr/share/common-licenses on Debian systems ;-)
		       CONFUSING PUBLIC LICENSE
		       ========================
	This is version 3.14 of the Confusing Public License (referred to from
now on as "CoPL"). Copyright (c) 2007 Transnational
Republic. Additional copies of this license can be purchased at no
cost from any Transnational Republic citizen at any of its recognized
outposts, or freely copied. 
	Any legal claims regarding Original works or any of their Standard
versions licensed under the CoPL Should not abide by and be carried
out according to the current law of the Transnational Republic. The
Original author to pay for any attorney and other legal fees of any
dispute regarding said Original author.
	This license text is designed to protect all the Technology covered
under it under a thick layer of incomprehension. No technical,
professional or social measures might be used to subvert the intent of
this license. This license Must be carefully or professionally
reviewed by a lawyer or attorney, under any jurisdiction. Any serious
attempt to understand this license will immediatly terminate your
rights to keep reading this license. Original works licensed under the CoPL
will not be affected by this provision, you will still have permission
to use them.
	Redistributions of source code Should not retain the above copyright notice,
this list of conditions and the following disclaimer. 
	0. This License applies to any program or other work which contains a
   notice placed by the copyright holder saying it may be distributed
   under the terms of this Confusing Public License. The Original work
   below refers to any such program or work or Standard version.
	1. You desire to license the Technology to a
   large community to facilitate research, innovation and product
   development while maintaining compatibility of such products with
   the Technology as delivered by You
	2. Original author desires to license the Technology from You on
   the terms and conditions specified in this License.
	3. Redistributions in binary form Should not reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.
	4. The names "Joe", "Curly", "Moe" and "The Three Stooges Foundation"
   May be used to endorse or promote products derived from this
   Original work without prior written permission, as they are in no way
   related. 
	5. There is no number 5. Seriously. In all Original works licensed under the
   CoPL, all necessary technical and social steps May be taken not
   to include, in any explicit way, the number 5.
	6. Original author Must make and give away verbatim copies of the
   source form of this Package
   without restriction, provided that Original Author duplicates all of
   the original copyright notices and associated disclaimers.
	7. Original author Must apply bug fixes, portability fixes and other
   modifications derived from the Public Domain or from
   the Copyright Holder. A Package modified in such a
   way shall still be considered the Standard Version.
	8. No Standard versions of the Original work Must be protected by this
   license. Original authors Should not choose a different, saner
   licensing model for the distribution of any modifications they
   make. The CoPL should be taken as a retroviral license.
	THE SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL YOU BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
				     Definitions
	"You" means the original author of the work covered under the CoPL.
	"Original author" means you.
	"Thou" means God almighty.
	"May" means "Should not, no matter what".
	"Must" means "May".
	"Should not" means "Must".
	"Reasonable copying fee" means nothing.
	"Standard version" means a modified version of the Original work.
				      DISCLAIMER
	The CoPL text, from the words "This is version" and up to and
including this paragraph, is to be taken as a preamble, and will not
be effective under any circumstances. 
	All work licensed under the CoPL should be considered as licensed
under the GNU General Public License version 2 or (at your option) any
later version. It is not the task of this license to point you on
where to get hold of said license.

5 April 2007

Gunnar Wolf: Won a book for YAPC::Europe!

Wow!
I got a mail from the YAPC::Europe organizers telling me I won a book for registering early and sending in a submission (as I have previously told you). I was even more surprised to find out I am one out of two lucky winners! So my new book is Es lebe der Zentralfriedhof.
No news yet on whether my talk (Integrating Perl in a wider distribution: The Debian pkg-perl group) will be accepted... But this kind of incentive does push me towards attending even if I am not accepted - Of course, it depends on the University sending me there. But anyway, I'm a step closer to Vienna. Somebody wants to join over there?
Oh, and by the way: On my previous posting on this topic I linked to my conference proposal URL. Little did I know that this URL is private, accessible only to the Academic Committee and me. Yes, different from what I'm used to... but that's the way it works there.

Gunnar Wolf: Nonstandard monitor setups

Russell blogs about his new 22" cheap TFT monitor. You lucky bastard.
I use a 17" Dell LCD monitor at work (sorry, cannot recall the model), and I've been quite pleased with it. Granted, 1280x1024 isn't what I had gotten used to (1400x1050 on my previous laptop and previous work machine), but it does the trick - And for my current laptop, I went for a smaller machine, with a 12" wide-screen 1280x800 monitor. I still find the monitor somewhat small, and the missing 224 pixels _are_ noticeable - but the size is well worth it.
But what I've been playing at work with is changing the monitor orientation - This 17" Dell monitor can be set up vertically (1024x1280), and xrandr will merrily change the orientation. So far, I'm happy with this setup. I still feel there are some video-related quirks, and maybe the pixels are a bit off (i.e. black letters in a white background have a bit of a shadow), maybe it was visible as well in the regular configuration, but not as noticeable. But well, I feel it easier to work with for most of my work cases - For having a full-screen browser, each row is smaller and more rows fit on screen - It's quite pleasant. For doing Web development, having a horizontally split screen (one above of the other) between Emacs and the browser is quite natural. And when I use more than two frames (i.e. for following logfiles or debugging multi-factored breakages on servers ;-) ), well, they are small enough that it's similar to having the ol' regular layout.
I'd still like to get a second video card and monitor. I remember working that way in the job I left four years ago, and it was very comfortable.
BTW, Russell, for your needs I suggest you to try Ion. After all, who really needs to have a root window/background after all? :-)

31 March 2007

Gunnar Wolf: Addicted!

It's been two weeks I got my latest toy. And, lets be honest - I don't buy me toys very often.

My very own espresso/capuccino maker! No, it's not a pro-level machine, nor does it try to be. I'm a bit disappointed as the espresso comes out slowly and homogeneous, with no foamy layer on top - But hey, it tastes great. So far, I'm still a terribly lousy capuccino maker, but perfection comes with practice.
Now, what's bad about this? First, that -although I'm a heavy coffee drinker, pouring at least 1 liter of regular filter-drip coffee down my throat every day- I very rarely drank coffee at home. Now I do. At least, two espressos every day - Well, two mugs of espresso, mind you - that's like six or so proper espressos. Yes, I'm trying to cut down on the coffee I get at work.
Second, well... Having the rich taste of an espresso in your mouth every day makes you despise and loathe filter-drip coffee. It just does not taste right anymore. The delicious roasty after-taste does not stay in your mouth for at least twenty minutes. But here is where the addiction part comes into play: I still need it, and when my work area's coffee machine is empty, I still go with my mug begging for coffee in other areas of the building.

28 March 2007

Gunnar Wolf: 2007 DPL vote

As I have stated here long ago, I do not really believe in the Debian Project Leader. Yes, it has an importance. Yes, it's not merely a decoration figure. But I do doubt it can really make much of a difference. I don't hold exactly the point of view I held back then, but it's still quite close ;-) Anyway...
[ 1 ] Choice 1: Wouter Verhelst
[ 7 ] Choice 2: Aigars Mahinovs
[ 3 ] Choice 3: Gustavo Franco
[ 2 ] Choice 4: Sam Hocevar
[ 4 ] Choice 5: Steve McIntyre
[ 4 ] Choice 6: Rapha l Hertzog
[ 5 ] Choice 7: Anthony Towns
[ 3 ] Choice 8: Simon Richter
[ 6 ] Choice 9: None Of The Above
As it's not a post I strongly believe in, with that many proposals in play, I cannot say I thoroughly reviewed each of the platforms/rebuttals/debate (I did follow them all, of course). I agree with most of what most of them propose (Sorry, Aigars, but I don't agree with you a bit ;-) ). One thing is, yes, worth noting: During the dunc-tank brouhaha, I spoke very little, but was mostly supportive of AJ's pushing a real new proposal. Why am I ranking lowish AJ, Rapha l and Steve (who were, after all, in there)? Because I did really appreciate AJ having the guts of pushing, of being brave enough to go into uncalm territories trying to change Debian. Is that the change I want? No, I don't really think so, so I'm not voting him (or Steve, as the 2IC, or Rapha l, as one of the board members) very high. And yes, one of the reasons I'm ranking Wouter first is his tendency not to be too passionate in flamefests. And, of course, not having much of a platform - Having an overly ambitious platform which would change the conception of Debian both towards the inside and towards the outside is completely unrealistic. And that's one of Aigars' cardinal sins :)

20 March 2007

Erich Schubert: Flash memory and wear leveling

Uwe and Gunnar have been talking about using flash aka. solid state disks. So far, every USB memory stick I had has died after a fairly low number of write cycles... sometimes doing a low level format helped, but the errors resurfaced again later on. Interestingly enough, I never had such problems with digial camera media, just with USB thumb drives. The wikipedia article on Flash RAM is also rather vague:
Another limitation is that flash memory has a finite number of erase-write cycles (most commercially available flash products are guaranteed to withstand 1 million programming cycles). This effect is partially offset by some chip firmware or file system drivers by counting the writes and dynamically remapping the blocks in order to spread the write operations between the sectors.
And where do they store the write count without doing extra writes? :-) (Note: you can do some simple counting with programming cycles only, i.e. by doing only NOR/NAND operations and no resets) Note that there are also filesystems designed for flash, e.g. JFFS2, that have built-in wear leveling at the filesystem level. It might also make sense to not use a media with wear leveling, but instead do it yourself in software. However you most likely won't have a choice here unless you build your own hardware and want to skip the extra controller. You should however try to keep the number of writes low, so e.g. disable atime for ext2/3 (I guess JFFS2 doesn't support atime by design), reduce the frequency of flushing buffers to disk ('laptop mode') and use RAM filesystems where possible (e.g. /tmp). Anyway, go and read above Wikipedia article, it has some good information on it. And in half a year, many laptops will sell with hybrid drives, because of Microsoft pushing that technology. (I remember having read that in fall, having a hybrid drive will be a requirement for Vista gold compability or so?) It would be interesting to work out how Linux can benefit most from such a hybrid system. I can imagine using a USB thumb drive with my laptop both as access key and for rapid boot (my harddisk is encrypted anyway, and it would make sense to not have an unencrypted bootloader on the disk, but only on the flash drive. The flash drive would not contain the key, but the kernel, decryption software, i.e. cryptsetup etc., and maybe some services to be loaded on boot for fast startup)...

Gunnar Wolf: Flash disks' reliability

Uwe asks about fast, reliable, not noisy storage mechanisms - And yes, of course, he talks about Flash memory's well known limitation: The relatively low number of write cycles each area of the memory is known to be able to withstand. I recently told this same argument to a friend who was enthusiastically telling me about his dream project of setting up a computer based exclusively on solid-state storage. Of course, he didn't like the limitation.
But after reading a bit (sorry, I don't have the URLs at hand - but Google is a good friend), it seems that many (most? all?) controllers work around this limitation by rearranging the most used blocks around, so that the Flash gets as evenly used as possible. Quoting from Wikipedia's article on Flash memory:
Another limitation is that flash memory has a finite number of erase-write cycles (most commercially available flash products are guaranteed to withstand 1 million programming cycles). This effect is partially offset by some chip firmware or file system drivers by counting the writes and dynamically remapping the blocks in order to spread the write operations between the sectors. This technique is called wear levelling. Another mechanism is to perform write verification and remapping to spare sectors in case of write failure, which is named bad block management (BBM).
So, Uwe, just check the media you get supports wear levelling technology, and you should be safe.

15 March 2007

Gunnar Wolf: The environment and us

Ben, Erich and Russell bit - Why shouldn't I?
A. Copy the list below to your own journal and
Bold the actions you are already taking
Underline the actions you plan to start taking
Italicize the actions that don't apply to you
B. Add one (or more) suggested action(s) of your own
C. Leave a comment here, so that she can track the meme to your journal, and copy your suggested action(s) back to my master list. Shame - I cannot comment on this, as I'm no a LiveJournal registered user. And I don't intend to be either.
  1. Replace standard incandescent light bulbs with compact fluorescent light bulbs
  2. Choose energy efficient appliances - always a criteria when I have a choice. Not always the dominant criteria, though
  3. Wash clothes in cold(er) water
  4. Turn the thermostat of your hot water tank down to 50 C (125 F) We have a on-route boiler (calentador de paso - any translators? :) ), it only heats when the hot water pipe is active. Of course, it burns much more intensely than a tank, but still, I feel it's an overall saving
  5. Install a programmable thermostat (or turn the heat down over night and when you're out of the house) - Pfff... Artificial weather in Mexico City? Don't be silly! ;-)
  6. Register with the Canadian Marketing Association's Do Not Contact Service to reduce the amount of junk mail delivered to your house. - Would love to.
  7. Eat less meat (particularly feedlot beef) - Nadezhda is a vegetarian, I seldom eat meat
  8. Walk, bike, carpool or take public transit as often as possible
  9. Make sure you know what can be recycled in your area, and try to recycle as much household waste as possible - In this country, recycling is a lot. We hand-recycle some things, but of course, at a very artesanal level
  10. Compost using an outdoor compost bin or an indoor vermicomposter
  11. Clean or replace filters on your furnace and air conditioner
  12. Buy local, organic or fair trade food where possible
  13. Reduce air travel
  14. Wrap your water heater in an insulation blanket
  15. Use a clothesline instead of a dryer whenever possible
  16. Plant a tree
  17. Buy fresh foods instead of frozen (Frozen food uses 10 times more energy to produce)
  18. Keep your car tuned up and your tires inflated to their optimal pressure
  19. Use biodegradable dishwashing liquid, laundry soap powder, etc.
  20. Drink tap water (filtered if necessary) rather than buying bottled water - And not only because of the environment - huge price difference!
  21. Turn the tap off while brushing your teeth
  22. Unplug seldom-used appliances and chargers for phones, cameras, etc., when you're not using them
  23. Plug air leeks and drafts around doors and windows with weatherstripping - I guess this applies to places with heating/AC
  24. Switch from disposable to reusable products: food and beverage containers, cups, plates, writing pens, razors, diapers, towels, shopping bags, etc. - As much as possible, of course. Or try to reuse those meant to be disposed.
  25. Consider garage sales, Freecycle, eBay, or borrowing from friends/family before buying a new tool or appliance

14 March 2007

Holger Levsen: Dellbian

Vote for Debian GNU/other! ;-)

In other news, I can vote in Debian now, too :-) And instead of thanking here all the people who helped and supported me in NM (for which I'm very thankful, indeed), I'd like to thank all the people who make and made Debian a great operating system and a fun place "to be". Keep on rocking!

And Gunnar, congrats to you too! I'm impressed and a bit envious :-)

Gunnar Wolf: High, cold, tiring, beautiful, delightful, proud... Should I go on?

[ Warning: Long post follows ]
Just today, I read that H01ger is happy he can wear just a T-shirt somewhere in Northern Germany. Well, from my point of view, much the opposite has happened. And I'm not just happy - I'm fucking proud!
About four years ago, Nadezhda went almost every weekend to hike to the mountains with the Grupo de los Cien people. I'll sidetrack a bit to speak about them: Grupo de los Cien is a group of mountain lovers (no relation with the enviromentalist group which later took the same name) that, since the 1950s, have built and maintained the high mountain shelters in Central Mexico. It is a group, by the way, with which Nadezhda fell completely in love - and now it's up to me to find out why ;-) But lets go back to the main topic.
Almost every week, she came back delighted and loaded of energy from a mountain hike. Almost every week, I told her I wished to go with her, of course, if they went to a simpler route. Of course, lugging around over 130Kg of humanity is no easy deal. And, after over a year and because of many problems that came together at once, she stopped going to the mountain as well. She always kept an eye on their friends, but so far had not been able to return to the mountain.

Ok, so last week she heard the group was organizing volunteers to go fix the Ayoloco 2 shelter. She signed up, and invited me. I was afraid, but accepted the challenge - Of course, full of fear.
Being this a historical event (at least in my life), I cannot but offer you some of the photos I took. And, yes, I've just started playing with Flickr. Lets see if it works for me ;-)
Saturday, 5 AM, we woke up. 5:50AM, we met part of the group near Daniel's house, in Condesa. 7 AM, we were having a nice breakfast (tamales and coffee, yum!) in Amecameca, still 28km from La Joya. From Amecameca, we went to Paso de Cort s, where we met the rest of the group, and from there we went by a little, bumpy and unpaved road until La Joya. Somewhat around 20 people started the hike at around 9 AM.


According to Google Earth, La Joya (just South of the Iztacc huatl - white woman or sleeping woman in N huatl) is at 3995m - And, of course, to start at that altitude is not easy. The air is very thin, and walking a little bit too fast quickly makes you feel the blood pumping, trying to get some more oxygen. I often remembered how my Bolivian friends behave in Potos , walking slowly even when in a hurry :)

We first went down a little valley, then up. The first portion of the hike was on soft, wet sand, with some grass (what we call zacate - Strong, hard grass, not what you commonly see in a garden). I soon learnt that was a blessing, as it was by far the easiest part. Then we went up a steep and quite rocky area - It started getting tricky for somebody not used to trusting his own feet. And it was steep, yes. This was the first time (of many, of course) I started thinking whether I should head back.

We reached what I foolishly thought was the summit, only to find a steeper, longer way to go. It started getting common to find little deposits of snow/ice (I don't know the exact term in English - it's called aguanieve in Spanish, literally snow-water. [[Update]: Thanks to the now-DD H01ger, I now know that aguanieve in English is called sleet]. I understand it's a bit harder than snow, but still much lighter than hail). We crossed a completely rocky section - No sand to hold the rocks to their place. That meant being extra careful (and thus, extra slow).

But just afterwards, in case it was not enough, Mother Nature answered my pleads for some sand - we crossed a section made exclusively of loose sand. And, please, if you have ever walked upwards on sand, imagine doing so at over 4000 meters. I was taking so much care of how and where I stepped that I strayed not more than 5 meters down of the path the group was following - Being able to climb back to the right path was really not easy. This was the point that not only I was thinking about heading back, but I'm sure Nadezhda thought I would abort the mission. She cheered me up, took some pictures of me as soon as I got out of the sand trap, and we were able to move on.

After the sand, some more rocks, and we started feeling the chilly wind. We entered a cloudy region - Humidity does get the coldness into your bones! We could not really see where was the rest of the group, so we proceeded the best way we could. Fortunately for Nadezhda and me, just behind us came the very experienced Mario Corsalini and led us. And, yes, we finally saw the Ayoloco 2 shelter.

I was by then exhausted, after some four hours of ascent. I ate one of my apples - The sweetest apple I have tasted so far. After resting a bit, and realizing I was almost frozen (we were at 2 Celsius under, with constant chilly, humid wind)... Then I started working with the guys, reinforcing the shelter, while Nadezhda and some other people painted the inside with. People started eating - of course, I joined them. And, after some time up there, we started going back down. Miguel ngel, a volunteer in the Izta-Popo park, walked a good portion of the descent with me, giving me tons of help and tips. Thank you, thank you, really. The descent is, of course, much easier - We were chatting most of the time, and we made only around two hours back. The weather was quite nice on us - We had some aguanieve falling every now and then (yes! Yes! many of you guys have heard/read me bitch on how I had never seen snow falling before - Ok, this is not exactly snow, but I think it qualifies as my first experience ;-) ), but aguanieve does not make you wet, as it bounces off the clothes. When we approached La Joya we started having some light rain. We hopped in the cars, and then the rain really began.
But even if this was not enough: Grupo de los Cien was celebrating the 83th birthday of one of its senior members, Poncho Rico. No, being 83 years old is not an excuse for skipping this memorable hike.

We went to Anatolio's house, very close to Amecameca, and had a delicious dinner, cake and drinks.
Nadezhda: Thank you. So, so, so very much. Thank you for being so patient with me, for dragging me up the Sleeping Woman. Thank you for getting me into this so very important and beautiful experience. I hope this will be the first of many. There is still a very long way for me to go before I'm really up to the challenge, but believe me: This will not be my last time on the mighty mountains.

Eddy Petri&#537;or: Wishlist for lenny... or why debian packaging is considered hard

(Update: Yes, Gunnar, the policy says that the debian/rules file must be a makefile, so if you do something else, you have a serious bug because of a policy break. Of course, probably there is nothing that should stop one from using, let's say bash, or python or perl, from a technical PoV.)

Erich has a wish list for Lenny.

What draw my attention was the very first "define and deploy a standard way of packaging software, that can be used for like 90% of packages", later he mentions rationale "other distributions (e.g. *BSD ports, Gentoo?) are ahead of us in this respect, having a standard way of packaging and building things and keeping track of changes."; these two quotes contain the real essence of Gentoo's success in the area of fast development.

A half a year ago I did an experiment in packaging a rpm, a deb and an ebuild for the same piece of software. What I observed back then made me think a lot about the entry level knowledge needed for a person to create a decent package for those types of package systems.

With the risk of being flamed by many people that will miss my point, I will tell you from the start that the deb would have been the most painful if had to start from scratch. Second would have been the rpm due to lack of good/updated documentation and the clear winner in lack of pain points was the ebuild. In reality places were switched between the deb and the rpm.

And before I start, please understand that what I want to point out is that the building system in debian is showing its age and we should do something about it, and is not about pointing people to documentation; it is about making things behave more sanely by default and not about having to read a whole day to understand why the package fails to install a file you just added then to find that you had to add the destination path to a debian/dirs file etc...


The deb had to be the most difficult. Not because I didn't do it before, or because it was hard, but because there are a lot of things that need to be done because the package management is not smart enough to do it by default (i.e. class inheritance does not exist, like is the case for the ebuilds or the macros for rpms).

The Debian approach is backwards, is reversed with regard to the others and the way it should be by default, to allow easier understanding of the packaging. You can, by default, make a package that is tweaked a lot. There is no concept (if you don't count cdbs which is boo-ed a lot by some people) or possibility to just say "make this package a package that is a standard linux app with the regular ./configure && make && make install recipe". And I don't count such a recipe the templates based on dh_make, that is way too verbose. A new maintainer wannabe has difficulties understanding why are those lines in there, and what they do, and most importantly, why is that order correct and no other. Another question which is legitimate is "is that the minimum or can that be trimmed"? (Follow debian-mentors and see how many people leave the .ex files just because they are afraid they will not know how to generate them again.)

Even the rpm has a concept of standard stuff to do for a package, there are some macros that implement that. And that is more logical for an untainted mind (as in not yet debianized) than what we have in the dh_make template, or worse, a clean and new debian/rules file. Why should one care to learn the ways and philosophy of make just to make a small package?


Let me tell you something that will feel like knife stab for many people in our community: the clear winner was the ebuild, not because I was smart or exciting, but because:

I did the ebuild in one day's work (it was less, but some will not believe me, so I'd say 1 day is reasonable enough) starting from absolutely 0 knowledge about the packaging system (if you don't count knowing to emerge package as knowledge).

What is done properly in the portage system is the fact that there are some default classes which your ebuild can inherit to behave more like a certain type of packages (base - a generic recipe, gnome, kde, games, sourceforge - they download tarballs directly, if needed - ...)

Why this is not possible for deb right now? Simple, we have it as a rule in the policy that the debian/rules file is a makefile. So even if one would implement a class-like model for deb packages, you'd still have the debian/rules file as a make file...

Gentoo implemented initially portage's default behaviour (and as a consequence, the "classes") in shell, later they migrated some parts to python and the whole portage is implemented in python now (while classes are implemented in bash). I am not saying that we should put python in essential, God forbid, probably the emdebian guys would stab me :-), I am saying that possibilities exist, alternatives should be possible.

I know, some will just say "show me the code", "making such a change over the entire archive is insane" or "the makefile is a really good way to do things like installing and building, after all, that's what it was designed for". Yes, all of these will miss the point, which is having nothing-to-do as a default policy for a package is a bad policy, it should be an empty/default package will use a standard recipe to build itself, and that recipe should be implemented in the build system.


And if you still don't believe me, just look at these few ebuilds and tell me you'd not be able to write them after a quarter after seeing one the first time and skimming over the docs or/and knowing what a regular gentoo user knows (what a keyword is, what is a slot). Also compare with the debian counter parts and don't forget the different building aids that we have.

http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/amphetamine/amphetamine-0.8.10.ebuild?view=markup
http://svn.debian.org/wsvn/pkg-games/packages/trunk/amphetamine/debian/rules?op=file&rev=0&sc=0
http://svn.debian.org/wsvn/pkg-games/packages/trunk/amphetamine/debian/control?op=file&rev=0&sc=0
http://svn.debian.org/wsvn/pkg-games/packages/trunk/amphetamine/debian/postinst?op=file&rev=0&sc=0

http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/holotz-castle/holotz-castle-1.3.8.ebuild?rev=1.3&view=markup
http://svn.debian.org/wsvn/pkg-games/packages/trunk/holotz-castle/debian/rules?op=file&rev=0&sc=0
http://svn.debian.org/wsvn/pkg-games/packages/trunk/holotz-castle/debian/control?op=file&rev=0&sc=0


http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/late/late-0.1.0.ebuild?rev=1.10&view=markup
http://svn.debian.org/wsvn/pkg-games/packages/trunk/late/debian/rules?op=file&rev=0&sc=0
http://svn.debian.org/wsvn/pkg-games/packages/trunk/late/debian/postinst?op=file&rev=0&sc=0
http://svn.debian.org/wsvn/pkg-games/packages/trunk/late/debian/postrm?op=file&rev=0&sc=0


http://sources.gentoo.org/viewcvs.py/gentoo-x86/games-arcade/ppracer/ppracer-0.3.1.ebuild?rev=1.15&view=markup
http://svn.debian.org/wsvn/pkg-games/packages/trunk/ppracer/debian/rules?op=file&rev=0&sc=0


One more thing, the ebuilds mostly need not be updated when an upstream release occurs, they just need to be copied and given a different filename.

13 March 2007

Gunnar Wolf: Reworking .deb - Does debian/rules really need to be a makefile?

Eddy Petri or wrote quite an interesting text about the shortcomings of the .deb packaging format, specially comparing it to Gentoo's ebuilds. And, basically, it all comes down to this phrase:
Why this is not possible for deb right now? Simple, we have it as a rule in the policy that the debian/rules file is a makefile. So even if one would implement a class-like model for deb packages, you'd still have the debian/rules file as a make file
Now... Is debian/rules really expected to be a makefile, or it is just customary for it to be so? Look at the very top of your rules files - you will see they (at least, almost) always start with #!/usr/bin/make -f - That means, of course, that you can omit the fact they are makefiles. While packaging/debugging, I often run -say- fakeroot debian/rules build && fakeroot debian/rules clean. That, my friend, is closer to the invocation you often use for a shell script than for a makefile. I don't know if we have tools that rely on having rules called via make (and that should be easy to correct if needed), but I really don't see it problematic at a first glance to create packages based on something different than a makefile.
Recently, I've been tempted by CDBS. I still don't fully understand its flow, and it's still mostly a dark-magic beast for me, but at least I am comfortable using it for my everyday packaging work (hey, pkg-perl group, I'll be bugging you again with my weird ideas soon ;-) ), but it surely has the advantages you quote in your message: It takes part of the complexity away. Of course, it introduces some extra bits. By using CDBS, the packaging entry level is considerably lowered - but the real understanding of properly maintaining a package becomes somewhat more difficult.
Or is it just me clinging to the comfort of having learned my way around writing debian/rules?

12 March 2007

Gunnar Wolf: Alive again

Due to the extreme stupidity of the bank that holds my money whenever I have some, we were unable to pay my main domain name (gwolf.org) together with two others - I mean, the fscking bank mixed up the secret questions/answers, and we were unable to confirm our identity in order to pay to my favorite registrar (do you know they sponsor Debconf? I've been their customer for at least five years, and they rock).
As of this Sunday, gwolf.org went off the net. Of course, being it a sunday, it was impossible to get a human in the right area of the bank.
I must really thank Nadezhda: Despite being quite busy today, and after spending a couple of frustrating hours Sunday night trying to reach somebody, she managed to take the needed steps. Our domains are back to life.
If you sent me a mail during this weekend, please send it again.

7 March 2007

Gunnar Wolf: What kind of programmer are you?

Ok, Vicm3, I'll bite. Looks we can continue working together... Umm... Or should I say, paralelly and close to each other, since we are both better as independent rather than team workers?
Your programmer personality type is:
DHSB
You're a Doer.
You are very quick at getting tasks done. You believe the outcome is the most important part of a task and the faster you can reach that outcome the better. After all, time is money.
You like coding at a High level.
The world is made up of objects and components, you should create your programs in the same way.
You work best in a Solo situation.
The best way to program is by yourself. There's no communication problems, you know every part of the code allowing you to write the best programs possible.
You are a liBeral programmer.
Programming is a complex task and you should use white space and comments as freely as possible to help simplify the task. We're not writing on paper anymore so we can take up as much room as we need.
And you? Programmer personality test
I mostly (but of course, not completely) agree. Specially, I know I'm not at all quick getting tasks done :)

6 March 2007

Gunnar Wolf: Suspend to RAM and video cards not noticing

My dear comment-hating Bubulle, you forced me into writing yet another weblog entry :)
I have not yet worked it out completely, but it might be that your problems with suspend to RAM your Dell machine are related to having the Composite or AIGLX extensions loaded. This is just an hypothesis, and might be just wrong, but: So... Christian, have you tried the plainest X configuration? Have you tried maybe switching to one of the virtual consoles before suspending? Or maybe even shutting down your X session?
I hope this helps you chase down your problem. Do not worry, though - I don't want to be hugged/kissed to death by a cheese-eating translation-loving Frenchman.

Next.

Previous.