Subject: [bug#35741] [PATCH] gnu: Add libdbusmenu.

From: Meiyo Peng <[email-masked]>
Date: Thu, 23 May 2019 10:03:26 +0800

Hi Ludovic,

Ludovic Courtès writes:

> Meiyo Peng <[email-masked]> skribis:
>
>> * gnu/packages/gtk.scm (libdbusmenu): New variable.
>
> Applied!
>
>> +         ;; The shebang of the generated test files should be patched before
>> +         ;; enabling tests.
>> +         "--disable-tests")
>
> It would be nice if you could follow up with a patch to run the tests.

Will try.

>> +    (license (list license:gpl3 license:lgpl2.1 license:lgpl3))))
>
> In a subsequent patch, I clarified the licensing here, which is
> dual-license LGPLv2.1 | LGPLv3 according to the header that can be seen
> here:
>
>   https://bazaar.launchpad.net/~dbusmenu-team/libdbusmenu/trunk.16.10/view/head:/libdbusmenu-glib/menuitem-private.h

Good catch.  But this project's license is weird.

According to: https://bazaar.launchpad.net/~dbusmenu-team/libdbusmenu/trunk.16.10/view/head:/debian/copyright

#+begin_example
  Files: *
  Copyright: 2009-2010 Ted Gould <[email-masked]>, Canonical Ltd.
  License: GPL-3

  Files: libdbusmenu-{glib,gtk}/*
  Copyright: 2009-2010 Ted Gould <[email-masked]>, Canonical Ltd.
  License: LGPL-2.1 | LGPL-3

  Files: libdbusmenu-glib/dbus-menu.xml
  Copyright: 2009-2010 Ted Gould <[email-masked]>, Canonical Ltd.
  Copyright: 2009-2010 Aurélien Gâteau <[email-masked]>
  License: LGPL-2.1 | LGPL-3

  Files: tools/{dbusmenu-bench,testapp/main.c}
  Copyright: 2009-2010 Aurélien Gâteau <[email-masked]>
  License: LGPL-2.1 | LGPL-3

  Files: debian/*
  Copyright: 2009-2010 Evgeni Golov <[email-masked]>
  Copyright: 2009-2010 Ted Gould <[email-masked]>, Canonical Ltd.
  Copyright: 2009-2010 Sebastien Bacher <[email-masked]>
  Copyright: 2009-2010 Ken VanDine <[email-masked]>
  License: GPL-3
#+end_example

libdbusmenu-glib, libdbusmenu-gtk, and some files in tools are dual
licensed under LGPLv2.1 and LGPLv3.  The rest files are licensed under
GPLv3.  For example:

#+begin_example
  https://bazaar.launchpad.net/~dbusmenu-team/libdbusmenu/trunk.16.10/view/head:/tests/json-loader.c
  https://bazaar.launchpad.net/~dbusmenu-team/libdbusmenu/trunk.16.10/view/head:/tools/dbusmenu-dumper.c
#+end_example

So we should clarify it further.

--
Meiyo Peng
https://www.pengmeiyu.com/