| Age | Commit message (Collapse) | Author |
|
|
|
Don't rely on the installPhase doing so.
|
|
|
|
|
|
Without `--with-system-{ffi,expat}` flags, Python will use its own
embedded libraries that are out-of-date. Thanks to it, they can be a
security issue. So let's use our own libraries instead.
This is already what Python 3.x does, so should be safe.
|
|
|
|
|
|
|
|
Strip unused libraries from resholve's own python27 derivation, further
reducing its size and reducing its attack surface.
|
|
|
|
|
|
This PR strips down the modified `python27` derivation used by `resholve`. The
idea is to reduce the possible security issues, and also to make it easier to
bootstrap.
|
|
|
|
Almost same as in the parent commit.
|
|
They brought significant regressions. Upstream is now discussing
what to do, but we still want the security fixes from 3.10.9.
|
|
stdenv: support opt-in __structuredAttrs
|
|
|
|
|
|
|
|
|
|
https://docs.python.org/release/3.10.9/whatsnew/changelog.html
https://pythoninsider.blogspot.com/2022/12/python-3111-3109-3916-3816-3716-and.html
Fixes: CVE-2022-37454, CVE-2022-45061, CVE-2022-42919
|
|
https://docs.python.org/release/3.9.16/whatsnew/changelog.html
https://pythoninsider.blogspot.com/2022/12/python-3111-3109-3916-3816-3716-and.html
Fixes: CVE-2022-37454, CVE-2022-42919, CVE-2022-45061, CVE-2015-20107
|
|
|
|
https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-0-alpha3
https://pythoninsider.blogspot.com/2022/12/python-3111-3109-3916-3816-3716-and.html
Fixes: CVE-2022-45061
|
|
https://www.python.org/downloads/release/python-3111/
https://docs.python.org/release/3.11.1/whatsnew/changelog.html#python-3-11-1
https://pythoninsider.blogspot.com/2022/12/python-3111-3109-3916-3816-3716-and.html
Fixes: CVE-2022-45061
|
|
https://www.python.org/downloads/release/python-3816/
https://pythoninsider.blogspot.com/2022/12/python-3111-3109-3916-3816-3716-and.html
Fixes: CVE-2022-37454, CVE-2022-45061, CVE-2015-20107
|
|
https://www.python.org/downloads/release/python-3716/
https://pythoninsider.blogspot.com/2022/12/python-3111-3109-3916-3816-3716-and.html
Fixes: CVE-2022-37454, CVE-2022-45061, CVE-2015-20107
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
https://blog.python.org/2022/10/python-3120-alpha-1-released.html
https://blog.python.org/2022/11/python-3120-alpha-2-released.html
|
|
|
|
|
|
|
|
ActiveState is a company that is maintaining a fork of Python 2 to fixes
its security issues. Their support is paid, however the code is
open-source. See the details here:
https://www.activestate.com/products/python/python-2-end-of-life-security-updates/
This enable us to drop a bunch of CVE's patches for Python 2.7 and also
it should be easier to maintain, since we can just bump the version once
ActiveState tags a new version.
|
|
|
|
Add patches from Arch Linux package (that itself source its patches from
Gentoo) to the following known security issues in Python 2.7:
- CVE-2020-26116
- CVE-2020-27619
- CVE-2020-8492
This should cover all security issues currently listed in
https://www.activestate.com/products/python/python-2-end-of-life-security-updates/.
|
|
|
|
This reverts commit 017fd895276dc0e45e9a596b1aa1ad199bfc7c4d.
|
|
|
|
buildPythonPackage: fix regression if no setuptools is used
|
|
pythonFull: drop unused xlibsWrapper input
|
|
pythonRelaxDepsHook: improve Requires-Dist parsing
|
|
Prior to this commit, pythonRelaxDeps would only support removing
version constraints from "Requires-Dist" lines formatted in a particular
way ("foo (>= 1.2.3)"). This way is deprecated as per PyPA Core Metadata
Specs v2.1 [1]:
> Tools parsing the format should accept optional parentheses around
> this, but tools generating it should not use parentheses.
Additionally, a "Requires-Dist" dependency specification can contain
other metadata than just package name and version (extra names,
environment marker). These were being silently dropped by the prior
version of pythonRelaxDeps, or the version could not be relaxed.
The actual grammar is defined in PEP 508 [2]. Our tool of choice here is
sed extended regexps, so there's only so much we can do to be correct
with this parser. The regexp implemented in this commit makes an attempt
at supporting [extra] names, ; env_markers, as well as version specs
without parentheses. There are still unsupported features (URL specs) as
well as unhandled edge cases, but at some point trying to make the
regexp better is bound to awake ZALGO [3].
[1] https://packaging.python.org/en/latest/specifications/core-metadata/#requires-dist-multiple-use
[2] https://peps.python.org/pep-0508/#grammar
[3] https://stackoverflow.com/a/1732454/179806
|
|
Tested as no material change in `out` output with `diffoscope`.
|