Bug 2100228

Summary: SDL2staticTargets*.cmake should be part of the mingw-SDL2-static package
Product: [Fedora] Fedora Reporter: maarten <madebr>
Component: mingw-SDL2Assignee: Kalev Lember <klember>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: erik-fedora, klember, maci, manisandro
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: mingw-SDL2-2.0.22-2.fc36 mingw-SDL2-2.0.22-2.fc35 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-03 01:05:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description maarten 2022-06-22 18:52:20 UTC
Description of problem:

After only install `mingw32-SDL2` (no mingw32-SDL2-static), the following CMake script will fail:
```
cmake_minimum_required(VERSION 3.0)
project(mingw_SDL C)

find_package(SDL2 REQUIRED)
```
The error is as follows:
```
  The imported target "SDL2::SDL2-static" references the file

     "/usr/i686-w64-mingw32/sys-root/mingw/lib/libSDL2.a"

  but this file does not exist.  Possible reasons include:
  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/i686-w64-mingw32/sys-root/mingw/lib/cmake/SDL2/SDL2staticTargets.cmake"

  but not all the files it references.

```


Version-Release number of selected component (if applicable):

mingw-SDL2-2.0.22-1.fc36.src.rpm


How reproducible:

Always


Steps to Reproduce:
1. Create the cmake script above
2. Configure it using cmake:
```
cmake -S /path/to/directory/containing/the/cmake/script -B /tmp/mingw_sdl2_build
```

Actual results:

Configure succeeds, SDL2::SDL2main target is not available

Expected results:


Additional info:

Can be fixed by installing mingw32-SDL2-static.
But the real fix is moving the 2 cmake scripts mentioned above to the mingw32-SDL2-static package.

Comment 1 Fedora Update System 2022-06-24 09:19:40 UTC
FEDORA-2022-7a8ca2606f has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-7a8ca2606f

Comment 2 Fedora Update System 2022-06-24 09:19:41 UTC
FEDORA-2022-c7569ba9a4 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-c7569ba9a4

Comment 3 Fedora Update System 2022-06-25 00:34:02 UTC
FEDORA-2022-7a8ca2606f 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 --advisory=FEDORA-2022-7a8ca2606f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-7a8ca2606f

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

Comment 4 Fedora Update System 2022-06-25 01:26:44 UTC
FEDORA-2022-c7569ba9a4 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-c7569ba9a4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-c7569ba9a4

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

Comment 5 Fedora Update System 2022-07-03 01:05:14 UTC
FEDORA-2022-7a8ca2606f has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2022-07-03 01:19:51 UTC
FEDORA-2022-c7569ba9a4 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.