All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
To: "Mingyu Wang (Fujitsu)" <wangmy@fujitsu.com>,
	"openembedded-core@lists.openembedded.org"
	<openembedded-core@lists.openembedded.org>
Subject: Re: [OE-core] [PATCH V2] dnf: upgrade 4.22.0 -> 4.23.0
Date: Wed, 26 Mar 2025 11:10:48 +0100	[thread overview]
Message-ID: <D8Q47HYAALIV.1Q4AZO2V3RPZ1@bootlin.com> (raw)
In-Reply-To: <TYWPR01MB11861D6EC6DC97514BE5AADF9DCA62@TYWPR01MB11861.jpnprd01.prod.outlook.com>

On Wed Mar 26, 2025 at 2:45 AM CET, Mingyu Wang (Fujitsu) wrote:
> After compiling the image, I did not encounter such an issue, so could you please tell me how to reproduce this problem?
>
>   --
> Best Regards
> ---------------------------------------------------

Hi,

Here is a reproducer sequence:

git clone ssh://git@push.yoctoproject.org/poky-ci-archive -b autobuilder.yoctoproject.org/valkyrie/a-full-1229
. ./poky-ci-archive/oe-init-build-env
bitbake core-image-minimal

And I get this error:

ERROR: core-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/rootfs/etc/yum.repos.d --installroot=/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/rootfs --setopt=logdir=/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/temp --repofrompath=oe-repo,/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/oe-rootfs-repo makecache --refresh' returned 1:
Traceback (most recent call last):
  File "/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/recipe-sysroot-native/usr/bin/dnf.real", line 57, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/dnf/cli/main.py", line 208, in user_main
    errcode = main(args)
  File "/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/dnf/cli/main.py", line 67, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/dnf/cli/main.py", line 102, in _main
    cli.configure(list(map(ucd, args)), option_parser())
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/dnf/cli/cli.py", line 847, in configure
    self._read_conf_file(opts.releasever, opts.releasever_major, opts.releasever_minor)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/dnf/cli/cli.py", line 981, in _read_conf_file
    subst.update_from_etc(from_root, varsdir=conf._get_value('varsdir'))
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/dnf/conf/substitutions.py", line 89, in update_from_etc
    self[fsvar] = val
    ~~~~^^^^^^^
  File "/home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/recipe-sysroot-native/usr/lib/python3.13/site-packages/dnf/conf/substitutions.py", line 57, in __setitem__
    releasever_major, releasever_minor = ConfigParser.splitReleasever(value)
                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'ConfigParser' has no attribute 'splitReleasever'

ERROR: Logfile of failure stored in: /home/mdubois-briand/swat/dnf/build/tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0/temp/log.do_rootfs.2565307
ERROR: Task (/home/mdubois-briand/swat/dnf/poky-ci-archive/meta/recipes-core/images/core-image-minimal.bb:do_rootfs) failed with exit code '1'



-- 
Mathieu Dubois-Briand, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



  parent reply	other threads:[~2025-03-26 10:10 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-20  3:02 [OE-core] [PATCH V2] dnf: upgrade 4.22.0 -> 4.23.0 wangmy
2025-03-20  8:02 ` Mathieu Dubois-Briand
2025-03-26  1:45   ` Mingyu Wang (Fujitsu)
2025-03-26  9:25     ` Alexander Kanavin
2025-03-26 10:10     ` Mathieu Dubois-Briand [this message]
2025-03-26 10:13       ` Mathieu Dubois-Briand
2025-03-28  1:38   ` Mingyu Wang (Fujitsu)
2025-03-28  9:14     ` Mathieu Dubois-Briand
  -- strict thread matches above, loose matches on Subject: below --
2025-03-31  9:11 [oe] [meta-oe] [PATCH 01/26] ctags: upgrade 6.1.20250316.0 -> 6.1.20250330.0 wangmy
2025-03-31  9:11 ` [OE-core] [PATCH V2] dnf: upgrade 4.22.0 -> 4.23.0 wangmy
2025-06-23  9:58 [PATCH v2] " Moritz Haase
2025-06-23 22:54 ` [OE-core] " Richard Purdie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D8Q47HYAALIV.1Q4AZO2V3RPZ1@bootlin.com \
    --to=mathieu.dubois-briand@bootlin.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=wangmy@fujitsu.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.