Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 904710 - media-video/mkvtoolnix-75.0.0 fails build with -nls useflag
Summary: media-video/mkvtoolnix-75.0.0 fails build with -nls useflag
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:
Depends on:
Blocks:
 
Reported: 2023-04-20 13:59 UTC by Maxim Britov
Modified: 2023-05-07 22:34 UTC (History)
1 user (show)

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


Attachments
build logs (media-video:mkvtoolnix-75.0.0:20230420-132429.log,777.87 KB, text/plain)
2023-04-20 14:01 UTC, Maxim Britov
Details
emerge --info '=media-video/mkvtoolnix-75.0.0::gentoo' (4buginfo.txt,7.40 KB, text/plain)
2023-04-20 14:03 UTC, Maxim Britov
Details
build log of media-video/mkvtoolnix-75.0.0 (build.log,809.43 KB, text/x-log)
2023-04-25 03:33 UTC, Drunkard Zhang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maxim Britov 2023-04-20 13:59:13 UTC
media-video/mkvtoolnix-75.0.0 fails build with -nls useflag.
USE='nls' emerge mkvtoolnix builds fine

      XSLTPROC doc/man/mkvmerge.xml
/usr/bin/xsltproc --nonet --maxdepth 10000 -o doc/man/mkvmerge.1 /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl doc/man/mkvmerge.xml
      XSLTPROC doc/man/mkvtoolnix-gui.xml
/usr/bin/xsltproc --nonet --maxdepth 10000 -o doc/man/mkvtoolnix-gui.1 /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl doc/man/mkvtoolnix-gui.xml
      XSLTPROC doc/man/mkvinfo.xml
/usr/bin/xsltproc --nonet --maxdepth 10000 -o doc/man/mkvinfo.1 /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl doc/man/mkvinfo.xml
      XSLTPROC doc/man/mkvextract.xml
/usr/bin/xsltproc --nonet --maxdepth 10000 -o doc/man/mkvextract.1 /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl doc/man/mkvextract.xml
Note: Writing mkvtoolnix-gui.1
Note: Writing mkvinfo.1
      XSLTPROC doc/man/mkvpropedit.xml
/usr/bin/xsltproc --nonet --maxdepth 10000 -o doc/man/mkvpropedit.1 /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl doc/man/mkvpropedit.xml
Note: Writing mkvextract.1
Note: Writing mkvpropedit.1
Note: Writing mkvmerge.1
          PO4A doc/man/po4a/po4a.cfg
false -k 0 --msgmerge-opt=--no-wrap doc/man/po4a/po4a.cfg
 * ERROR: media-video/mkvtoolnix-75.0.0::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 2180:  Called die
 * The specific snippet of code:
 *       rake V=1 -j$(makeopts_jobs) || die

Reproducible: Always
Comment 1 Maxim Britov 2023-04-20 14:01:25 UTC
Created attachment 860433 [details]
build logs
Comment 2 Maxim Britov 2023-04-20 14:03:36 UTC
Created attachment 860434 [details]
emerge --info '=media-video/mkvtoolnix-75.0.0::gentoo'
Comment 3 Maxim Britov 2023-04-20 14:45:17 UTC
Builds fine without 

$(usex nls "" --with-po4a=false)
Comment 4 James Le Cuirot gentoo-dev 2023-04-20 20:50:34 UTC
I can't reproduce this. I get those XSLTPROC and "Note: Writing" lines but nothing about PO4A.
Comment 5 Drunkard Zhang 2023-04-25 03:32:27 UTC
Same here, didn't see any error, build just not finished.

Updated from media-video/mkvtoolnix-72.0.0, build always fails with USE=-nls, build passed with USE=nls; rebuild with USE=-nls fails too.


10:59:02 ~ # emerge --info =media-video/mkvtoolnix-75.0.0
Portage 3.0.46 (python 3.10.11-final-0, default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr, gcc-12, glibc-2.37-r2, 6.2.9-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.2.9-gentoo-x86_64-Intel-R-_Core-TM-_i7-6700HQ_CPU_@_2.60GHz-with-glibc2.37
KiB Mem:    24479780 total,    878588 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: 748e9dce23e5f73f2f3938912b9e7fac04b92bce

sh bash 5.2_p15-r2
ld GNU ld (Gentoo 2.40 p4) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p15-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0-r2::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.9.16_p3::gentoo, 3.10.11::gentoo, 3.11.3::gentoo, 3.12.0_alpha7::gentoo
dev-lang/rust-bin:         1.69.0::gentoo
dev-util/cmake:            3.26.3::gentoo
dev-util/meson:            1.1.0::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.30-r1::gentoo
sys-apps/systemd:          253.3::gentoo
sys-devel/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r4::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           14.0.6-r1::gentoo, 15.0.7-r1::gentoo, 16.0.2::gentoo
sys-devel/gcc:             12.2.1_p20230304::gentoo
sys-devel/gcc-config:      2.10::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.2::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.7::gentoo, 16.0.2::gentoo
sys-devel/make:            4.4.1::gentoo
sys-kernel/linux-headers:  6.2::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r2::gentoo
Repositories:

gnome
    location: /var/db/repos/gnome
    masters: gentoo
    volatile: False

drunkard
    location: /var/lib/layman/drunkard
    masters: gentoo
    priority: 50
    volatile: True

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    masters: gentoo
    priority: 50
    volatile: True

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 50
    volatile: True

tlp
    location: /var/lib/layman/tlp
    masters: gentoo
    priority: 60
    volatile: True

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: git://anongit.gentoo.org/repo/gentoo.git
    priority: 9999
    volatile: True

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=haswell -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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"
CXXFLAGS="-O2 -march=haswell -pipe"
DISTDIR="/dev/shm//distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nodoc noinfo 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://mirrors.ustc.edu.cn/gentoo/ http://mirrors.aliyun.com/gentoo/ http://mirrors.sohu.com/gentoo/ http://mirrors.kernel.org/gentoo/ "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="zh zh-CN zh-HK zh-TW zh_CN zh_HK zh_TW en ru de bo ug"
PKGDIR="/usr/portage/packages"
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="/dev/shm/"
SHELL="/bin/bash"
USE="X a52 aac aalib accessibility acl acpi aio alsa amd64 amr amrenc ao ap apm audit bash-completion bluetooth bluray branding broadway bzip2 cairo caps cdda cjk cleartype cli colord cracklib crypt cups dbus dga djvu dri dri3 drm dts dvd dvdr eds egl encode epoll evo exif ffmpeg flac flite fontconfig fortran gallium gconf gdbm gegl geoip gif gimp glamor gles gles2 gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtk4 gui hidpi http2 iconv icu idn imagemagick inotify introspection ipv6 jack jit jpeg jpeg2k kdbus kms lcms libass libbluray libglvnd libinput libnotify libsecret libtirpc linguas_bo linguas_de linguas_en linguas_ru linguas_ug linguas_zh linguas_zh_CN linguas_zh_HK linguas_zh_TW lto lz4 lzma lzo mad mime minizip mmap mng mp3 mp4 mpeg mtp multilib natspec nautilus ncurses networkmanager nls nptl ogg openal opencc opencl openexr opengl openmp opus pam pango pcre pdf png policykit postgres postscript ppds pulseaudio raw readline realtime sdl seccomp sftp smp sound ssh ssl startup-notification svg systemd test-rust theora threads tiff tracker truetype udev udisks unicode upower urandom usb usbredir v4l v4l2 vaapi vdpau vim-syntax vorbis vpx vulkan wayland webp wifi wxwidgets x264 x265 xattr xcb xft xinerama xkb xml xmp xpm xps xrandr xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" 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 pc" INPUT_DEVICES="evdev keyboard libinput mouse" KERNEL="linux" L10N="zh zh-CN zh-HK zh-TW zh_CN zh_HK zh_TW en ru de bo ug" 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" 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="arm i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby30 ruby31" SANE_BACKENDS="hp hp3500" USERLAND="GNU" VIDEO_CARDS="nouveau intel i965 v4l" 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, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, MAKEOPTS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

media-video/mkvtoolnix-75.0.0::gentoo was built with the following:
USE="dvd gui nls -dbus -debug (-pch) -test" ABI_X86="(64)"
FEATURES="config-protect-if-modified network-sandbox qa-unresolved-soname-deps parallel-fetch ebuild-locks sandbox multilib-strict binpkg-logs userpriv fixlafiles unmerge-logs usersandbox assume-digests userfetch protect-owned distlocks buildpkg-live merge-sync news pid-sandbox sfperms preserve-libs xattr unmerge-orphans binpkg-dostrip strict noinfo binpkg-multi-instance unknown-features-warn nodoc ipc-sandbox binpkg-docompress usersync downgrade-backup"
Comment 6 Drunkard Zhang 2023-04-25 03:33:01 UTC
Created attachment 860726 [details]
build log of media-video/mkvtoolnix-75.0.0
Comment 7 Fab 2023-04-25 17:25:27 UTC
Hi,

Have a look at ยน. There is some interesting comments from the developer :
>
> This is probably due to a4e294ba. Current versions of po4a complain that
> the use of po4a-translate was deprecated and that po4a should be used
> directly. That's what I implemented in that commit. It's quite possible
> that this messed up building without po4a.

And :
> While that will probably fix the issue, I'll also look into building
> without it, as it wasn't strictly required prior to v72. po4a is only
> needed for the translated man pages (not for the English ones, though).

1. https://gitlab.com/mbunkus/mkvtoolnix/-/issues/3437
Comment 8 Larry the Git Cow gentoo-dev 2023-05-06 09:48:53 UTC
The bug has been closed via the following commit(s):

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

commit 48bbea71141237cb25eaf68128549a9ed539ea33
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2023-05-06 09:47:39 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2023-05-06 09:47:50 +0000

    media-video/mkvtoolnix: Work around issue when building with USE=-nls
    
    This issue was only evident when LINGUAS included a supported language
    other than English, such as ru.
    
    Closes: https://bugs.gentoo.org/904710
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 media-video/mkvtoolnix/mkvtoolnix-75.0.0.ebuild | 5 ++++-
 media-video/mkvtoolnix/mkvtoolnix-9999.ebuild   | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
Comment 9 stefan11111 2023-05-07 22:33:11 UTC
I don't know much about ebuilds, but doesn't this patch make it so that the same code gets compiled with or without USE="nls"?
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-07 22:34:07 UTC
(In reply to stefan11111 from comment #9)
> I don't know much about ebuilds, but doesn't this patch make it so that the
> same code gets compiled with or without USE="nls"?

No, it forces the po4a test off w/ USE=-nls.