Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 654416

Summary: media-video/motion-4.1.1 : ffmpeg.c:541:41: error: CODEC_FLAG_QSCALE undeclared (first use in this function)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: William Breathitt Gray <vilhelm.gray>
Status: RESOLVED FIXED    
Severity: normal CC: media-video, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/8220
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 653678    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
media-video:motion-4.1.1:20180430-103532.log
temp.tbz2

Description Toralf Förster gentoo-dev 2018-04-30 13:25:55 UTC
	Compiling ffmpeg.c into ffmpeg.o...
ffmpeg.c: In function ‘ffmpeg_set_quality’:
ffmpeg.c:541:41: error: ‘CODEC_FLAG_QSCALE’ undeclared (first use in this function); did you mean ‘AV_CODEC_FLAG_QSCALE’?
             ffmpeg->ctx_codec->flags |= CODEC_FLAG_QSCALE;
                                         ^~~~~~~~~~~~~~~~~
                                         AV_CODEC_FLAG_QSCALE

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_ffmpeg4_20180425-210301

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python3.6 (fallback)
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
  [5]   pypy (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:


emerge -qpv media-video/motion
[ebuild  N    ] media-video/motion-4.1.1  USE="ffmpeg libav (-mmal) -mysql -postgres -sqlite -v4l -webp"
Comment 1 Toralf Förster gentoo-dev 2018-04-30 13:25:58 UTC
Created attachment 529066 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-04-30 13:26:01 UTC
Created attachment 529068 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-04-30 13:26:05 UTC
Created attachment 529070 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-04-30 13:26:08 UTC
Created attachment 529072 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-04-30 13:26:11 UTC
Created attachment 529074 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-04-30 13:26:14 UTC
Created attachment 529076 [details]
media-video:motion-4.1.1:20180430-103532.log
Comment 7 Toralf Förster gentoo-dev 2018-04-30 13:26:17 UTC
Created attachment 529078 [details]
temp.tbz2
Comment 8 William Breathitt Gray 2018-04-30 13:44:14 UTC
It looks like this is resolved upstream in commit 9b93a417e37e1f0fef58d1582a7e98e4c05d3b42: https://github.com/Motion-Project/motion/commit/9b93a417e37e1f0fef58d1582a7e98e4c05d3b42

I'll create a patch and update the Gentoo ebuild soon to fix this.
Comment 9 Larry the Git Cow gentoo-dev 2018-05-05 01:50:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2543749bf52b23f6b1a875cd1ad337ae83c74609

commit 2543749bf52b23f6b1a875cd1ad337ae83c74609
Author:     William Breathitt Gray <vilhelm.gray@gmail.com>
AuthorDate: 2018-04-30 14:04:00 +0000
Commit:     Aaron Bauman <bman@gentoo.org>
CommitDate: 2018-05-05 01:39:49 +0000

    media-video/motion: Fix build errors with FFmpeg 4.0
    
    Closes: https://bugs.gentoo.org/654416
    Closes: https://github.com/gentoo/gentoo/pull/8220

 .../4.1.1/Fix-build-errors-with-FFmpeg-4.0.patch   | 54 +++++++++++++
 media-video/motion/motion-4.1.1-r1.ebuild          | 94 ++++++++++++++++++++++
 2 files changed, 148 insertions(+)