NetBSD Problem Report #50447

From www@NetBSD.org  Thu Nov 19 08:21:42 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6082DA6601
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 19 Nov 2015 08:21:42 +0000 (UTC)
Message-Id: <20151119082140.E3E04A663F@mollari.NetBSD.org>
Date: Thu, 19 Nov 2015 08:21:40 +0000 (UTC)
From: davshao@gmail.com
Reply-To: davshao@gmail.com
To: gnats-bugs@NetBSD.org
Subject: multimedia/ffmpeg1 libvpx update
X-Send-Pr-Version: www-1.0

>Number:         50447
>Category:       pkg
>Synopsis:       multimedia/ffmpeg1 libvpx update
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    ryoon
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 19 08:25:00 +0000 2015
>Closed-Date:    Sun May 01 05:21:00 +0000 2016
>Last-Modified:  Sun May 01 05:21:00 +0000 2016
>Originator:     David Shao
>Release:        pkgsrc current
>Organization:
>Environment:
DragonFly  4.3-DEVELOPMENT DragonFly v4.3.1.1019.gb92bf-DEVELOPMENT #6: Tue Nov 17 23:38:24 PST 2015     xxxxxx@:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
>Description:
Possibly as a result of the update to libvpx, multimedia/ffmpeg1 no longer builds with error:

CC	libavcodec/libvpxenc.o
libavcodec/libvpxenc.c:90:6: error: 'VP8E_UPD_ENTROPY' undeclared here (not in a function)
     [VP8E_UPD_ENTROPY]           = "VP8E_UPD_ENTROPY",
      ^
libavcodec/libvpxenc.c:90:6: error: array index in initializer not of integer type
libavcodec/libvpxenc.c:90:6: note: (near initialization for 'ctlidstr')
libavcodec/libvpxenc.c:91:6: error: 'VP8E_UPD_REFERENCE' undeclared here (not in a function)
     [VP8E_UPD_REFERENCE]         = "VP8E_UPD_REFERENCE",
      ^
libavcodec/libvpxenc.c:91:6: error: array index in initializer not of integer type
libavcodec/libvpxenc.c:91:6: note: (near initialization for 'ctlidstr')
libavcodec/libvpxenc.c:92:6: error: 'VP8E_USE_REFERENCE' undeclared here (not in a function)
     [VP8E_USE_REFERENCE]         = "VP8E_USE_REFERENCE",
      ^
libavcodec/libvpxenc.c:92:6: error: array index in initializer not of integer type
libavcodec/libvpxenc.c:92:6: note: (near initialization for 'ctlidstr')
common.mak:48: recipe for target 'libavcodec/libvpxenc.o' failed
gmake: *** [libavcodec/libvpxenc.o] Error 1

This occurs for NetBSD 7 X11_TYPE=native and NetBSD 7.99.21 X11_TYPE=modular, so I suspect the problem is not OS dependent.

A user of xfce4 will notice the problem with ffmpeg1 through xfce4-tumbler requiring ffmpegthumbnailer which in turn requiring ffmpeg1. I do not know if a switch to using ffmpeg2 is possible.  Apparently according to a Debian bug report, an imminent version of ffmpeg2 will requiring patching to work with ffmpegthumbnailer:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803812


>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Thu, 19 Nov 2015 10:55:24 +0000
Responsible-Changed-Why:
Over to libvpx updater
(ffmpeg2 currently also doesn't build)


From: Ryo ONODERA <ryo_on@yk.rim.or.jp>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50447: multimedia/ffmpeg1 libvpx update
Date: Sat, 21 Nov 2015 03:44:33 +0900 (JST)

 Module Name:    pkgsrc
 Committed By:   tron
 Date:           Fri Nov 20 18:33:38 UTC 2015

 Modified Files:
         pkgsrc/multimedia/ffmpeg2: distinfo
 Added Files:
         pkgsrc/multimedia/ffmpeg2/patches: patch-libavcodec_libvpxenc.c

 Log Message:
 Add patch from the GIT repository to fix the build with version 1.5.0
 or newer of libvpx.


 To generate a diff of this commit:
 cvs rdiff -u -r1.40 -r1.41 pkgsrc/multimedia/ffmpeg2/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/multimedia/ffmpeg2/patches/patch-libavcodec_libvpxenc.c


 Module Name:    pkgsrc
 Committed By:   ryoon
 Date:           Fri Nov 20 18:36:12 UTC 2015

 Modified Files:
         pkgsrc/multimedia/ffmpeg010: distinfo
         pkgsrc/multimedia/ffmpeg1: distinfo
 Added Files:
         pkgsrc/multimedia/ffmpeg010/patches: patch-libavcodec_libvpxenc.c
         pkgsrc/multimedia/ffmpeg1/patches: patch-libavcodec_libvpxenc.c

 Log Message:
 Fix build with libvpx-1.5.0 with upstream patch


 To generate a diff of this commit:
 cvs rdiff -u -r1.13 -r1.14 pkgsrc/multimedia/ffmpeg010/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/multimedia/ffmpeg010/patches/patch-libavcodec_libvpxenc.c
 cvs rdiff -u -r1.8 -r1.9 pkgsrc/multimedia/ffmpeg1/distinfo
 cvs rdiff -u -r0 -r1.1 \
     pkgsrc/multimedia/ffmpeg1/patches/patch-libavcodec_libvpxenc.c


State-Changed-From-To: open->feedback
State-Changed-By: ryoon@NetBSD.org
State-Changed-When: Fri, 20 Nov 2015 18:46:41 +0000
State-Changed-Why:
Please test latest ones. Thank you.


From: David Shao <davshao@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/50447: multimedia/ffmpeg1 libvpx update
Date: Fri, 20 Nov 2015 21:53:38 -0800

 multimedia/ffmpeg1 now builds and installs on both NetBSD 7.99.21
 X11_TYPE=modular and DragonFly 4.3-DEVELOPMENT, as well as
 meta-pkgs/xfce4.  Thanks for the work porting the patches!

State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 01 May 2016 05:21:00 +0000
State-Changed-Why:
submitter reported fixed (promptly) and we didn't pay attention


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.