Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 903550 - media-video/gpac-2.2.0 - filters/ff_mx.c: error: AVIOContext has no member named bytes_written
Summary: media-video/gpac-2.2.0 - filters/ff_mx.c: error: AVIOContext has no member na...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-03-29 18:30 UTC by Toralf Förster
Modified: 2023-04-10 09:35 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,19.10 KB, text/plain)
2023-03-29 18:30 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,209.06 KB, text/plain)
2023-03-29 18:30 UTC, Toralf Förster
Details
environment (environment,67.70 KB, text/plain)
2023-03-29 18:30 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,911 bytes, application/x-bzip)
2023-03-29 18:30 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,16.86 KB, application/x-bzip)
2023-03-29 18:30 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,2.37 KB, application/x-bzip)
2023-03-29 18:30 UTC, Toralf Förster
Details
media-video:gpac-2.2.0:20230329-175634.log.bz2 (media-video:gpac-2.2.0:20230329-175634.log.bz2,9.94 KB, application/x-bzip)
2023-03-29 18:30 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,26.49 KB, application/x-bzip)
2023-03-29 18:30 UTC, Toralf Förster
Details
Patched based on ba14e34 (ba14e34dd7a3c4cef5a56962898e9f863dd4b4f3.patch,1.84 KB, patch)
2023-04-09 20:22 UTC, Andrew Udvare
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-03-29 18:30:17 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-gcc -I"/var/tmp/portage/media-video/gpac-2.2.0/work/gpac-2.2.0/include"  -O2 -pipe -march=native -fno-diagnostics-color -msse2 -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DNDEBUG -std=gnu99 -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC
x86_64-pc-linux-gnu-gcc -I"/var/tmp/portage/media-video/gpac-2.2.0/work/gpac-2.2.0/include"  -O2 -pipe -march=native -fno-diagnostics-color -msse2 -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DNDEBUG -std=gnu99 -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC
x86_64-pc-linux-gnu-gcc -I"/var/tmp/portage/media-video/gpac-2.2.0/work/gpac-2.2.0/include"  -O2 -pipe -march=native -fno-diagnostics-color -msse2 -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DNDEBUG -std=gnu99 -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC
x86_64-pc-linux-gnu-gcc -I"/var/tmp/portage/media-video/gpac-2.2.0/work/gpac-2.2.0/include"  -O2 -pipe -march=native -fno-diagnostics-color -msse2 -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DNDEBUG -std=gnu99 -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC
x86_64-pc-linux-gnu-gcc -I"/var/tmp/portage/media-video/gpac-2.2.0/work/gpac-2.2.0/include"  -O2 -pipe -march=native -fno-diagnostics-color -msse2 -Wall -fno-strict-aliasing -Wno-pointer-sign -fPIC -DPIC -DNDEBUG -std=gnu99 -Wno-deprecated -Wno-deprecated-declarations -Wno-int-in-bool-context -DGPAC
filters/ff_mx.c: In function ffmx_close_seg:
filters/ff_mx.c:506:72: error: AVIOContext has no member named bytes_written
  506 | .seg_size.media_range_end = ctx->muxer->pb ? (ctx->muxer->pb->bytes_written-1) : 0;
      |                                                             ^~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma-j4-20230326-193126

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 16.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/16/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/16
16.0.0
Python 3.10.10
Available Ruby profiles:
  [1]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.68.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit a7cf90d82b329f1bfeba5cb1a4edeab81282f9ba
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Mar 29 17:16:58 2023 +0000

    2023-03-29 17:16:58 UTC

emerge -qpvO media-video/gpac
[ebuild  N    ] media-video/gpac-2.2.0  USE="X a52 alsa ffmpeg jpeg mad opengl png sdl ssl truetype vorbis xml xvid -aac -debug -dvb -jack -jpeg2k -oss -pulseaudio -static-libs -theora" CPU_FLAGS_X86="sse2"
Comment 1 Toralf Förster gentoo-dev 2023-03-29 18:30:18 UTC
Created attachment 859240 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-03-29 18:30:19 UTC
Created attachment 859241 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2023-03-29 18:30:21 UTC
Created attachment 859242 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-03-29 18:30:21 UTC
Created attachment 859243 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-03-29 18:30:22 UTC
Created attachment 859244 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-03-29 18:30:23 UTC
Created attachment 859245 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-03-29 18:30:24 UTC
Created attachment 859246 [details]
media-video:gpac-2.2.0:20230329-175634.log.bz2
Comment 8 Toralf Förster gentoo-dev 2023-03-29 18:30:25 UTC
Created attachment 859247 [details]
temp.tar.bz2
Comment 9 Gary E. Miller 2023-03-31 18:51:20 UTC
I have the same issue.
Comment 10 Michael Cook 2023-04-02 15:21:19 UTC
This is because we're reverting this commit https://github.com/gpac/gpac/commit/70bc8f6877a9651a0fc4c1b14e8cd2bf2f07a068 for ffmpeg 6 support ... which is masked ...

https://github.com/gpac/gpac/commit/ba14e34dd7a3c4cef5a56962898e9f863dd4b4f3 is the better ffmpeg 6 patch
Comment 11 Michael Cook 2023-04-02 16:05:22 UTC
(In reply to Michael Cook from comment #10)
> https://github.com/gpac/gpac/commit/ba14e34dd7a3c4cef5a56962898e9f863dd4b4f3
> is the better ffmpeg 6 patch

Okay, replaced the patch with this one in my local overlay and it seems to build fine with ffmpeg-4.4.3, haven't tested 5 or 6 since they're masked.
Comment 12 Andrew Udvare 2023-04-03 18:15:27 UTC
That patch does not work against the main tree gpac. Is this intended for another version or is it supposed to be inverted?
Comment 13 Attila Tóth 2023-04-05 10:49:42 UTC
(In reply to Michael Cook from comment #11)
> (In reply to Michael Cook from comment #10)
> > https://github.com/gpac/gpac/commit/ba14e34dd7a3c4cef5a56962898e9f863dd4b4f3
> > is the better ffmpeg 6 patch
> 
> Okay, replaced the patch with this one in my local overlay and it seems to
> build fine with ffmpeg-4.4.3, haven't tested 5 or 6 since they're masked.

I had to modify the patch a little bit, but it also works for me. Thanks: Dw.
Comment 14 Andrew Udvare 2023-04-09 20:22:25 UTC
Created attachment 859778 [details, diff]
Patched based on ba14e34
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-04-10 06:57:04 UTC
(In reply to Andrew Udvare from comment #14)
> Created attachment 859778 [details, diff] [details, diff]
> Patched based on ba14e34

This is on top of the patch currently in the ebuild, yeah?
Comment 16 Andrew Udvare 2023-04-10 09:17:53 UTC
(In reply to Sam James from comment #15)
> (In reply to Andrew Udvare from comment #14)
> > Created attachment 859778 [details, diff] [details, diff] [details, diff]
> > Patched based on ba14e34
> 
> This is on top of the patch currently in the ebuild, yeah?

Yes.
Comment 17 Larry the Git Cow gentoo-dev 2023-04-10 09:25:19 UTC
The bug has been closed via the following commit(s):

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

commit b489b1a671b51c3def4b4cdfdd419155caad4b73
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-10 09:24:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-10 09:24:13 +0000

    media-video/gpac: fix build w/ >=ffmpeg-5
    
    Closes: https://bugs.gentoo.org/903550
    Thanks-to: Andrew Udvare <audvare@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../gpac/files/gpac-2.2.0-ffmpeg6-deux.patch       | 46 ++++++++++++++++++++++
 media-video/gpac/gpac-2.2.0.ebuild                 |  1 +
 2 files changed, 47 insertions(+)