Bug 2176658 - dosbox-staging fails to compile shaders if `mesa-dri-drivers` is missing
Summary: dosbox-staging fails to compile shaders if `mesa-dri-drivers` is missing
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dosbox-staging
Version: 38
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Otto Liljalaakso
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-03-08 22:06 UTC by bugzilla
Modified: 2023-04-15 02:04 UTC (History)
2 users (show)

Fixed In Version: dosbox-staging-0.80.1-3.fc39 dosbox-staging-0.80.0-3.fc37 dosbox-staging-0.80.0-3.fc36 dosbox-staging-0.80.1-3.fc38
Clone Of:
Environment:
Last Closed: 2023-04-02 13:49:13 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description bugzilla 2023-03-08 22:06:46 UTC
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.

Comment 1 Otto Liljalaakso 2023-03-13 07:32:12 UTC
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!

Comment 2 Otto Liljalaakso 2023-03-13 07:54:49 UTC
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.

Comment 3 Fedora Update System 2023-04-02 13:46:48 UTC
FEDORA-2023-6a97ba3e25 has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-6a97ba3e25

Comment 4 Fedora Update System 2023-04-02 13:49:13 UTC
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.

Comment 5 Otto Liljalaakso 2023-04-02 14:37:41 UTC
Since there has been no further discussion, and the fix I propose works, I decided to implement it.

Comment 6 Fedora Update System 2023-04-02 14:47:52 UTC
FEDORA-2023-234f535327 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-234f535327

Comment 7 Fedora Update System 2023-04-02 14:49:31 UTC
FEDORA-2023-60e9f03782 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-60e9f03782

Comment 8 Fedora Update System 2023-04-02 14:49:54 UTC
FEDORA-2023-2e897bfa60 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2023-2e897bfa60

Comment 9 Fedora Update System 2023-04-03 02:34:56 UTC
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.

Comment 10 Fedora Update System 2023-04-03 02:40:59 UTC
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.

Comment 11 Fedora Update System 2023-04-03 02:55:56 UTC
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.

Comment 12 Fedora Update System 2023-04-11 01:40:17 UTC
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.

Comment 13 Fedora Update System 2023-04-11 01:56:08 UTC
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.

Comment 14 Fedora Update System 2023-04-15 02:04:40 UTC
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.


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