After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 763850 - Add License GTK_LICENSE_AGPL_3_0 to GtkLicense enum
Add License GTK_LICENSE_AGPL_3_0 to GtkLicense enum
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.18.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2016-03-18 02:57 UTC by Mohammed Sadiq
Modified: 2016-03-25 18:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add support for GNU AGPL v3+ (2.16 KB, patch)
2016-03-18 14:05 UTC, Mohammed Sadiq
none Details | Review
Add support for GNU AGPL v3+, Since: 3.22 (2.17 KB, patch)
2016-03-18 14:23 UTC, Mohammed Sadiq
none Details | Review
Add support for GNU AGPL v3+, Since: 3.22 (2.17 KB, patch)
2016-03-18 14:31 UTC, Mohammed Sadiq
none Details | Review
Add support for GNU AGPL v3+, Since: 3.22 (2.17 KB, patch)
2016-03-18 14:32 UTC, Mohammed Sadiq
committed Details | Review
Don't break ABI in GtkLicense enum (1.14 KB, patch)
2016-03-25 12:53 UTC, Mohammed Sadiq
none Details | Review
Don't break ABI in GtkLicense enum (3.88 KB, patch)
2016-03-25 13:01 UTC, Mohammed Sadiq
committed Details | Review

Description Mohammed Sadiq 2016-03-18 02:57:27 UTC
These days everything is getting into cloud. And in gtk, broadway backend provides such a function that the software runs somewhere else and only the service is provided via network.

So, in the near future GNU Affero GPL license shall be used for several pieces of free software that are considered to be run over the network.
GTK_LICENSE_AGPL_3_0 symbol shall help developers to use GNU Affero GPL easy.

Though the bug 627644 requested for GNU AGPL3+ it seems not found (atleast in documentation).
Comment 1 Matthias Clasen 2016-03-18 12:32:09 UTC
A patch would be appreciated
Comment 2 Mohammed Sadiq 2016-03-18 14:05:19 UTC
Created attachment 324271 [details] [review]
Add support for GNU AGPL v3+

Hope, I haven't miss anything
Comment 3 Emmanuele Bassi (:ebassi) 2016-03-18 14:09:07 UTC
Review of attachment 324271 [details] [review]:

Looks good to me; should be pushed after branching master.

::: gtk/gtkaboutdialog.h
@@ +50,3 @@
  * @GTK_LICENSE_GPL_2_0: The GNU General Public License, version 2.0 or later
  * @GTK_LICENSE_GPL_3_0: The GNU General Public License, version 3.0 or later
+ * @GTK_LICENSE_AGPL_3_0: The GNU Affero General Public License, version 3.0 or later

This should have a note saying: "Since: 3.22"
Comment 4 Mohammed Sadiq 2016-03-18 14:23:14 UTC
Created attachment 324274 [details] [review]
Add support for GNU AGPL v3+, Since: 3.22
Comment 5 Mohammed Sadiq 2016-03-18 14:31:13 UTC
Created attachment 324276 [details] [review]
Add support for GNU AGPL v3+, Since: 3.22

oops. Forgot a colon after "Since"
Comment 6 Mohammed Sadiq 2016-03-18 14:32:46 UTC
Created attachment 324277 [details] [review]
Add support for GNU AGPL v3+, Since: 3.22

oops. Forgot a colon after "Since"
Comment 7 Matthias Clasen 2016-03-18 15:21:59 UTC
Review of attachment 324277 [details] [review]:

looks good, for once we branched
Comment 8 Giovanni Campagna 2016-03-25 04:37:10 UTC
Isn't this an ABI break?

The enum should be added last, or all later enums will change values.
Comment 9 Mohammed Sadiq 2016-03-25 12:53:53 UTC
Created attachment 324749 [details] [review]
Don't break ABI in GtkLicense enum

(In reply to Giovanni Campagna from comment #8)
> Isn't this an ABI break?
> 
> The enum should be added last, or all later enums will change values.

I don't know whether any code would rely on the value of an enum element.
Anyway this patch should fix that, if required.

By the way, I think that the old patch is better as it will keep the license more organized, and this patch should be reverted in Gtk4 to keep the code clean.
Comment 10 Mohammed Sadiq 2016-03-25 13:01:19 UTC
Created attachment 324750 [details] [review]
Don't break ABI in GtkLicense enum
Comment 11 Matthias Clasen 2016-03-25 17:39:38 UTC
Review of attachment 324750 [details] [review]:

yeah, thats right.
Comment 12 Matthias Clasen 2016-03-25 18:05:11 UTC
Just to clarify: this is not about 'code relying on enum values', it is simply a fact that if you compile code against gtk 3.20, it will have those values in it, simply because the compiler uses the numeric values. If you then run the app against 3.21, it will break because those numeric values now mean something else to GTK+.