Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Licensing fixes #42

Merged
merged 8 commits into from
Aug 23, 2022
Merged

Licensing fixes #42

merged 8 commits into from
Aug 23, 2022

Conversation

mwilck
Copy link
Collaborator

@mwilck mwilck commented Aug 22, 2022

I'm submitting this from a separate branch to keep it isolated from the technical patches in the queue branch. @cvaroqui, please merge ASAP.

Fixes #36.

This is a first set of patches for the GPL 2.0/3.0 issue.

  1. The bad license identifier is fixed in the strbuf code (This patch needs no Reviewed-by:, I'm just changing the\nlicense on behalf of SUSE LLC as I'm the only author).
  2. libreadline is replaced by libedit, following the suggestions\nfrom the Debian licensing team in Please license remaining GPL-2.0-only files as 2-or-later (or LGPL?) #36.

Another, additional set of licensing-related patches has been submitted to dm-devel and will improve the situation further. I'm submitting here nonetheless because the basic fix should be applied quickly.

Bastian Germann (1):
multipathd: Add missing ctype include

Martin Wilck (7):
libmultipath: convert license of strbuf code to GPL-2.0+
multipathd: replace libreadline with libedit
github workflows: build-and-unittest.yaml: add libedit-dev
github workflows: coverity.yaml: add libedit-dev
github workflows: abi.yaml: add libedit-dev
GitHub workflows: native.yaml: add libedit-dev, except for jessie
GitHub workflows: foreign.yaml: switch to Debian 11 (bullseye)

mwilck and others added 8 commits August 22, 2022 17:18
This (partly) fixes the license incompatibility reported in
opensvc#36

As I'm the only author (except for a trivial spelling fix),
I see no issue with changing the license.

Signed-off-by: Martin Wilck <mwilck@suse.com>
In uxclnt.c, there are isspace calls. Add an explicit include.

Signed-off-by: Bastian Germann <bage@debian.org>
Reviewed-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
Linking multipathd with libreadline may cause a license conflict,
because libreadline is licensed under GPL-3.0-or-later, and
libmultipath contains several files under GPL-2.0.

See:
   opensvc#36
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=979095
   https://www.gnu.org/licenses/gpl-faq.html#AllCompatibility

Replace the readline functionality with libedit, which comes under
a BSD license. The readline library can still be enabled (e.g. for
binaries not intended to be distributed) by running
"make READLINE=libreadline".

Signed-off-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: Benjamin Marzinski <bmarzins@redhat.com>
This is is required after switching from libreadline to libedit.

Signed-off-by: Martin Wilck <mwilck@suse.com>
This is is required after switching from libreadline to libedit.

Signed-off-by: Martin Wilck <mwilck@suse.com>
This is is required after switching from libreadline to libedit.

Signed-off-by: Martin Wilck <mwilck@suse.com>
This is is required after switching from libreadline to libedit.

On jessie, we can use libreadline5 (libreadline-gpl2-dev) without
license issues. Trying to compile against libedit results in an
"incompatible pointer type" error on jessie, because libedit
uses a different prototype for rl_completion_entry_function.

Signed-off-by: Martin Wilck <mwilck@suse.com>
Building the containers in the build-multipath project recently
started failing for buster/s390x and buster/ppc64el. That failure
had nothing to do with the switch to libedit.

It's about time to switch to bullseye anyway.

Signed-off-by: Martin Wilck <mwilck@suse.com>
@mwilck
Copy link
Collaborator Author

mwilck commented Aug 22, 2022

The CI breaks because of the switch to libedit. I am pushing fixes to the GitHub workflows that should fix this.

@cvaroqui cvaroqui merged commit 0289ef8 into opensvc:master Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please license remaining GPL-2.0-only files as 2-or-later (or LGPL?)
3 participants