8000 Build in-mock fails with header-only package · Issue #2606 · packit/packit · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Build in-mock fails with header-only package #2606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
2 tasks
LecrisUT opened this issue May 21, 2025 · 0 comments
Open
2 tasks

Build in-mock fails with header-only package #2606

LecrisUT opened this issue May 21, 2025 · 0 comments
Labels
area/cli Impact on packit's command-line interface complexity/single-task Regular task; should be done within days gain/low Doesn't bring much value to users impact/low Affects only few of the users kind/bug An unexpected problem or behavior

Comments

@LecrisUT
Copy link
Contributor
LecrisUT commented May 21, 2025

What happened? What is the problem?

I have a header-only package which would have no foo.rpm artifact, only foo-devel.rpm, and the build finishes correctly, but packit fails when it is trying to query the rpm package which does not exist

What did you expect to happen?

Log after running packit build in-mock

2025-05-21 11:07:25.275 upstream.py       DEBUG  The `mock` command output: INFO: mock.py version 6.1 starting (python version = 3.13.3, NVR = mock-6.1-1.fc42), args: /usr/libexec/mock/mock --root default --resultdir . /home/lecris/PycharmProjects/FedoraRPM-lief/span/span-0-1.fc42.src.rpm
Start(bootstrap): init plugins
INFO: selinux enabled
Finish(bootstrap): init plugins
Start: init plugins
INFO: selinux enabled
Finish: init plugins
INFO: Signal handler active
Start: run
INFO: Start(/home/lecris/PycharmProjects/FedoraRPM-lief/span/span-0-1.fc42.src.rpm)  Config(fedora-41-x86_64)
Start: clean chroot
Finish: clean chroot
Mock Version: 6.1
INFO: Mock Version: 6.1
Start(bootstrap): chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled package manager cache
Start(bootstrap): cleaning package manager metadata
Finish(bootstrap): cleaning package manager metadata
INFO: Package manager dnf5 detected and used (fallback)
Finish(bootstrap): chroot init
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled package manager cache
Start: cleaning package manager metadata
Finish: cleaning package manager metadata
INFO: enabled HW Info plugin
INFO: Package manager dnf5 detected and used (direct choice)
INFO: Buildroot is handled by package management downloaded with a bootstrap image:
  rpm-4.20.0-1.fc41.x86_64
  rpm-sequoia-1.7.0-3.fc41.x86_64
  dnf5-5.2.8.1-3.fc41.x86_64
  dnf5-plugins-5.2.8.1-3.fc41.x86_64
Start: dnf5 update
Finish: dnf5 update
Finish: chroot init
Start: build phase for span-0-1.fc42.src.rpm
Start: build setup for span-0-1.fc42.src.rpm
Finish: build setup for span-0-1.fc42.src.rpm
Start: rpmbuild span-0-1.fc42.src.rpm
Start: Outputting list of installed packages
Finish: Outputting list of installed packages
Finish: rpmbuild span-0-1.fc42.src.rpm
Finish: build phase for span-0-1.fc42.src.rpm
INFO: Done(/home/lecris/PycharmProjects/FedoraRPM-lief/span/span-0-1.fc42.src.rpm) Config(default) 0 minutes 11 seconds
INFO: Results and/or logs in: .
INFO: Cleaning up build root ('cleanup_on_success=True')
Start: clean chroot
Finish: clean chroot
Finish: run

2025-05-21 11:07:25.275 upstream.py       DEBUG  []
2025-05-21 11:07:25.275 utils.py          ERROR  RPMs cannot be found, something is wrong.
Traceback (most recent call last):
  File "/home/lecris/PycharmProjects/packit/packit/cli/utils.py", line 47, in covered_func
    func(config=config, *args, **kwargs)  # noqa: B026
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lecris/PycharmProjects/packit/packit/cli/utils.py", line 136, in covered_func
    func(*args, **decorated_func_kwargs)
    ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lecris/PycharmProjects/packit/packit/cli/builds/mock_build.py", line 120, in mock
    rpm_paths = api.run_mock_build(
        root=root,
        srpm_path=config.srpm_path,
        resultdir=resultdir,
    )
  File "/home/lecris/PycharmProjects/packit/packit/api.py", line 2681, in run_mock_build
    rpms = GitUpstream._get_rpms_from_mock_output(cmd_result.stderr)
  File "/home/lecris/PycharmProjects/packit/packit/upstream.py", line 1308, in _get_rpms_from_mock_output
    raise PackitRPMNotFoundException(
        "RPMs cannot be found, something is wrong.",
    )
packit.exceptions.PackitRPMNotFoundException: RPMs cannot be found, something is wrong.

Workaround

  • There is an existing workaround that can be used until this issue is fixed.

Participation

  • I am willing to submit a pull request for this issue. (Packit team is happy to help!)
< 8A59 div id="js-timeline-progressive-loader" data-timeline-item-src="packit/packit/timeline_focused_item?after_cursor=Y3Vyc29yOnYyOpPPAAABlvb194gBqzE3NzY2OTI4MzM1&id=I_kwDOCVH0f863jgj5" >
@LecrisUT LecrisUT added the kind/bug An unexpected problem or behavior label May 21, 2025
@mfocko mfocko added area/cli Impact on packit's command-line interface complexity/single-task Regular task; should be done within days gain/low Doesn't bring much value to users impact/low Affects only few of the users labels May 22, 2025
@mfocko mfocko moved this from new to backlog in Packit Kanban Board May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Impact on packit's command-line interface complexity/single-task Regular task; should be done within days gain/low Doesn't bring much value to users impact/low Affects only few of the users kind/bug An unexpected problem or behavior
Projects
Status: backlog
Development

No branches or pull requests

2 participants
0