Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642528 - media-plugins/vdr-ttxtsubs-0.3.0 - emerge failed
Summary: media-plugins/vdr-ttxtsubs-0.3.0 - emerge failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords:
: 691602 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-28 15:00 UTC by Yarda
Modified: 2019-12-11 20:10 UTC (History)
4 users (show)

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


Attachments
build log (build.log,17.96 KB, text/x-log)
2017-12-28 15:00 UTC, Yarda
Details
Patch for package media-plugins/vdr-ttxtsubs-0.3.0 (ttxtsubs.patch,2.96 KB, patch)
2018-02-25 20:34 UTC, jkb
Details | Diff
Patch for package media-video/vdr-2.2.0-r2 (ttxtsubs.patch,2.96 KB, patch)
2018-02-25 20:36 UTC, jkb
Details | Diff
ebuild with patch routine (vdr-ttxtsubs-0.3.0-r1.ebuild,611 bytes, text/plain)
2019-11-13 16:56 UTC, Joerg Bornkessel
Details
${FILESDIR}/vdr-ttxtsubs-0.3.0_teletext-chars.patch (vdr-ttxtsubs-0.3.0_teletext-chars.patch,2.91 KB, patch)
2019-11-13 17:02 UTC, Joerg Bornkessel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yarda 2017-12-28 15:00:59 UTC
Created attachment 511828 [details]
build log

...
teletext-chars.h:84:1: error: narrowing conversion of ‘'\37777777774'’ from ‘char’ to ‘uint8_t {aka unsigned char}’ inside { } [-Wnarrowing]
make: *** [Makefile:65: teletext.o] Error 1
make: *** Waiting for unfinished jobs....
ttxtsubschannelsettings.c: In member function ‘bool cTtxtSubsChannelSetting::Parse(const char*)’:
ttxtsubschannelsettings.c:41:72: warning: format ‘%a’ expects argument of type ‘float*’, but argument 3 has type ‘char**’ [-Wformat=]
    if (3 == sscanf(s, "%a[^,],%d,%d\n", &buffer, &PageMode, &PageNumber)) {
                                                                        ^
 * ERROR: media-plugins/vdr-ttxtsubs-0.3.0::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=media-plugins/vdr-ttxtsubs-0.3.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=media-plugins/vdr-ttxtsubs-0.3.0::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/media-plugins/vdr-ttxtsubs-0.3.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-plugins/vdr-ttxtsubs-0.3.0/temp/environment'.
 * Working directory: '/var/tmp/portage/media-plugins/vdr-ttxtsubs-0.3.0/work/ttxtsubs-0.3.0'
 * S: '/var/tmp/portage/media-plugins/vdr-ttxtsubs-0.3.0/work/ttxtsubs-0.3.0'

>>> Failed to emerge media-plugins/vdr-ttxtsubs-0.3.0, Log file:


# emerge --info
Portage 2.3.13 (python 2.7.14-final-0, default/linux/amd64/17.0/desktop, gcc-6.4.0, glibc-2.25-r9, 4.9.34-gentoo x86_64)
=================================================================
System uname: Linux-4.9.34-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6400+-with-gentoo-2.4.1
KiB Mem:     8181320 total,   3707112 free
KiB Swap:   17407996 total,  17407996 free
Timestamp of repository gentoo: Thu, 28 Dec 2017 09:45:01 +0000
Head commit of repository gentoo: 0a99f47e6179eea4c5958b380f155f8b3f78c62f
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.10.3-r2::gentoo, 1.11.6-r2::gentoo, 1.14.1-r1::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo, 6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

fedora
    location: /var/lib/layman/fedora
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CC="gcc"
CFLAGS="-O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXX="g++"
CXXFLAGS="-O2 -march=athlon64 -mtune=athlon64 -pipe -fstack-protector"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks fixlafiles merge-sync multilib-strict news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo"
LANG="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -l2.0"
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="/var/tmp"
USE="3dnow 3dnowext 7zip X X509 a52 aac aalib acl acpi additions afterimage aio alsa amd64 amr amrnb amrwb apache2 apng artswrappersuid authfile auto-hinter bash-completion berkdb blender-game bluetooth branding bzip2 cairo ccache cdda cddb cdio cdr cdrom cdsound cgi chroot clamav clamd clang cli cmdsubmenu consolekit cracklib crypt cscope cuda cups custom-cflags custom-optimization cxx dbus declarative dedicated device-mapper dia directfb doc down-root dri dts dv dvb dvd dvdnav dvdr dynload emboss emerald enca encode exif extensions extra fam fat fbcon ffmpeg fftw firefox flac flash fontconfig fortran freetts ftp fts3 fuse g3dvl gallium games gbm gd gdbm gdu geoip gif glamor glitz glut gmp gpm graphics gstreamer gtk gudev harfbuzz hddtemp hpn humanities iconv icq icu ident iptv ipv6 irc jabber jadetex jamu java javafx javascript jit joystick jpeg kdrive kerberos kpathsea laptop lcms ldap libcaca libnotify libsamplerate lirc lm_sensors logrotate logwatch lzma lzo mad mainmenuhooks math mbrola md5sum mikmod minizip mmxext mng mod modules mouse mozdevelop mp2 mp3 mp4 mpeg mpeg2 mpeg3 mplayer msn multilib multislot multiuser music mysql mysqli nas ncurses nls nptl nsplugin ntfs ntfsprogs nvidia nvram ogg opencl opengl openmp pam pango pcre pda pdf php pixbuf png policykit ppds pstricks publishers python qt3support qt5 rar rdesktop readline rss rtc rtsp samba sasl savedconfig science screen sdl seamonkey seccomp sensord session setup setup-plugin sip sipim slang smime sound sounds sox spell srt sse3 ssl startup-notification stream submenu subtitles subversion suid svg sysfs syslog system-cairo system-icu system-jpeg system-sqlite tcpd tex4ht theora threads threadsafe tiff timercmd timerinfo tk truetype ttxtsubs udev udisks unicode unsupported upnp upower usb uvm v4l2 vcd vdpau vdr vim-syntax vim-with-x vlc vnc volctrl vorbis wav wifi wmf wxwidgets wxwindows x264 x265 xattr xcb xcomposite xetex xft xine xinerama xml xosd xplanet xpm xscreensaver xv xvid xvmc zip zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests lbmethod_bytraffic lbmethod_bybusyness lbmethod_heartbeat log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev joystick" KERNEL="linux" L10N="cs en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="cs en" LIRC_DEVICES="devinput" NETBEANS_MODULES="cnd dlight enterprise ergonomics groovy identity mobility php profiler ruby apisupport harness ide java nb websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Nico R. 2018-01-28 13:15:07 UTC
File teletext-chars.h is encoded in ISO-8859-1 (or something similar), this is what causes the error.

Applying the upstream patch <https://projects.vdr-developer.org/git/vdr-plugin-ttxtsubs.git/commit/?id=ac89f6a027bf2cecafe376dd9deef7cfd80c0ac3> solves the problem.
Comment 2 jkb 2018-02-25 20:34:41 UTC
Created attachment 521046 [details, diff]
Patch for package media-plugins/vdr-ttxtsubs-0.3.0
Comment 3 jkb 2018-02-25 20:36:54 UTC
Created attachment 521048 [details, diff]
Patch for package media-video/vdr-2.2.0-r2
Comment 4 jkb 2018-02-25 20:37:35 UTC
I can confirm what Nico R. said.

Applied patch available from
https://projects.vdr-developer.org/git/vdr-plugin-ttxtsubs.git/patch/?id=8a001327637ad46150d87aadb5a36f524eacd850
to package media-video/vdr-2.2.0-r2.

Applied patch available from 
https://projects.vdr-developer.org/git/vdr-plugin-ttxtsubs.git/patch/?id=ac89f6a027bf2cecafe376dd9deef7cfd80c0ac3
to package media-plugins/vdr-ttxtsubs-0.3.0.

Both packages will then compile successfully and teletext subtitles will work within VDR.
Comment 5 Joerg Bornkessel 2019-11-13 16:55:24 UTC
wrong patch vor vdr-2.2.0-r2 applied !!!

anyway
we have allready the patch for in vdr-2.2.0-rx
but, i am not shure, that we use the latest patchset from ville.skytta (rofafor)
Comment 6 Joerg Bornkessel 2019-11-13 16:56:36 UTC
Created attachment 596008 [details]
ebuild with patch routine
Comment 7 Joerg Bornkessel 2019-11-13 17:02:46 UTC
Created attachment 596012 [details, diff]
${FILESDIR}/vdr-ttxtsubs-0.3.0_teletext-chars.patch

please test this attached ebuild + patch on your setup

i have tested this only for compile, it works
i dont have a setup with teletext

ebuild goes to your local ebuild dir media-plugins/vdr-txtsubs
patch goes to your local ebuild dir media-plgins/vdr/files

feedback please
Comment 8 Joerg Bornkessel 2019-11-13 17:04:54 UTC
(In reply to Joerg Bornkessel from comment #7)
> Created attachment 596012 [details, diff] [details, diff]
> ${FILESDIR}/vdr-ttxtsubs-0.3.0_teletext-chars.patch
> 
> please test this attached ebuild + patch on your setup
> 
> i have tested this only for compile, it works
> i dont have a setup with teletext
> 
> ebuild goes to your local ebuild dir media-plugins/vdr-ttxtsubs
> patch goes to your local ebuild dir media-plugins/vdr-ttxtsubs/files
> 
> feedback please

typo corrected
Comment 9 Toralf Förster gentoo-dev 2019-11-15 09:16:22 UTC
*** Bug 691602 has been marked as a duplicate of this bug. ***
Comment 10 Joerg Bornkessel (RETIRED) gentoo-dev 2019-12-11 20:10:36 UTC
fixed by
commit 9fdb0c8627a5bb7d6dcb6b7527e2245ffe999c38

media-plugins/vdr-ttxtsubs-0.3.0-r1

commit will fix fail on compile
thanks to Nico Roeser, he point this out
moved to eapi=7