diff mbox series

[meta-python,2/2] python3-pikepdf: Add recipe

Message ID 20251124115258.3337453-2-leon.anavi@konsulko.com
State Accepted
Headers show
Series [meta-python,1/2] python3-unidecode: Add recipe | expand

Commit Message

Leon Anavi Nov. 24, 2025, 11:52 a.m. UTC
Add recipe for v10.0.2:

- Fixed presentation of strings using unparse_content_stream -
  if the stream can be represented using PdfDocEncoding, it is
  rendered in that way for ease of reading.
- Reformatted C++ source.

This work was sponsored by GOVCERT.LU.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
 .../python/python3-pikepdf_10.0.2.bb          | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb

Comments

Yoann Congal Nov. 26, 2025, 10:18 a.m. UTC | #1
Le lun. 24 nov. 2025 à 12:53, Leon Anavi via lists.openembedded.org
<leon.anavi=konsulko.com@lists.openembedded.org> a écrit :

> Add recipe for v10.0.2:
>
> - Fixed presentation of strings using unparse_content_stream -
>   if the stream can be represented using PdfDocEncoding, it is
>   rendered in that way for ease of reading.
> - Reformatted C++ source.
>
> This work was sponsored by GOVCERT.LU.
>
> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
> ---
>  .../python/python3-pikepdf_10.0.2.bb          | 22 +++++++++++++++++++
>  1 file changed, 22 insertions(+)
>  create mode 100644 meta-python/recipes-devtools/python/
> python3-pikepdf_10.0.2.bb
>
> diff --git a/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
> b/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
> new file mode 100644
> index 0000000000..4821e273d8
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
> @@ -0,0 +1,22 @@
> +SUMMARY = "Read and write PDFs with Python, powered by qpdf"
> +HOMEPAGE = "https://github.com/pikepdf/pikepdf"
> +LICENSE = "MPL-2.0"
> +LIC_FILES_CHKSUM =
> "file://LICENSE.txt;md5=9741c346eef56131163e13b9db1241b3"
> +
> +SRC_URI[sha256sum] =
> "7c85a2526253e35575edb2e28cdc740d004be4b7c5fda954f0e721ee1c423a52"
> +
> +inherit pypi python_setuptools_build_meta
> +
> +PYPI_PACKAGE = "pikepdf"
> +
> +DEPENDS += " \
> +       python3-pybind11-native \
> +       qpdf \
> +"
> +
> +RDEPENDS:${PN} += " \
> +       python3-pillow \
> +       python3-lxml \
> +"
> +
> +BBCLASSEXTEND = "native nativesdk"
>

That creates warnings in CI:

stdio: WARNING: Nothing PROVIDES 'nativesdk-qpdf' (but
virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
DEPENDS on or otherwise requires it). Close matches:
stdio: WARNING: Nothing PROVIDES 'qpdf-native' (but
virtual:native:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
DEPENDS on or otherwise requires it). Close matches:
stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pillow' (but
virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
RDEPENDS on or otherwise requires it)
stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pikepdf' (but
virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
RDEPENDS on or otherwise requires it)
stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pikepdf-dev' (but
virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
RDEPENDS on or otherwise requires it)
stdio: WARNING: Nothing RPROVIDES 'python3-pikepdf-native' (but
virtual:native:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
RDEPENDS on or otherwise requires it)
stdio: WARNING: Nothing RPROVIDES 'python3-pikepdf-dev-native' (but
virtual:native:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
RDEPENDS on or otherwise requires it)

From
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/82/builds/526/steps/13/logs/stdio

Leon, can you look into it? (I guess some dependencies lack their
BBCLASSEXTEND)

Regards,

> --
> 2.47.3
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#122008):
> https://lists.openembedded.org/g/openembedded-devel/message/122008
> Mute This Topic: https://lists.openembedded.org/mt/116449994/4316185
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> yoann.congal@smile.fr]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
Leon Anavi Nov. 27, 2025, 1:22 p.m. UTC | #2
Hi Yoann,

On 11/26/25 12:18, Yoann Congal wrote:
> Le lun. 24 nov. 2025 à 12:53, Leon Anavi via lists.openembedded.org 
> <http://lists.openembedded.org> 
> <leon.anavi=konsulko.com@lists.openembedded.org> a écrit :
>
>     Add recipe for v10.0.2:
>
>     - Fixed presentation of strings using unparse_content_stream -
>       if the stream can be represented using PdfDocEncoding, it is
>       rendered in that way for ease of reading.
>     - Reformatted C++ source.
>
>     This work was sponsored by GOVCERT.LU <http://GOVCERT.LU>.
>
>     Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
>     ---
>      .../python/python3-pikepdf_10.0.2.bb
>     <http://python3-pikepdf_10.0.2.bb>         | 22 +++++++++++++++++++
>      1 file changed, 22 insertions(+)
>      create mode 100644
>     meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
>     <http://python3-pikepdf_10.0.2.bb>
>
>     diff --git
>     a/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
>     <http://python3-pikepdf_10.0.2.bb>
>     b/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
>     <http://python3-pikepdf_10.0.2.bb>
>     new file mode 100644
>     index 0000000000..4821e273d8
>     --- /dev/null
>     +++
>     b/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
>     <http://python3-pikepdf_10.0.2.bb>
>     @@ -0,0 +1,22 @@
>     +SUMMARY = "Read and write PDFs with Python, powered by qpdf"
>     +HOMEPAGE = "https://github.com/pikepdf/pikepdf"
>     +LICENSE = "MPL-2.0"
>     +LIC_FILES_CHKSUM =
>     "file://LICENSE.txt;md5=9741c346eef56131163e13b9db1241b3"
>     +
>     +SRC_URI[sha256sum] =
>     "7c85a2526253e35575edb2e28cdc740d004be4b7c5fda954f0e721ee1c423a52"
>     +
>     +inherit pypi python_setuptools_build_meta
>     +
>     +PYPI_PACKAGE = "pikepdf"
>     +
>     +DEPENDS += " \
>     +       python3-pybind11-native \
>     +       qpdf \
>     +"
>     +
>     +RDEPENDS:${PN} += " \
>     +       python3-pillow \
>     +       python3-lxml \
>     +"
>     +
>     +BBCLASSEXTEND = "native nativesdk"
>
>
> That creates warnings in CI:
> stdio: WARNING: Nothing PROVIDES 'nativesdk-qpdf' (but 
> virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb 
> <http://python3-pikepdf_10.0.2.bb> DEPENDS on or otherwise requires 
> it). Close matches:
> stdio: WARNING: Nothing PROVIDES 'qpdf-native' (but 
> virtual:native:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb 
> <http://python3-pikepdf_10.0.2.bb> DEPENDS on or otherwise requires 
> it). Close matches:
> stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pillow' (but 
> virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb 
> <http://python3-pikepdf_10.0.2.bb> RDEPENDS on or otherwise requires it)
> stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pikepdf' (but 
> virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb 
> <http://python3-pikepdf_10.0.2.bb> RDEPENDS on or otherwise requires it)
> stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pikepdf-dev' (but 
> virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb 
> <http://python3-pikepdf_10.0.2.bb> RDEPENDS on or otherwise requires it)
> stdio: WARNING: Nothing RPROVIDES 'python3-pikepdf-native' (but 
> virtual:native:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb 
> <http://python3-pikepdf_10.0.2.bb> RDEPENDS on or otherwise requires it)
> stdio: WARNING: Nothing RPROVIDES 'python3-pikepdf-dev-native' (but 
> virtual:native:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb 
> <http://python3-pikepdf_10.0.2.bb> RDEPENDS on or otherwise requires it)
> From 
> https://autobuilder.yoctoproject.org/valkyrie/?#/builders/82/builds/526/steps/13/logs/stdio
>
> Leon, can you look into it? (I guess some dependencies lack their 
> BBCLASSEXTEND)

Yes, thank you for pointing out these warnings. I have just submitted 
three patches that add native and nativesdk to BBCLASSEXTEND of the 
required python3-pikepdf dependencies.

Best regards, Leon
Yoann Congal Nov. 27, 2025, 2:23 p.m. UTC | #3
Le jeu. 27 nov. 2025 à 14:22, Leon Anavi <leon.anavi@konsulko.com> a écrit :

> Hi Yoann,
> On 11/26/25 12:18, Yoann Congal wrote:
>
> Le lun. 24 nov. 2025 à 12:53, Leon Anavi via lists.openembedded.org
> <leon.anavi=konsulko.com@lists.openembedded.org> a écrit :
>
>> Add recipe for v10.0.2:
>>
>> - Fixed presentation of strings using unparse_content_stream -
>>   if the stream can be represented using PdfDocEncoding, it is
>>   rendered in that way for ease of reading.
>> - Reformatted C++ source.
>>
>> This work was sponsored by GOVCERT.LU.
>>
>> Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
>> ---
>>  .../python/python3-pikepdf_10.0.2.bb          | 22 +++++++++++++++++++
>>  1 file changed, 22 insertions(+)
>>  create mode 100644 meta-python/recipes-devtools/python/
>> python3-pikepdf_10.0.2.bb
>>
>> diff --git a/meta-python/recipes-devtools/python/
>> python3-pikepdf_10.0.2.bb b/meta-python/recipes-devtools/python/
>> python3-pikepdf_10.0.2.bb
>> new file mode 100644
>> index 0000000000..4821e273d8
>> --- /dev/null
>> +++ b/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
>> @@ -0,0 +1,22 @@
>> +SUMMARY = "Read and write PDFs with Python, powered by qpdf"
>> +HOMEPAGE = "https://github.com/pikepdf/pikepdf"
>> +LICENSE = "MPL-2.0"
>> +LIC_FILES_CHKSUM =
>> "file://LICENSE.txt;md5=9741c346eef56131163e13b9db1241b3"
>> +
>> +SRC_URI[sha256sum] =
>> "7c85a2526253e35575edb2e28cdc740d004be4b7c5fda954f0e721ee1c423a52"
>> +
>> +inherit pypi python_setuptools_build_meta
>> +
>> +PYPI_PACKAGE = "pikepdf"
>> +
>> +DEPENDS += " \
>> +       python3-pybind11-native \
>> +       qpdf \
>> +"
>> +
>> +RDEPENDS:${PN} += " \
>> +       python3-pillow \
>> +       python3-lxml \
>> +"
>> +
>> +BBCLASSEXTEND = "native nativesdk"
>>
>
> That creates warnings in CI:
>
> stdio: WARNING: Nothing PROVIDES 'nativesdk-qpdf' (but virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb DEPENDS on or otherwise requires it). Close matches:
> stdio: WARNING: Nothing PROVIDES 'qpdf-native' (but virtual:native:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb DEPENDS on or otherwise requires it). Close matches:
> stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pillow' (but virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb RDEPENDS on or otherwise requires it)
> stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pikepdf' (but virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb RDEPENDS on or otherwise requires it)
> stdio: WARNING: Nothing RPROVIDES 'nativesdk-python3-pikepdf-dev' (but virtual:nativesdk:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb RDEPENDS on or otherwise requires it)
> stdio: WARNING: Nothing RPROVIDES 'python3-pikepdf-native' (but virtual:native:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb RDEPENDS on or otherwise requires it)
> stdio: WARNING: Nothing RPROVIDES 'python3-pikepdf-dev-native' (but virtual:native:/srv/pokybuild/yocto-worker/meta-oe-mirror/build/meta-openembedded/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb RDEPENDS on or otherwise requires it)
>
> From
> https://autobuilder.yoctoproject.org/valkyrie/?#/builders/82/builds/526/steps/13/logs/stdio
>
> Leon, can you look into it? (I guess some dependencies lack their
> BBCLASSEXTEND)
>
> Yes, thank you for pointing out these warnings. I have just submitted
> three patches that add native and nativesdk to BBCLASSEXTEND of the
> required python3-pikepdf dependencies.
>

Sounds good, thanks!


> Best regards, Leon
>
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb b/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
new file mode 100644
index 0000000000..4821e273d8
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pikepdf_10.0.2.bb
@@ -0,0 +1,22 @@ 
+SUMMARY = "Read and write PDFs with Python, powered by qpdf"
+HOMEPAGE = "https://github.com/pikepdf/pikepdf"
+LICENSE = "MPL-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=9741c346eef56131163e13b9db1241b3"
+
+SRC_URI[sha256sum] = "7c85a2526253e35575edb2e28cdc740d004be4b7c5fda954f0e721ee1c423a52"
+
+inherit pypi python_setuptools_build_meta
+
+PYPI_PACKAGE = "pikepdf"
+
+DEPENDS += " \
+	python3-pybind11-native \
+	qpdf \
+"
+
+RDEPENDS:${PN} += " \
+	python3-pillow \
+	python3-lxml \
+"
+
+BBCLASSEXTEND = "native nativesdk"