Hello,
first of all, thanks for maintaining this useful package!
I have just used decopy to convert my package 'apt-listbugs' to the
machine-readable debian/copyright file format, as you can see in
a recent [commit].
[commit]: <https://salsa.debian.org/frx-guest/apt-listbugs/-/tree/cf1889368bbb7ed4acbc6e59c27dc1a961c632f5>
Please note that I also added a phony target in the Makefile to regenerate
the debian/copyright file, by using the debian/copyright file itself
as the base for the processing.
If you clone the git repository at the above-mentioned [commit], you can
check for yourself that the command:
$ make debian-copyright
regenerates a debian/copyright file identical to the version stored
in the [commit] itself.
So far, so good.
However, I wanted to split out a separate paragraph for po/* files,
since they have a special situation (copyright held by their respective
authors/translators, to be looked at in each file; license statement
that only indirectly refers to the GNU GPL v2 or later).
I tried the following.
I applied the following patch to the Makefile:
diff --git a/Makefile b/Makefile
index e558296..1037853 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ MOFILES := $(patsubst %.po,%.mo,$(wildcard po/*.po))
VERSION := $(shell dpkg-parsechangelog -SVersion)
YEAR := $(shell dpkg-parsechangelog -SDate | cut -d ' ' -f 4)
-CEX := po/
+CEX := po/.*\.mo
CEX := $(CEX)|apt-listbugs\.1
CEX := $(CEX)|debian/\.debhelper/
CEX := $(CEX)|debian/debhelper-build-stamp
And I manually modified the debian/copyright file as follows:
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://salsa.debian.org/frx-guest/apt-listbugs
https://ftp.debian.org/debian/pool/main/a/apt-listbugs/
Files: *
Copyright: 2007, Famelis George <famelis@otenet.gr>
2008-2022, Francesco Poli <invernomuto@paranoici.org>
2013, Google Inc
2007, Jean Lepropre <jlepropre@gmail.com>
2006-2008, Junichi Uekawa <dancer@debian.org>
2012, Justin B Rye <jbr@edlug.org.uk>
2002-2004, Masato Taruishi <taru@debian.org>
2009-2010, Ryan Niebur <ryan@debian.org>
License: GPL-2+
Files: po/*
Copyright: 2002-2020, Masato Taruishi et al.
License: apt-listbugs-license
Comment: copyright of each file is held by the respective authors/translators
Files: debian/*
Copyright: 2008-2022, Francesco Poli <invernomuto@paranoici.org>
2006-2009, Junichi Uekawa <dancer@debian.org>
2002-2005, Masato Taruishi <taru@debian.org>
2009-2010, Ryan Niebur <ryan@debian.org>
License: GPL-2+
License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL-2;
if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
License: apt-listbugs-license
This file is distributed under the same license as the apt-listbugs package.
Honestly, I expected that decopy would abide by this new base copyright
file and regenerate an identical debian/copyright file.
To my surprise, it instead generated the following debian/copyright file:
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Source: https://salsa.debian.org/frx-guest/apt-listbugs
https://ftp.debian.org/debian/pool/main/a/apt-listbugs/
Files: *
Copyright: 2002-2020, Masato Taruishi
2002-2020, Masato Taruishi et al
License: apt-listbugs-license
Comment: copyright of each file is held by the respective authors/translators
Files: 10apt-listbugs
FAQ.md
Makefile
README.md
apt-listbugs.1
bin/*
bug-list.css
examples/*
git-tag.sh
ignore_bugs
lib/*
libexec/*
test/*
Copyright: 2007, Famelis George <famelis@otenet.gr>
2008-2022, Francesco Poli <invernomuto@paranoici.org>
2013, Google Inc
2007, Jean Lepropre <jlepropre@gmail.com>
2006-2008, Junichi Uekawa <dancer@debian.org>
2012, Justin B Rye <jbr@edlug.org.uk>
2002-2004, Masato Taruishi <taru@debian.org>
2009-2010, Ryan Niebur <ryan@debian.org>
License: GPL-2+
Files: debian/*
Copyright: 2008-2022, Francesco Poli <invernomuto@paranoici.org>
2006-2009, Junichi Uekawa <dancer@debian.org>
2002-2005, Masato Taruishi <taru@debian.org>
2009-2010, Ryan Niebur <ryan@debian.org>
License: GPL-2+
License: GPL-2+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License with
the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL-2;
if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
License: apt-listbugs-license
This file is distributed under the same license as the apt-listbugs package.
Well, this looks (almost) technically correct, but actually
wrong for a number of reasons.
Firstly, decopy decided that the license for po/* applies to * !!!
After doing so, it decided that the license for * applies to a
number of special cases, which are, well, everything that is not
po/* (and not debian/* )...
This could be considered to be technically correct, but kinda
misrepresents the actual licensing status of the package: anyone
who is not too familiar with apt-listbugs source tree, could be
misled to think that the majority of the files are under
"apt-listbugs-license", while only some special cases are under
GPL-2+.
In reality, all files are under GPL-2+, except for po/*, which
are under "apt-listbugs-license" (which is actually an indirect
reference to GPL-2+).
Then, I see that apt-listbugs.1 is listed among the special cases.
But that file is generated, and I thought it was excluded through
the --exclude option of decopy. Apparently, it is not! Why?
Finally, I fail to understand where the "2002-2020, Masato Taruishi"
additional Copyright come from.
It seems to me that every copyright notice referring to Masato Taruishi
in the source tree is either followed by his e-mail address or by "et al.".
So where does this additional Copyright come from?
Please try and reproduce this (mis)behavior of decopy and fix the
bug(s) and/or clarify where I am misusing the tool.
Thanks a lot for your time and patience!