Bug 2402661 - dola is not compatible with flatpak /app builds
Summary: dola is not compatible with flatpak /app builds
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dola
Version: 43
Hardware: All
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Marián Konček
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-10-09 06:55 UTC by Yaakov Selkowitz
Modified: 2026-03-19 00:53 UTC (History)
3 users (show)

Fixed In Version: dola-1.3.2-10.fc44 dola-1.3.2-7.fc43
Clone Of:
Environment:
Last Closed: 2026-03-19 00:16:57 UTC
Type: ---
Embargoed:
mizdebsk: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github mizdebsk dola pull 53 0 None open Allow override of classworlds configuration directory 2026-03-09 03:28:28 UTC
Red Hat Issue Tracker FC-2478 0 None None None 2025-10-09 08:39:28 UTC

Description Yaakov Selkowitz 2025-10-09 06:55:08 UTC
Compare the Provides and Requires of a flatpak /app build with dola, e.g.: 

https://koji.fedoraproject.org/koji/rpminfo?rpmID=44601293

to that of a regular /usr build:

https://koji.fedoraproject.org/koji/rpminfo?rpmID=43810033

The apparent reason would be that search paths are hard-coded in the dola sources, and only /usr paths are included.  This is breaking all flatpak builds of Java libraries which have been converted to dola, where this was working just fine with javapackages-tools.

Either /app paths corresponding to the supported /usr paths need to be added to each hard-coded search path, or some way to configure this (e.g. through the installation of a config file) specifically for flatpak builds.

Reproducible: Always

Comment 1 Mikolaj Izdebski 2025-10-09 09:01:04 UTC
Thank you for raising this issue. Our team is currently focused on other planned work and cannot take on new requests right away. If you believe this is urgent, please contact Lukas Nykryn (CC’d here), as he is responsible for deciding priorities. Otherwise, the request will be reviewed alongside others in the future, but there’s no set timeline for when it might be addressed.

Comment 2 Marián Konček 2025-10-29 10:35:25 UTC
Hi, what about the installed files, like `/usr/share/maven-metadata/apache-commons-cli.xml`?
Should they also be prefixed with `/app` in the flatpak build?

Comment 3 Yaakov Selkowitz 2025-10-29 19:58:22 UTC
They don't need to unless it will make things easier, which it didn't in previous versions.  We don't need the files to be included in the flatpak, but we *do* need the proper provides/requires to be generated as they are in regular builds.

Comment 4 Marián Konček 2025-11-19 14:28:48 UTC
I am not familiar with building flatpaks. Could you please provide build commands reproducing the build?

Comment 5 Yaakov Selkowitz 2025-11-20 04:57:16 UTC
More specifically, this is regarding building Java-based RPMs to include in flatpaks.

So, in the dist-git directory of such a package (e.g. apache-commons-cli), run:

fedpkg scratch-build --target f43-flatpak-app [--srpm]

Comment 6 Yaakov Selkowitz 2026-03-09 03:36:25 UTC
Posted a PR upstream, this is needed urgently for at least F44+.

Comment 7 Mikolaj Izdebski 2026-03-09 10:37:07 UTC
Upstream PR merged: https://github.com/mizdebsk/dola/pull/53

Comment 8 Marián Konček 2026-03-09 11:50:54 UTC
Shall I make a pre-release release of this package?

Comment 9 Yaakov Selkowitz 2026-03-09 13:37:59 UTC
I guess that's up to you?  For now, I've posted a backport to f44 (and possibly f43) at https://src.fedoraproject.org/rpms/dola/pull-request/1.

rawhide/f45 has the lua-5.5 patch which cannot go back to f44, so either way f44 needed a backport.

Comment 10 Fedora Update System 2026-03-10 11:12:47 UTC
FEDORA-2026-bcdc3c61f0 (dola-1.3.2-7.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-bcdc3c61f0

Comment 11 Fedora Update System 2026-03-10 11:13:00 UTC
FEDORA-2026-1ef7ef8c33 (dola-1.3.2-10.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-1ef7ef8c33

Comment 12 Fedora Update System 2026-03-11 01:32:14 UTC
FEDORA-2026-1ef7ef8c33 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-1ef7ef8c33`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-1ef7ef8c33

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2026-03-11 01:49:51 UTC
FEDORA-2026-bcdc3c61f0 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-bcdc3c61f0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-bcdc3c61f0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2026-03-19 00:16:57 UTC
FEDORA-2026-1ef7ef8c33 (dola-1.3.2-10.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2026-03-19 00:53:57 UTC
FEDORA-2026-bcdc3c61f0 (dola-1.3.2-7.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.