python3-m2crypto: fix CVE-2020-25657 and buildpaths qa issue

Backport patch to fix CVE-2020-25657 for python3-m2crypto. Adjust indent
as well.

Remove duplicate 'Upstream-Status:' from avoid-host-contamination.patch.

Add swig option '-DOPENSSL_FILE' to fix buildpaths qa issues.

  WARNING: python3-m2crypto-0.38.0-r0 do_package_qa: QA Issue: File
  /usr/lib/python3.11/site-packages/M2Crypto/_m2crypto.cpython-311-x86_64-linux-gnu.so
  in package python3-m2crypto contains reference to TMPDIR [buildpaths]

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Kai Kang
2022-11-25 10:38:44 +08:00
committed by Khem Raj
parent ea94889e88
commit 71fc243989
3 changed files with 183 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
Filter out '/usr/include' for swig to avoid host contamination issue.
Upstream-Status: Upstream-Status: Inappropriate [cross compile specific]
Upstream-Status: Inappropriate [cross compile specific]
Signed-off-by: Kai Kang <kai.kang@windriver.com>
---