[Bug 255035] multimedia/ffmpeg: fix build with lensfun option enabled

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Apr 13 14:24:01 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255035

            Bug ID: 255035
           Summary: multimedia/ffmpeg: fix build with lensfun option
                    enabled
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: multimedia at FreeBSD.org
          Reporter: osidorkin at gmail.com
          Assignee: multimedia at FreeBSD.org
             Flags: maintainer-feedback?(multimedia at FreeBSD.org)

Created attachment 224083
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=224083&action=edit
git diff to make ffmpeg to use lensfun API from the last tagged version
(instead of trunk one)

ffmpeg 4.4 switched to trunk lensfun API that is incompartible with lensfun
version from our ports. So build of ffmpeg with lensfun option enabled fails
with the following message:
libavfilter/vf_lensfun.c:231:119: error: too few arguments to function call,
expected 5, have 3
                lf_modifier_enable_vignetting_correction(lensfun->modifier,
lensfun->aperture, lensfun->focus_distance);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                       
                                      ^
/usr/local/include/lensfun/lensfun.h:3097:15: note:
'lf_modifier_enable_vignetting_correction' declared here
LF_EXPORT int lf_modifier_enable_vignetting_correction (
              ^
libavfilter/vf_lensfun.c:233:75: error: too few arguments to function call,
expected 3, have 1

and others.

The attached patch rollbacks some upstream changes to make ffmpeg buildable
again.
This patch is intended to be removed after lensfun upgrade.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list