Search Results: "ag"

21 September 2006

Simon Richter: Wacky ideas #8: package manifests

It is very difficult to install only parts of packages if you don't need all of it. For locales, there is localepurge, which removes files after installation; it is also possible to define a hook script that deletes certain things (such as documentation) after each installation run. However, all of these methods rely on a heuristic. It would be a nice thing if I could include a manifest file into a package that describes which roles a set of files or directories has, so that you can filter at installation time. This is most useful for embedded systems, but also comes in handy when doing incremental updates of a package.

Stefano Zacchiroli: xs-x-vcs-XXX

Document the VCS of your packages! A long story short: have a look at vim's PTS page and try to spot the VCS link at the end of the "General Information" information box. You like it? Be happy then, since you can have it on your packages too. Just go and add something like the following at the end of the source section of your debian/control:
    XS-X-Vcs-Svn: svn://svn.debian.org/svn/pkg-vim/trunk/packages/vim

instead of "Svn" you can actually use "Baz", "Darcs", "CVS", and plenty of others. Oh, and you can of course see the field even with plain apt-cache of course:
    zack@aquarium:~$ apt-cache showsrc vim   grep -i vcs
    X-Vcs-Svn: svn://svn.debian.org/svn/pkg-vim/trunk/packages/vim

The whole point of this is indeed in letting your users know where to find the cutting edge code for your packages, where to look for stuff tagged pending in the BTS and so forth. Be kind to your users, add the field. Update: Lars asked me a list of supported VCS, you can find it at the end of trunk/pts/www/bin/common.py in the qa svn repository, look for "vcs_table".

Isaac Clerencia: Less than 24h to hit the (rail)road again

Tomorrow at 6:00 AM I’ll be already sitting in a train in my way to Reus, from where I’ll fly to Dublin to attend aKademy 2006 … and I still haven’t managed to write about my trip to London :P (Well, in fact, I wrote about my two first days at London some time ago, but I haven’t found time to complete it). I’ve been trying to get some spare time for KDE hacking for a long time but I have only managed to do a dozen commits in the last months. I expect I can get some KOffice work done in aKademy and have a chance to enjoy beer with some KDE fellows.

Mike Hommey: !

I’m back from Japan. Time went too fast… Met a lot of people we hadn’t seen for a while, had a great time. Only problem is that I’m totally jetlagged. Woke up at 3am this morning, and decided to actually do something after trying to sleep some more for an hour. The downside of holidays is the 4000+ mails (excluding spam) that got in my mailbox. I’ve already gone through most of the new bug reports and have been able to vote for the last GR that was issued while I was away. One of the most annoying problem that was raised during my vacation is this Firefox trademark issue. We’ve been avoiding to change the package name for a while. We got agreements to use the Firefox name when we had to drop the “Mozilla” part of “Mozilla Firefox”, and now it seems they (again) changed their mind. I really think we should go with the iceweasel name because this name is already widespread as the “debian may rename firefox this way” name. It is even in wikipedia. On other news, we bought a MacBook and a Nikon Coolpix S6 for Miki, and a (already broken) PSP as well as some books for me. I’ll write more on these in coming posts.

Axel Beckert: IrDA and Sound on the IBM ThinkPad 760ED

Since I currently have Debian Sarge and a quite actual kernel (2.6.17.13) successfully running on my 10 years old Pentium-1-ThinkPad bijou, I today thought I could see, if I get the builtin infrared port working. Since lspci and lshw didn’t help much to find out the details about the IR port, I looked at Werner Heuser’s tuxmobil for such information. And I was right: tuxmobil listed all the necessary informations: It’s an internal serial port infrared device on /dev/ttyS0 working without any special driver. It seems to only need the kernel modules irda, sir_dev and irtty_sir as well as probably also the Debian package irda-utils. I could immediately play around with gnokii after configuring it ot use the right serial port and the right drivers for my Nokia 6310i. Also sending SMS via xgnokii worked. It was funny to be able to play ringtones on the phone by clicking around on a virtual piano keyboard. Inebriated by the success with IrDA, I decided to go on and try myself with the notorious Mwave DSP sound and modem card, which came with some of the ThinkPad 760 versions including my ED version. This didn’t start as easy as IrDA since tuxmobil this time writes: But MWave and some other sound technologies won’t work or are very hard to get working, e.g. booting to DOS, loading a driver, then using the soundcard as a standard SB-PRO. So you might need a commercial sound driver. Well, I too often noticed that negative information about hardware support in Linux found on the net with a search engine often is outdated and the formerly badly missed hardware support is available nowadays. So even not giving up on a 404 for a promising site, I found the no more existing webpage of the Mwave Project for Linux in the WayBack Archive. There I found a still working link to Thomas Hood’s Debian GNU/Linux on IBM ThinkPad 600X page which mentions tpctl, the ThinkPad configuration tools for Linux. And happily, they’re included in Sarge as package tpctl. Another link still worked, too: The one to Dale Wick’s Thinkpad under Linux page, which tell’s what I’ve expected: Some of the information on tuxmobil seems to be outdated, although Dave’s page mainly concerns the modem functionality of the Mwave DSP. So I first installed tpctl on bijou, then tried to compile the ThinkPad kernel modules from package thinkpad-source with my both current kernels, 2.4.33.3 and 2.6.17.13 using make-kpkg. The modules built fine for the 2.4 series kernel, but failed on the two latest 2.6 kernels (2.6.17.13 and 2.6.18), I’m mainly running. So I switched over to playing around with the 2.4.33.3 kernel. The thinkpad modules loaded fine and I get access to a lot of the ThinkPad’s special hardware. But tpctl at least doesn’t work as expected regarding Standby and Suspend: It has no effect while requesting Suspend or Standby using apm still works fine. But nothing to see in direction sound, modem or mwave. So I had a closer look at documentation around the mwave module. Tried to find out appropriate I/O and IRQ settings for the module, but what I found in the Linux ACP Modem (Mwave) mini-HOWTO didn’t help. The module just didn’t load. Then I noticed that module seems to need an mwave daemon. A search in the Debian package repository found the package mwavem. No long thinking – installed it. But the installation script gave the same errors when trying to load the module. man mwavem(8) gave the reason: Only the 3780i chip is supported. Earlier Mwave DSPs, which were used for sound generation as well as modem functionality, are not supported. Also according to the kernel documentation for the mwave sound module, the only way to get it making some sounds seems to be to boot to DOS, load the Windows 95 drivers, then call loadlin and warm-boot Linux from DOS. So native Mwave sound on IBM 760 ThinkPads under Linux is really still a dream while the Mwave modem is said to work nowadays. I will continue my ThinkPad 760 journey with a closer look at the pcspkr driver and at eBay, where I’ll look for another 760 series ThinkPad, but with ESS1688 soundcard and no modem instead of the Mwave DSP, e.g. a 760L, 760LD, 760EL, 760ELD or maybe also a 765L. But I won’t do that today. It’s already much too late. Should have gone to bed about two hours ago…

Now playing: Auld Lang Syne (monophonic on the phone :-)

Adam Rosi-Kessel: Unity Rally in Roslindale

Massachusetts held its primary election yesterday and strangely enough, my preferred candidate for governor, Deval Patrick, won overwhelmingly, by a nearly two to one margin over both of his competitors. In past years, the primary election has been followed by a “unity breakfast” the next morning so all the losing candidates can pledge fealty to the winner. As the breakfast has become a tired tradition identified with “old politics,” they did away with it this year (perhaps at Deval’s urging). Instead, again to my surprise, they held a unity rally about a block away from my house in Adams Park (no relation) in Roslindale. Deval was introduced by Boston Mayor Menino, a politican who has somehow turned a complete lack of public speaking skills into an asset: Deval’s speech was pretty great. A little something for everyone, and genuinely engaging. I attempted to record it on my pocket MP3 player, but apparently I ran out of batteries early on so it’s not worth posting. Although Deval has been cast as the furthest left of the candidates, I was struck by his extremely moderate position on most issues. (Standardized testing: good, but needs improvement; economics: need to have several bottom lines, including a profit bottom line and a people bottom line; personal responsibility needs to be balanced with societal responsibility; etc..) Anyway, the crowd loved it: Apparently there was no experienced political handler present to orchestrate this event. Deval’s charismatic speech was followed by several less important and less eloquent speakers. Usually, you would want to build up from worst to best. In any event, Chris Gabrieli, the second place finisher, has rebounded instantly and was up there committing to work every day until November on getting Deval elected — I won’t be surprised if Gabrieli ends up in a development-czar role in a Patrick administration. The last place finisher (and original frontrunner) Tom Reilly was nowhere to be seen, a fact that I’m sure will be prominent in tomorrow’s reporting on the event. Where’s the unity without the Attorney General? Everyone’s bracing for a horrid onslaught of fear-mongering campaign ads from the Republicans. My hope is that Massachusetts citizens are a bit wiser than the rest of the country and it will backfire. I won’t hold my breath, however. (As a side benefit, I finally met Adam Gaffin, universalhubmeister, for the first time, as well as his eight year old daughter Greta. Greta is now famous for rejecting Deval Patrick’s plan for longer school days.)

20 September 2006

Josselin Mouette: Quote of the day

<peterS> stew: hmmmm. I keep forgetting to do that. I wonder, if I posted a message supporting aj against the recall resolution, whether aj would remind people that they don't have to listen to me (:

Andreas Barth: City of Munich: next step in move to Debian-based system

The City of Munich announced today the next step in their move to a Debian-based system for standard desktop usage. After successfully tests being run on some systems, e.g. the system of the city Mayor, the first production systems for real users were rolled out. I'm so glad and proud for different reasons:

Simon Richter: Wacky ideas #7: more and better reverse dependencies

The Enhances relationship is currently only seldom used. I think its popularity could be expanded a lot if there was proper boolean algebra in dependency relations, which would allow a package to enhance the combination of two packages; also something on the level of Recommends would be nice ("Complements"?). With this, it should be easy to have a metapackage for German translations, and as soon as that one was installed, all packages containing German translations for any installed packages would be Recommended.

Simon Richter: Wacky ideas #6: cross-only architectures

There are a few packages that provide headers or libraries for platforms that there is no Debian port to, prominent examples being mingw32 and Palm. Usually, there aren't more than just a few libraries for each, so that in real world scenarios, you end up adding a fair bit of stuff on your own. Now, wouldn't it make sense to define these as "cross-only" architectures, split out the runtime into the new arch, and use dpkg-cross to install them. For this to work, we need cross-architecture dependencies; mingw would depend on libkernel32-dev for mingw32, and I'd patch libz to compile out of the box for it, because this is usually the first library I need.

Simon Richter: Wacky ideas #5: per-package build-dependencies

Bootstrapping a compiler is a pretty difficult thing already, however it is close to impossible within the Debian system. The reason for this is that you need to hop back and forth between different source trees, while the Debian build system assumes that each package stands on its own. So in order to do a full bootstrap, you would build the build-essential packages by hand, then rebuild all of them as packages. Now I think it should be possible to have per-binary Build-Depends, so that when some of the binaries built by a certain source package can not be built yet, they can be set aside and retried later.

Simon Richter: Wacky ideas #3: encoding the ABI outside of the package name

Debian has had a big problem in the past when ABIs changed in incompatible ways. We would have to recompile all shared libraries after changing their package names, and then recompile the applications that used them, in the entire process always making sure that a compiler that generated code for the "new" ABI was installed on the autobuilders. Therefore, I'd like to suggest a new field, ABI: that would list the ABI versions a package was compiled against. The source package's control file would list those that the package was sensitive against, and dpkg-gencontrol would then, with the help of a few plug-ins, fill in the versions. In order to know for which dependencies matching ABI versions are important, we'd have to split the Depends field. On the archive side of things, when a new binary package is uploaded that is already present with a different ABI, the package would get renamed (by adding the differing ABI fields between version number and architecture name) in order to keep the archive cacheable.

Simon Richter: Wacky ideas #2: splitting Installed-Size by partition

On a lot of systems, the Debian installation is spread over a set of partitions. This makes it pretty difficult for a package manager to determine whether unpacking a package is possible at all, since assuming the worst case would mean that all partitions have to have Installed-Size kilobytes free. However, the set of "sane" partitioning schemes is pretty small, so I think packages could list the amount of space required on the root, usr, var partitions, respectively, and the package manager would just add the numbers up if it found that some of them are on the same partition.

Simon Richter: Wacky ideas, issue #1: template package stanzas in the source package control file

At present, we can use variable substitutions in the debian/control file in all fields but one: the package name. For a lot of packages, e.g. kernel modules, it would help a lot if it were possible to use a regular expression in the package name field, so it wouldn't be necessary to rewrite large parts of the control file when adapting a module package to a new kernel version. This, however would have the drawback of making it impossible to generate a list of binary packages built by a particular source package. An attempt of solving that issue would be to use a substitution regex that would turn a list of packages/architectures/... into a list of package names. Throw in regex Build-Dependencies, and the autobuilders could handle compiling all the modules for new kernel versions by themselves, without requiring attention from module package maintainers.

Simon Richter: Creativity, consumerism, what will come after the iPod and who will invent it

Since I installed democracyplayer, I must admit that my production/consumption ratio has slipped a bit. To rectify this, I've been thinking about creating a bit of content myself. On Slashdot, there has been a bit of discussion on beginner's programming languages, such as BASIC, and whether their absence from "modern" systems has pushed people (children/teenagers mostly) into pure consumer roles, as the learning curve with those languages that ship with the OS is far too steep, so they do never begin to program. So, my idea would be to create a bit of a programming tutorial that teaches people the first steps with a deliberately simple language (line based, interpreted, imperative) and realises (in several steps) a small project that leaves you at a place where you know the basics so you can tweak, and with hopefully enough incentive to do so. The goal is not only to teach the programming basics (there are probably people who can do this better than us), but to awake interest in understanding and modifying.

Simon Richter: Wacky ideas #4: using symbol versioning information in dpkg-shlibdeps

This one has progressed a bit already, thanks to formorer, and IMHO it would be really cool to see it in etch. Currently, the shlibs file maps library name and soname version to a dependency specification that is added to shlibs:Depends. However, some libraries have more fine-grained version information than the one in the soname, in their symbol version table, which basically allows us to create less strict dependency relationships for versioned libraries. If a program only requires symbols versioned GLIBC_2_0, we know that the minimum required version is the one that has all of these symbols, which is probably some pre-sarge version. Incidentally, the libraries where a version bump in the shlibs file is most annoying, namely libc, libstdc++ and libdb, are already versioned, and no changes are required in the application packages, so there is an instant win here (and the main reason I want to see this in etch is that we can use it afterwards)

Evan Prodromou: F te de l'Opinion CCXIV

Today's the festival of Opinion in the French Revolutionary Calendar -- a day for people to speak their minds about various subjects. My current opinion is about the Dunc Tank, a project by various users, developers, and maintainers of Debian to make sure that we hit the 4 Dec 2006 release date for Debian 4.0 (codename 'etch'). (That's 13 Frimaire CCXV for you revolutionaries out there.) One sub-project of Dunc Tank is to raise money to support the release managers for etch -- the people most responsible for keeping the release on schedule. This would free the RMs from worrying about their day jobs and keep them 100% focused on the release. I think this is a great plan. Debian is a fantastic operating system, and we have a lot to be proud of, but the main source of criticism for the project is that we don't hit our release dates. Not the first, not the second, not the fourth release dates. We've built up a reputation as a reliable, flexible OS, and we need to start earning one as a reliable, flexible organization. Projects like Ubuntu have shown that it's not impossible to get code released on time -- I think we can do it in Debian, too. I've already pledged money privately for the Dunc Tank project, and if you're interested in this particular way for getting 'etch' released on time, I hope you consider contributing too. tags:

David Welton: Who calls what how?

We're having quite an interesting discussion on the Hecl mailing list about the semantics and syntax of the language (since it's in its early days, we get to do that!). I have some questions for those of you reading this, if you have time to comment. Hecl inherits a lot of things from Tcl, which is both a simple, and amazingly flexible language. One of the things that Tcl lets you do is modify the value of a variable. For instance, set x [list 1 2 3] ; lappend x 4;. However, what is at times confusing for people is that to get the value of a variable, you place a dollar sign in front of the variable: lindex $x 0 would return 1 for instance. To some people this is all quite intuitive, because commands that modify the variable take its name, which is then looked up in a hash table and fiddled with as needs be. So we have constructs like if $n == 10 incr n . To other people, especially those who come from the Perl and PHP worlds, variables always have a $ in front of them, so the Tcl way of doing things doesn't make as much sense. Even for experienced programmers, it can at times require a moment to recall how a particular command works. lappend foo ; lrange $foo ; lset foo ; lindex $foo and so on. On the plus side, this is all very easy to implement, and really isn't that difficult to figure out. One avenue I've pursued with Hecl is to be able to pass references around, instead of variable names, so that all commands just take "a variable": lappend $foo x instead of Tcl's lappend foo x, and so on. For the moment, I've also enabled proc's (user defined commands/functions) to receive references to variables passed to them, so they can modify them. This is both powerful, and dangerous:
set x 1
proc foo  v   
    set v [* $v 10]
 
foo $x
puts "foo is $x" ;# $x is now 10
(Well, not exactly, but that's the general idea). We are considering ideas like marking the variables that may be modified in the proc definition to reduce the danger of people shooting themselves in the foot. In any case, it increases consistency, because commands that modify values always take a $variable. That still leaves commands like set foo 10 (others are proc, foreach, and catch) that take variable names to be created, rather than $variable $references, so perhaps to someone who comes from the world of PHP, it's still not as clear as it could be. We're also considering some radical changes, for the sake of not excluding any particular direction: taking a more lisp/ruby/python like approach, and not using dollar signs for variables (except perhaps in string interpolations). This has some slight disadvantages in terms of requiring quotes around more things (in Tcl, you don't need to quote single world strings). This might result in code that looks something like this:
proc test  name code result   
   catch code res
   if   eq res result    
       ok name
     else  
       fail name res result
    
 
proc testfiles  files   
   global ok
   global failed
   # clear success/error list
   set ok [list]
   set failed [list]
   foreach f files  
   puts "Running $f"
       source f
    
 
Which isn't bad, although in some places, I think the added syntax of $ helps to make it clearer, at a glance, what's what. eq $res $result is just that much quicker to pick out. This is especially true if you stash a command name in a variable. In other words, set p puts ; $p "hello world" might be a bit a bit clearer than set p "puts"; p "hello world", but... it's definitely "eye of the beholder" territory, and depends on what you're used to! In any case, it's been a very interesting process, and I've greatly enjoyed the company of Alexandre Ferrieux and Wolfgang Kechel on the list, as well as my friend Salvatore Sanfilippo. They're all very bright guys with good ideas, which makes for lots of thought-provoking discussions. Where you come in, if you've made it this far... is what kind of syntax and semantics you prefer, and why? Call by name? By reference? Modifiable values? Tell me what you think!

Stefano Zacchiroli: hello world

Hello (ikiwiki), World!\n ikiwiki succeeded where other competitors failed: convincing myself to set up a blog. This is the unavoidable "Hello, world!\n" post. Thanks Joey for this valuable piece of software, I love the subverted wiki concept and I('m starting to) like also the markdown syntax. Still, the experience in setting up the blog has not been painless, here are some rough edges I haven't yet addressed with ikiwiki (IOW dear lazyweb section from now on): Again and nonetheless, kudos to Joey for ikiwiki, it rocks!

Uwe Hermann: Creative Commons remix culture - a practical example

Autumn Leave As you might know I publish some of my photos in my photoblog and on flickr under a Creative Commons license. A very cool example of the so-called remix culture "happened to me" recently — one of the photos I posted on flickr was used as album art for a music CD, namely J. D. Warrick's "Going, a. The Leaving". Btw., if you want to learn more about remix culture, Creative Commons etc. I can really recommend Larry Lessig's Wizards of OS 4 Keynote titled "The Read-Write Society" (OGG video: 144 MB, MP4 video: 224 MB).

Next.

Previous.