Bug 192579

Summary: multimedia/ffmpeg does no longer build the V4L2 input device
Product: Ports & Packages Reporter: Hans Petter Selasky <hselasky>
Component: Individual Port(s)Assignee: Thomas Zander <riggs>
Status: Closed FIXED    
Severity: Affects Some People CC: jbeich, riggs
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 193150, 193151    
Bug Blocks:    
Attachments:
Description Flags
Fix build of V4L2 support in FFMPEG none

Description Hans Petter Selasky freebsd_committer freebsd_triage 2014-08-11 13:44:03 UTC
Solution:

Revert this:

-check_header linux/fb.h
-check_header linux/videodev.h
-check_header linux/videodev2.h
-check_code cc linux/videodev2.h "struct v4l2_frmsizeenum vfse; vfse.discrete.width = 0;" && enable_safe struct_v4l2_frmivalenum_discrete
+#check_header linux/fb.h
+#check_header linux/videodev.h
+#check_header linux/videodev2.h
+#check_code cc linux/videodev2.h "struct v4l2_frmsizeenum vfse; vfse.discrete.width = 0;" && enable_safe struct_v4l2_frmivalenum_discrete

 check_header sys/videoio.h


And substitute all occurences of sys_videoio_h with linux_videodev2_h in the configure script.

Then it works again.
Comment 1 John Marino freebsd_committer freebsd_triage 2014-08-11 14:51:26 UTC
over to maintainer
Comment 2 Thomas Zander freebsd_committer freebsd_triage 2014-08-23 17:19:00 UTC
Would you be able to provide a patch? Thanks!
Comment 3 Hans Petter Selasky freebsd_committer freebsd_triage 2014-08-24 17:43:27 UTC
I'll see what I can do.

--HPS
Comment 4 Hans Petter Selasky freebsd_committer freebsd_triage 2014-08-28 08:49:21 UTC
Created attachment 146437 [details]
Fix build of V4L2 support in FFMPEG
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-08-30 07:47:38 UTC
A commit references this bug:

Author: riggs
Date: Sat Aug 30 07:47:32 UTC 2014
New revision: 366591
URL: http://svnweb.freebsd.org/changeset/ports/366591

Log:
  - Restore V4L2 interface

  PR:		192579
  Submitted by:	hselasky@FreeBSD.org

Changes:
  head/multimedia/ffmpeg/Makefile
  head/multimedia/ffmpeg/files/patch-configure
Comment 6 Jan Beich freebsd_committer freebsd_triage 2014-08-30 15:54:22 UTC
(In reply to Hans Petter Selasky from comment #0)
> And substitute all occurences of sys_videoio_h with linux_videodev2_h in the
> configure script.

Why does this matter if dependency ends with |_any|? sys/videoio.h is part of video(4) or v4l2 on netbsd/openbsd.
Comment 7 Hans Petter Selasky freebsd_committer freebsd_triage 2014-08-31 10:58:04 UTC
This does not matter and was not done, except for removing the dependency for V4L2 driver.

--HPS