Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703360 - media-video/mpv USE=cplugins should install headers and pkgconfig
Summary: media-video/mpv USE=cplugins should install headers and pkgconfig
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-19 10:41 UTC by haarp
Modified: 2020-07-15 08:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
mpv-mpris-0.4.ebuild (mpv-mpris-0.4.ebuild,509 bytes, text/plain)
2020-05-30 19:36 UTC, bzoloid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description haarp 2019-12-19 10:41:42 UTC
In order to compile C plugins, media-videp/mpv should install headers when USE=cplugins is enabled.

In the case of https://github.com/hoyon/mpv-mpris which I tried, at the very least these headers are required:

libmpv/{client.h,stream_cb.h}
misc/{bstr.h,mpv_talloc.h}
mpv/client.h
osdep/compiler.h
ta/{ta.h,ta_alloc.h}

Additionally a pkgconfig (mpv.pc) should be installed. The aforementioned plugin's Makefile calls it, which fails:

Package mpv was not found in the pkg-config search path.
Perhaps you should add the directory containing `mpv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'mpv' found

It's compilable without it, but header locatios need to be defined manually.


Thanks!
Comment 1 bzoloid 2020-05-30 19:36:19 UTC
Created attachment 642782 [details]
mpv-mpris-0.4.ebuild

This is an upstream issue: the headers are only installed if you activate "libmpv".
See attached an ebuild for the mpris plugin.
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2020-07-15 07:00:28 UTC
It has nothing to do with gentoo. Rely on the build system, if it does not work properly - report upstream.