Bug 2208129 - wine-mono: FTBFS in Fedora Rawhide
Summary: wine-mono: FTBFS in Fedora Rawhide
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: wine-mono
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michael Cronenworth
QA Contact: Fedora Extras Quality Assurance
URL: https://koschei.fedoraproject.org/pac...
Whiteboard:
Depends On:
Blocks: 2215935
TreeView+ depends on / blocked
 
Reported: 2023-05-18 04:07 UTC by Orion Poplawski
Modified: 2023-07-05 01:18 UTC (History)
2 users (show)

Fixed In Version: wine-mono-8.0.0-1.fc38 wine-mono-8.0.0-1.fc37
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-01 01:45:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Orion Poplawski 2023-05-18 04:07:14 UTC
Description of problem:
Package wine-mono fails to build from source in Fedora Rawhide.

Version-Release number of selected component (if applicable):
7.4.0-2.fc38

Steps to Reproduce:
koji build --scratch f39 wine-mono-7.4.0-2.fc38.src.rpm

Additional info:
This package is tracked by Koschei. See:
https://koschei.fedoraproject.org/package/wine-mono

Reproducible: Always

Actual Results:  
cp .//build/mono-win32-install/lib/mono/4.5/installutil.exe build/image-support/Microsoft.NET/Framework/v4.0.30319/installutil.exe
wine .//build/fixupclr.exe x86 build/image-support/Microsoft.NET/Framework/v4.0.30319/installutil.exe
Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: Bad EXE format for Z:\builddir\build\BUILD\wine-mono-7.4.0\build\fixupclr.exe.
make: *** [support.make:46: build/image-support/Microsoft.NET/Framework/v4.0.30319/installutil.exe] Error 1

Comment 1 Orion Poplawski 2023-05-18 04:08:54 UTC
FWIW - looks like 8.0.0 is out.

Comment 2 Michael Cronenworth 2023-06-05 03:39:44 UTC
Version 8.0.0 has a different problem and won't compile either. The error output is not obvious as to what the problem is so I have not debugged any further.

8.0.0 build.log:
make[1]: Entering directory '/builddir/build/BUILD/wine-mono-8.0.0'
mkdir -p .//image/lib
/builddir/build/BUILD/wine-mono-8.0.0/tools/copy_recursive.py .//build/mono-win32-install/etc .//image
/builddir/build/BUILD/wine-mono-8.0.0/tools/copy_recursive.py .//build/mono-win32-install/lib/mono .//image/lib
cp -n .//image/lib/mono/4.8-api/*.dll .//image/lib/mono/4.5/
make[1]: Leaving directory '/builddir/build/BUILD/wine-mono-8.0.0'
cp: not replacing './/image/lib/mono/4.5/mscorlib.dll'
make[1]: *** [mono.make:176: mono-image] Error 1
make[1]: *** Waiting for unfinished jobs....

Comment 3 Michael Cronenworth 2023-06-05 03:52:20 UTC
F38 builds 8.0.0 fine. Ugh.

Comment 4 Michael Cronenworth 2023-06-20 04:01:29 UTC
I had time to debug today. The problem is a change in coreutils of all places. F38 has coreutils 9.1 and Rawhide has 9.3. Coreutils 9.2 changed how "cp -n" worked. It now exits with a non-zero code if it were to skip a file. So, F38 and earlier were "failing" but exiting with a zero code. F39 is now returning a non-zero code *and* returning error text (the "cp: not replacing ..." text is NOT present in the coreutils 9.1 cp).

Since the behavior of failure has been accepted for so long I'll have it ignore the error for now and report this upstream to see what they want to do.

Upstream report: https://github.com/madewokherd/wine-mono/issues/164

I'll get this update out and this will finally allow a newer Wine package.

Comment 5 Michael Cronenworth 2023-06-20 05:22:29 UTC
Unfortunately I hit another road block. The Koji builders are unable to build Wine Mono. It affects all version of Fedora builds. I can build Wine Mono locally for any version of Fedora without an error.

F39 build attempts: 
- https://koji.fedoraproject.org/koji/taskinfo?taskID=102372408
- https://koji.fedoraproject.org/koji/taskinfo?taskID=102373027
- https://koji.fedoraproject.org/koji/taskinfo?taskID=102373207

F38 build attempt:
https://koji.fedoraproject.org/koji/taskinfo?taskID=102372475

F37 build attempt:
https://koji.fedoraproject.org/koji/taskinfo?taskID=102372473

Comment 6 Michael Cronenworth 2023-06-24 03:25:42 UTC
I've narrowed down the latest issue to a Linux kernel bug. The Koji builders are currently running kernel version 6.2.x and Mono is crashing on it. I reproduced the crash on a local system with kernel 6.2. I upgraded the local system to kernel 6.3 and it fixed the issue. My every-day build system was already running 6.3. I've asked the devel mailing list for an ETA when Koji builders will be upgraded.

Comment 7 Fedora Update System 2023-06-26 04:14:57 UTC
FEDORA-2023-05e0e8fb1f has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-05e0e8fb1f

Comment 8 Fedora Update System 2023-06-26 04:36:30 UTC
FEDORA-2023-4a157b61c4 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-4a157b61c4

Comment 9 Fedora Update System 2023-06-27 10:44:54 UTC
FEDORA-2023-4a157b61c4 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-4a157b61c4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-4a157b61c4

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

Comment 10 Fedora Update System 2023-06-27 10:55:06 UTC
FEDORA-2023-05e0e8fb1f has been pushed to the Fedora 38 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-05e0e8fb1f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-05e0e8fb1f

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

Comment 11 Fedora Update System 2023-07-01 01:45:19 UTC
FEDORA-2023-05e0e8fb1f has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2023-07-05 01:18:50 UTC
FEDORA-2023-4a157b61c4 has been pushed to the Fedora 37 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.