erlang: fix PKG_CPE_ID escaping for apk ADB format
authorAlexandru Ardelean <redacted>
Fri, 22 May 2026 04:38:13 +0000 (07:38 +0300)
committerAlexandru Ardelean <redacted>
Sun, 24 May 2026 12:57:57 +0000 (15:57 +0300)
commitc5af5e02fb88f03fa91c576329a32c29d80ce8fd
tree53da1c9b3d987af143e642201a210e2350245b89
parent68de1450cc5f97f8b73a81a760d4a8aebee4c18f
erlang: fix PKG_CPE_ID escaping for apk ADB format

apk's ADB binary package format rejects both the backslash-escape and
the percent-encoding variants of the previous CPE id:

  cpe:/a:erlang:erlang\/otp     ERROR: info field 'tags' has invalid value
  cpe:/a:erlang:erlang%2Fotp    ERROR: info field 'tags' has invalid value

apk's tag value parser only accepts a restricted alphabet for ADB
package format and neither '\' nor '%' make the cut. The result is
that the package never produces an .apk.

Drop the '/otp' suffix entirely and use cpe:/a:erlang:erlang, which
matches the higher-level Erlang CPE entry. cve scanners that walked
the more specific erlang\/otp entry will fall back to this one.

This effectively reverts the product portion of bfdf01496 ("lang/erlang:
fix PKG_CPE_ID"), which was correct against the NIST 2.3 string but
incompatible with apk's tag parser.

Signed-off-by: Alexandru Ardelean <redacted>
lang/erlang/Makefile
git clone https://git.99rst.org/PROJECT