You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkgbuild: remove pypi field over purl; add purl version support
* We now support pypi PURLs, so no need to have our own separate pypi
type anymore.
* PURLs now support versions, which take precedence over the pkgver
if specified.
Copy file name to clipboardExpand all lines: web/dev/pkgbuild.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,12 +28,15 @@ For `msys2_references` the following keys are recognized:
28
28
*`cygwin-mingw64` -
29
29
the cygwin package name for all packages starting with "mingw64-x86_64-",
30
30
minus that prefix: https://cygwin.com/packages/src_package_list.html
31
-
*`pypi` - the PyPI project name (case-insensitive): https://pypi.org/search/
32
31
*`gentoo` - the full Gentoo package name e.g. `dev-python/pyasn1`
33
32
*`internal` - special key, which if it exists marks the package as internal and doesn't link it to any external sources
34
-
*`purl` - a [package URL](https://github.com/package-url/purl-spec) e.g. `pkg:cargo/ripgrep` (only cargo supported atm)
35
-
Multiple PURLs supported.
36
-
*`cpe` - a [CPE](https://en.wikipedia.org/wiki/Common_Platform_Enumeration) prefix, either in the 2.2 format (`cpe: cpe:/a:gnu:gcc`) or the 2.3 format (`cpe:2.3:a:gnu:gcc`). `target_sw` etc are currently not supported. Multiple CPEs supported.
33
+
*`purl` - a [package URL](https://github.com/package-url/purl-spec). Multiple PURLs supported. Versions are optionally supported, and useful in case the upstream version is different from the package version. Some common PURL types:
34
+
*[pypi](https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#pypi) - example: `pkg:pypi/jinja2` or `pkg:pypi/@3.1.5` - make sure to [normalize](https://packaging.python.org/en/latest/specifications/name-normalization) the package name
35
+
*[cargo](https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#cargo) - example: `pkg:cargo/ripgrep` or `pkg:cargo/[email protected]`
*[github](https://github.com/package-url/purl-spec/blob/master/PURL-TYPES.rst#github) - example: `pkg:github/curl/curl` or `pkg:github/curl/curl@curl-8_12_1`
38
+
* ...
39
+
*`cpe` - a [CPE](https://en.wikipedia.org/wiki/Common_Platform_Enumeration) prefix, either in the 2.2 format (`cpe: cpe:/a:gnu:gcc`) or the 2.3 format (`cpe:2.3:a:gnu:gcc`). `version`, `target_sw` etc are currently not supported. Multiple CPEs supported.
37
40
38
41
Defining a key without a value means there is no mapping and the package shouldn't be linked.
39
42
@@ -44,3 +47,8 @@ The following datatypes are supported:
44
47
***mapping:** Mappings of strings to optional other strings, separated by `":"`, values are
***boolean:** either `true` or `false`: `msys2_myvar=true` 🠆 `{"myvar": true}`
50
+
51
+
## Changelog
52
+
53
+
**2025-02-17:** Added support for the `version` component in `purl` entries, for example `purl: pkg:pypi/[email protected]`.
54
+
**2025-02-17:** Removed support for `pypi` in `msys2_references`, use `purl` with the `pypi` type instead, for example `purl: pkg:pypi/jinja2` instead of `pypi: jinja2`.
Copy file name to clipboardExpand all lines: web/dev/vulnerabilities.md
+11-2Lines changed: 11 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ graph LR;
14
14
15
15
The following metadata is used to generate the SBOM file, so that CVEs etc. can be matched to our packages:
16
16
17
-
In the `msys2_references` field in each `PKGBUILD` file the `cpe`key, the `purl`and the `pypi` keys are used to match to CVEs.
17
+
In the `msys2_references` field in each `PKGBUILD` file the `cpe`and `purl`entries are used to match to CVEs.
18
18
The more references the better. Language ecosystem specific references such as pypi and cargo are preferred. For more information about the fields see [PKGBUILD](./pkgbuild.md).
0 commit comments