package/gerbera: add upstream patch to fix find_program with taglib-config
authorJörg Krause <joerg.krause@embedded.rocks>
Mon, 10 Jun 2019 21:20:23 +0000 (23:20 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 10 Jun 2019 21:59:15 +0000 (23:59 +0200)
commit6d527683153c3c1ac341fa3a8002b71e3393a680
treed92bfd4e9469a275ae639ca32e9e2da37ba2debb
parentad29cd6224f3ac3317f36b243a8ba8e1623c679c
package/gerbera: add upstream patch to fix find_program with taglib-config

Add an from from upstream to fix linking Gerbera with taglib. The patch
fixes the following issue:

When cross-compiling CMakes `find_program()` will search for binaries on the
host. This is typically correct, e.g. when search for compilers or shells.

When cross-compiling, searching for `taglib-config` using `find_program` should
not find the binary on the host, instead it should find the binary in the sysroot
directory, as the host `taglib-config` will output the wrong host paths
and libs, whereas the sysroot `taglib-config` will output the correct sysroot
paths and libs.

Therefore, use the `CMAKE_FIND_ROOT_PATH_MODE_PROGRAM` variable when
cross-compiling. This variable controls whether the `CMAKE_FIND_ROOT_PATH`
and `CMAKE_SYSROOT` are used by find_program().

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/gerbera/0002-Fix-find_program-taglib-config-when-cross-compiling.patch [new file with mode: 0644]