From fd863fa355caed2a95bc6a1870bbb23f18e4d0a0 Mon Sep 17 00:00:00 2001 From: Anthony Green Date: Sat, 3 Oct 2026 17:59:10 -0400 Subject: [PATCH] Include libffi license notice in binary distributions --- LICENSE | 28 +++++++++++++++++++++++++++- build.xml | 4 ++++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 9d95afbeb..5414e0f86 100644 --- a/LICENSE +++ b/LICENSE @@ -4,7 +4,8 @@ Java Native Access (JNA) is licensed under the LGPL, version 2.1 or later, or (from version 4.0 onward) the Apache License, version 2.0. -You can freely decide which license you want to apply to the project. +You can freely decide which of these licenses to apply to JNA's own code. +Bundled third-party code retains its own license, as described below. You may obtain a copy of the LGPL License at: @@ -24,3 +25,28 @@ as this file. Commercial support may be available, please e-mail twall[at]users[dot]sf[dot]net. + +The native libraries bundled with JNA incorporate libffi, which is +distributed under the following license: + +libffi - Copyright (c) 1996-2022 Anthony Green, Red Hat, Inc and others. +See source files for details. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +``Software''), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/build.xml b/build.xml index 00bf10900..11589b877 100644 --- a/build.xml +++ b/build.xml @@ -272,6 +272,7 @@ + @@ -981,6 +982,7 @@ zip ../${os.prefix}.jar libjnidispatch.so jnidispatch.dll libjnidispatch.a cd .. + @@ -1044,6 +1046,7 @@ cd .. + @@ -1161,6 +1164,7 @@ cd .. +