Skip to content

LICENSES file should be copied into /usr/share/licenses/libgcrypt

Description:

The libgcrypt PKGBUILD copies the LGPL license text into /usr/share/licenses/libgcrypt:

install -m644 COPYING.LIB "${pkgdir}/usr/share/licenses/${pkgname}/"

However, there is also a LICENSES file (https://github.com/gpg/libgcrypt/blob/master/LICENSES) that contains a bunch of custom-ish licenses (BSD-3-Clause variants, X11, public domain, and the OCB1 license which seems Apache-ish but contains specific patent grants etc).

libgcrypt/PKGBUILD should probably also include this line, to cover all the licenses:

install -m644 LICENSES "${pkgdir}/usr/share/licenses/${pkgname}/"

(It may not need COPYING.LIB at all, given that it appears to just be the standard license text. I haven't double checked this though.)

The license= line in libgcrypt/PKGBUILD may need tweaking as well; X11 is missing and IIUC the OCB1 license needs something like LicenseRef-OCB1. Taking a stab at it, I think it should be:

license=('BSD-3-Clause AND (BSD-3-Clause OR GPL-2.0-only) AND GPL-2.0-or-later AND LGPL-2.1-or-later AND LGPL-2.0-or-later AND X11 AND LicenseRef-PublicDomain AND LicenseRef-OCB1')

Additional info:

  • package version(s): 1.11.0

Steps to reproduce:

  1. pacman -Syu libgcrypt
  2. Observe that /usr/share/licenses/libgcrypt/COPYING.LIB exists but .../LICENSES does not.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information