Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 304823 - www-client/midori-9999: fails to emerge but manual configure&make works
Summary: www-client/midori-9999: fails to emerge but manual configure&make works
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-13 08:33 UTC by Dolores
Modified: 2015-07-05 09:38 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dolores 2010-02-13 08:33:20 UTC
The code of midori itself works manually:
cd /var/tmp/portage/www-client/midori-9999/work/midori-9999/
./configure
./waf
I tried a simple ebuild (just configure and waf like above) but it failed the same.
Last time it worked on my box was Fri Jan  8 22:11:12 2010 >>> www-client/midori-9999.

Reproducible: Always

Steps to Reproduce:
1. Unmask www-client/midori-9999
2. emerge -1 =www-client/midori-9999


Actual Results:  
Traceback (most recent call last):                                          
  File "./waf", line 127, in <module>                                       
    Scripting.prepare(t, cwd, VERSION, wafdir)                              
  File "/var/tmp/portage/www-client/midori-9999/work/midori-9999/.waf-1.5.3-575529c232c0559c3efb0adb3d077447/wafadmin/Scripting.py", line 125, in prepare                                                                           
    prepare_impl(t,cwd,ver,wafdir)                                          
  File "/var/tmp/portage/www-client/midori-9999/work/midori-9999/.waf-1.5.3-575529c232c0559c3efb0adb3d077447/wafadmin/Scripting.py", line 118, in prepare_impl                                                                      
    main()                                                                  
  File "/var/tmp/portage/www-client/midori-9999/work/midori-9999/.waf-1.5.3-575529c232c0559c3efb0adb3d077447/wafadmin/Scripting.py", line 182, in main  
    bld.compile()                                                           
  File "/var/tmp/portage/www-client/midori-9999/work/midori-9999/.waf-1.5.3-575529c232c0559c3efb0adb3d077447/wafadmin/Build.py", line 125, in compile   
    self.flush()                                                            
  File "/var/tmp/portage/www-client/midori-9999/work/midori-9999/.waf-1.5.3-575529c232c0559c3efb0adb3d077447/wafadmin/Build.py", line 404, in flush     
    obj.post()                                                              
  File "/var/tmp/portage/www-client/midori-9999/work/midori-9999/.waf-1.5.3-575529c232c0559c3efb0adb3d077447/wafadmin/TaskGen.py", line 112, in post    
    self.apply()                                                            
  File "/var/tmp/portage/www-client/midori-9999/work/midori-9999/.waf-1.5.3-575529c232c0559c3efb0adb3d077447/wafadmin/TaskGen.py", line 103, in apply   
    v()                                                                     
  File "/var/tmp/portage/www-client/midori-9999/work/midori-9999/.waf-1.5.3-575529c232c0559c3efb0adb3d077447/wafadmin/Tools/intltool.py", line 58, in apply_intltool_po                                                             
    task.set_outputs(node.change_ext('.mo'))                                
AttributeError: 'NoneType' object has no attribute 'change_ext'


Portage 2.2_rc62 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r5 x86_64)                                                  
=================================================================           
                        System Settings                                     
=================================================================           
System uname: Linux-2.6.32-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-2.0.1                                                
Timestamp of tree: Fri, 12 Feb 2010 14:00:01 +0000                          
app-shells/bash:     4.0_p37                                                
dev-java/java-config: 2.1.10                                                
dev-lang/python:     2.6.4-r1, 3.1.1-r1                                     
dev-util/cmake:      2.8.0-r2                                               
sys-apps/baselayout: 2.0.1                                                  
sys-apps/openrc:     0.6.0-r1                                               
sys-apps/sandbox:    2.2                                                    
sys-devel/autoconf:  2.13, 2.65                                             
sys-devel/automake:  1.9.6-r2, 1.10.3, 1.11.1                               
sys-devel/binutils:  2.20                                                   
sys-devel/gcc:       4.4.3                                                  
sys-devel/gcc-config: 1.4.1                                                 
sys-devel/libtool:   2.2.6b                                                 
virtual/os-headers:  2.6.30-r1                                              
ACCEPT_KEYWORDS="amd64 ~amd64"                                              
ACCEPT_LICENSE="*"                                                          
CBUILD="x86_64-pc-linux-gnu"                                                
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"                       
CHOST="x86_64-pc-linux-gnu"                                                 
CONFIG_PROTECT="/etc /usr/share/X11/xkb /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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"                                      
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"                     
DISTDIR="/usr/portage/distfiles"                                            
FEATURES="assume-digests distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                       
GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"                   
LANG="en_US.UTF-8"                                                          
LC_ALL="en_US.UTF-8"                                                        
LDFLAGS="-Wl,-O1"                                                           
LINGUAS="zh_CN zh"                                                          
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/local/layman/pro-audio /usr/local/layman/gentoo-china /usr/local/layman/devnull /usr/local/layman/gamerlay /usr/local/layman/mozilla /usr/local/layman/multimedia /home/dolores/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 avahi bash-completion berkdb bidi bluetooth branding bzip2 cairo cddb cdr cjk cleartype cli cracklib crypt cscope cups curl cxx dbus dri dts dv dvd dvdr emboss encode esd evo exif expat fam ffmpeg firefox flac fortran ftp gd gdbm gif glib glitz gnutls gphoto2 graphviz gstreamer gtk gtkhtml guile hal iconv idn ieee1394 imagemagick ipv6 java jpeg jpeg2k kde lame ldap libcaca libnotify lm_sensors lua mad mikmod mmx mng modules mono mp3 mp4 mpeg mudflap multilib musepack ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcmcia pcre pdf perl phonon plotutils png ppds pppd python qt3support qt4 quicktime rdesktop readline reflection ruby scanner sdl session socks5 spell spl sse sse2 sse3 ssl startup-notification svg sysfs tcl tcpd theora thunar tiff timidity tk truetype unicode usb v4l v4l2 vcd vorbis wmf x264 xcomposite xinerama xml xorg xv xvid zlib" ALSA_CARDS="hda-intel" 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="evdev keyboard mouse synaptics joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michel Ganguin 2010-02-20 17:01:30 UTC
same error for me.

as Dolores my last working build:
Wed Jan 13 12:22:59 2010 >>> www-client/midori-9999

It seems to be "waf configure" that fails, but i couldn't find out why.
I tried activating/deactivating feature sandbox: expect the colored output of waf, nothing changed.

By manually running "waf configure", it works fine:
Steps to Reproduce:
1. ebuild midori-9999 configure
2. rerun manually "waf configure" in /var/tmp/portage/www-client/midori-9999/work/midori-9999 directory:
CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" ./waf \
        --prefix="/usr/" \
        --libdir="/usr/$(get_libdir)" \
        --disable-docs \
        $(use_enable doc apidocs) \
        $(use_enable html userdocs) \
        $(use_enable idn libidn) \
        $(use_enable nls nls) \
        $(use_enable sqlite) \
        $(use_enable unique) \
        configure
which is for me:
CCFLAGS="-march=core2 -msse4.1 -O2 -pipe -fomit-frame-pointer" LINKFLAGS="-Wl,-O1" ./waf --prefix=/usr/ --libdir=/usr/lib64 --disable-docs --disable-apidocs --enable-userdocs --enable-libidn --enable-nls --enable-sqlite --enable-unique configure
3. ebuild midori-9999 merge
Comment 2 Harri Nieminen (Moiman) 2010-02-21 13:51:17 UTC
Weird. There should be "$(use_enable libnotify)" in midori-9999.ebuild but it still fails to build.
Comment 3 Matt 2010-02-26 22:18:55 UTC
this also applies to 0.2.3 when bumping the ebuild from 0.2.2 to 0.2.3 manually 
Comment 4 Matt 2010-02-26 22:23:37 UTC
thanks Michel ! 

with your steps, especially re-running waf configure:

CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" ./waf \
        --prefix="/usr/" \
        --libdir="/usr/$(get_libdir)" \
        --disable-docs \
        $(use_enable doc apidocs) \
        $(use_enable html userdocs) \
        $(use_enable idn libidn) \
        $(use_enable nls nls) \
        $(use_enable sqlite) \
        $(use_enable unique) \
        configure

0.2.3 emerged and is running fine for me :)
Comment 5 Paweł Mielechowicz 2010-02-26 22:28:09 UTC
"waf" looks for en.po file, but it doesn't find it.

My workaround:
export LINGUAS="en_GB"; emerge -1 midori
Comment 6 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-03-03 16:28:02 UTC
Hi,
I am not ignoring this bug, I just can't figure out what the comments mean. Does anyone have a patch (diff -u) that they could attach?
Comment 7 Matt 2010-03-04 21:38:48 UTC
it *should* work but unfortunately it doesn't:

diff midori-0.2.3.ebuild midori-0.2.2.ebuild
6c6
< inherit xfconf multilib eutils
---
> inherit xfconf multilib
58,77d57
< 
< 	strip-linguas ast ca cs da de el en_GB es et fi fr gl he hu id it ja ko nl no pl pt pt_BR ro ru sk sr sr@latin sv tr uk zh_CN zh_TW
< 
< 	if [[ -z "${LINGUAS}" ]] ; then
< 		if useq nls ; then
< 			ewarn "To get a localized build, please set the according LINGUAS variable(s). "
< 		fi
< 	else
< 		if useq nls ; then
< 			einfo "Building with support for the following languages: "
< 			
< 			for i in ${LINGUAS}; do
< 				einfo "  ${i}"
< 			done
< 		else
< 			ewarn "To get a localized build, please put USE=\"nls\" into your USE flags"
< 		fi
< 	fi
< 	epause 10
< 





Helper Functions provided by eutils.eclass

You can use the following helper functions that are provided by the "eutils" eclass in your ebuilds. You must make sure that inherit eutils is present for these functions to work.

strip-linguas

This function makes sure that LINGUAS contains only the languages that a package can support specified by the arguments to the function. If the first argument is -i, then a list of .po files in the specified directories is built and the intersection of the lists is used. If the first argument is -u, then a list of .po files in the specified directories is built and the union of the lists is used.

source: http://www.gentoo.org/proj/en/devrel/handbook/handbook.xml?part=2&chap=1
Comment 8 Matt 2010-03-04 21:43:37 UTC
when following Pawel's advice and

export LINGUAS="en_GB"; emerge -1 midori

it says:

Configuration finished successfully (00:00:00); project is now ready to build.
>>> Source configured.
>>> Compiling source in /var/tmp/portage/www-client/midori-0.2.3/work/midori-0.2.3 ...
 * Building with support for the following languages: 
 *   en_GB



so something doesn't seem to work with strip-linguas :(
Comment 9 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-03-08 16:02:58 UTC
0.2.4 "just works" for me. For this reason is why I dislike live ebuilds, there was a measurable amount of time wasted on this report by everyone involved.

Anyway, please test the live ebuild again now, it should work based on 0.2.4 working.
Comment 10 xenon 2010-03-10 14:12:58 UTC
(In reply to comment #9)
> 0.2.4 "just works" for me. For this reason is why I dislike live ebuilds, there
> was a measurable amount of time wasted on this report by everyone involved.
> 
> Anyway, please test the live ebuild again now, it should work based on 0.2.4
> working.
> 

I guess it "just works" if your LINGUAS settings are "x" and not "y" or "x y z", but the issue is not just limited to the live ebuild.
Comment 11 Matt 2010-03-10 18:27:05 UTC
www-client/midori-9999 works for me - thanks !

www-client/midori-0.2.4 does NOT it still fails with the same error :(
Comment 12 daemonpnz 2010-03-11 07:25:23 UTC
Patch for ebuild works for me.