Cannot Build RPMS For the Virt-Manager Flatpak

I hope you folks excuse me for asking a dev question on forums; but, I did ask the same question on Matrix, yet did not get any answers and this is the other place I know for fedora help.

The virt-manager flatpak has a annoying problem with its icons where it will not display some of the icons for some UI elements such as a checkbox, I am trying to fix this bug myself, yet I am having problems even while trying to build the package without any modification.

I am following: Making sure you're not a bot! and have ran: flatpak-module build-rpms-local --auto for a local rpm build, yet got this error:

info: Remote metadata: https://kojipkgs.fedoraproject.org/repos/f44-flatpak-app-build/latest/x86_64/repodata/repomd.xml
info:   Cached metadata in /var/home/ahmet/.cache/flatpak-module-tools/repos/f44-flatpak-app-build/x86_64/repodata/repomd.xml
✓ Listing runtime packages ... done
✓ Finding dependencies of virt-manager, gtksourceview4, libayatana-appindicator-gtk3 not in runtime ... done
✓ Checking package versions ... done

                          f44-updates-testing-pending f44-flatpak-app
gtk-vnc                   1.5.0-4.fc44                1.5.0-4.fc44app1
gtksourceview4            4.8.4-11.fc44               4.8.4-11.fc44app1
libayatana-appindicator   0.6.0-1.fc44                0.5.94-5.fc44app1
libayatana-ido            0.10.4-7.fc44               0.10.4-7.fc44app1
libayatana-indicator      0.9.5-1.fc44                0.9.4-10.fc44app1
libburn                   1.5.8-1.fc44                1.5.8-1.fc44app2
libcacard                 3:2.8.2-1.fc44              3:2.8.2-1.fc44app1
libdbusmenu               16.04.0-31.fc44             16.04.0-31.fc44app1
libisoburn                1.5.8-2.fc44                1.5.8-2.fc44app2
libisofs                  1.5.8-3.fc44                1.5.8-3.fc44app2
libnl3                    3.12.0-3.fc44               3.12.0-3.fc44app1
libosinfo                 1.12.0-5.fc44               1.12.0-7.fc44app2
libssh2                   1.11.1-9.fc44               1.11.1-9.fc44app2
libvirt                   12.0.0-6.fc44               12.0.0-3.fc44app2
libvirt-glib              5.0.0-8.fc44                5.0.0-8.fc44app2
libvirt-python            12.0.0-1.fc44               12.0.0-1.fc44app2
numactl                   2.0.19-4.fc44               2.0.19-4.fc44app1
openwsman                 2.8.1-14.fc44               2.8.1-14.fc44app1
osinfo-db                 20251212-1.fc44             20251212-1.fc44app2
osinfo-db-tools           1.12.0-5.fc44               1.12.0-5.fc44app2
pcsc-lite                 2.4.1-2.fc44                2.4.1-2.fc44app1
phodav                    3.0-13.fc44                 3.0-13.fc44app1
python-argcomplete        3.6.3-4.fc44                3.6.3-4.fc44app2
python-charset-normalizer 3.4.4-2.fc44                3.4.4-2.fc44app1
python-idna               3.18-1.fc44                 3.18-1.fc44app2
python-requests           2.32.5-5.fc44               2.33.1-1.fc44app2
python-urllib3            2.8.0-3.fc44                2.8.0-3.fc44app2
simdutf                   7.2.1-3.fc44                7.2.1-3.fc44app1
spice-gtk                 0.42-8.fc44                 0.42-8.fc44app1
usbredir                  0.15.0-3.fc44               0.15.0-3.fc44app1
virt-manager              5.1.0-4.fc44                5.1.0-4.fc44app2
vte291                    0.84.0-1.fc44               0.84.1-1.fc44app2

To rebuild: libayatana-appindicator, libayatana-indicator, libvirt
Proceed? (y, n, ?): y
✓ Getting latest builds from koji ... done
✓ Getting build requirements from koji ... done
⠴ Expanding build requirements to determine build order: libvirtTraceback (most recent call last):
  File "/usr/bin/flatpak-module-depchase", line 7, in <module>
    sys.exit(cli())
             ~~~^^
  File "/usr/lib/python3.14/site-packages/click/core.py", line 1514, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/click/core.py", line 1435, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.14/site-packages/click/core.py", line 1902, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/click/core.py", line 1298, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/click/core.py", line 853, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.14/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3.14/site-packages/flatpak_module_tools/depchase/cli.py", line 328, in resolve_requires
    packages = collate_packages(
        transaction, requested_requires=requires, preinstalled_packages=preinstalled_packages
    )
  File "/usr/lib/python3.14/site-packages/flatpak_module_tools/depchase/cli.py", line 209, in collate_packages
    raise RuntimeError(
        f"{package.name} dependency cannot be resolved, may be missing from runtime"
    )
RuntimeError: pam dependency cannot be resolved, may be missing from runtime
✗ Expanding build requirements to determine build order: libvirt ...
Traceback (most recent call last):
  File "/usr/bin/flatpak-module", line 7, in <module>
    sys.exit(cli())
             ~~~^^
  File "/usr/lib/python3.14/site-packages/click/core.py", line 1514, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/click/core.py", line 1435, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.14/site-packages/click/core.py", line 1902, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/click/core.py", line 1298, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/site-packages/click/core.py", line 853, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.14/site-packages/click/decorators.py", line 34, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/usr/lib/python3.14/site-packages/flatpak_module_tools/cli.py", line 485, in build_rpms_local
    builder.build_rpms_local(
    ~~~~~~~~~~~~~~~~~~~~~~~~^
        manual_packages, manual_repos, auto=auto, allow_outdated=allow_outdated
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3.14/site-packages/flatpak_module_tools/rpm_builder.py", line 514, in build_rpms_local
    raise e
  File "/usr/lib/python3.14/site-packages/flatpak_module_tools/rpm_builder.py", line 504, in build_rpms_local
    build_after = self._compute_build_order(latest_builds, include_localrepo=True)
  File "/usr/lib/python3.14/site-packages/flatpak_module_tools/rpm_builder.py", line 320, in _compute_build_order
    output = self._run_depchase(
        "resolve-requires",
    ...<5 lines>...
        include_tag=True,
        include_packages=True)
  File "/usr/lib/python3.14/site-packages/flatpak_module_tools/rpm_builder.py", line 129, in _run_depchase
    return subprocess.check_output(
           ~~~~~~~~~~~~~~~~~~~~~~~^
        ["flatpak-module-depchase",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<4 lines>...
        encoding="utf-8"
        ^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib64/python3.14/subprocess.py", line 473, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
           ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
               **kwargs).stdout
               ^^^^^^^^^
  File "/usr/lib64/python3.14/subprocess.py", line 578, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['flatpak-module-depchase', '--profile=production', '--arch=amd64', '--tag=f44-flatpak-app-build', '--refresh=missing', 'resolve-requires', '--preinstalled', '/tmp/flatpak-runtime-f449n333p2w.packages', '--source', '--json', '/usr/bin/dtrace', 'audit-libs-devel', 'augeas', 'cyrus-sasl-devel', 'device-mapper-devel', 'firewalld-filesystem', 'fuse3-devel', 'gawk', 'gcc', 'gettext', 'git-core', 'glib2-devel >= 2.66', 'glusterfs-api-devel >= 3.4.1', 'glusterfs-devel >= 3.4.1', 'gnutls-devel', 'json-c-devel', 'libattr-devel', 'libblkid-devel >= 2.17', 'libcap-ng-devel >= 0.5.0', 'libcurl-devel', 'libiscsi-devel', 'libnl3-devel', 'libpcap-devel >= 1.5.0', 'libpciaccess-devel >= 0.10.9', 'libselinux-devel', 'libssh-devel >= 0.8.1', 'libssh2-devel >= 1.3.0', 'libtasn1-devel', 'libtirpc-devel', 'libwsman-devel >= 2.6.3', 'libxml2', 'libxml2-devel', 'libxslt', 'meson >= 0.56.0', 'mingw32-binutils', 'mingw32-curl', 'mingw32-dlfcn', 'mingw32-filesystem', 'mingw32-gcc', 'mingw32-gettext', 'mingw32-glib2 >= 2.48', 'mingw32-gnutls', 'mingw32-libssh2', 'mingw32-libxml2', 'mingw32-portablexdr', 'mingw64-binutils', 'mingw64-curl', 'mingw64-dlfcn', 'mingw64-filesystem', 'mingw64-gcc', 'mingw64-gettext', 'mingw64-glib2 >= 2.48', 'mingw64-gnutls', 'mingw64-libssh2', 'mingw64-libxml2', 'mingw64-portablexdr', 'ninja-build', 'numactl-devel', 'parted-devel', 'perl-interpreter', 'pkgconfig(bash-completion) >= 2.0', 'python3', 'python3-docutils', 'python3-pytest', 'readline-devel', 'sanlock-devel >= 2.4', 'systemd-devel >= 185', 'systemd-rpm-macros', 'systemtap-sdt-devel', 'wireshark-devel']' returned non-zero exit status 1.

Does anyone have an idea about what I may be missing (I am using Fedora Kinoite, yet tried both layering and toolbox for flatpak-module-tools package)

Have you tried updating flatpak-module-tools in both the host and toolbox?

You can check the installed version with:

rpm -q flatpak-module-tools

I’d update it, retry the build, and if it still fails, report the full traceback to the maintainers. It looks like a dependency-resolution issue rather than PAM missing from your system.

The regular RPM and the Flatpak build are different. Fedora rebuilds the application and its bundled dependencies with an /app prefix instead of /usr, so they work inside the Flatpak environment.

That’s why the existing RPM isn’t enough; that’s why he needs to rebuild the Flatpak-specific packages to test his changes.

thanks for explaining my reasoning on my behalf :slight_smile:

I did test it again on a fresh 45 Kinoite install with toolbox and through a 45 KDE VM from Boxes, both fail. Can you direct me upon where/whom I should contact about this? The src.fedoraproject.org does not have a issues page, at least for flatpaks/virt-manager

Thanks for testing it on fresh installs. I couldn’t find a fix for the pam error yet.

You could try building only the package you’re changing:

flatpak-module build-rpms-local /path/to/package-checkout
flatpak-module build-container-local --install

This might avoid rebuilding libvirt, but I haven’t tested it.

You can also email the flatpak-module-tools maintainers and include the full traceback. Hopefully they can help figure it out.

I am not changing any package, I literally cloned the flatpaks/virt-manager from src.fedoraproject.org and I am first trying to do a local build to see what I am working with, I did it both with “–auto” and “virt-manager” (as I need virt-manager to be built), yet both give errors, I may e-mail them through, thanks.

Ah, got it. I misunderstood you earlier. Yeah, if it fails even with the original package, probably best to report it to the maintainers. Hopefully they can help you figure it out.