FS#58066 - [sdl2] Linking with SDL2 require ibus, but is not listed as a dependency

Attached to Project: Arch Linux
Opened by Guillaume Racicot (gracicot) - Sunday, 01 April 2018, 18:20 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 04 April 2018, 04:23 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Building with SDL2 require ibus to be installed, but is not listed as a dependency.

You'll see in the installed file /usr/lib/cmake/SDL2/SDL2Targets-noconfig.cmake, in the IMPORTED_LINK_INTERFACE_LIBRARIES_NOCONFIG lines there is `ibus-1.0` listed there, even though it isn't installed in the machine. Removing that flag makes it link correctly, or installing the `ibus` package in the repos.

This may be an upstream bug, but I'm not quite sure. Building SDL2 on a machine that has not ibus installed does not make the flag appear and link successfully.

The error message is this:

/usr/bin/ld: cannot find -libus-1.0
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/testsdl.dir/build.make:96: testsdl] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/testsdl.dir/all] Error 2
make: *** [Makefile:84: all] Error 2

Additional info:
This is a regression since task #57972, see comment https://bugs.archlinux.org/task/57972#comment168026

Steps to reproduce:
1. Install SDL2 on a fresh installation
2. Download the attached cmake file
3. cmake . && make
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Wednesday, 04 April 2018, 04:23 GMT
Reason for closing:  Implemented
Comment by Sven-Hendrik Haase (Svenstaro) - Wednesday, 04 April 2018, 04:23 GMT
Good catch.

Loading...