Created attachment 219548 [details] Updated file/patch-contrib_ffmpeg_module.defs Similar to bug #244432, this time it's a different error. When ffmpeg/configure script tests for dav1d, it gets a linker error due to libpthread not being linked in. Upon further inspection, it seems that dav1d.pc generated has -pthread in Libs.private. pkg-config assume you are linking dynamically, so private dependencies are not included by default. But they are required for static linking. Fix is to pass in --pkg-config-flags=--static to ffmpeg's configure script. I've attached the fix. It's an updated file/patch-contrib_ffmpeg_module.defs (It's not a patch of a patch).
I could see the build failure unless multimedia/dav1d is installed from ports. Let me take a couple of days to consider your patch.
Created attachment 219620 [details] handbrake-1.3.3_3.patch
`dav1d.pc` is generated by meson and meson 0.56.0 has changed to put `-pthread` in `Libs.private`. The previous meson version 0.55.3 doesn't do this way. ffmpeg libraries are statically linked to HandBrake binary. So as Mike says, it is good solution that adding `--pkg-config-flags=--static` to ffmpeg configure option. I generated a patch file from Mike's code. Please apply `handbrake-1.3.3_3.patch` to Ports tree. To clarify how to reproduce this problem: 1. uninstall multimedia/dav1d # pkg delete -f dav1d 2. make sure meson version is 0.56.0 # meson --version 0.56.0 3. build multimedia/handbrake
Updates? Can your patch be merged?
(In reply to Mike Cui from comment #4) I'm looking for a committer. I talked about this PR with hrs@. Maybe He will help us.
Bump
A commit references this bug: Author: hrs Date: Tue Jan 19 06:31:43 UTC 2021 New revision: 562028 URL: https://svnweb.freebsd.org/changeset/ports/562028 Log: - Fix build when multimedia/dav1d is not installed. This can happen when multimedia/ffmpeg is compiled with no DAV1D option. - Split mkdir ${WRKSRC}/download from copying files into it. Submitted by: Mike Cui Approved by: Yuichiro NAITO (maintainer) PR: 251044 Changes: head/multimedia/handbrake/Makefile head/multimedia/handbrake/files/patch-contrib_ffmpeg_module.defs
Fixed in r562028. Please reopen this PR if this problem persists. Thank you for your report and apologies for the long delay.