diff mbox series

[meta-python,26/30] python3-snagboot: upgrade 2.2 -> 2.3

Message ID 1744017431-22217-26-git-send-email-wangmy@fujitsu.com
State New
Headers show
Series [meta-oe,01/30] boost-sml: upgrade 1.1.11 -> 1.1.12 | expand

Commit Message

Wang Mingyu April 7, 2025, 9:17 a.m. UTC
From: Wang Mingyu <wangmy@fujitsu.com>

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 .../python/{python3-snagboot_2.2.bb => python3-snagboot_2.3.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-snagboot_2.2.bb => python3-snagboot_2.3.bb} (86%)

Comments

Martin Jansa April 9, 2025, 12:41 p.m. UTC | #1
With this update applied I'm seeing build failures like:

ValueError: invalid pyproject.toml config: `project.license`.
configuration error: `project.license` must be valid exactly by one
definition (2 matches found):

    - keys:
        'file': {type: string}
      required: ['file']
    - keys:
        'text': {type: string}
      required: ['text']

DESCRIPTION:
    `Project license <https://peps.python.org/pep-0621/#license>`_.

GIVEN VALUE:
    "GPL-2.0-only"

OFFENDING RULE: 'oneOf'

DEFINITION:
    {
        "oneOf": [
            {
                "properties": {
                    "file": {
                        "type": "string",
                        "$$description": [
                            "Relative path to the file (UTF-8) which
contains the license for the",
                            "project."
                        ]
                    }
                },
                "required": [
                    "file"
                ]
            },
            {
                "properties": {
                    "text": {
                        "type": "string",
                        "$$description": [
                            "The license of the project whose meaning
is that of the",
                            "`License field from the core metadata",

"<https://packaging.python.org/specifications/core-metadata/#license>`_."
                        ]
                    }
                },
                "required": [
                    "text"
                ]
            }
        ]
    }

license was changed in
https://github.com/bootlin/snagboot/commit/a648d6dc554f631ba34a6cfeab8c19725bb3816b

It doesn't fail for you?

On Mon, Apr 7, 2025 at 11:18 AM wangmy via lists.openembedded.org
<wangmy=fujitsu.com@lists.openembedded.org> wrote:
>
> From: Wang Mingyu <wangmy@fujitsu.com>
>
> Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
> ---
>  .../python/{python3-snagboot_2.2.bb => python3-snagboot_2.3.bb} | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>  rename meta-python/recipes-devtools/python/{python3-snagboot_2.2.bb => python3-snagboot_2.3.bb} (86%)
>
> diff --git a/meta-python/recipes-devtools/python/python3-snagboot_2.2.bb b/meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> similarity index 86%
> rename from meta-python/recipes-devtools/python/python3-snagboot_2.2.bb
> rename to meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> index 07b9a5208c..dc57dfc105 100644
> --- a/meta-python/recipes-devtools/python/python3-snagboot_2.2.bb
> +++ b/meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> @@ -3,7 +3,7 @@ SUMMARY = "Snagboot intends to be an open-source replacement vendor-specific too
>  LICENSE = "GPL-2.0-only"
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
>
> -SRC_URI[sha256sum] = "00f4933cb52fb73dcf61a0723d77d9d6bc509affb7cd5d5dcd875d2c333e8b08"
> +SRC_URI[sha256sum] = "c6a97ea0c83a2d7eea639741b2f667c75e95d50278eeb6a8adbce5d1a7cf65fa"
>
>  inherit pypi python_setuptools_build_meta
>
> --
> 2.43.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#116655): https://lists.openembedded.org/g/openembedded-devel/message/116655
> Mute This Topic: https://lists.openembedded.org/mt/112129288/3617156
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Khem Raj April 9, 2025, 2:10 p.m. UTC | #2
On Wed, Apr 9, 2025 at 5:41 AM Martin Jansa via lists.openembedded.org
<martin.jansa=gmail.com@lists.openembedded.org> wrote:
>
> With this update applied I'm seeing build failures like:
>
> ValueError: invalid pyproject.toml config: `project.license`.
> configuration error: `project.license` must be valid exactly by one

Interestingly, I do not see this on ubuntu 20.04 + buildtools and
debian12 based builders.

> definition (2 matches found):
>
>     - keys:
>         'file': {type: string}
>       required: ['file']
>     - keys:
>         'text': {type: string}
>       required: ['text']
>
> DESCRIPTION:
>     `Project license <https://peps.python.org/pep-0621/#license>`_.
>
> GIVEN VALUE:
>     "GPL-2.0-only"
>
> OFFENDING RULE: 'oneOf'
>
> DEFINITION:
>     {
>         "oneOf": [
>             {
>                 "properties": {
>                     "file": {
>                         "type": "string",
>                         "$$description": [
>                             "Relative path to the file (UTF-8) which
> contains the license for the",
>                             "project."
>                         ]
>                     }
>                 },
>                 "required": [
>                     "file"
>                 ]
>             },
>             {
>                 "properties": {
>                     "text": {
>                         "type": "string",
>                         "$$description": [
>                             "The license of the project whose meaning
> is that of the",
>                             "`License field from the core metadata",
>
> "<https://packaging.python.org/specifications/core-metadata/#license>`_."
>                         ]
>                     }
>                 },
>                 "required": [
>                     "text"
>                 ]
>             }
>         ]
>     }
>
> license was changed in
> https://github.com/bootlin/snagboot/commit/a648d6dc554f631ba34a6cfeab8c19725bb3816b
>
> It doesn't fail for you?
>
> On Mon, Apr 7, 2025 at 11:18 AM wangmy via lists.openembedded.org
> <wangmy=fujitsu.com@lists.openembedded.org> wrote:
> >
> > From: Wang Mingyu <wangmy@fujitsu.com>
> >
> > Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
> > ---
> >  .../python/{python3-snagboot_2.2.bb => python3-snagboot_2.3.bb} | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >  rename meta-python/recipes-devtools/python/{python3-snagboot_2.2.bb => python3-snagboot_2.3.bb} (86%)
> >
> > diff --git a/meta-python/recipes-devtools/python/python3-snagboot_2.2.bb b/meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> > similarity index 86%
> > rename from meta-python/recipes-devtools/python/python3-snagboot_2.2.bb
> > rename to meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> > index 07b9a5208c..dc57dfc105 100644
> > --- a/meta-python/recipes-devtools/python/python3-snagboot_2.2.bb
> > +++ b/meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> > @@ -3,7 +3,7 @@ SUMMARY = "Snagboot intends to be an open-source replacement vendor-specific too
> >  LICENSE = "GPL-2.0-only"
> >  LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> >
> > -SRC_URI[sha256sum] = "00f4933cb52fb73dcf61a0723d77d9d6bc509affb7cd5d5dcd875d2c333e8b08"
> > +SRC_URI[sha256sum] = "c6a97ea0c83a2d7eea639741b2f667c75e95d50278eeb6a8adbce5d1a7cf65fa"
> >
> >  inherit pypi python_setuptools_build_meta
> >
> > --
> > 2.43.0
> >
> >
> >
> >
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#116739): https://lists.openembedded.org/g/openembedded-devel/message/116739
> Mute This Topic: https://lists.openembedded.org/mt/112129288/1997914
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
Martin Jansa April 10, 2025, 12:57 p.m. UTC | #3
Ah it fails only with walnascar which is missing setuptools upgrade in oe-core:
d2b9b8cb7f python3-setuptools: upgrade 76.0.0 -> 78.1.0
which relaxed some of these license checks e.g.
https://github.com/pypa/setuptools/pull/4899 from v77.0.3

backporting newer setuptools to walnascar fixes the build, but if it's
not acceptable, then maybe reverting this snagboot upgrade from
walnascar might be easier (I don't have a preference for me it was
just new build failure in world build)


On Wed, Apr 9, 2025 at 4:10 PM Khem Raj <raj.khem@gmail.com> wrote:
>
> On Wed, Apr 9, 2025 at 5:41 AM Martin Jansa via lists.openembedded.org
> <martin.jansa=gmail.com@lists.openembedded.org> wrote:
> >
> > With this update applied I'm seeing build failures like:
> >
> > ValueError: invalid pyproject.toml config: `project.license`.
> > configuration error: `project.license` must be valid exactly by one
>
> Interestingly, I do not see this on ubuntu 20.04 + buildtools and
> debian12 based builders.
>
> > definition (2 matches found):
> >
> >     - keys:
> >         'file': {type: string}
> >       required: ['file']
> >     - keys:
> >         'text': {type: string}
> >       required: ['text']
> >
> > DESCRIPTION:
> >     `Project license <https://peps.python.org/pep-0621/#license>`_.
> >
> > GIVEN VALUE:
> >     "GPL-2.0-only"
> >
> > OFFENDING RULE: 'oneOf'
> >
> > DEFINITION:
> >     {
> >         "oneOf": [
> >             {
> >                 "properties": {
> >                     "file": {
> >                         "type": "string",
> >                         "$$description": [
> >                             "Relative path to the file (UTF-8) which
> > contains the license for the",
> >                             "project."
> >                         ]
> >                     }
> >                 },
> >                 "required": [
> >                     "file"
> >                 ]
> >             },
> >             {
> >                 "properties": {
> >                     "text": {
> >                         "type": "string",
> >                         "$$description": [
> >                             "The license of the project whose meaning
> > is that of the",
> >                             "`License field from the core metadata",
> >
> > "<https://packaging.python.org/specifications/core-metadata/#license>`_."
> >                         ]
> >                     }
> >                 },
> >                 "required": [
> >                     "text"
> >                 ]
> >             }
> >         ]
> >     }
> >
> > license was changed in
> > https://github.com/bootlin/snagboot/commit/a648d6dc554f631ba34a6cfeab8c19725bb3816b
> >
> > It doesn't fail for you?
> >
> > On Mon, Apr 7, 2025 at 11:18 AM wangmy via lists.openembedded.org
> > <wangmy=fujitsu.com@lists.openembedded.org> wrote:
> > >
> > > From: Wang Mingyu <wangmy@fujitsu.com>
> > >
> > > Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
> > > ---
> > >  .../python/{python3-snagboot_2.2.bb => python3-snagboot_2.3.bb} | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > >  rename meta-python/recipes-devtools/python/{python3-snagboot_2.2.bb => python3-snagboot_2.3.bb} (86%)
> > >
> > > diff --git a/meta-python/recipes-devtools/python/python3-snagboot_2.2.bb b/meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> > > similarity index 86%
> > > rename from meta-python/recipes-devtools/python/python3-snagboot_2.2.bb
> > > rename to meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> > > index 07b9a5208c..dc57dfc105 100644
> > > --- a/meta-python/recipes-devtools/python/python3-snagboot_2.2.bb
> > > +++ b/meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> > > @@ -3,7 +3,7 @@ SUMMARY = "Snagboot intends to be an open-source replacement vendor-specific too
> > >  LICENSE = "GPL-2.0-only"
> > >  LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> > >
> > > -SRC_URI[sha256sum] = "00f4933cb52fb73dcf61a0723d77d9d6bc509affb7cd5d5dcd875d2c333e8b08"
> > > +SRC_URI[sha256sum] = "c6a97ea0c83a2d7eea639741b2f667c75e95d50278eeb6a8adbce5d1a7cf65fa"
> > >
> > >  inherit pypi python_setuptools_build_meta
> > >
> > > --
> > > 2.43.0
> > >
> > >
> > >
> > >
> >
> > -=-=-=-=-=-=-=-=-=-=-=-
> > Links: You receive all messages sent to this group.
> > View/Reply Online (#116739): https://lists.openembedded.org/g/openembedded-devel/message/116739
> > Mute This Topic: https://lists.openembedded.org/mt/112129288/1997914
> > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > -=-=-=-=-=-=-=-=-=-=-=-
> >
Khem Raj April 10, 2025, 3:04 p.m. UTC | #4
On Thu, Apr 10, 2025 at 5:57 AM Martin Jansa <martin.jansa@gmail.com> wrote:
>
> Ah it fails only with walnascar which is missing setuptools upgrade in oe-core:
> d2b9b8cb7f python3-setuptools: upgrade 76.0.0 -> 78.1.0
> which relaxed some of these license checks e.g.
> https://github.com/pypa/setuptools/pull/4899 from v77.0.3
>
> backporting newer setuptools to walnascar fixes the build, but if it's
> not acceptable, then maybe reverting this snagboot upgrade from
> walnascar might be easier (I don't have a preference for me it was
> just new build failure in world build)

yeah revert is good, my walnascar build still used master of oe-core :(

>
>
> On Wed, Apr 9, 2025 at 4:10 PM Khem Raj <raj.khem@gmail.com> wrote:
> >
> > On Wed, Apr 9, 2025 at 5:41 AM Martin Jansa via lists.openembedded.org
> > <martin.jansa=gmail.com@lists.openembedded.org> wrote:
> > >
> > > With this update applied I'm seeing build failures like:
> > >
> > > ValueError: invalid pyproject.toml config: `project.license`.
> > > configuration error: `project.license` must be valid exactly by one
> >
> > Interestingly, I do not see this on ubuntu 20.04 + buildtools and
> > debian12 based builders.
> >
> > > definition (2 matches found):
> > >
> > >     - keys:
> > >         'file': {type: string}
> > >       required: ['file']
> > >     - keys:
> > >         'text': {type: string}
> > >       required: ['text']
> > >
> > > DESCRIPTION:
> > >     `Project license <https://peps.python.org/pep-0621/#license>`_.
> > >
> > > GIVEN VALUE:
> > >     "GPL-2.0-only"
> > >
> > > OFFENDING RULE: 'oneOf'
> > >
> > > DEFINITION:
> > >     {
> > >         "oneOf": [
> > >             {
> > >                 "properties": {
> > >                     "file": {
> > >                         "type": "string",
> > >                         "$$description": [
> > >                             "Relative path to the file (UTF-8) which
> > > contains the license for the",
> > >                             "project."
> > >                         ]
> > >                     }
> > >                 },
> > >                 "required": [
> > >                     "file"
> > >                 ]
> > >             },
> > >             {
> > >                 "properties": {
> > >                     "text": {
> > >                         "type": "string",
> > >                         "$$description": [
> > >                             "The license of the project whose meaning
> > > is that of the",
> > >                             "`License field from the core metadata",
> > >
> > > "<https://packaging.python.org/specifications/core-metadata/#license>`_."
> > >                         ]
> > >                     }
> > >                 },
> > >                 "required": [
> > >                     "text"
> > >                 ]
> > >             }
> > >         ]
> > >     }
> > >
> > > license was changed in
> > > https://github.com/bootlin/snagboot/commit/a648d6dc554f631ba34a6cfeab8c19725bb3816b
> > >
> > > It doesn't fail for you?
> > >
> > > On Mon, Apr 7, 2025 at 11:18 AM wangmy via lists.openembedded.org
> > > <wangmy=fujitsu.com@lists.openembedded.org> wrote:
> > > >
> > > > From: Wang Mingyu <wangmy@fujitsu.com>
> > > >
> > > > Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
> > > > ---
> > > >  .../python/{python3-snagboot_2.2.bb => python3-snagboot_2.3.bb} | 2 +-
> > > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > >  rename meta-python/recipes-devtools/python/{python3-snagboot_2.2.bb => python3-snagboot_2.3.bb} (86%)
> > > >
> > > > diff --git a/meta-python/recipes-devtools/python/python3-snagboot_2.2.bb b/meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> > > > similarity index 86%
> > > > rename from meta-python/recipes-devtools/python/python3-snagboot_2.2.bb
> > > > rename to meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> > > > index 07b9a5208c..dc57dfc105 100644
> > > > --- a/meta-python/recipes-devtools/python/python3-snagboot_2.2.bb
> > > > +++ b/meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
> > > > @@ -3,7 +3,7 @@ SUMMARY = "Snagboot intends to be an open-source replacement vendor-specific too
> > > >  LICENSE = "GPL-2.0-only"
> > > >  LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
> > > >
> > > > -SRC_URI[sha256sum] = "00f4933cb52fb73dcf61a0723d77d9d6bc509affb7cd5d5dcd875d2c333e8b08"
> > > > +SRC_URI[sha256sum] = "c6a97ea0c83a2d7eea639741b2f667c75e95d50278eeb6a8adbce5d1a7cf65fa"
> > > >
> > > >  inherit pypi python_setuptools_build_meta
> > > >
> > > > --
> > > > 2.43.0
> > > >
> > > >
> > > >
> > > >
> > >
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > > Links: You receive all messages sent to this group.
> > > View/Reply Online (#116739): https://lists.openembedded.org/g/openembedded-devel/message/116739
> > > Mute This Topic: https://lists.openembedded.org/mt/112129288/1997914
> > > Group Owner: openembedded-devel+owner@lists.openembedded.org
> > > Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [raj.khem@gmail.com]
> > > -=-=-=-=-=-=-=-=-=-=-=-
> > >
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-snagboot_2.2.bb b/meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
similarity index 86%
rename from meta-python/recipes-devtools/python/python3-snagboot_2.2.bb
rename to meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
index 07b9a5208c..dc57dfc105 100644
--- a/meta-python/recipes-devtools/python/python3-snagboot_2.2.bb
+++ b/meta-python/recipes-devtools/python/python3-snagboot_2.3.bb
@@ -3,7 +3,7 @@  SUMMARY = "Snagboot intends to be an open-source replacement vendor-specific too
 LICENSE = "GPL-2.0-only"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-SRC_URI[sha256sum] = "00f4933cb52fb73dcf61a0723d77d9d6bc509affb7cd5d5dcd875d2c333e8b08"
+SRC_URI[sha256sum] = "c6a97ea0c83a2d7eea639741b2f667c75e95d50278eeb6a8adbce5d1a7cf65fa"
 
 inherit pypi python_setuptools_build_meta