Skip to contentSkip to conversation

python3-crc32c: add 2.2.post0

PATCH In review Justin Bronder 2 participants 6 messages Feb 28, 2022 – Mar 4, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-crc32c: add 2.2.post0

---
 meta-python/licenses/CRC32C-ADLER                | 15 +++++++++++++++
 .../python/python3-crc32c_2.2.post0.bb           | 16 ++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta-python/licenses/CRC32C-ADLER
 create mode 100644 meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb
meta-python/licenses/CRC32C-ADLER new file +15 -0
new file mode 100644
index 0000000000..f1f0e94ee0
@@ -0,0 +1,15 @@
+This software is provided 'as-is', without any express or implied
+warranty.  In no event will the author be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not
+   claim that you wrote the original software. If you use this software
+   in a product, an acknowledgment in the product documentation would be
+   appreciated but is not required.
+2. Altered source versions must be plainly marked as such, and must not be
+   misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.
meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb new file +16 -0
new file mode 100644
index 0000000000..0d51420939
@@ -0,0 +1,16 @@
+SUMMARY = "A python package implementing the crc32c algorithmin hardware and software"
+HOMEPAGE = "https://github.com/ICRAR/crc32c"
+
+LICENSE = "BSD-2-Clause & BSD-3-Clause & CRC32C-ADLER & LGPL-2.0+"
+LIC_FILES_CHKSUM = " \
+    file://LICENSE;md5=4fbd65380cdd255951079008b364516c \
+    file://LICENSE.google-crc32c;md5=e9ed01b5e5ac9eae23fc2bb33701220c \
+    file://LICENSE.slice-by-8;md5=6b3bc7709d6b2db6646ec2467310ff6b \
+    file://crc32c_adler.c;startline=9;endline=24;md5=c60e6e55d0e5d95effa6fad27db0711a \
+"
+
+SRC_URI[sha256sum] = "3d058e7a5e37e4985d1a7ad4cb702bca56b490daa658d4851377d13ead8b435e"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-core"
Signature · 1 line
2.35.1
#1 lore raw

I am seeing a failure with clang on non x86 host. See

https://errors.yoctoproject.org/Errors/Details/650724/

Quoted 64 lines · Justin Bronder
---
 meta-python/licenses/CRC32C-ADLER                | 15 +++++++++++++++
 .../python/python3-crc32c_2.2.post0.bb           | 16 ++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta-python/licenses/CRC32C-ADLER
 create mode 100644 meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb
meta-python/licenses/CRC32C-ADLER new file +15 -0
new file mode 100644
index 0000000000..f1f0e94ee0
@@ -0,0 +1,15 @@
+This software is provided 'as-is', without any express or implied
+warranty.  In no event will the author be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not
+   claim that you wrote the original software. If you use this software
+   in a product, an acknowledgment in the product documentation would be
+   appreciated but is not required.
+2. Altered source versions must be plainly marked as such, and must not be
+   misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.
meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb new file +16 -1
new file mode 100644
index 0000000000..0d51420939
@@ -0,0 +1,16 @@
+SUMMARY = "A python package implementing the crc32c algorithmin hardware and software"
+HOMEPAGE = "https://github.com/ICRAR/crc32c"
+
+LICENSE = "BSD-2-Clause & BSD-3-Clause & CRC32C-ADLER & LGPL-2.0+"
+LIC_FILES_CHKSUM = " \
+    file://LICENSE;md5=4fbd65380cdd255951079008b364516c \
+    file://LICENSE.google-crc32c;md5=e9ed01b5e5ac9eae23fc2bb33701220c \
+    file://LICENSE.slice-by-8;md5=6b3bc7709d6b2db6646ec2467310ff6b \
+    file://crc32c_adler.c;startline=9;endline=24;md5=c60e6e55d0e5d95effa6fad27db0711a \
+"
+
+SRC_URI[sha256sum] = "3d058e7a5e37e4985d1a7ad4cb702bca56b490daa658d4851377d13ead8b435e"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-core"
--

2.35.1

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

#2 lore raw

Ah right, this package only support arm or x86. I'll send an update.

Quoted 69 lines · Khem Raj

I am seeing a failure with clang on non x86 host. See

https://errors.yoctoproject.org/Errors/Details/650724/

Quoted 64 lines · Justin Bronder
---
 meta-python/licenses/CRC32C-ADLER                | 15 +++++++++++++++
 .../python/python3-crc32c_2.2.post0.bb           | 16 ++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta-python/licenses/CRC32C-ADLER
 create mode 100644 meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb
meta-python/licenses/CRC32C-ADLER new file +15 -0
new file mode 100644
index 0000000000..f1f0e94ee0
@@ -0,0 +1,15 @@
+This software is provided 'as-is', without any express or implied
+warranty.  In no event will the author be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not
+   claim that you wrote the original software. If you use this software
+   in a product, an acknowledgment in the product documentation would be
+   appreciated but is not required.
+2. Altered source versions must be plainly marked as such, and must not be
+   misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.
meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb new file +16 -1
new file mode 100644
index 0000000000..0d51420939
@@ -0,0 +1,16 @@
+SUMMARY = "A python package implementing the crc32c algorithmin hardware and software"
+HOMEPAGE = "https://github.com/ICRAR/crc32c"
+
+LICENSE = "BSD-2-Clause & BSD-3-Clause & CRC32C-ADLER & LGPL-2.0+"
+LIC_FILES_CHKSUM = " \
+    file://LICENSE;md5=4fbd65380cdd255951079008b364516c \
+    file://LICENSE.google-crc32c;md5=e9ed01b5e5ac9eae23fc2bb33701220c \
+    file://LICENSE.slice-by-8;md5=6b3bc7709d6b2db6646ec2467310ff6b \
+    file://crc32c_adler.c;startline=9;endline=24;md5=c60e6e55d0e5d95effa6fad27db0711a \
+"
+
+SRC_URI[sha256sum] = "3d058e7a5e37e4985d1a7ad4cb702bca56b490daa658d4851377d13ead8b435e"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-core"
--

2.35.1

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

Signature · 1 line
Justin Bronder
#3 lore raw
Quoted 2 lines · Justin Bronder

Ah right, this package only support arm or x86. I'll send an update.

actually thats not the case, it tries to use SSE when target is x86 and crc extensions on aarch64, for
other architectures it uses general purpose instructions. however it uses wrong way to detect platform by poking at build system for platform architecture
I have sent a patch to fix it.

Quoted 74 lines · Khem Raj
Quoted 61 lines

I am seeing a failure with clang on non x86 host. See

https://errors.yoctoproject.org/Errors/Details/650724/

Quoted 56 lines · Justin Bronder
---
 meta-python/licenses/CRC32C-ADLER                | 15 +++++++++++++++
 .../python/python3-crc32c_2.2.post0.bb           | 16 ++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta-python/licenses/CRC32C-ADLER
 create mode 100644 meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb
meta-python/licenses/CRC32C-ADLER new file +15 -0
new file mode 100644
index 0000000000..f1f0e94ee0
@@ -0,0 +1,15 @@
+This software is provided 'as-is', without any express or implied
+warranty.  In no event will the author be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not
+   claim that you wrote the original software. If you use this software
+   in a product, an acknowledgment in the product documentation would be
+   appreciated but is not required.
+2. Altered source versions must be plainly marked as such, and must not be
+   misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.
meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb new file +16 -1
new file mode 100644
index 0000000000..0d51420939
@@ -0,0 +1,16 @@
+SUMMARY = "A python package implementing the crc32c algorithmin hardware and software"
+HOMEPAGE = "https://github.com/ICRAR/crc32c"
+
+LICENSE = "BSD-2-Clause & BSD-3-Clause & CRC32C-ADLER & LGPL-2.0+"
+LIC_FILES_CHKSUM = " \
+    file://LICENSE;md5=4fbd65380cdd255951079008b364516c \
+    file://LICENSE.google-crc32c;md5=e9ed01b5e5ac9eae23fc2bb33701220c \
+    file://LICENSE.slice-by-8;md5=6b3bc7709d6b2db6646ec2467310ff6b \
+    file://crc32c_adler.c;startline=9;endline=24;md5=c60e6e55d0e5d95effa6fad27db0711a \
+"
+
+SRC_URI[sha256sum] = "3d058e7a5e37e4985d1a7ad4cb702bca56b490daa658d4851377d13ead8b435e"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-core"
--

2.35.1

Quoted 8 lines
Quoted 8 lines

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

--
Justin Bronder

#4 lore raw
Quoted 10 lines · Khem Raj
Quoted 2 lines · Justin Bronder

Ah right, this package only support arm or x86. I'll send an update.

actually thats not the case, it tries to use SSE when target is x86 and crc extensions on aarch64, for
other architectures it uses general purpose instructions. however it uses wrong way to detect platform by poking at build system for platform architecture
I have sent a patch to fix it.

You're much quicker then I am. However, based on
https://github.com/ICRAR/crc32c/pull/10 I think we can simply update setup.cfg. I'll send a patch in case you prefer that mechanism, but no problem if patching setup.py is preferable.

I did try passing '--platform=${TARGET_ARCH}' but bdist_wheel didn't recognize the parameter.

Quoted 75 lines
Quoted 75 lines · Khem Raj
Quoted 61 lines

I am seeing a failure with clang on non x86 host. See

https://errors.yoctoproject.org/Errors/Details/650724/

Quoted 56 lines · Justin Bronder
---
 meta-python/licenses/CRC32C-ADLER                | 15 +++++++++++++++
 .../python/python3-crc32c_2.2.post0.bb           | 16 ++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta-python/licenses/CRC32C-ADLER
 create mode 100644 meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb
meta-python/licenses/CRC32C-ADLER new file +15 -0
new file mode 100644
index 0000000000..f1f0e94ee0
@@ -0,0 +1,15 @@
+This software is provided 'as-is', without any express or implied
+warranty.  In no event will the author be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not
+   claim that you wrote the original software. If you use this software
+   in a product, an acknowledgment in the product documentation would be
+   appreciated but is not required.
+2. Altered source versions must be plainly marked as such, and must not be
+   misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.
meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb new file +16 -1
new file mode 100644
index 0000000000..0d51420939
@@ -0,0 +1,16 @@
+SUMMARY = "A python package implementing the crc32c algorithmin hardware and software"
+HOMEPAGE = "https://github.com/ICRAR/crc32c"
+
+LICENSE = "BSD-2-Clause & BSD-3-Clause & CRC32C-ADLER & LGPL-2.0+"
+LIC_FILES_CHKSUM = " \
+    file://LICENSE;md5=4fbd65380cdd255951079008b364516c \
+    file://LICENSE.google-crc32c;md5=e9ed01b5e5ac9eae23fc2bb33701220c \
+    file://LICENSE.slice-by-8;md5=6b3bc7709d6b2db6646ec2467310ff6b \
+    file://crc32c_adler.c;startline=9;endline=24;md5=c60e6e55d0e5d95effa6fad27db0711a \
+"
+
+SRC_URI[sha256sum] = "3d058e7a5e37e4985d1a7ad4cb702bca56b490daa658d4851377d13ead8b435e"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-core"
--

2.35.1

Quoted 8 lines
Quoted 8 lines

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

--
Justin Bronder

Signature · 1 line
Justin Bronder
#5 lore raw
Quoted 13 lines · Justin Bronder
Quoted 10 lines · Khem Raj
Quoted 2 lines · Justin Bronder

Ah right, this package only support arm or x86. I'll send an update.

actually thats not the case, it tries to use SSE when target is x86 and crc extensions on aarch64, for
other architectures it uses general purpose instructions. however it uses wrong way to detect platform by poking at build system for platform architecture
I have sent a patch to fix it.

Quoted 4 lines

You're much quicker then I am. However, based on
https://github.com/ICRAR/crc32c/pull/10 I think we can simply update setup.cfg. I'll send a patch in case you prefer that mechanism, but no problem if patching setup.py is preferable.

That patch seems incomplete, it does not consider the arm/aarch64 piece which perhaps
is added after that pull was created. So someone needs to forward port that patch and
refresh the pull, until then my proposed patch is more comprehensive.

Quoted 82 lines

I did try passing '--platform=${TARGET_ARCH}' but bdist_wheel didn't recognize the parameter.

Quoted 64 lines
Quoted 64 lines · Khem Raj
Quoted 61 lines

I am seeing a failure with clang on non x86 host. See

https://errors.yoctoproject.org/Errors/Details/650724/

Quoted 56 lines · Justin Bronder
---
 meta-python/licenses/CRC32C-ADLER                | 15 +++++++++++++++
 .../python/python3-crc32c_2.2.post0.bb           | 16 ++++++++++++++++
 2 files changed, 31 insertions(+)
 create mode 100644 meta-python/licenses/CRC32C-ADLER
 create mode 100644 meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb
meta-python/licenses/CRC32C-ADLER new file +15 -0
new file mode 100644
index 0000000000..f1f0e94ee0
@@ -0,0 +1,15 @@
+This software is provided 'as-is', without any express or implied
+warranty.  In no event will the author be held liable for any damages
+arising from the use of this software.
+
+Permission is granted to anyone to use this software for any purpose,
+including commercial applications, and to alter it and redistribute it
+freely, subject to the following restrictions:
+
+1. The origin of this software must not be misrepresented; you must not
+   claim that you wrote the original software. If you use this software
+   in a product, an acknowledgment in the product documentation would be
+   appreciated but is not required.
+2. Altered source versions must be plainly marked as such, and must not be
+   misrepresented as being the original software.
+3. This notice may not be removed or altered from any source distribution.
meta-python/recipes-devtools/python/python3-crc32c_2.2.post0.bb new file +16 -1
new file mode 100644
index 0000000000..0d51420939
@@ -0,0 +1,16 @@
+SUMMARY = "A python package implementing the crc32c algorithmin hardware and software"
+HOMEPAGE = "https://github.com/ICRAR/crc32c"
+
+LICENSE = "BSD-2-Clause & BSD-3-Clause & CRC32C-ADLER & LGPL-2.0+"
+LIC_FILES_CHKSUM = " \
+    file://LICENSE;md5=4fbd65380cdd255951079008b364516c \
+    file://LICENSE.google-crc32c;md5=e9ed01b5e5ac9eae23fc2bb33701220c \
+    file://LICENSE.slice-by-8;md5=6b3bc7709d6b2db6646ec2467310ff6b \
+    file://crc32c_adler.c;startline=9;endline=24;md5=c60e6e55d0e5d95effa6fad27db0711a \
+"
+
+SRC_URI[sha256sum] = "3d058e7a5e37e4985d1a7ad4cb702bca56b490daa658d4851377d13ead8b435e"
+
+inherit pypi setuptools3
+
+RDEPENDS:${PN} += "python3-core"
--

2.35.1

Quoted 11 lines
Quoted 11 lines
Quoted 8 lines
Quoted 8 lines

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

--
Justin Bronder

--
Justin Bronder