Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 348885 - media-libs/lensfun-0.2.5-r1 SyntaxError in configure
Summary: media-libs/lensfun-0.2.5-r1 SyntaxError in configure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-16 19:14 UTC by Adomas Jackevičius
Modified: 2011-04-19 21:37 UTC (History)
2 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 Adomas Jackevičius 2010-12-16 19:14:02 UTC
lensfun is a dependency for digikam. Because lensfun fails, users are unable to build digiKam (KDE Photo Manager). Here is the code:

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Starting parallel fetch

>>> Emerging (1 of 29) media-libs/lensfun-0.2.5-r1
 * lensfun-0.2.5.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                 [ ok ]
 * Package:    media-libs/lensfun-0.2.5-r1
 * Repository: gentoo
 * Maintainer: graphics@gentoo.org
 * USE:  amd64 doc elibc_glibc kernel_linux multilib userland_GNU
>>> Unpacking source...
>>> Unpacking lensfun-0.2.5.tar.bz2 to /var/tmp/portage/media-libs/lensfun-0.2.5-r1/work
>>> Source unpacked in /var/tmp/portage/media-libs/lensfun-0.2.5-r1/work
>>> Preparing source in /var/tmp/portage/media-libs/lensfun-0.2.5-r1/work/lensfun-0.2.5 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-libs/lensfun-0.2.5-r1/work/lensfun-0.2.5 ...
  File "./configure", line 70
    print "Re-trying with another library name ..."
                                                  ^
SyntaxError: invalid syntax
 * ERROR: media-libs/lensfun-0.2.5-r1 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_configure
 *   environment, line 187:  Called die
 * The specific snippet of code:
 *       ./configure --prefix=/usr --vectorization= ${myconf} || die
 * 
 * If you need support, post the output of 'emerge --info =media-libs/lensfun-0.2.5-r1',
 * the complete build log and the output of 'emerge -pqv =media-libs/lensfun-0.2.5-r1'.
 * The complete build log is located at '/var/tmp/portage/media-libs/lensfun-0.2.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/lensfun-0.2.5-r1/temp/environment'.
 * S: '/var/tmp/portage/media-libs/lensfun-0.2.5-r1/work/lensfun-0.2.5'

>>> Failed to emerge media-libs/lensfun-0.2.5-r1, Log file:

>>>  '/var/tmp/portage/media-libs/lensfun-0.2.5-r1/temp/build.log'

 * Messages for package media-libs/lensfun-0.2.5-r1:

 * ERROR: media-libs/lensfun-0.2.5-r1 failed:
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_configure
 *   environment, line 187:  Called die
 * The specific snippet of code:
 *       ./configure --prefix=/usr --vectorization= ${myconf} || die
 * 
 * If you need support, post the output of 'emerge --info =media-libs/lensfun-0.2.5-r1',
 * the complete build log and the output of 'emerge -pqv =media-libs/lensfun-0.2.5-r1'.
 * The complete build log is located at '/var/tmp/portage/media-libs/lensfun-0.2.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/lensfun-0.2.5-r1/temp/environment'.
 * S: '/var/tmp/portage/media-libs/lensfun-0.2.5-r1/work/lensfun-0.2.5'


Reproducible: Always

Actual Results:  
Failed configuring.
Comment 1 Mike Gilbert gentoo-dev 2010-12-16 21:46:22 UTC
Hmm... this works fine for me. Can you post emerge --info?
Comment 2 Adomas Jackevičius 2010-12-17 11:19:11 UTC
This is my emerge --info:

pirate obsrv # emerge --info
Portage 2.1.9.25 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.4, glibc-2.12.1-r3, 2.6.36-gentoo-r5-PIRATE x86_64)                                                                                                                          
=================================================================                                                                                                                                                                            
System uname: Linux-2.6.36-gentoo-r5-PIRATE-x86_64-Intel-R-_Core-TM-2_CPU_6300_@_1.86GHz-with-gentoo-2.0.1                                                                                                                                   
Timestamp of tree: Thu, 16 Dec 2010 18:25:01 +0000                                                                                                                                                                                           
app-shells/bash:     4.1_p9                                                                                                                                                                                                                  
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3                                                                                                                                                                                                  
dev-util/cmake:      2.8.3                                                                                                                                                                                                                   
sys-apps/baselayout: 2.0.1-r1                                                                                                                                                                                                                
sys-apps/openrc:     0.6.8                                                                                                                                                                                                                   
sys-apps/sandbox:    2.4                                                                                                                                                                                                                     
sys-devel/autoconf:  2.13, 2.68                                                                                                                                                                                                              
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1                                                                                                                                                                                                
sys-devel/binutils:  2.21                                                                                                                                                                                                                    
sys-devel/gcc:       4.4.4-r2, 4.5.1-r1                                                                                                                                                                                                      
sys-devel/gcc-config: 1.4.1                                                                                                                                                                                                                  
sys-devel/libtool:   2.4-r1                                                                                                                                                                                                                  
sys-devel/make:      3.82                                                                                                                                                                                                                    
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)                                                                                                                                                                                     
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                                                                                                                                               
ACCEPT_LICENSE="*"                                                                                                                                                                                                                           
CBUILD="x86_64-pc-linux-gnu"                                                                                                                                                                                                                 
CFLAGS="-march=core2 -O2 -pipe"                                                                                                                                                                                                              
CHOST="x86_64-pc-linux-gnu"                                                                                                                                                                                                                  
CONFIG_PROTECT="/etc /usr/share/config"                                                                                                                                                                                                      
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 -O2 -pipe"                                                                                                                                                                                                            
DISTDIR="/usr/portage/distfiles"                                                                                                                                                                                                             
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"                                                 
GENTOO_MIRRORS="http://mirror.elen.ktu.lt/gentoo/ ftp://mirror.elen.ktu.lt/"                                                                                                                                                                 
LANG="en_US.UTF-8"                                                                                                                                                                                                                           
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                                                                                            
MAKEOPTS="-j5"                                                                                                                                                                                                                               
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="/var/lib/layman/sunrise"                                                                                                                                                                                                    
SYNC="rsync://rsync.lt.gentoo.org/gentoo-portage"                                                                                                                                                                                            
USE="X a52 aac acl acpi addressbook alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo calendar cdda cdr chm cli consolekit cpudetection cracklib crypt cups cvs cxx dbus desktopglobe djvu doc dosbox dri dts dvd dvdr ebook embedded emboss encode exif expoblending extra-tools extras fam ffmpeg firefox firefox3 flac flash fontconfig fortran gadu gdbm geolocation gif git gphoto2 gpm gstreamer hal iconv id3tag imagemagick ipv6 jadetex jpeg kde kipi lame lastfm lcms ldap libdvdcss libnotify libsamplerate libv4l2 lights lm_sensors lua mad matroska melt mikmod mjpeg mmx mng mods modules mp3 mp3tunes mp4 mpeg mtp mudflap multilib multimedia musicbrainz ncurses networkmanager newmousefocus nls nptl nptlonly ogg openal opengl openmp oscar pam pango pcre pdf perl perl-geoipupdate phonon plasma png policykit ppds pppd pulseaudio python qalculate qmax qt-faststart qt3support qt4 quicktime qwt rar readline realtime redeyes roe rss scim sdl semantic-desktop session shine shout skype sndfile spell sse sse2 ssl startup-notification subversion svg symlink sysfs taglib tcpd textures theora threads thumbnail tiff tk truetype twolame udev unicode usb v4l2 vcd vdpau video videos vnc vorbis webinterface windeco x264 xcb xine xml xorg xulrunner xv xvid yahoo 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 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" 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, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

pirate obsrv # 
Comment 3 Mike Gilbert gentoo-dev 2010-12-17 15:45:34 UTC
I just noticed that the configure script is written in python... how odd.

What version of python do you have selected as the system default? You can determine that by running "eselect python show".

I think the ebuild should be using the python eclass to set the active version to 2; print is now a function in py3k.
Comment 4 Frossie 2010-12-29 19:31:48 UTC
(In reply to comment #3)
> I just noticed that the configure script is written in python... how odd.
> 
> What version of python do you have selected as the system default? You can
> determine that by running "eselect python show".
> 
> I think the ebuild should be using the python eclass to set the active version
> to 2; print is now a function in py3k.
> 

I am not the original poster, but I do have the same problem.
# eselect python show
python3.1

So it seems you are right. I have tested the obvious workaround (setting python to 2.6, emerging lensfun and then setting it back to 3.1) and it works. Well spotted.





Comment 5 Andreas K. Hüttel archtester gentoo-dev 2011-04-19 21:37:33 UTC
Fixed by forcing python-2