The "+" SPDX license operator is not recognized
Namcap 3.5.2-1
does not recognize license expressions with a +
at the end as valid licenses. +
is used to indicate that any later version of the license can also be used, as defined in the RFC.
Example:
# PKGBUILD
pkgname=foo
pkgver=1
pkgrel=1
arch=(any)
license=('Apache-2.0+')
$ makepkg
[...]
$ namcap foo-1-1-any.pkg.tar.zst
foo E: Apache-2.0+ is not a valid SPDX license identifier. See https://spdx.org/licenses/ for valid identifiers, or prefix the identifier with 'LicenseRef-', if it is custom.
However, I think that the +
operator should only be allowed for versioned licenses, and expressions like MIT+
or GPL-2.0-only+
should still raise an error.