[Bug 265024] multimedia/v4l-utils: fails to build with libepoll-shim 0.0.20220703
Date: Mon, 04 Jul 2022 17:09:44 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265024 --- Comment #4 from Jan Kokemüller <jan.kokemueller@gmail.com> --- Would this also work? This replaces "f->close(f)" with "(f->close)(f)" similar to <https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265021#c2>. diff --git a/multimedia/libv4l/Makefile b/multimedia/libv4l/Makefile index ff1a2d757e7..186f61d12ae 100644 --- a/multimedia/libv4l/Makefile +++ b/multimedia/libv4l/Makefile @@ -78,6 +78,11 @@ post-patch: # Don't build translation files for now @${REINPLACE_CMD} -e 's|v4l-utils-po libdvbv5-po||g' ${WRKSRC}/Makefile.am .endif +.if ${PORTNAME} == v4l-utils + @${REINPLACE_CMD} -e 's|\([^[:space:]]*\->close\)(|(\1)(|g' \ + ${WRKSRC}/utils/common/cv4l-helpers.h \ + ${WRKSRC}/utils/common/v4l-helpers.h +.endif # Remove old FreeBSD include files (to be removed upstream) @${RM} -r ${WRKSRC}/contrib/freebsd/include/* # Create symbolic link for Linux sources -- You are receiving this mail because: You are the assignee for the bug.