Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 267702

Summary: media-sound/kwave-0.8.2 fails to build if no available LINGUAS are specified
Product: Gentoo Linux Reporter: Davide Cendron (RETIRED) <scen>
Component: Current packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: normal CC: arttuv69, Thomas.Eschenbacher
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Should enable empty LINGUAS handling for kwave-0.8.2

Description Davide Cendron (RETIRED) gentoo-dev 2009-04-27 21:15:45 UTC
media-sound/kwave-0.8.2 fails to build if i can't specify any value for LINGUAS variable. I'm using LINGUAS="it" in my /etc/make.conf, but kwave-0.8.2 has only:

KDE_LINGUAS="cs de en fr"

So emerge says:

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-sound/kwave-0.8.2  USE="alsa doc flac mmx mp3 ogg oss -debug" LINGUAS="-cs -de -en -fr" 0 kB

but it fails with the following error:

Generating VolumePlugin.moc                                                     
[  0%] Built target plugin_sonagram_automoc                                     
Scanning dependencies of target plugin_zero_automoc                             
[  0%] Built target plugin_volume_automoc                                       
Scanning dependencies of target translations                                    
Generating ZeroPlugin.moc                                                       
make[2]: *** No rule to make target
`/var/tmp/portage/media-sound/kwave-0.8.2/work/kwave-0.8.2/po/cs.po', needed by `po/cs.gmo'.  Stop.                                                 
make[1]: *** [po/CMakeFiles/translations.dir/all] Error 2                       
make[1]: *** Waiting for unfinished jobs....                                    
[  0%] Built target plugin_zero_automoc                                         
make: *** [all] Error 2                                                         
 *                                                                              
 * ERROR: media-sound/kwave-0.8.2 failed.                                       
 * Call stack:                                                                  
 *               ebuild.sh, line   49:  Called src_compile                      
 *             environment, line 3157:  Called kde4-base_src_compile            
 *             environment, line 2356:  Called cmake-utils_src_compile          
 *             environment, line  801:  Called cmake-utils_src_make             
 *             environment, line  880:  Called die                              
 * The specific snippet of code:                                                
 *           emake "$@" || die "Make failed!";                                  
 *  The die message:                                                            
 *   Make failed!

I partially solved this problem adding "en" to my LINGUAS var.

This is my emerge --info:

Portage 2.2_rc31 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Athlon-tm-_64_Processor_3800+-with-glibc2.2.5
Timestamp of tree: Mon, 27 Apr 2009 18:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.3-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.2/env /usr/kde/4.2/share/config /usr/kde/4.2/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/var/tmp/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.supp.name/ http://ftp.klid.dk/ftp/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://mirror.netcologne.de/gentoo/ http://mirror.bih.net.ba/gentoo/"
LANG="it_IT.utf8@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/var/tmp/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X a52 acpi alsa amd64 berkdb bluetooth branding bzip2 cdr cli cracklib crypt cups dbus dri dv dvd dvdr dvdread eds emboss encode evo firefox flac fortran gif gpm hal iconv isdnlog jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdeprefix libnotify midi mmx mng mp3 mpeg mudflap multilib musepack ncurses nls nptl nptlonly ogg opengl openmp pch pcre pdf perl png ppds pppd python qt3 qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb v4l vorbis wavpack xml xorg xulrunner xvmc zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse penmount evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="fbdev nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Arttu Valo 2009-04-28 14:04:40 UTC
Created attachment 189712 [details, diff]
Should enable empty LINGUAS handling for kwave-0.8.2

Adds a small test around the portion of po/CMakeLists.txt which creates po-files, and thus hopefully enables compilation with empty LINGUAS. Worked for me.
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2009-04-28 19:45:40 UTC
Tested, confirmed, patched.
Thanks
Comment 3 Arttu Valo 2009-04-29 15:07:27 UTC
 * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
 *                                                          
 *   0.8.2-fix_gettext.patch                                
 *   ( 0.8.2-fix_gettext.patch )

Had to add the FILESDIR in the PATCHES to make it work:

PATCHES=( "${FILESDIR}/${PV}-fix_gettext.patch" )

Peeking into base.eclass's "base_src_util autopatch", the FILESDIR should probably be there, it won't get added in front (prepended or however one wants to call it).
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-04-29 15:16:22 UTC
(In reply to comment #3)
>  * Cannot find $EPATCH_SOURCE!  Value for $EPATCH_SOURCE is:
>  *                                                          
>  *   0.8.2-fix_gettext.patch                                
>  *   ( 0.8.2-fix_gettext.patch )
> 
> Had to add the FILESDIR in the PATCHES to make it work:
> 
> PATCHES=( "${FILESDIR}/${PV}-fix_gettext.patch" )
> 
> Peeking into base.eclass's "base_src_util autopatch", the FILESDIR should
> probably be there, it won't get added in front (prepended or however one wants
> to call it).
> 

Whoops, fixed, sorry, i have it overriden with overlay ebuild, so i thought it is ok :D
Comment 5 Thomas 2009-09-27 17:26:12 UTC
this patch is still required for v0.8.3 and v0.8.4. As nobody filed an upstream bug, I will fix that for v0.8.5 only.