Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#79493 - [sdl2_ttf] an invalid include will be returned in CMake.

Attached to Project: Arch Linux
Opened by Maksim Logaev (turbocat) - Sunday, 27 August 2023, 20:25 GMT
Last edited by Toolybird (Toolybird) - Sunday, 10 September 2023, 21:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

#Description:

The package `extra/sdl2_ttf` is configured incorrectly, which causes problems when working with CMake:
```
find_package(SDL2_ttf REQUIRED)
...
target_link_libraries(Test SDL2_ttf::SDL2_ttf)
```
We get an error. Due to misconfigured `${prefix}` or `${includedir}` in `sdl2_ttf-config.cmake`:
```
CMake Error in CMakeLists.txt:
Imported target "SDL2_ttf::SDL2_ttf" includes non-existent path

"//include/SDL2"

in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:

* The path was deleted, renamed, or moved to another location.

* An install or uninstall procedure did not complete successfully.

* The installation package was faulty and references files it does not
provide.
```

#Additional info:
- Version: sdl2_ttf 2.20.2-1
- Arch: x86_64

#Steps to reproduce:
- Download and unpack the attached producer.
- Execute `cmake .` in producer folder.

#Note
There is a possibility that `sdl2_image` and `sdl2_mixer` are subject to the same error, since the cmake support code is similar.

This task depends upon

Closed by  Toolybird (Toolybird)
Sunday, 10 September 2023, 21:26 GMT
Reason for closing:  Upstream
Additional comments about closing:  Should be included next pkgver update.
Comment by Toolybird (Toolybird) - Sunday, 27 August 2023, 22:48 GMT
Arch doesn't do anything special here and just uses the upstream provided files. It's possible this might have been fixed already by upstream [1]. Can you please check?

[1] https://github.com/libsdl-org/SDL_ttf/commits/main/CMakeLists.txt
Comment by Maksim Logaev (turbocat) - Monday, 28 August 2023, 07:04 GMT
The problem seems to be in the library itself. Please excuse me, I was wrong. I'm trying to reopen the bug report here and try to merge the changes fixing it: https://github.com/libsdl-org/SDL_ttf/pull/303.
Comment by Maksim Logaev (turbocat) - Monday, 28 August 2023, 16:35 GMT

Loading...