Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856700 - media-video/mkvtoolnix-67.0.0 fails compile
Summary: media-video/mkvtoolnix-67.0.0 fails compile
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:
: 856817 (view as bug list)
Depends on:
Blocks: 856748
  Show dependency tree
 
Reported: 2022-07-06 15:29 UTC by Chris Smith
Modified: 2022-07-08 09:36 UTC (History)
4 users (show)

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


Attachments
build log (media-video:mkvtoolnix-67.0.0:20220706-152420.log,55.05 KB, text/x-log)
2022-07-06 15:31 UTC, Chris Smith
Details
modified upstream patch (mkvtoolnix_fmt-9.0.0.patch,15.02 KB, patch)
2022-07-07 23:34 UTC, jospezial
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2022-07-06 15:29:54 UTC
In file included from /usr/include/fmt/format.h:48,
                 from src/common/common.h:43,
                 from src/common/common_pch.h:1,
                 from src/common/bluray/track_chapter_names.cpp:14:
/usr/include/fmt/core.h: In instantiation of ‘constexpr fmt::v9::detail::value<Context> fmt::v9::detail::make_value(T&&) [with Context = fmt::v9::basic_format_context<fmt::v9::appender, char>; T = const std::filesystem::__cxx11::path&]’:
/usr/include/fmt/core.h:1753:29:   required from ‘constexpr fmt::v9::detail::value<Context> fmt::v9::detail::make_arg(T&&) [with bool IS_PACKED = true; Context = fmt::v9::basic_format_context<fmt::v9::appender, char>; type <anonymous> = fmt::v9::detail::type::custom_type; T = const std::filesystem::__cxx11::path&; typename std::enable_if<IS_PACKED, int>::type <anonymous> = 0]’
/usr/include/fmt/core.h:1877:77:   required from ‘constexpr fmt::v9::format_arg_store<Context, Args>::format_arg_store(T&& ...) [with T = {const std::filesystem::__cxx11::path&}; Context = fmt::v9::basic_format_context<fmt::v9::appender, char>; Args = {std::filesystem::__cxx11::path}]’
/usr/include/fmt/core.h:1894:38:   required from ‘constexpr fmt::v9::format_arg_store<Context, typename std::remove_cv<typename std::remove_reference<Args>::type>::type ...> fmt::v9::make_format_args(Args&& ...) [with Context = basic_format_context<appender, char>; Args = {const std::filesystem::__cxx11::path&}]’
/usr/include/fmt/core.h:3163:44:   required from ‘std::string fmt::v9::format(format_string<T ...>, T&& ...) [with T = {const std::filesystem::__cxx11::path&}; std::string = std::__cxx11::basic_string<char>; format_string<T ...> = basic_format_string<char, const std::filesystem::__cxx11::path&>]’
src/common/bluray/track_chapter_names.cpp:35:7:   required from here
/usr/include/fmt/core.h:1733:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
 1733 |       formattable,
      |       ^~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
 * ERROR: media-video/mkvtoolnix-67.0.0::gentoo failed (compile phase):
 *   (no error message)


Reproducible: Always




$ emerge --info
Portage 3.0.30 (python 3.10.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-12.1.1, glibc-2.35-r8, 5.18.9-gentoo x86_64)
=================================================================
System uname: Linux-5.18.9-gentoo-x86_64-AMD_Ryzen_9_5900X_12-Core_Processor-with-glibc2.35
KiB Mem:    65786640 total,  46702612 free
KiB Swap:    6291452 total,   6291452 free
Timestamp of repository gentoo: Wed, 06 Jul 2022 13:16:37 +0000
Head commit of repository gentoo: ae4f0233bf154b0eb00c3cfe77c2aebf2ca13bfd

Head commit of repository audio-overlay: 8c216b80bfd9c87d2e02bc84d400d724a5cb30ff

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.10.5::gentoo, 3.11.0_beta3::gentoo
dev-lang/rust:             1.62.0::gentoo
dev-util/cmake:            3.23.2::gentoo
dev-util/meson:            0.63.0::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.2::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6::gentoo
sys-devel/gcc:             12.1.1_p20220625::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6::gentoo
sys-devel/llvm:            14.0.6::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.18-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

audio-overlay
    location: /var/db/repos/audio-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-audio/audio-overlay.git
    masters: gentoo

local
    location: /var/db/repos/local
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
AR="ar"
CBUILD="x86_64-pc-linux-gnu"
CC="gcc"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="g++"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --autounmask-keep-masks"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
LINGUAS="en_US en"
MAKEOPTS="V=1 -j1"
NM="nm"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="ranlib"
SHELL="/bin/bash"
USE="X a52 aac aalib acl acpi activities alsa amd64 amr apache2 audiofile bash-completion bluray branding btrfs bzip2 cairo caps cdaudio cdda cddb cdparanoia cdr cdrdao chm chromecast cleartype cli corefonts crypt cups curl dbus declarative djvu dri dssi dts dv dvb dvd dvdr ebook egl encode exif fam fdk ffmpeg flac fortran gdbm gif gmp google gphoto2 gpm gstreamer gtk gtk3 gtk4 gui iconv icu imagemagick imap imlib introspection ipv6 jack java jpeg jpeg2k kde kpathsea kvm kwallet ladspa lame lash lcms libffi libglvnd libinput libnotify libtirpc linguas_en_US lm-sensors lv2 lzma mad marble midi mmap mng mozilla mp3 mp4 mpeg mtp multimedia musicbrainz ncurses network nls nodrm nptl nsplugin ofx ogg opencl openexr opengl openmp opus pam pango pcre pdf pipewire pipewire-alsa plasma png policykit ppds pulseaudio qemu qml qt5 readline rtmp sasl scanner screencast sdl seccomp semantic-desktop slp smp sndfile speex spell split-usr ssl startup-notification subversion svg systemd theora threads tiff tk transparency truetype type1 udev udisks unicode unwind upower usb v4l vaapi vcd vdpau vim-syntax vorbis vpx vst wav wavpack wayland webp widgets wmf wxwidgets x264 x265 xattr xcb xcomposite xine xkb xml xscreensaver xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="autoindex fancyindex fastcgi gzip" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="(-ruby23) (-ruby24) (-ruby25) (-ruby26) (-ruby27) ruby30 ruby31" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Chris Smith 2022-07-06 15:31:13 UTC
Created attachment 790325 [details]
build log
Comment 2 Tamas Jantvik 2022-07-06 16:18:13 UTC
This occurs with a keyworded dev-libs/libfmt, which installs v9.0.0. Having the stable version of dev-libs/libfmt (v8.1.1-r1) seems to allow for the compilation of the stable version of mkvtoolnix.
Comment 3 Chris Smith 2022-07-06 16:23:35 UTC
(In reply to Tamas Jantvik from comment #2)
> This occurs with a keyworded dev-libs/libfmt, which installs v9.0.0. Having
> the stable version of dev-libs/libfmt (v8.1.1-r1) seems to allow for the
> compilation of the stable version of mkvtoolnix.

I am running ACCEPT_KEYWORDS="~amd64" but no other special keywording or unmasking regarding dev-libs/libfmt.
Comment 4 Chris Smith 2022-07-06 16:25:29 UTC
But clearly a issue between dev-libs/libfmt-9.0.0 and media-video/mkvtoolnix-67.0.0.
Comment 5 Tamas Jantvik 2022-07-06 16:41:14 UTC
(In reply to Chris Smith from comment #3)
> (In reply to Tamas Jantvik from comment #2)
> > This occurs with a keyworded dev-libs/libfmt, which installs v9.0.0. Having
> > the stable version of dev-libs/libfmt (v8.1.1-r1) seems to allow for the
> > compilation of the stable version of mkvtoolnix.
> 
> I am running ACCEPT_KEYWORDS="~amd64" but no other special keywording or
> unmasking regarding dev-libs/libfmt.

I suppose the maintainer runs a stable system. :) But, if you install the stable version of libfmt, mkvtoolnix ought work.
Comment 6 jospezial 2022-07-06 18:13:23 UTC
The same with media-video/mkvtoolnix-68.0.0_pre::poly-c (overlay deleted!)
Comment 7 Larry the Git Cow gentoo-dev 2022-07-06 19:33:20 UTC
The bug has been closed via the following commit(s):

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

commit a06e4f4abc7cd3d83f1eb2605cd23d5d281d6237
Author:     Nick H <gerkola@gmail.com>
AuthorDate: 2022-07-06 18:37:54 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-06 19:29:58 +0000

    media-video/mkvtoolnix: libfmt version limit
    
    Closes: https://bugs.gentoo.org/856700
    Signed-off-by: Nick Herman <gerkola@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26243
    Signed-off-by: Sam James <sam@gentoo.org>

 media-video/mkvtoolnix/mkvtoolnix-60.0.0.ebuild | 1 +
 media-video/mkvtoolnix/mkvtoolnix-61.0.0.ebuild | 1 +
 media-video/mkvtoolnix/mkvtoolnix-64.0.0.ebuild | 1 +
 media-video/mkvtoolnix/mkvtoolnix-67.0.0.ebuild | 1 +
 4 files changed, 4 insertions(+)
Comment 8 Benjamin Réveillé 2022-07-06 19:55:11 UTC
(In reply to Larry the Git Cow from comment #7)
> The bug has been closed via the following commit(s):
> 
> https://gitweb.gentoo.org/repo/gentoo.git/commit/
> ?id=a06e4f4abc7cd3d83f1eb2605cd23d5d281d6237
> 
> commit a06e4f4abc7cd3d83f1eb2605cd23d5d281d6237
> Author:     Nick H <gerkola@gmail.com>
> AuthorDate: 2022-07-06 18:37:54 +0000
> Commit:     Sam James <sam@gentoo.org>
> CommitDate: 2022-07-06 19:29:58 +0000
> 
>     media-video/mkvtoolnix: libfmt version limit
>     
>     Closes: https://bugs.gentoo.org/856700
>     Signed-off-by: Nick Herman <gerkola@gmail.com>
>     Closes: https://github.com/gentoo/gentoo/pull/26243
>     Signed-off-by: Sam James <sam@gentoo.org>
> 
>  media-video/mkvtoolnix/mkvtoolnix-60.0.0.ebuild | 1 +
>  media-video/mkvtoolnix/mkvtoolnix-61.0.0.ebuild | 1 +
>  media-video/mkvtoolnix/mkvtoolnix-64.0.0.ebuild | 1 +
>  media-video/mkvtoolnix/mkvtoolnix-67.0.0.ebuild | 1 +
>  4 files changed, 4 insertions(+)

You can do the same thing to kodi-19.4-r1 which also does not like libfmt-9.0.0
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-07 22:16:49 UTC
*** Bug 856817 has been marked as a duplicate of this bug. ***
Comment 10 jospezial 2022-07-07 23:31:27 UTC
upstream fix:
https://gitlab.com/mbunkus/mkvtoolnix/-/commit/1e1076e43fe8f38e33246fff3ce8651a93c371d9

>>> Preparing source in /var/tmp/portage/media-video/mkvtoolnix-68.0.0_pre/work/mkvtoolnix-68.0.0 ...
 * Applying mkvtoolnix-58.0.0-qt5dbus.patch ...
 [ ok ]
 * Applying mkvtoolnix-67.0.0-no-uic-qtwidgets.patch ...
 [ ok ]
 * =============================================================================================================================================================================================================================
 * Applying user patches from /etc/portage/patches ...
 * Applying mkvtoolnix_fmt-9.0.0.patch ...
patching file NEWS.md
Hunk #1 FAILED at 5.
1 out of 1 hunk FAILED -- saving rejects to file NEWS.md.rej
patching file src/common/aac.h
patching file src/common/bcp47.h
patching file src/common/bluray/track_chapter_names.cpp
patching file src/common/error.h
patching file src/common/fourcc.h
patching file src/common/kax_analyzer.h
patching file src/common/math_fwd.h
patching file src/common/mm_io_x.h
patching file src/common/opus.h
patching file src/common/path.h
patching file src/common/qt.h
patching file src/common/strings/formatting.h
patching file src/common/translation.h
patching file src/input/r_flac.cpp
patching file src/input/r_flv.h
patching file src/input/r_mpeg_ps.h
patching file src/input/r_ogm_flac.cpp
patching file src/input/r_qtmp4.h
patching file src/merge/item_selector.h
patching file src/propedit/attachment_target.cpp
patching file src/propedit/attachment_target.h
patching file src/propedit/tag_target.cpp
patching file src/propedit/track_target.cpp
 [ !! ]
 * ERROR: media-video/mkvtoolnix-68.0.0_pre::poly-c failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/media-video/mkvtoolnix/mkvtoolnix_fmt-9.0.0.patch
 * 
 * Call stack:
 *               ebuild.sh, line  122:  Called src_prepare
 *             environment, line 2216:  Called default
 *      phase-functions.sh, line  858:  Called default_src_prepare
 *      phase-functions.sh, line  934:  Called __eapi8_src_prepare
 *             environment, line  400:  Called eapply_user
 *             environment, line 1090:  Called eapply '/etc/portage/patches/media-video/mkvtoolnix/mkvtoolnix_fmt-9.0.0.patch'
 *             environment, line 1053:  Called _eapply_patch '/etc/portage/patches/media-video/mkvtoolnix/mkvtoolnix_fmt-9.0.0.patch'
 *             environment, line  991:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/media-video/mkvtoolnix/mkvtoolnix_fmt-9.0.0.patch'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *              die "$@"
 * 

After removing the failing hunk the patch applies cleanly.
media-video/mkvtoolnix-68.0.0_pre merged.
mkvtoolnix gui starts.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-07 23:32:32 UTC
(In reply to jospezial from comment #10)
> upstream fix:
> https://gitlab.com/mbunkus/mkvtoolnix/-/commit/
> 1e1076e43fe8f38e33246fff3ce8651a93c371d9
> 

Thanks for sharing. I'll add it in.
Comment 12 jospezial 2022-07-07 23:34:49 UTC
Created attachment 790577 [details, diff]
modified upstream patch
Comment 13 Larry the Git Cow gentoo-dev 2022-07-08 07:41:59 UTC
The bug has been closed via the following commit(s):

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

commit f540e45e45c69b1ea77737aaeae82338c7cae4b6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-08 07:27:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-08 07:41:46 +0000

    media-video/mkvtoolnix: fix build with newer fmt; add missing qtsvg dep
    
    Closes: https://bugs.gentoo.org/856700
    Signed-off-by: Sam James <sam@gentoo.org>

 .../mkvtoolnix/files/mkvtoolnix-68.0.0-fmt-9.patch | 293 +++++++++++++++++++++
 ...x-68.0.0.ebuild => mkvtoolnix-68.0.0-r1.ebuild} |   2 +
 2 files changed, 295 insertions(+)