Skip to contentSkip to conversation

package/python-cryptography: bump to version 43.0.1

PATCH Applied James Hilliard 2 participants 6 messages Sep 6, 2024 – Sep 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-cryptography: bump to version 43.0.1

Migrate from setuptools-rust to maturin pep517 backend.

License hash changed due to dropping PSF license:
https://github.com/pyca/cryptography/commit/5e6476a4c6e094926a983dcf5cbe9488c30aeb53

We now need to enable chacha support when building with libopenssl.

---
 package/python-cryptography/Config.in                | 1 +
 package/python-cryptography/python-cryptography.hash | 4 ++--
 package/python-cryptography/python-cryptography.mk   | 9 ++++-----
 3 files changed, 7 insertions(+), 7 deletions(-)
package/python-cryptography/Config.in +1 -0
index 213aa24fa8..d12f040656 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_PYTHON_CRYPTOGRAPHY
 	bool "python-cryptography"
 	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
 	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA if BR2_PACKAGE_LIBOPENSSL
 	select BR2_PACKAGE_PYTHON_CFFI # runtime
 	help
 	  cryptography is a package designed to expose cryptographic
package/python-cryptography/python-cryptography.hash +2 -2
index 5fbf69a208..5336f23257 100644
@@ -1,6 +1,6 @@
 # Locally calculated after vendoring
-sha256  b55c6c011ba4bb803de0b557f40f1765bab9f63240e93516daaf75c3c68e6618  python-cryptography-39.0.2-cargo2.tar.gz
+sha256  c57ae743b2adfb29a3fc005b6f39bf1378e20d10529a859b6e2e425845bff8f3  cryptography-43.0.1.tar.gz
 # Locally computed sha256 checksums
-sha256  43dad2cc752ab721cd9a9f36ece70fb53ab7713551f2d3d8694d8e8c5a06d6e2  LICENSE
+sha256  3e0c7c091a948b82533ba98fd7cbb40432d6f1a9acbf85f5922d2f99a93ae6bb  LICENSE
 sha256  aac73b3148f6d1d7111dbca32099f68d26c644c6813ae1e4f05f6579aa2663fe  LICENSE.APACHE
 sha256  602c4c7482de6479dd2e9793cda275e5e63d773dacd1eca689232ab7008fb4fb  LICENSE.BSD
package/python-cryptography/python-cryptography.mk +4 -5
index 1cbccd0d5c..2602289149 100644
@@ -4,11 +4,10 @@
 #
 ################################################################################
 
-PYTHON_CRYPTOGRAPHY_VERSION = 39.0.2
-PYTHON_CRYPTOGRAPHY_SOURCE_PYPI = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
-PYTHON_CRYPTOGRAPHY_SITE_PYPI = https://files.pythonhosted.org/packages/fa/f3/f4b8c175ea9a1de650b0085858059050b7953a93d66c97ed89b93b232996
-PYTHON_CRYPTOGRAPHY_SITE = $(PYTHON_CRYPTOGRAPHY_SITE_PYPI)/$(PYTHON_CRYPTOGRAPHY_SOURCE_PYPI)?buildroot-path=filename
-PYTHON_CRYPTOGRAPHY_SETUP_TYPE = setuptools-rust
+PYTHON_CRYPTOGRAPHY_VERSION = 43.0.1
+PYTHON_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
+PYTHON_CRYPTOGRAPHY_SITE = https://files.pythonhosted.org/packages/de/ba/0664727028b37e249e73879348cc46d45c5c1a2a2e81e8166462953c5755
+PYTHON_CRYPTOGRAPHY_SETUP_TYPE = maturin
 PYTHON_CRYPTOGRAPHY_LICENSE = Apache-2.0 or BSD-3-Clause
 PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD
 PYTHON_CRYPTOGRAPHY_CPE_ID_VENDOR = cryptography_project
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

James, All,

On 2024-09-06 11:11 -0600, James Hilliard spake thusly:

Quoted 8 lines

Migrate from setuptools-rust to maturin pep517 backend.

License hash changed due to dropping PSF license:
https://github.com/pyca/cryptography/commit/5e6476a4c6e094926a983dcf5cbe9488c30aeb53

We now need to enable chacha support when building with libopenssl.

It would have been nice to add a little blurb to explain that we no longe rneed the hack introduced in commit c617ebbc977d.

I've added that when applying.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 58 lines
---
 package/python-cryptography/Config.in                | 1 +
 package/python-cryptography/python-cryptography.hash | 4 ++--
 package/python-cryptography/python-cryptography.mk   | 9 ++++-----
 3 files changed, 7 insertions(+), 7 deletions(-)
package/python-cryptography/Config.in +1 -0
index 213aa24fa8..d12f040656 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_PYTHON_CRYPTOGRAPHY
 	bool "python-cryptography"
 	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
 	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA if BR2_PACKAGE_LIBOPENSSL
 	select BR2_PACKAGE_PYTHON_CFFI # runtime
 	help
 	  cryptography is a package designed to expose cryptographic
package/python-cryptography/python-cryptography.hash +2 -2
index 5fbf69a208..5336f23257 100644
@@ -1,6 +1,6 @@
 # Locally calculated after vendoring
-sha256  b55c6c011ba4bb803de0b557f40f1765bab9f63240e93516daaf75c3c68e6618  python-cryptography-39.0.2-cargo2.tar.gz
+sha256  c57ae743b2adfb29a3fc005b6f39bf1378e20d10529a859b6e2e425845bff8f3  cryptography-43.0.1.tar.gz
 # Locally computed sha256 checksums
-sha256  43dad2cc752ab721cd9a9f36ece70fb53ab7713551f2d3d8694d8e8c5a06d6e2  LICENSE
+sha256  3e0c7c091a948b82533ba98fd7cbb40432d6f1a9acbf85f5922d2f99a93ae6bb  LICENSE
 sha256  aac73b3148f6d1d7111dbca32099f68d26c644c6813ae1e4f05f6579aa2663fe  LICENSE.APACHE
 sha256  602c4c7482de6479dd2e9793cda275e5e63d773dacd1eca689232ab7008fb4fb  LICENSE.BSD
package/python-cryptography/python-cryptography.mk +4 -5
index 1cbccd0d5c..2602289149 100644
@@ -4,11 +4,10 @@
 #
 ################################################################################
 
-PYTHON_CRYPTOGRAPHY_VERSION = 39.0.2
-PYTHON_CRYPTOGRAPHY_SOURCE_PYPI = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
-PYTHON_CRYPTOGRAPHY_SITE_PYPI = https://files.pythonhosted.org/packages/fa/f3/f4b8c175ea9a1de650b0085858059050b7953a93d66c97ed89b93b232996
-PYTHON_CRYPTOGRAPHY_SITE = $(PYTHON_CRYPTOGRAPHY_SITE_PYPI)/$(PYTHON_CRYPTOGRAPHY_SOURCE_PYPI)?buildroot-path=filename
-PYTHON_CRYPTOGRAPHY_SETUP_TYPE = setuptools-rust
+PYTHON_CRYPTOGRAPHY_VERSION = 43.0.1
+PYTHON_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
+PYTHON_CRYPTOGRAPHY_SITE = https://files.pythonhosted.org/packages/de/ba/0664727028b37e249e73879348cc46d45c5c1a2a2e81e8166462953c5755
+PYTHON_CRYPTOGRAPHY_SETUP_TYPE = maturin
 PYTHON_CRYPTOGRAPHY_LICENSE = Apache-2.0 or BSD-3-Clause
 PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD
 PYTHON_CRYPTOGRAPHY_CPE_ID_VENDOR = cryptography_project
Signature · 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
#2 lore raw

James, All,

On 2024-09-07 21:57 +0200, Yann E. MORIN spake thusly:

Quoted 8 lines

On 2024-09-06 11:11 -0600, James Hilliard spake thusly:

Quoted 7 lines

Migrate from setuptools-rust to maturin pep517 backend.

License hash changed due to dropping PSF license:
https://github.com/pyca/cryptography/commit/5e6476a4c6e094926a983dcf5cbe9488c30aeb53

We now need to enable chacha support when building with libopenssl.

Quoted 8 lines
Quoted 1 line

It would have been nice to add a little blurb to explain that we no longe rneed the hack introduced in commit c617ebbc977d.

I've added that when applying.

Applied to master, thanks.

No, I have not applied it, because it is incorrect: we *must* have a mangled source filename, as explained in c617ebbc977d: we want the local archive to have our -cargo2 post-version suffix, so that we are free to update our vendoring code (and update the post-version suffix) without causing conflicts in the future.

The weird diff about the _SOURCE_PYPI version should have trigerred a red light when bumping the version: indeed, it is not a standard variable set by scan-pypi, so defintiely something was going on...

Unfortunately, there is not much to do in the short term, except manually updat ethe package (or manually tweak it after scan-pypi).

In the (very far) future, we are thinking about decorelating the lcoal filename from the remote one, but this is going to take a lot of time, so maybe a shorter solution would be for scan-pypi to handle the case for packages that need cargo vendoring (basically, the maturin or setuptools-rust packages).

Could you have a look at that too, please?

In the meantime, I've marked this patch as "Changes requested" in Patchwork.

Regards,
Yann E. MORIN.

Quoted 73 lines

Regards,
Yann E. MORIN.

Quoted 58 lines
---
 package/python-cryptography/Config.in                | 1 +
 package/python-cryptography/python-cryptography.hash | 4 ++--
 package/python-cryptography/python-cryptography.mk   | 9 ++++-----
 3 files changed, 7 insertions(+), 7 deletions(-)
package/python-cryptography/Config.in +1 -0
index 213aa24fa8..d12f040656 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_PYTHON_CRYPTOGRAPHY
 	bool "python-cryptography"
 	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
 	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA if BR2_PACKAGE_LIBOPENSSL
 	select BR2_PACKAGE_PYTHON_CFFI # runtime
 	help
 	  cryptography is a package designed to expose cryptographic
package/python-cryptography/python-cryptography.hash +2 -2
index 5fbf69a208..5336f23257 100644
@@ -1,6 +1,6 @@
 # Locally calculated after vendoring
-sha256  b55c6c011ba4bb803de0b557f40f1765bab9f63240e93516daaf75c3c68e6618  python-cryptography-39.0.2-cargo2.tar.gz
+sha256  c57ae743b2adfb29a3fc005b6f39bf1378e20d10529a859b6e2e425845bff8f3  cryptography-43.0.1.tar.gz
 # Locally computed sha256 checksums
-sha256  43dad2cc752ab721cd9a9f36ece70fb53ab7713551f2d3d8694d8e8c5a06d6e2  LICENSE
+sha256  3e0c7c091a948b82533ba98fd7cbb40432d6f1a9acbf85f5922d2f99a93ae6bb  LICENSE
 sha256  aac73b3148f6d1d7111dbca32099f68d26c644c6813ae1e4f05f6579aa2663fe  LICENSE.APACHE
 sha256  602c4c7482de6479dd2e9793cda275e5e63d773dacd1eca689232ab7008fb4fb  LICENSE.BSD
package/python-cryptography/python-cryptography.mk +4 -5
index 1cbccd0d5c..2602289149 100644
@@ -4,11 +4,10 @@
 #
 ################################################################################
 
-PYTHON_CRYPTOGRAPHY_VERSION = 39.0.2
-PYTHON_CRYPTOGRAPHY_SOURCE_PYPI = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
-PYTHON_CRYPTOGRAPHY_SITE_PYPI = https://files.pythonhosted.org/packages/fa/f3/f4b8c175ea9a1de650b0085858059050b7953a93d66c97ed89b93b232996
-PYTHON_CRYPTOGRAPHY_SITE = $(PYTHON_CRYPTOGRAPHY_SITE_PYPI)/$(PYTHON_CRYPTOGRAPHY_SOURCE_PYPI)?buildroot-path=filename
-PYTHON_CRYPTOGRAPHY_SETUP_TYPE = setuptools-rust
+PYTHON_CRYPTOGRAPHY_VERSION = 43.0.1
+PYTHON_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
+PYTHON_CRYPTOGRAPHY_SITE = https://files.pythonhosted.org/packages/de/ba/0664727028b37e249e73879348cc46d45c5c1a2a2e81e8166462953c5755
+PYTHON_CRYPTOGRAPHY_SETUP_TYPE = maturin
 PYTHON_CRYPTOGRAPHY_LICENSE = Apache-2.0 or BSD-3-Clause
 PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD
 PYTHON_CRYPTOGRAPHY_CPE_ID_VENDOR = cryptography_project
Signature · 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
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
#3 lore raw
Quoted 19 lines · Yann E. MORIN

James, All,

On 2024-09-07 21:57 +0200, Yann E. MORIN spake thusly:

Quoted 15 lines

On 2024-09-06 11:11 -0600, James Hilliard spake thusly:

Quoted 8 lines

Migrate from setuptools-rust to maturin pep517 backend.

License hash changed due to dropping PSF license:
https://github.com/pyca/cryptography/commit/5e6476a4c6e094926a983dcf5cbe9488c30aeb53

We now need to enable chacha support when building with libopenssl.

It would have been nice to add a little blurb to explain that we no longe rneed the hack introduced in commit c617ebbc977d.

I've added that when applying.

Quoted 7 lines
Quoted 1 line

Applied to master, thanks.

No, I have not applied it, because it is incorrect: we *must* have a mangled source filename, as explained in c617ebbc977d: we want the local archive to have our -cargo2 post-version suffix, so that we are free to update our vendoring code (and update the post-version suffix) without causing conflicts in the future.

Oh, I had taken the "this is a stop-gap measure" part as an indication that this was only being done in cases where it was needed to prevent hash conflicts(i.e. in cases where there would actually be a version conflict due to the filename not changing when the hash changes).

Since the version update would result in the package no longer conflicting I had removed the hack.

Quoted 9 lines

The weird diff about the _SOURCE_PYPI version should have trigerred a red light when bumping the version: indeed, it is not a standard variable set by scan-pypi, so defintiely something was going on...

Unfortunately, there is not much to do in the short term, except manually updat ethe package (or manually tweak it after scan-pypi).

Quoted 7 lines

In the (very far) future, we are thinking about decorelating the lcoal filename from the remote one, but this is going to take a lot of time, so maybe a shorter solution would be for scan-pypi to handle the case for packages that need cargo vendoring (basically, the maturin or setuptools-rust packages).

Could you have a look at that too, please?

Ok, I'll change these to keep the cargo2 vendor version.

Quoted 81 lines

In the meantime, I've marked this patch as "Changes requested" in Patchwork.

Regards,
Yann E. MORIN.

Quoted 68 lines

Regards,
Yann E. MORIN.

Quoted 54 lines
---
 package/python-cryptography/Config.in                | 1 +
 package/python-cryptography/python-cryptography.hash | 4 ++--
 package/python-cryptography/python-cryptography.mk   | 9 ++++-----
 3 files changed, 7 insertions(+), 7 deletions(-)
package/python-cryptography/Config.in +1 -0
index 213aa24fa8..d12f040656 100644
@@ -2,6 +2,7 @@ config BR2_PACKAGE_PYTHON_CRYPTOGRAPHY
    bool "python-cryptography"
    depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
    select BR2_PACKAGE_OPENSSL
+   select BR2_PACKAGE_LIBOPENSSL_ENABLE_CHACHA if BR2_PACKAGE_LIBOPENSSL
    select BR2_PACKAGE_PYTHON_CFFI # runtime
    help
      cryptography is a package designed to expose cryptographic
package/python-cryptography/python-cryptography.hash +2 -2
index 5fbf69a208..5336f23257 100644
@@ -1,6 +1,6 @@
 # Locally calculated after vendoring
-sha256  b55c6c011ba4bb803de0b557f40f1765bab9f63240e93516daaf75c3c68e6618  python-cryptography-39.0.2-cargo2.tar.gz
+sha256  c57ae743b2adfb29a3fc005b6f39bf1378e20d10529a859b6e2e425845bff8f3  cryptography-43.0.1.tar.gz
 # Locally computed sha256 checksums
-sha256  43dad2cc752ab721cd9a9f36ece70fb53ab7713551f2d3d8694d8e8c5a06d6e2  LICENSE
+sha256  3e0c7c091a948b82533ba98fd7cbb40432d6f1a9acbf85f5922d2f99a93ae6bb  LICENSE
 sha256  aac73b3148f6d1d7111dbca32099f68d26c644c6813ae1e4f05f6579aa2663fe  LICENSE.APACHE
 sha256  602c4c7482de6479dd2e9793cda275e5e63d773dacd1eca689232ab7008fb4fb  LICENSE.BSD
package/python-cryptography/python-cryptography.mk +4 -6
index 1cbccd0d5c..2602289149 100644
@@ -4,11 +4,10 @@
 #
 ################################################################################
 
-PYTHON_CRYPTOGRAPHY_VERSION = 39.0.2
-PYTHON_CRYPTOGRAPHY_SOURCE_PYPI = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
-PYTHON_CRYPTOGRAPHY_SITE_PYPI = https://files.pythonhosted.org/packages/fa/f3/f4b8c175ea9a1de650b0085858059050b7953a93d66c97ed89b93b232996
-PYTHON_CRYPTOGRAPHY_SITE = $(PYTHON_CRYPTOGRAPHY_SITE_PYPI)/$(PYTHON_CRYPTOGRAPHY_SOURCE_PYPI)?buildroot-path=filename
-PYTHON_CRYPTOGRAPHY_SETUP_TYPE = setuptools-rust
+PYTHON_CRYPTOGRAPHY_VERSION = 43.0.1
+PYTHON_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
+PYTHON_CRYPTOGRAPHY_SITE = https://files.pythonhosted.org/packages/de/ba/0664727028b37e249e73879348cc46d45c5c1a2a2e81e8166462953c5755
+PYTHON_CRYPTOGRAPHY_SETUP_TYPE = maturin
 PYTHON_CRYPTOGRAPHY_LICENSE = Apache-2.0 or BSD-3-Clause
 PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE LICENSE.APACHE LICENSE.BSD
 PYTHON_CRYPTOGRAPHY_CPE_ID_VENDOR = cryptography_project
--

2.34.1

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

--
.-----------------.--------------------.------------------.--------------------.

|  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.  |
Quoted 5 lines

'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

Quoted 7 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

#4 lore raw

James, All,

On 2024-09-07 14:49 -0600, James Hilliard spake thusly:

Quoted 1 line · Yann E. MORIN

[--SNIP--]

Quoted 10 lines
Quoted 5 lines

No, I have not applied it, because it is incorrect: we *must* have a mangled source filename, as explained in c617ebbc977d: we want the local archive to have our -cargo2 post-version suffix, so that we are free to update our vendoring code (and update the post-version suffix) without causing conflicts in the future.

Oh, I had taken the "this is a stop-gap measure" part as an indication that this was only being done in cases where it was needed to prevent hash conflicts(i.e. in cases where there would actually be a version conflict due to the filename not changing when the hash changes).

Exactly. Now, consider the situation if I apply this patch today, and tomorrow we change the vendroing code in download/cargo-post-process:
there will be a hash mismatch again.

SO we want to avoid that, and so archives that are cargo-vendored must have our post-version sussifx.

Yes, that is a stop-gap measure "while waiting for a generic solution that works in all cases, not just with PyPI", and we do not yet have a generic solution... :-/

Quoted 2 lines

Since the version update would result in the package no longer conflicting I had removed the hack.

Right, it does not conflict today. But will conflict tomorrow. ;-)

[--SNIP--]

Quoted 9 lines
Quoted 7 lines

In the (very far) future, we are thinking about decorelating the lcoal filename from the remote one, but this is going to take a lot of time, so maybe a shorter solution would be for scan-pypi to handle the case for packages that need cargo vendoring (basically, the maturin or setuptools-rust packages).

Could you have a look at that too, please?

Ok, I'll change these to keep the cargo2 vendor version.

Thank you! 👍

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
#5 lore raw
Quoted 17 lines · Yann E. MORIN

James, All,

On 2024-09-07 14:49 -0600, James Hilliard spake thusly:

Quoted 1 line · Yann E. MORIN

[--SNIP--]

Quoted 10 lines
Quoted 5 lines

No, I have not applied it, because it is incorrect: we *must* have a mangled source filename, as explained in c617ebbc977d: we want the local archive to have our -cargo2 post-version suffix, so that we are free to update our vendoring code (and update the post-version suffix) without causing conflicts in the future.

Oh, I had taken the "this is a stop-gap measure" part as an indication that this was only being done in cases where it was needed to prevent hash conflicts(i.e. in cases where there would actually be a version conflict due to the filename not changing when the hash changes).

Quoted 6 lines

Exactly. Now, consider the situation if I apply this patch today, and tomorrow we change the vendroing code in download/cargo-post-process:
there will be a hash mismatch again.

SO we want to avoid that, and so archives that are cargo-vendored must have our post-version sussifx.

We would have to update the hash and archive name either way however.

Quoted 4 lines

Yes, that is a stop-gap measure "while waiting for a generic solution that works in all cases, not just with PyPI", and we do not yet have a generic solution... :-/

I figured we wanted to just re-apply the suffix naming style as needed rather than pre-emptively.

Quoted 5 lines
Quoted 3 lines

Since the version update would result in the package no longer conflicting I had removed the hack.

Right, it does not conflict today. But will conflict tomorrow. ;-)

True, I just assumed the archive hash changing was not exactly going to be a common occurrence and that we didn't want to keep the hack in place in cases when we bump the package version.

It does make it easier to track which packages need to have hashes updated however so I can see why it makes sense to keep it.

Quoted 17 lines

[--SNIP--]

Quoted 9 lines
Quoted 7 lines

In the (very far) future, we are thinking about decorelating the lcoal filename from the remote one, but this is going to take a lot of time, so maybe a shorter solution would be for scan-pypi to handle the case for packages that need cargo vendoring (basically, the maturin or setuptools-rust packages).

Could you have a look at that too, please?

Ok, I'll change these to keep the cargo2 vendor version.

Thank you! 👍

Regards,
Yann E. MORIN.

Quoted 7 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