Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 482968 - media-video/mplayer-1.2_pre20130729 LINGUAS=zh - make: *** No rule to make target `DOCS/xml/zh_CN/main.xml', needed by `DOCS/HTML/zh_CN/dummy.html'. Stop.
Summary: media-video/mplayer-1.2_pre20130729 LINGUAS=zh - make: *** No rule to make ta...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 517692
  Show dependency tree
 
Reported: 2013-08-30 00:31 UTC by Hamlet
Modified: 2014-07-21 15:22 UTC (History)
0 users

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


Attachments
Build log (build.log,246.29 KB, text/plain)
2013-08-31 19:39 UTC, Hamlet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hamlet 2013-08-30 00:31:31 UTC
When using the "doc" flag, the documentation language(s) is taken from LINGUAS.
The lingua "zh" causes a compilation failure.

Analysis: languages are picked by LINGUAS variable. mplayer supports chinese as "zh_CN".
The configure script checks all the supported languages in LINGUAS for documentation and, for each one, creates a DOCS/xml/LANGCODE/main.xml .
Configure finds zh (and zh_TW etc.) and skips it as unsupported.

Later (src_compile), the ebuild replaces zh with zh_CN and then makes "html-chunked-zh_CN". But that requires DOCS/xml/zh_CN/main.xml , which was not created. That makes make to complain.

Solution: apply the substitution "zh" => "zh_CN" in LINGUAS also in the configuration phase.

Also: it appears that the substitution should be more careful: if "zh_CN" is specified in LINGUAS, it will be correctly picked by configure but then the ebuild will substitute "zh" => "zh_CN" and will try to compile the documentation for the language "zh_CN_CN", which is not in the ALLOWED_LINGUAS and then skipped. Result: no Chinese documentation. If instead /both/ zh and zh_CN are specified, then it should work (not tested).

Workaround if you are in a hurry: add or remove both "zh_CN" and "zh" in LINGUAS, or USE='-doc'.

Reproducible: Always

Steps to Reproduce:
1. LINGUAS="en it zh zh_TW" USE=doc  emerge =media-video/mplayer-1.2_pre20130729
Actual Results:  
Compilation of the code succeeds, compilation of the English and Italian documentation succeeds (the Taiwanese documentation would be skipped because not supported) but when it comes to Chinese:

make -j4 -j1 html-chunked-zh_CN 
make: *** No rule to make target `DOCS/xml/zh_CN/main.xml', needed by `DOCS/HTML/zh_CN/dummy.html'.  Stop.


Expected Results:  
The simplified (mainland) Chinese documentation is supported by mplayer and it should be compiled in.

Portage 2.2.1 (default/linux/amd64/13.0/desktop/kde, gcc-4.6.3, glibc-2.15-r3, 3.10.0-gentoo x86_64)
=================================================================
System uname: Linux-3.10.0-gentoo-x86_64-Intel-R-_Core-TM-_i7-2620M_CPU_@_2.70GHz-with-gentoo-2.2
KiB Mem:     3988436 total,    495800 free
KiB Swap:    8387580 total,   8387480 free
Timestamp of tree: Tue, 27 Aug 2013 23:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r2, 3.2.5-r2, 3.3.2-r2
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.10 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 AdobeFlash-10.1 Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4.1 -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-march=core2 -msse4.1 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.mcs.anl.gov/pub/gentoo ftp://gentoo.cites.uiuc.edu/pub/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X Xaw3d a52 aac aalib accessibility acl acpi alsa amd64 anthy ao apache2 apm apng audiofile avahi bash-completion bcmath berkdb blas bluetooth branding bzip2 cairo calendar caps cblas cdda cddb cdr cgi cjk cli consolekit cracklib crypt cscope css ctype cups curl curlwrappers cvs cxx dbus dbx declarative dga djvu dot dri dts dvd dvdr dvdread emacs embedded emboss encode enscript exif expat fam fastcgi ffmpeg fftw firefox flac fontconfig foomaticdb fortran ftp gcj gd gdbm geoip gif gimp ginac glut gmp gnuplot gnutls gpm gps graphviz gsl gstreamer gtk hal hddtemp hyperwave-api iconv icq idn ieee1394 imagemagick imap imlib immqt-bc ipv6 jabber jack jadetex java java6 javascript jingle joystick jpeg jpeg2k kde kerberos kipi kpathsea lame lapack lash latex lcms ldap libcaca libnotify libsamplerate libwww lm_sensors lzo m17n-lib mad maildir mailwrapper matroska mbox mcal mhash midi mikmod mime mmap mmx mng mod modplug modules motif mozilla mp3 mp4 mpeg mplayer mtp mudflap multilib musepack mysql mysqli ncurses nls nntp nptl nsplugin offensive ogg openal openexr opengl openmp openssl pam pango pcntl pcre pdf perl phonon php plasma plotutils png policykit portaudio posix ppds python qt3 qt3support qt4 quicktime raw rdesktop readline recode rss ruby sasl scim sdl seamonkey semantic-desktop session sharedext sharedmem shorten simplexml skey slang slp sndfile sockets sox speex spell spl sql sqlite sse sse2 ssl startup-notification subversion svg syslog sysvipc szip taglib tcl tcpd theora threads tidy tiff timidity tk tokenizer truetype udev udisks unicode upower usb v4l vcd vhosts video vim-syntax vnc vorbis wav wavpack win32codecs wmf wxwidgets wxwindows x264 xattr xcb xcomposite xemacs xface xine xinerama xml xmlrpc xmpp xosd xpm xscreensaver xsl xterm xulrunner xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel dummy loopback" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="caps lvm ssh-client syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse vmmouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en it zh zh_TW" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="v4l intel" 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-08-30 13:03:56 UTC
Please attach the entire build log to this bug report.
Comment 2 Hamlet 2013-08-31 19:39:50 UTC
Created attachment 357532 [details]
Build log

From: LINGUAS="en it zh zh_TW" USE=doc  emerge =media-video/mplayer-1.2_pre20130729
Comment 3 Hamlet 2013-08-31 19:40:36 UTC
The only part which is relevant is the configure part. Note the "language" line.
The `make -j4 -j1 html-chunked-zh_CN` in the line reported above directly comes from the ebuild and it is independent of the rest.
The file being complained would be created by configure.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2014-07-21 15:22:15 UTC
reproduced by...

LINGUAS="zh zh_XX" fails
LINGUAS="zh zh_CN" works because it includes zh_CN which is the only zh language supported
LINGUAS="zh_CN" works

fixed by...

[[ -n $LINGUAS ]] && LINGUAS="${LINGUAS/zh/zh_CN}" #482968