Bug 2100228 - SDL2staticTargets*.cmake should be part of the mingw-SDL2-static package
Summary: SDL2staticTargets*.cmake should be part of the mingw-SDL2-static package
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mingw-SDL2
Version: 36
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Kalev Lember
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-22 18:52 UTC by maarten
Modified: 2022-07-03 01:19 UTC (History)
4 users (show)

Fixed In Version: mingw-SDL2-2.0.22-2.fc36 mingw-SDL2-2.0.22-2.fc35
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-03 01:05:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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