diff options
3 files changed, 96 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-lief/0001-build-requirements.txt-Allow-newer-versions.patch b/meta-python/recipes-devtools/python/python3-lief/0001-build-requirements.txt-Allow-newer-versions.patch new file mode 100644 index 0000000000..e2d041dac7 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-lief/0001-build-requirements.txt-Allow-newer-versions.patch | |||
| @@ -0,0 +1,39 @@ | |||
| 1 | From d6686206658aadc74d21a29c781320e2e13fe8f3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Leon Anavi <leon.anavi@konsulko.com> | ||
| 3 | Date: Mon, 27 Jan 2025 17:05:53 +0000 | ||
| 4 | Subject: [PATCH] build-requirements.txt: Allow newer versions | ||
| 5 | |||
| 6 | Allowing building with newer version | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [oe specific] | ||
| 9 | |||
| 10 | Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> | ||
| 11 | --- | ||
| 12 | api/python/build-requirements.txt | 14 +++++++------- | ||
| 13 | 1 file changed, 7 insertions(+), 7 deletions(-) | ||
| 14 | |||
| 15 | diff --git a/api/python/build-requirements.txt b/api/python/build-requirements.txt | ||
| 16 | index 4c9004ca..fe0d1055 100644 | ||
| 17 | --- a/api/python/build-requirements.txt | ||
| 18 | +++ b/api/python/build-requirements.txt | ||
| 19 | @@ -1,10 +1,10 @@ | ||
| 20 | -tomli==2.0.1 | ||
| 21 | -scikit-build-core==0.9.8 | ||
| 22 | +tomli>=2.0.1 | ||
| 23 | +scikit-build-core>=0.9.8 | ||
| 24 | # For Ninja: msvc.msvc14_get_vc_env | ||
| 25 | -setuptools==70.2.0 | ||
| 26 | +setuptools>=70.2.0 | ||
| 27 | # For the "env" feature | ||
| 28 | -pydantic==2.8.2 | ||
| 29 | +pydantic>=2.8.2 | ||
| 30 | # Implicit from scikit-build-core | ||
| 31 | -pathspec==0.12.1 | ||
| 32 | -build==1.2.1 | ||
| 33 | -wheel==0.43.0 | ||
| 34 | +pathspec>=0.12.1 | ||
| 35 | +build>=1.2.1 | ||
| 36 | +wheel>=0.43.0 | ||
| 37 | -- | ||
| 38 | 2.39.5 | ||
| 39 | |||
diff --git a/meta-python/recipes-devtools/python/python3-lief/0002-api-python-config-default.toml-Debug.patch b/meta-python/recipes-devtools/python/python3-lief/0002-api-python-config-default.toml-Debug.patch new file mode 100644 index 0000000000..bc38a63726 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-lief/0002-api-python-config-default.toml-Debug.patch | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | From 064f361f113e1e4496f40dd0a075f89d21bad5a3 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Leon Anavi <leon.anavi@konsulko.com> | ||
| 3 | Date: Tue, 28 Jan 2025 12:25:31 +0000 | ||
| 4 | Subject: [PATCH] api/python/config-default.toml: Debug | ||
| 5 | |||
| 6 | Fixes do_package: QA Issue: [already-stripped] | ||
| 7 | |||
| 8 | Upstream-Status: Inappropriate [oe specific] | ||
| 9 | |||
| 10 | Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> | ||
| 11 | --- | ||
| 12 | api/python/config-default.toml | 2 +- | ||
| 13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 14 | |||
| 15 | diff --git a/api/python/config-default.toml b/api/python/config-default.toml | ||
| 16 | index 519bc046..49477864 100644 | ||
| 17 | --- a/api/python/config-default.toml | ||
| 18 | +++ b/api/python/config-default.toml | ||
| 19 | @@ -1,5 +1,5 @@ | ||
| 20 | [lief.build] | ||
| 21 | -type = "Release" | ||
| 22 | +type = "Debug" | ||
| 23 | cache = true | ||
| 24 | ninja = true | ||
| 25 | parallel-jobs = 0 | ||
| 26 | -- | ||
| 27 | 2.39.5 | ||
| 28 | |||
diff --git a/meta-python/recipes-devtools/python/python3-lief_0.16.2.bb b/meta-python/recipes-devtools/python/python3-lief_0.16.2.bb new file mode 100644 index 0000000000..6cc6e7e5ae --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-lief_0.16.2.bb | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | SUMMARY = "Library to instrument executable formats" | ||
| 2 | DESCRIPTION = "LIEF: Library to Instrument Executable Formats" | ||
| 3 | HOMEPAGE = "https://github.com/lief-project/LIEF" | ||
| 4 | LICENSE = "Apache-2.0" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE;md5=9ab5db472ff936b441055522f5000547" | ||
| 6 | SECTION = "libs" | ||
| 7 | |||
| 8 | SRC_URI = " \ | ||
| 9 | git://github.com/lief-project/LIEF.git;protocol=https;branch=main \ | ||
| 10 | file://0001-build-requirements.txt-Allow-newer-versions.patch \ | ||
| 11 | file://0002-api-python-config-default.toml-Debug.patch \ | ||
| 12 | " | ||
| 13 | SRCREV = "d3ad812008fd286322b7085e84136e422b3afea4" | ||
| 14 | |||
| 15 | S = "${WORKDIR}/git" | ||
| 16 | PEP517_SOURCE_PATH = "${S}/api/python" | ||
| 17 | |||
| 18 | inherit python_setuptools_build_meta | ||
| 19 | |||
| 20 | DEPENDS += "\ | ||
| 21 | python3-scikit-build-native \ | ||
| 22 | python3-scikit-build-core-native \ | ||
| 23 | python3-tomli-native \ | ||
| 24 | python3-pydantic-native \ | ||
| 25 | ninja-native \ | ||
| 26 | ccache-native \ | ||
| 27 | " | ||
| 28 | |||
| 29 | BBCLASSEXTEND = "native nativesdk" | ||
