On Tue, 15 Oct 2024 at 00:17, Tom Geelen via lists.openembedded.org
<[email protected]> wrote:
> --- a/meta/recipes-devtools/python/python3-cryptography_42.0.8.bb
> +++ b/meta/recipes-devtools/python/python3-cryptography_43.0.1.bb
> @@ -8,43 +8,21 @@ LIC_FILES_CHKSUM = 
> "file://LICENSE;md5=8c3617db4fb6fae01f1d253ab91511e4 \
>                     "
>  LDSHARED += "-pthread"
>
> -SRC_URI[sha256sum] = 
> "8d09d05439ce7baa8e9e95b07ec5b6c886f548deb7e0f69ef25f64b3bce842f2"
> -
> -SRC_URI += "file://0001-pyproject.toml-remove-benchmark-disable-option.patch 
> \
> -            file://check-memfree.py \
> -            file://run-ptest \
> -           "
> -
> -require ${BPN}-crates.inc
> -
> -inherit pypi python_setuptools3_rust cargo-update-recipe-crates pkgconfig
> -
> -DEPENDS += " \
> +DEPENDS += "\
>      python3-cffi-native \
>  "
>
> -RDEPENDS:${PN} += " \
> -    python3-cffi \
> -"
> +SRC_URI[sha256sum] = 
> "203e92a75716d8cfb491dc47c79e17d0d9207ccffcbcb35f598fbe463ae3444d"
>
> -RDEPENDS:${PN}:append:class-target = " \
> -    python3-numbers \
> -    python3-threading \
> +SRC_URI:append = " \
> +    file://0001-pyproject.toml-remove-benchmark-disable-option.patch \
> +    file://check-memfree.py \
> +    file://run-ptest \
>  "
>
> -RDEPENDS:${PN}-ptest += " \
> -    python3-bcrypt \
> -    python3-cryptography-vectors (= ${PV}) \
> -    python3-hypothesis \
> -    python3-iso8601 \
> -    python3-mmap \
> -    python3-pretend \
> -    python3-psutil \
> -    python3-pytest \
> -    python3-unittest-automake-output \
> -    python3-pytest-subtests \
> -    python3-pytz \
> -"
> +require ${BPN}-crates.inc
> +
> +inherit pypi python_maturin cargo-update-recipe-crates pkgconfig
>
>  inherit ptest
>
> @@ -60,8 +38,27 @@ do_install_ptest() {
>      cp -r ${S}/pyproject.toml ${D}${PTEST_PATH}/
>  }
>
> -FILES:${PN}-dbg += " \
> +FILES:${PN}-dbg += "\
>      ${PYTHON_SITEPACKAGES_DIR}/${SRCNAME}/hazmat/bindings/.debug \
>  "
>
> +RDEPENDS:${PN} += "\
> +    python3-cffi \
> +"
> +
> +RDEPENDS:${PN}:append:class-target = " \
> +    python3-numbers \
> +    python3-threading \
> +"
> +
> +RDEPENDS:${PN}-ptest += "\
> +    python3-certifi \
> +    python3-cryptography-vectors (= ${PV}) \
> +    python3-mmap \
> +    python3-pretend \
> +    python3-pytest \
> +    python3-pytest-subtests \
> +    python3-unittest-automake-output \
> +"
> +
>  BBCLASSEXTEND = "native nativesdk"

The patch is rearranging lines in the recipe, changing whitespace, and
replacing SRC_URI += with SRC_URI:append. Those things are both
unnecessary and make actual changes difficult to spot and review. If
you must do them, they should come in their own commits.

Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#205994): 
https://lists.openembedded.org/g/openembedded-core/message/205994
Mute This Topic: https://lists.openembedded.org/mt/109011761/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to