Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 822951 - media-libs/libdv should not require X11 and / or SDL to build and be usable
Summary: media-libs/libdv should not require X11 and / or SDL to build and be usable
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-10 17:21 UTC by Jocelyn Mayer
Modified: 2021-11-12 18:10 UTC (History)
2 users (show)

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


Attachments
Patch to =media-libs/libdv-1.0.0-r4 ebuild to make it able to build without X11 / SDL / GTK+ installed (media-libs_libdv_libdv-1.0.0-r4.ebuild.patch,1001 bytes, patch)
2021-11-10 17:23 UTC, Jocelyn Mayer
Details | Diff
Patch to be used by =media-libs/libdv-1.0.0-r4 ebuild previous patch to avoid autoreconf error when SDL is not present (libdv-1.0.0-nosdl.patch,395 bytes, patch)
2021-11-10 17:25 UTC, Jocelyn Mayer
Details | Diff
Patch to avoid =media-video/libva-utils-2.12.0 compilation error in vendor/intel/sfcsample subdirectory (media-video_libva-utils_libva-utils-2.12.0.ebuild.patch,519 bytes, patch)
2021-11-10 17:27 UTC, Jocelyn Mayer
Details | Diff
Companion patch to avoid =media-video/libva-utils-2.12.0 compilation error in vendor/intel/sfcsample subdirectory (libva-utils-2.12.0-no-X11.patch,556 bytes, patch)
2021-11-10 17:28 UTC, Jocelyn Mayer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jocelyn Mayer 2021-11-10 17:21:58 UTC
=media-libs/libdv-1.0.0-r4 and =media-video/libva-utils-2.12.0 require X11 and / or SDL to build. As libdv is a CODEC and libva can be used by mesa, opencv to make computation on GPU (vaapi USE option), wether X11 is present or not, I suggest a few changes to make them usable in those conditions.
Here are some patch to ebuild and companion patches and simple checks to show that the packages are usable without X11 and SDL.

Reproducible: Always

Steps to Reproduce:
1. Select a machine without X11 and SDL (and masked)
2. Try to compile media-libs/libdv and / or media-video/libva-utils

Actual Results:  
For media-libs/libdv, media-libs/libsdl dependency cannot be found.
For media-video/libva-utils, vendor/intel/sfcsample can not compile without X11.

Expected Results:  
Merge success
Comment 1 Jocelyn Mayer 2021-11-10 17:23:40 UTC
Created attachment 750201 [details, diff]
Patch to =media-libs/libdv-1.0.0-r4 ebuild to make it able to build without X11 / SDL / GTK+ installed
Comment 2 Jocelyn Mayer 2021-11-10 17:25:51 UTC
Created attachment 750204 [details, diff]
Patch to be used by =media-libs/libdv-1.0.0-r4 ebuild previous patch to avoid autoreconf error when SDL is not present

To be used with patch ID #750201
Comment 3 Jocelyn Mayer 2021-11-10 17:27:21 UTC
Created attachment 750207 [details, diff]
Patch to avoid =media-video/libva-utils-2.12.0 compilation error in vendor/intel/sfcsample subdirectory
Comment 4 Jocelyn Mayer 2021-11-10 17:28:23 UTC
Created attachment 750210 [details, diff]
Companion patch to avoid =media-video/libva-utils-2.12.0 compilation error in vendor/intel/sfcsample subdirectory

To be used with patch ID #750207
Comment 5 Jocelyn Mayer 2021-11-10 17:32:20 UTC
... please notice that GTK+ can also be an issue for libdv compilation.

After applying those patch, I can check that libdv is usable, at least by ffmpeg / mplayer:
# mplayer -vc help |grep -w DV
ffdv        ffmpeg    working   FFmpeg DV  [dvvideo]
qdv         dshow     working   Sony Digital Video (DV)  [qdv.dll]
libdv       libdv     working   Raw DV (libdv)  [libdv.so.2]
mcdv        vfw       working   MainConcept DV Codec  [mcdvd_32.dll]

I can also check that vaapi is usable on this computer:
# vainfo
libva info: VA-API version 1.12.0
libva info: Trying to open /usr/lib64/va/drivers/r600_drv_video.so
libva info: Found init function __vaDriverInit_1_12
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.12 (libva 2.12.0)
vainfo: Driver version: Mesa Gallium driver 21.1.7 for AMD RS780 (DRM 2.50.0 / 5.10.61-gentoo, LLVM 12.0.1)
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
Comment 6 Jonas Stein gentoo-dev 2021-11-12 18:10:50 UTC
Please open a new ticket for media-video/libva-utils. We can only handle one thing per ticket.