package/python-rpds-py: bump to version 0.16.2
PATCH 1/1 package/python-rpds-py: bump to version 0.16.2
--- package/python-rpds-py/python-rpds-py.hash | 2 +- package/python-rpds-py/python-rpds-py.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
package/python-rpds-py/python-rpds-py.hash +1 -1
@@ -1,4 +1,4 @@ # Locally calculated after vendoring -sha256 87361601241744fff6235e35050addfe34d00508172d2bd4f178193a28727287 rpds_py-0.12.0.tar.gz +sha256 861b1fa8c37819b2e2cebbde6dea66ac2fa1247e4a7c3933dbf4c89244d7fecb rpds_py-0.16.2.tar.gz # Locally computed sha256 checksums sha256 314e4e91be3baa93c0fb4bccc9e4e97cd643eb839b065af921782c2175fe9909 LICENSE
package/python-rpds-py/python-rpds-py.mk +2 -2
@@ -4,9 +4,9 @@ # ################################################################################ -PYTHON_RPDS_PY_VERSION = 0.12.0 +PYTHON_RPDS_PY_VERSION = 0.16.2 PYTHON_RPDS_PY_SOURCE = rpds_py-$(PYTHON_RPDS_PY_VERSION).tar.gz -PYTHON_RPDS_PY_SITE = https://files.pythonhosted.org/packages/75/be/e3f366aa4cd1e3a814f136773e506fc5423eff903ef0372a251df34e6e45 +PYTHON_RPDS_PY_SITE = https://files.pythonhosted.org/packages/c2/63/94a1e9406b34888bdf8506e91d654f1cd84365a5edafa5f8ff0c97d4d9e1 PYTHON_RPDS_PY_SETUP_TYPE = maturin PYTHON_RPDS_PY_LICENSE = MIT PYTHON_RPDS_PY_LICENSE_FILES = LICENSE
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 1 line · James Hilliard
Signed-off-by James Hilliard <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 21 lines
--- package/python-rpds-py/python-rpds-py.hash | 2 +- package/python-rpds-py/python-rpds-py.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)package/python-rpds-py/python-rpds-py.hash +1
-1@@ -1,4 +1,4 @@ # Locally calculated after vendoring -sha256 87361601241744fff6235e35050addfe34d00508172d2bd4f178193a28727287 rpds_py-0.12.0.tar.gz +sha256 861b1fa8c37819b2e2cebbde6dea66ac2fa1247e4a7c3933dbf4c89244d7fecb rpds_py-0.16.2.tar.gz # Locally computed sha256 checksums sha256 314e4e91be3baa93c0fb4bccc9e4e97cd643eb839b065af921782c2175fe9909 LICENSEpackage/python-rpds-py/python-rpds-py.mk +0
-0@@ -4,9 +4,9 @@ #
package/python-rpds-py/python-rpds-py.mk line 12
Quoted 10 lines
package/python-rpds-py/python-rpds-py.mk +2
-2################################################################################ -PYTHON_RPDS_PY_VERSION = 0.12.0 +PYTHON_RPDS_PY_VERSION = 0.16.2 PYTHON_RPDS_PY_SOURCE = rpds_py-$(PYTHON_RPDS_PY_VERSION).tar.gz -PYTHON_RPDS_PY_SITE = https://files.pythonhosted.org/packages/75/be/e3f366aa4cd1e3a814f136773e506fc5423eff903ef0372a251df34e6e45 +PYTHON_RPDS_PY_SITE = https://files.pythonhosted.org/packages/c2/63/94a1e9406b34888bdf8506e91d654f1cd84365a5edafa5f8ff0c97d4d9e1 PYTHON_RPDS_PY_SETUP_TYPE = maturin PYTHON_RPDS_PY_LICENSE = MIT PYTHON_RPDS_PY_LICENSE_FILES = LICENSE
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines · James Hilliard
Signed-off-by James Hilliard <[email protected]>--- package/python-rpds-py/python-rpds-py.hash | 2 +- package/python-rpds-py/python-rpds-py.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)package/python-rpds-py/python-rpds-py.hash +0
-0
package/python-rpds-py/python-rpds-py.hash line 2
Quoted 3 lines
package/python-rpds-py/python-rpds-py.hash +1
-1@@ -1,4 +1,4 @@ # Locally calculated after vendoring -sha256 87361601241744fff6235e35050addfe34d00508172d2bd4f178193a28727287 rpds_py-0.12.0.tar.gz +sha256 861b1fa8c37819b2e2cebbde6dea66ac2fa1247e4a7c3933dbf4c89244d7fecb rpds_py-0.16.2.tar.gz
ERROR: while checking hashes from package/python-rpds-py//python-rpds-py.hash
ERROR: rpds_py-0.16.2.tar.gz has wrong sha256 hash:
ERROR: expected: 861b1fa8c37819b2e2cebbde6dea66ac2fa1247e4a7c3933dbf4c89244d7fecb
ERROR: got : bc62a37913de53569414f6eb4a16a005b1dd04afb473c3c27561b11614f92034
ERROR: Incomplete download, or man-in-the-middle (MITM) attack
This might be the gitattributes issue that Yann has a patch series for. I'm
marking this patch as Changes Requested, you can try to re-submit after Yann's series is merged.
Regards,
Arnout
Quoted 8 lines
package/python-rpds-py/python-rpds-py.hash +0
-0# Locally computed sha256 checksums sha256 314e4e91be3baa93c0fb4bccc9e4e97cd643eb839b065af921782c2175fe9909 LICENSEpackage/python-rpds-py/python-rpds-py.mk +0
-0@@ -4,9 +4,9 @@ #
package/python-rpds-py/python-rpds-py.mk line 12
Quoted 10 lines
package/python-rpds-py/python-rpds-py.mk +2
-2################################################################################ -PYTHON_RPDS_PY_VERSION = 0.12.0 +PYTHON_RPDS_PY_VERSION = 0.16.2 PYTHON_RPDS_PY_SOURCE = rpds_py-$(PYTHON_RPDS_PY_VERSION).tar.gz -PYTHON_RPDS_PY_SITE = https://files.pythonhosted.org/packages/75/be/e3f366aa4cd1e3a814f136773e506fc5423eff903ef0372a251df34e6e45 +PYTHON_RPDS_PY_SITE = https://files.pythonhosted.org/packages/c2/63/94a1e9406b34888bdf8506e91d654f1cd84365a5edafa5f8ff0c97d4d9e1 PYTHON_RPDS_PY_SETUP_TYPE = maturin PYTHON_RPDS_PY_LICENSE = MIT PYTHON_RPDS_PY_LICENSE_FILES = LICENSE
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
James, All,
On 2024-02-05 12:05 +0100, Arnout Vandecappelle via buildroot spake thusly:
Quoted 22 lines · James Hilliard
Quoted 11 lines
Signed-off-by James Hilliard <[email protected]>--- package/python-rpds-py/python-rpds-py.hash | 2 +- package/python-rpds-py/python-rpds-py.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)package/python-rpds-py/python-rpds-py.hash +0
-0package/python-rpds-py/python-rpds-py.hash line 2
Quoted 3 lines
package/python-rpds-py/python-rpds-py.hash +1
-1@@ -1,4 +1,4 @@ # Locally calculated after vendoring -sha256 87361601241744fff6235e35050addfe34d00508172d2bd4f178193a28727287 rpds_py-0.12.0.tar.gz +sha256 861b1fa8c37819b2e2cebbde6dea66ac2fa1247e4a7c3933dbf4c89244d7fecb rpds_py-0.16.2.tar.gzERROR: while checking hashes from package/python-rpds-py//python-rpds-py.hash
ERROR: rpds_py-0.16.2.tar.gz has wrong sha256 hash:
ERROR: expected:861b1fa8c37819b2e2cebbde6dea66ac2fa1247e4a7c3933dbf4c89244d7fecb
ERROR: got :bc62a37913de53569414f6eb4a16a005b1dd04afb473c3c27561b11614f92034
ERROR: Incomplete download, or man-in-the-middle (MITM) attack
Quoted 3 lines
This might be the gitattributes issue that Yann has a patch series for. I'm
marking this patch as Changes Requested, you can try to re-submit after Yann's series is merged.
It turned out that Arnout had a broken setup, and the archives were made with tar 1.35 rather than the expexted 1.34.
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Yann E. MORIN
AppliedJames, all,
On 2024-01-10 22:17 -0700, James Hilliard spake thusly:
Quoted 1 line
Signed-off-by James Hilliard <[email protected]>
Applied to master, thanks.
Regards,
Yann E. MORIN.
Quoted 38 lines
--- package/python-rpds-py/python-rpds-py.hash | 2 +- package/python-rpds-py/python-rpds-py.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)package/python-rpds-py/python-rpds-py.hash +1
-1@@ -1,4 +1,4 @@ # Locally calculated after vendoring -sha256 87361601241744fff6235e35050addfe34d00508172d2bd4f178193a28727287 rpds_py-0.12.0.tar.gz +sha256 861b1fa8c37819b2e2cebbde6dea66ac2fa1247e4a7c3933dbf4c89244d7fecb rpds_py-0.16.2.tar.gz # Locally computed sha256 checksums sha256 314e4e91be3baa93c0fb4bccc9e4e97cd643eb839b065af921782c2175fe9909 LICENSEpackage/python-rpds-py/python-rpds-py.mk +2
-2@@ -4,9 +4,9 @@ # ################################################################################ -PYTHON_RPDS_PY_VERSION = 0.12.0 +PYTHON_RPDS_PY_VERSION = 0.16.2 PYTHON_RPDS_PY_SOURCE = rpds_py-$(PYTHON_RPDS_PY_VERSION).tar.gz -PYTHON_RPDS_PY_SITE = https://files.pythonhosted.org/packages/75/be/e3f366aa4cd1e3a814f136773e506fc5423eff903ef0372a251df34e6e45 +PYTHON_RPDS_PY_SITE = https://files.pythonhosted.org/packages/c2/63/94a1e9406b34888bdf8506e91d654f1cd84365a5edafa5f8ff0c97d4d9e1 PYTHON_RPDS_PY_SETUP_TYPE = maturin PYTHON_RPDS_PY_LICENSE = MIT PYTHON_RPDS_PY_LICENSE_FILES = LICENSESignature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
James, All,
Quoted 22 lines · James Hilliard
Signed-off-by James Hilliard <[email protected]>--- package/python-rpds-py/python-rpds-py.hash | 2 +- package/python-rpds-py/python-rpds-py.mk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)package/python-rpds-py/python-rpds-py.hash +1
-1@@ -1,4 +1,4 @@ # Locally calculated after vendoring -sha256 87361601241744fff6235e35050addfe34d00508172d2bd4f178193a28727287 rpds_py-0.12.0.tar.gz +sha256 861b1fa8c37819b2e2cebbde6dea66ac2fa1247e4a7c3933dbf4c89244d7fecb rpds_py-0.16.2.tar.gz # Locally computed sha256 checksums sha256 314e4e91be3baa93c0fb4bccc9e4e97cd643eb839b065af921782c2175fe9909 LICENSEpackage/python-rpds-py/python-rpds-py.mk +0
-0@@ -4,9 +4,9 @@ #
package/python-rpds-py/python-rpds-py.mk line 12
Quoted 10 lines
package/python-rpds-py/python-rpds-py.mk +2
-2################################################################################ -PYTHON_RPDS_PY_VERSION = 0.12.0 +PYTHON_RPDS_PY_VERSION = 0.16.2 PYTHON_RPDS_PY_SOURCE = rpds_py-$(PYTHON_RPDS_PY_VERSION).tar.gz -PYTHON_RPDS_PY_SITE = https://files.pythonhosted.org/packages/75/be/e3f366aa4cd1e3a814f136773e506fc5423eff903ef0372a251df34e6e45 +PYTHON_RPDS_PY_SITE = https://files.pythonhosted.org/packages/c2/63/94a1e9406b34888bdf8506e91d654f1cd84365a5edafa5f8ff0c97d4d9e1 PYTHON_RPDS_PY_SETUP_TYPE = maturin PYTHON_RPDS_PY_LICENSE = MIT PYTHON_RPDS_PY_LICENSE_FILES = LICENSE
rpds depends on the crate pyo3. This crate uses
"std::sync::atomic::AtomicI64" which doesn't exist for 32 bits
targets. That leads to an error [1].
An issue have been opened on pyo3's github [2]. A fix have been accepted [3]
but it isn't in the last release. Thus, this version bump doesn't
fix this problem.
[1]: https://gitlab.com/buildroot.org/buildroot/-/jobs/6093854842
[2]: https://github.com/PyO3/pyo3/issues/3614
[3]: https://github.com/PyO3/pyo3/pull/3619
regards,
Antoine Coutant
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Antoine, All,
On 2024-02-06 15:09 +0100, Antoine Coutant spake thusly:
Quoted 2 lines · James Hilliard
Quoted 1 line
Signed-off-by James Hilliard <[email protected]>
[--SNIP--]
Quoted 5 lines
package/python-rpds-py/python-rpds-py.mk line 7
Quoted 2 lines
package/python-rpds-py/python-rpds-py.mk +1
-1-PYTHON_RPDS_PY_VERSION = 0.12.0 +PYTHON_RPDS_PY_VERSION = 0.16.2rpds depends on the crate pyo3. This crate uses "
std::sync::atomic::AtomicI64" which doesn't exist for 32 bits targets. That leads to an error [1].
I have been discussing this with Romain IRL, and he explained that the issue _already_ happenned with 0.12.0, so this is not a regression and thus reverting this patch will not fix the issue.
Is that correct?
Also, will std::sync::atomic::AtomicI64 ever be available for 32-bit targets? If not, would that be considered a bug in the std lib?
Quoted 6 lines
An issue have been opened on pyo3's github [2]. A fix have been accepted [3] but it isn't in the last release. Thus, this version bump doesn't fix this problem.
[1]: https://gitlab.com/buildroot.org/buildroot/-/jobs/6093854842
[2]: https://github.com/PyO3/pyo3/issues/3614
[3]: https://github.com/PyO3/pyo3/pull/3619
It is not going to be easy to carry this change as a patch in Buildroot:
it would require that we be able to patch a package during the vendoring step.
In this case, we'd need to do the vendoring (because we need the pyo3 crate to be downloaded), then apply the patch (with mangled paths) to add the new dependency, then restart the vendoring. In the generic case, we'd even need to be able to repeat the process in case that new dependency has to be patched and so on and so on... That's not going to be easy, by far...
Meh...
We can't even update to a random sha1 from the rpds git tree, because they do nit even have an update to switch to a newer (even if unreleased) pyo3.
Meh, again...
Not sure what to do...
What about adding a dependency on BR2_ARCH_IS_64 to python-rpds-pym and propagate that to all its dependencies?
Regards,
Yann E. MORIN.
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 11 lines · Yann E. MORIN
Antoine, All,
On 2024-02-06 15:09 +0100, Antoine Coutant spake thusly:
Quoted 2 lines · James Hilliard
Quoted 1 line
Signed-off-by James Hilliard<[email protected]>[--SNIP--]
Quoted 5 lines
package/python-rpds-py/python-rpds-py.mk line 7
Quoted 2 lines
package/python-rpds-py/python-rpds-py.mk +1
-1-PYTHON_RPDS_PY_VERSION = 0.12.0 +PYTHON_RPDS_PY_VERSION = 0.16.2rpds depends on the crate pyo3. This crate uses "
std::sync::atomic::AtomicI64" which doesn't exist for 32 bits targets. That leads to an error [1].
Quoted 5 lines
I have been discussing this with Romain IRL, and he explained that the issue _already_ happenned with 0.12.0, so this is not a regression and thus reverting this patch will not fix the issue.
Is that correct?
Yes, this patch is not a regression. I did a test with Buildroot 2023.11
and it failed. This bug is old but i described it here because I was
working on it when the version bump was applied and I thought
it was related.
Quoted 3 lines
Also, will
std::sync::atomic::AtomicI64ever be available for 32-bit targets? If not, would that be considered a bug in the std lib?
according to the rust doc, std::sync::atomic::AtomicI64 is only available
on platforms that support atomic loads and stores of i64 [1]. Moreover,
std::sync::atomic types might not be available on all platforms [2].
That's why the crate portable-atomic [3] have been created. It provides
atomic types and compare and swap operations for all targets that can use
std. That's the crate used by pyo3 upstream to solve the problem [4].
Quoted 23 lines
Quoted 6 lines
An issue have been opened on pyo3's github [2]. A fix have been accepted [3] but it isn't in the last release. Thus, this version bump doesn't fix this problem. [1]:https://gitlab.com/buildroot.org/buildroot/-/jobs/6093854842 [2]:https://github.com/PyO3/pyo3/issues/3614 [3]:https://github.com/PyO3/pyo3/pull/3619
It is not going to be easy to carry this change as a patch in Buildroot:
it would require that we be able to patch a package during the vendoring step.In this case, we'd need to do the vendoring (because we need the pyo3 crate to be downloaded), then apply the patch (with mangled paths) to add the new dependency, then restart the vendoring. In the generic case, we'd even need to be able to repeat the process in case that new dependency has to be patched and so on and so on... That's not going to be easy, by far...
Meh...
We can't even update to a random sha1 from the rpds git tree, because they do nit even have an update to switch to a newer (even if unreleased) pyo3.
Quoted 6 lines
Meh, again...
Not sure what to do...
What about adding a dependency on
BR2_ARCH_IS_64to python-rpds-pym and propagate that to all its dependencies?
I think this is the best way to avoid this bug. Patching during the
vendoring process seams to be possible. But it will be quite
impossible to maintain.
The dependency on BR2_ARCH_IS_64 must be removed when
the version of spo3 used by rpds will use portable-atomic.
Quoted 3 lines
Regards,
Yann E. MORIN.
[1]: https://doc.rust-lang.org/std/sync/atomic/struct.AtomicI64.html
[2]: https://doc.rust-lang.org/std/sync/atomic/index.html#portability
[3]: https://github.com/taiki-e/portable-atomic
[4]: https://github.com/PyO3/pyo3/pull/3619/files
Regards,
Antoine Coutant
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot