Make mpv agnostic regarding possible mismatches of built vs running dependencies. Given the existence of BUILDLINK_A[BP]I_DEPENDS and PKGREVISION bumps our use in pkgsrc can be considered a legitimate one. Delete the print_libav_versions() check to reflect that. Bump PKGREVISION. Thanks to <wiz> for noticing that!diff -r1.41 -r1.42 pkgsrc/multimedia/mpv/Makefile
(leot)
@@ -1,16 +1,17 @@ | @@ -1,16 +1,17 @@ | |||
1 | # $NetBSD: Makefile,v 1.41 2016/10/20 08:27:01 leot Exp $ | 1 | # $NetBSD: Makefile,v 1.42 2016/11/03 14:41:28 leot Exp $ | |
2 | 2 | |||
3 | DISTNAME= mpv-0.21.0 | 3 | DISTNAME= mpv-0.21.0 | |
4 | PKGREVISION= 1 | |||
4 | CATEGORIES= multimedia | 5 | CATEGORIES= multimedia | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/} | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=mpv-player/} | |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | 7 | GITHUB_TAG= v${PKGVERSION_NOREV} | |
7 | 8 | |||
8 | MAINTAINER= leot@NetBSD.org | 9 | MAINTAINER= leot@NetBSD.org | |
9 | HOMEPAGE= http://mpv.io/ | 10 | HOMEPAGE= http://mpv.io/ | |
10 | COMMENT= Video player based on MPlayer and mplayer2 | 11 | COMMENT= Video player based on MPlayer and mplayer2 | |
11 | LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 | 12 | LICENSE= gnu-gpl-v2 AND gnu-lgpl-v2.1 | |
12 | 13 | |||
13 | # needs sem_timedwait(3) | 14 | # needs sem_timedwait(3) | |
14 | NOT_FOR_PLATFORM= NetBSD-[1-6]*-* | 15 | NOT_FOR_PLATFORM= NetBSD-[1-6]*-* | |
15 | 16 | |||
16 | NOT_PAX_MPROTECT_SAFE+= bin/mpv | 17 | NOT_PAX_MPROTECT_SAFE+= bin/mpv |
@@ -1,6 +1,7 @@ | @@ -1,6 +1,7 @@ | |||
1 | $NetBSD: distinfo,v 1.27 2016/10/20 08:27:01 leot Exp $ | 1 | $NetBSD: distinfo,v 1.28 2016/11/03 14:41:28 leot Exp $ | |
2 | 2 | |||
3 | SHA1 (mpv-0.21.0.tar.gz) = 8f90df723faab7fe019c9b29898f656688e22796 | 3 | SHA1 (mpv-0.21.0.tar.gz) = 8f90df723faab7fe019c9b29898f656688e22796 | |
4 | RMD160 (mpv-0.21.0.tar.gz) = 7ca393d2d80cc3f56cf93a871e39b332883a0899 | 4 | RMD160 (mpv-0.21.0.tar.gz) = 7ca393d2d80cc3f56cf93a871e39b332883a0899 | |
5 | SHA512 (mpv-0.21.0.tar.gz) = f4072fc3a351643f94c64c8da43560458d53072e61d099670903319f21576ccbdfa053a57c1ac09fe51e067e5055e1bb691ee93645ea2dea04b95fd96d937d16 | 5 | SHA512 (mpv-0.21.0.tar.gz) = f4072fc3a351643f94c64c8da43560458d53072e61d099670903319f21576ccbdfa053a57c1ac09fe51e067e5055e1bb691ee93645ea2dea04b95fd96d937d16 | |
6 | Size (mpv-0.21.0.tar.gz) = 2812584 bytes | 6 | Size (mpv-0.21.0.tar.gz) = 2812584 bytes | |
7 | SHA1 (patch-player_main.c) = fefba566f5130d24b748b7ab4ecc48bf42bc6bdd |
$NetBSD: patch-player_main.c,v 1.1 2016/11/03 14:41:28 leot Exp $
Avoid to check mismatched built vs running libraries version.
The use in pkgsrc can be considered a legitimate one.
--- player/main.c.orig 2016-10-19 21:10:13.000000000 +0000
+++ player/main.c
@@ -429,18 +429,6 @@ int mp_initialize(struct MPContext *mpct
handle_deprecated_options(mpctx);
- if (!print_libav_versions(mp_null_log, 0)) {
- // Using mismatched libraries can be legitimate, but even then it's
- // a bad idea. We don't acknowledge its usefulness and stability.
- print_libav_versions(mpctx->log, MSGL_FATAL);
- MP_FATAL(mpctx, "\nmpv was compiled against a different version of "
- "FFmpeg/Libav than the shared\nlibrary it is linked against. "
- "This is most likely a broken build and could\nresult in "
- "misbehavior and crashes.\n\nmpv does not support this "
- "configuration and will not run - rebuild mpv instead.\n");
- return -1;
- }
-
if (!mpctx->playlist->first && !opts->player_idle_mode)
return -3;