Description of problem: Fails to compile shaders if `mesa-dri-drivers` is missing. Please add `mesa-dri-drivers` as a dependency in the spec: ``` libGL error: MESA-LOADER: failed to open swrast: /usr/lib64/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib64/dri, suffix _dri) ... 2023-03-08 17:00:57.137 | SDL:OPENGL: Failed to compile shader! X Error of failed request: BadRequest (invalid request code or no such operation) Major opcode of failed request: 130 (MIT-SHM) Minor opcode of failed request: 1 (X_ShmAttach) Serial number of failed request: 403 Current serial number in output stream: 404 ``` Version-Release number of selected component (if applicable): dosbox-staging-0.80.1-2.fc38.src.rpm How reproducible: very Steps to Reproduce: 1. Do a minimal OS install (el9 in my case) 2. Build the .src.rpm and dependencies 3. Run `dosbox` Actual results: Error above Expected results: should run Suggested fix: Add `mesa-dri-drivers` as a dependency in the spec.
Greetings, and thank you for the bug report. However, dosbox-staging is not included in EPEL, so at the moment there is no support for your situation. I also cannot reproduce the problem in Fedora. I started with the Fedora Server qemu image, which does not have any graphical software by default, and thus mesa-dri-drivers is not installed. Then I ran 'sudo dnf install dosbox-staging', which pulled in mesa-dri-drivers. The necessary first step to get any work done for dosbox-staging on EPEL is to find an EPEL maintainer. Would you be interested in assuming this position? However, there was a different but similar problem in my Fedora test: ``` 2023-03-13 09:03:31.039 | SDL: Failed to create window: Could not load EGL library ``` This error was fatal, and could be fixed with 'sudo dnf install mesa-libEGL'. Probably *that* fix should be pushed for Fedora, too. At least on Fedora, that also pulls in mesa-dri-drivers as originally requested. Unfortunately my understanding of the graphics stack is quite weak, and it is not clear to me if this is the correct way to fix this problem. Any guidance here would be appreciated!
Update: By using adding '--setopt=install_weak_deps=False' as a parameter to dnf in Fedora, I managed to reproduce the situation where exactly swrast_dri.so is missing. So indeed, it looks like the following lines are needed in the specfile: Requires: mesa-libEGL Requires: mesa-dri-drivers I would still like somebody to confirm that this indeed is the proper solution.
FEDORA-2023-6a97ba3e25 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-6a97ba3e25
FEDORA-2023-6a97ba3e25 has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report.
Since there has been no further discussion, and the fix I propose works, I decided to implement it.
FEDORA-2023-234f535327 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-234f535327
FEDORA-2023-60e9f03782 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-60e9f03782
FEDORA-2023-2e897bfa60 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2e897bfa60
FEDORA-2023-234f535327 has been pushed to the Fedora 38 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-234f535327 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-2e897bfa60 has been pushed to the Fedora 36 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-2e897bfa60` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-2e897bfa60 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-60e9f03782 has been pushed to the Fedora 37 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-60e9f03782` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-60e9f03782 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2023-60e9f03782 has been pushed to the Fedora 37 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-2e897bfa60 has been pushed to the Fedora 36 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2023-234f535327 has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report.