Dominique Dumont: Debian copyright DEP5 parser/editor/validator/migrator is released
Hello
The new version of libconfig-model-perl 1.229 is now available in Debian/Sid. This new version provides a model of Debian s DEP-5 copyright file specification updated according to the CANDIDATE version. (Among other features, like editor/validator for debian/control).
The DEP-5 editor must be run in the source package directory (I ll provide an example below) with the following command:
Most of the migration work is specified in DEP-5 model [2]. Using config-model s GUI [3] to update DEP-5 model, about one hour was spent to:
config-edit -application dpkg-copyrightFeatures:
- check copyright file (with option -ui none )
- migrate from old format to new format ( with option -ui none -save )
- graphical editor (no option, but libconfig-model-tkui-perl must be installed)
- some keywords from older versions of DEP-5 specs may have been missed. In this case, feel free to send a mail to config-model-users mailing list or to log a bug in BTS.
- the update of the content of the format string is silent. This behavior is a bit cavalier. This will change in the next version
$ cat debian/copyrightFirst, let s just check issues:
Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=196 Upstream-Maintainer: Dominique Dumont (ddumont at cpan.org)
Upstream-Source: http://search.cpan.org/dist/Config-Model-Backend-Augeas/
Upstream-Name: Config-Model-Backend-Augeas Copyright: 2008-2009, Dominique Dumont (ddumont at cpan.org)
License: LGPL-2+ Files: debian/*
Copyright: 2009, Dominique Dumont
License: LGPL-2+ License: LGPL-2+
This program is free software; you can redistribute it and/or
[snip]
$ config-edit -application dpkg-copyright -ui noneThen, let s see what s config-edit can fix all by itself:
Element Upstream-Maintainer of node Debian::Dpkg::Copyright is deprecated
Element Upstream-Source of node Debian::Dpkg::Copyright is deprecated
Element Upstream-Name of node Debian::Dpkg::Copyright is deprecated
Missing Files: specification at top of section number 2. Adding Files: * spec
$ config-edit -application dpkg-copyright -ui none -saveLet s check the result of the migration:
[ same warnings displayed ]
$ config-edit -application dpkg-copyright -ui noneAnd here s the content of the upgraded file (drum rolls, please):
[ good: no more warnings ]
$ cat debian/copyrightYou can see that:
Format: http://dep.debian.net/deps/dep5/
Upstream-Name: Config-Model-Backend-Augeas
Upstream-Contact: Dominique Dumont (ddumont at cpan.org)
Source: http://search.cpan.org/dist/Config-Model-Backend-Augeas/ Files: *
Copyright: 2008-2009, Dominique Dumont (ddumont at cpan.org)
License: LGPL-2+ Files: debian/*
Copyright: 2009, Dominique Dumont
License: LGPL-2+ License: LGPL-2+
This program is free software; you can redistribute it and/or
[snip]
- keywords were changed while keeping the correct content
- Format: was updated with the right URL
- Files: * line was added in the right place
Most of the migration work is specified in DEP-5 model [2]. Using config-model s GUI [3] to update DEP-5 model, about one hour was spent to:
- flag old parameters as deprecated
- introduce new parameters from candidate version (mostly done by cut n'paste old parameters into their new name, done within the model editor GUI )
- cut n'paste the doc bits from the web page into the model editor GUI
- specify migrate_from instruction to copy semantic content from old parameters to new ones. (*)
'Upstream-Contact',
'value_type' => 'string',
'migrate_from' =>
'formula' => '$old_maintainer',
'variables' =>
'old_maintainer' => '- Maintainer'
,
'type' => 'leaf',
'description' => '* Syntax: line based list [snip]'
,
I use a lot of code in my lectures, in many different programming languages.
I use
Hardly anything ruins a glorious day of coding like fat-fingering the commit message late at night as you doze off, and then pushing it out for the world to see. To prevent that, I have equipped my Emacs configuration with a few little tools now.
WordPress has many alternate
You might be aware of GRUB s loopback option for booting an ISO, I wrote about it in
The Grml Rescue System entry is what grml-rescueboot provides and Bootable ISO Image is what s provided by grub-imageboot. Just select the entry you d like to use, press enter and and you should get the bootsplash of the according ISO.
BTW: I ve tested this with
Once again, a polemic regarding how to properly integrate the Ruby language and libraries with the Debian distribution has been ignited. Similar arguments were presented in
Gdb is a debugger with many, many, many(
I have finally reached a decision regarding my involvement in the Debian Ruby packaging efforts. I have decided to stop. This has been a very hard decision to make. I have invested huge amounts of time in that work over the years. I still love the language, and will continue to use it on a daily basis for my own developments. I still hope that it will succeed. I know that some people will be disappointed by that decision (and that others will think your work was useless anyway, people should use RVM and rubygems ).
But I also know that I won t be able to push for all the required changes alone. I just don t have the time, nor the motivation. For the record, here are the changes I would have liked to see in the Ruby community.
The core Ruby development community should mature.
It would be really neat if there were some tool which recorded which dotfiles an application read, used, or created.
As an example emacs uses .emacs, but won't create it. However firefox will create and fill ~/.mozilla if it isn't present, and links will create ~/.links2.
What would we do with that data? I'm not sure off the top of my head, but I think it is interesting to collect regardless. Perhaps a simple tool such as apt-file to download the data and let you search:
(This is part of a series of posts on
I just discovered that I'd been hit by
It gives me pleasure to announce