Re: New: "cme run paste-license script" (was: Re: pasting license text into debian/copyright)

2017-10-23 Thread Dominique Dumont
On Sunday, 22 October 2017 21:47:12 CEST Andreas Tille wrote: > Could you please explain what you mean by "main section"? For me > > Files: * > > would qualify as "main section" but you seem to have a different > understanding of this term. ok. Let's use the same terminology as

Re: New: "cme run paste-license script" (was: Re: pasting license text into debian/copyright)

2017-10-22 Thread Andreas Tille
Hi Dominique, On Sun, Oct 22, 2017 at 07:39:10PM +0200, Dominique Dumont wrote: > > > > Sorry, I do not understand. I the string CeCILL (with capital I) is in the > > main license section. Could you please be more verbose how d/copyright > > needs to look like to make cme add the license text?

Re: New: "cme run paste-license script" (was: Re: pasting license text into debian/copyright)

2017-10-22 Thread Dominique Dumont
On Sunday, 22 October 2017 12:10:29 CEST Andreas Tille wrote: > > without the matching section in Licenses (the one you trying to add). cme > > emits a warning when reading a copyright file with this error. This value > > is ignored because of this error. > > Sorry, I do not understand. I the

Re: New: "cme run paste-license script" (was: Re: pasting license text into debian/copyright)

2017-10-22 Thread Andreas Tille
On Sun, Oct 22, 2017 at 11:14:04AM +0200, Dominique Dumont wrote: > On Sunday, 22 October 2017 08:55:44 CEST Andreas Tille wrote: > > $ cme run paste-license --arg license=CeCILL --arg file=COPYING > > > copyright.patch Log4perl: Seems like no initialization happened. Forgot to > > call init()?

Re: New: "cme run paste-license script" (was: Re: pasting license text into debian/copyright)

2017-10-22 Thread Dominique Dumont
On Sunday, 22 October 2017 08:55:44 CEST Andreas Tille wrote: > $ cme run paste-license --arg license=CeCILL --arg file=COPYING > > copyright.patch Log4perl: Seems like no initialization happened. Forgot to > call init()? That's a bug in cme that will be fixed soon. > Warning: Files:"*"

Re: New: "cme run paste-license script" (was: Re: pasting license text into debian/copyright)

2017-10-22 Thread Andreas Tille
On Sat, Oct 21, 2017 at 06:40:37PM +0200, gregor herrmann wrote: > On Sat, 21 Oct 2017 16:20:58 +0200, Andreas Tille wrote: > > > $ gbp clone https://anonscm.debian.org/git/debian-med/beads.git > > $ cd beads > > beads(master) $ cme run paste-license --arg license=CeCILL --arg COPYING > > %

Re: pasting license text into debian/copyright

2017-10-21 Thread gregor herrmann
On Mon, 16 Oct 2017 19:11:50 +0200, Dominique Dumont wrote: > On Thursday, 21 September 2017 15:53:11 CEST gregor herrmann wrote: > > Maybe we could even have "cme run copy-license " which > > takes the text from a well-know location? > Assuming "well-known" means part of Software::License

Re: New: "cme run paste-license script" (was: Re: pasting license text into debian/copyright)

2017-10-21 Thread gregor herrmann
On Sat, 21 Oct 2017 16:20:58 +0200, Andreas Tille wrote: > $ gbp clone https://anonscm.debian.org/git/debian-med/beads.git > $ cd beads > beads(master) $ cme run paste-license --arg license=CeCILL --arg COPYING % cme run paste-license --arg license=CeCILL --arg file=COPYING seems to work;

Re: New: "cme run paste-license script" (was: Re: pasting license text into debian/copyright)

2017-10-21 Thread Andreas Tille
Hi Dominique, I wanted to try this cool feature but failed may be I did something wrong: $ gbp clone https://anonscm.debian.org/git/debian-med/beads.git $ cd beads beads(master) $ cme run paste-license --arg license=CeCILL --arg COPYING Log4perl: Seems like no initialization happened. Forgot

New: "cme run paste-license script" (was: Re: pasting license text into debian/copyright)

2017-10-17 Thread Dominique Dumont
Hi People have complained that adding license text in debian/copyright file is tedious. To avoid this problem, libconfig-model-dpkg-perl 2.102 now ships a new cme script to copy a license text in debian/copyright. This script is run with "cme run" command [1] For instance: $ echo -e

Re: pasting license text into debian/copyright

2017-10-16 Thread Dominique Dumont
[ Sorry for the late reply on this point. I did miss it when I read you mail ] On Thursday, 21 September 2017 15:53:11 CEST gregor herrmann wrote: > Maybe we could even have "cme run copy-license " which > takes the text from a well-know location? Assuming "well-known" means part of

Re: pasting license text into debian/copyright

2017-09-28 Thread gregor herrmann
On Thu, 28 Sep 2017 08:41:38 +0200, Dominique Dumont wrote: > On Thursday, 21 September 2017 16:11:52 CEST Andreas Tille wrote: > > May be if cme would have the same effect as wrap-and-sort there is at > > least no disagreement between the users of both tools any more (leaving > > those who are

Re: pasting license text into debian/copyright

2017-09-28 Thread Adam Borowski
On Thu, Sep 28, 2017 at 08:41:38AM +0200, Dominique Dumont wrote: > On Thursday, 21 September 2017 16:11:52 CEST Andreas Tille wrote: > > May be if cme would have the same effect as wrap-and-sort there is at > > least no disagreement between the users of both tools any more (leaving > > those who

Re: pasting license text into debian/copyright

2017-09-28 Thread Andreas Tille
Hi Dominique, On Thu, Sep 28, 2017 at 08:41:38AM +0200, Dominique Dumont wrote: > > Unfortunately, wrap-and-sort has its own way of sorting: special entries > (i.e. > that do not begin with letters) are sorted after "normal" entries. So > dependencies like "${misc:Depends}" are sorted after

Re: pasting license text into debian/copyright

2017-09-28 Thread Dominique Dumont
On Thursday, 21 September 2017 16:11:52 CEST Andreas Tille wrote: > May be if cme would have the same effect as wrap-and-sort there is at > least no disagreement between the users of both tools any more (leaving > those who are not happy with either of them :-P ). Unfortunately, wrap-and-sort has

Re: pasting license text into debian/copyright

2017-09-21 Thread Andreas Tille
Hi Dominique, On Thu, Sep 21, 2017 at 03:38:52PM +0200, Dominique Dumont wrote: > On Thursday, 21 September 2017 15:17:06 CEST Andreas Tille wrote: > > I* think its fine but I have heard from at least one team member who > > asked me not to use cme on the packages he is Uploader for since the > >

Re: pasting license text into debian/copyright

2017-09-21 Thread gregor herrmann
On Wed, 20 Sep 2017 11:31:39 +0200, Dominique Dumont wrote: > On Wednesday, 20 September 2017 11:24:50 CEST gregor herrmann wrote: > > gregor, who also hates reformatting license texts or copying them from > > random places > I can also whip up a script based on cme that would copy the

Re: pasting license text into debian/copyright

2017-09-21 Thread Dominique Dumont
On Thursday, 21 September 2017 15:17:06 CEST Andreas Tille wrote: > I* think its fine but I have heard from at least one team member who > asked me not to use cme on the packages he is Uploader for since the > identation does not fit his aesthetics. Note that I wouldn't mind changing the format

Re: pasting license text into debian/copyright

2017-09-21 Thread Andreas Tille
Hi Dominique, On Wed, Sep 20, 2017 at 05:44:03PM +0200, Dominique Dumont wrote: > > I forgot to mention the main side effect: the copyright file is re-organized, > and the dependency list are re-indented. This is not a problem if you already > use cme, but may lead to a big diff if you don't.

Re: pasting license text into debian/copyright

2017-09-20 Thread Dominique Dumont
On Wednesday, 20 September 2017 11:31:39 CEST Dominique Dumont wrote: > I can also whip up a script based on cme that would copy the license text > from a file (or from STDIN), format it and store it in debian/copyright as > a License: paragragh I forgot to mention the main side effect: the

Re: pasting license text into debian/copyright

2017-09-20 Thread Dominique Dumont
On Wednesday, 20 September 2017 11:24:50 CEST gregor herrmann wrote: > gregor, who also hates reformatting license texts or copying them from > random places I can also whip up a script based on cme that would copy the license text from a file (or from STDIN), format it and store it in

Re: pasting license text into debian/copyright

2017-09-20 Thread gregor herrmann
On Wed, 20 Sep 2017 11:17:46 +0200, Andreas Tille wrote: > > no, it is much simpler. I just wanted to offer the license text in a format > > that is immediately usable in your debian/copyright (adding a correct > > License:-line, indentation, empty lines). > > The source of these texts could be

Re: pasting license text into debian/copyright

2017-09-20 Thread Andreas Tille
Hi Thorsten, On Sat, Sep 16, 2017 at 07:15:15PM +0200, Thorsten Alteholz wrote: > > It looks like you suggest to duplicate the work of SPDX - see e.g. > > https://github.com/spdx/license-list > > no, it is much simpler. I just wanted to offer the license text in a format > that is immediately

Re: pasting license text into debian/copyright

2017-09-18 Thread Dominique Dumont
On Saturday, 16 September 2017 23:13:04 CEST Andrey Rahmatullin wrote: > Changing a long free-form text file into a deb822 multiline block, when > you want to use the "machine-readable" format. You can do this with cme. Either launch cme GUI with 'cme edit dpkg-copyright'. You can paste the

Re: pasting license text into debian/copyright

2017-09-16 Thread Andrey Rahmatullin
On Sat, Sep 16, 2017 at 07:37:00PM +0200, Dominique Dumont wrote: > > manually working on debian/copyright can be nasty from time to time. > > What do you mean by "nasty" ? What are the painful points ? Changing a long free-form text file into a deb822 multiline block, when you want to use the

Re: pasting license text into debian/copyright

2017-09-16 Thread Andrey Rahmatullin
On Sat, Sep 16, 2017 at 07:15:15PM +0200, Thorsten Alteholz wrote: > no, it is much simpler. I just wanted to offer the license text in a format > that is immediately usable in your debian/copyright (adding a correct > License:-line, indentation, empty lines). Note that the "machine-readable"

Re: pasting license text into debian/copyright

2017-09-16 Thread Andrey Rahmatullin
On Sat, Sep 16, 2017 at 04:47:23PM +, Bastien Roucaries wrote: > Will implement a lintian tag that will output statistics about not common > license. > > It will help to add common license Add where? Surely not to /usr/share/common-licenses? We already have statistics for that. -- WBR,

Re: pasting license text into debian/copyright

2017-09-16 Thread Dominique Dumont
On Saturday, 16 September 2017 18:10:16 CEST Thorsten Alteholz wrote: > manually working on debian/copyright can be nasty from time to time. What do you mean by "nasty" ? What are the painful points ? All the best -- https://github.com/dod38fr/ -o- http://search.cpan.org/~ddumont/

Re: pasting license text into debian/copyright

2017-09-16 Thread Thorsten Alteholz
On Sat, 16 Sep 2017, Bastien Roucaries wrote: Will implement a lintian tag that will output statistics about not common license. It will help to add common license yeah, that would be great. Thorsten

Re: pasting license text into debian/copyright

2017-09-16 Thread Thorsten Alteholz
Hi Jonas, On Sat, 16 Sep 2017, Jonas Smedegaard wrote: Not quite sure what you suggest. It looks like you suggest to duplicate the work of SPDX - see e.g. https://github.com/spdx/license-list no, it is much simpler. I just wanted to offer the license text in a format that is immediately

Re: pasting license text into debian/copyright

2017-09-16 Thread Bastien Roucaries
Le 16 septembre 2017 18:10:16 GMT+02:00, Thorsten Alteholz a écrit : >Hi everybody, > >manually working on debian/copyright can be nasty from time to time. > >Would extending a service like: > > curl http://licapi.debian.net/template > curl

Re: pasting license text into debian/copyright

2017-09-16 Thread Jonas Smedegaard
Hi Thorsten, Quoting Thorsten Alteholz (2017-09-16 18:10:16) > manually working on debian/copyright can be nasty from time to time. > > Would extending a service like: > > curl http://licapi.debian.net/template > curl http://licapi.debian.net/template/lgpl3 > > with all those licenses not

pasting license text into debian/copyright

2017-09-16 Thread Thorsten Alteholz
Hi everybody, manually working on debian/copyright can be nasty from time to time. Would extending a service like: curl http://licapi.debian.net/template curl http://licapi.debian.net/template/lgpl3 with all those licenses not in /usr/share/common-licenses be of any help? Thorsten