From 4c051eeb9eabb7c779849e267f64a4584d66f812 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Sat, 3 Aug 2024 15:23:57 +1000 Subject: [PATCH] README: explain the licensing of bindings Signed-off-by: Aleksa Sarai --- README.md | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a648aa..eefff9f 100644 --- a/README.md +++ b/README.md @@ -72,8 +72,6 @@ err: ### License ### -![License: LGPL-3.0-or-later](https://img.shields.io/github/license/openSUSE/libpathrs.svg) - `libpathrs` is licensed under the GNU LGPLv3 (or any later version). ``` @@ -93,3 +91,33 @@ PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . ``` + +
+ +The language-specific bindings (the code in `contrib/bindings/` and +`go-pathrs/`) are licensed under the Apache-2.0 license, to allow for wider +usage of `libpathrs` from languages where language libraries are not +dynamically linked. + +**NOTE**: If you compile libpathrs.so into your binary statically, you still +need to abide by the LGPLv3 license. In practice this means at least providing +the object files necessary to allow someone to recompile your program using a +modified libpathrs. See the LGPLv3 license for more details. + +``` +libpathrs: safe path resolution on Linux +Copyright (C) 2019-2024 Aleksa Sarai +Copyright (C) 2019-2024 SUSE LLC + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +```