Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 306367 - media-libs/mutagen-1.18 fails to build with Python 3
Summary: media-libs/mutagen-1.18 fails to build with Python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-22 14:48 UTC by fabian
Modified: 2010-03-13 18:16 UTC (History)
1 user (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 fabian 2010-02-22 14:48:21 UTC
Trying to compile picard pulls in mutagen, which fails to build with an syntax error:
 >>> Compiling source in /var/tmp/portage/media-libs/mutagen-1.18/work/mutagen-1.18 ...                             
python3.1 setup.py build                                                                                           
  File "setup.py", line 54                                                                                         
    print "Building release tarball."                                                                              
                                    ^                                                                              
SyntaxError: invalid syntax                                                                                        

Reproducible: Always

Steps to Reproduce:
1. emerge mutagen 

Actual Results:  
maya ~ # emerge mutagen

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.                         

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-libs/mutagen-1.18
 * mutagen-1.18.tar.gz RMD160 SHA1 SHA256 size ;-) ...                   [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * CPV:  media-libs/mutagen-1.18                                               
 * REPO: gentoo                                                                
 * USE:  amd64 elibc_glibc kernel_linux multilib userland_GNU                  
>>> Unpacking source...                                                        
>>> Unpacking mutagen-1.18.tar.gz to /var/tmp/portage/media-libs/mutagen-1.18/work
>>> Source unpacked in /var/tmp/portage/media-libs/mutagen-1.18/work              
>>> Preparing source in /var/tmp/portage/media-libs/mutagen-1.18/work/mutagen-1.18 ...
>>> Source prepared.                                                                  
>>> Configuring source in /var/tmp/portage/media-libs/mutagen-1.18/work/mutagen-1.18 ...
>>> Source configured.                                                                  
>>> Compiling source in /var/tmp/portage/media-libs/mutagen-1.18/work/mutagen-1.18 ...  
python3.1 setup.py build                                                                
  File "setup.py", line 54                                                              
    print "Building release tarball."                                                   
                                    ^                                                   
SyntaxError: invalid syntax                                                             
 * ERROR: media-libs/mutagen-1.18 failed:                                               
 *   Building failed                                                                    
 *                                                                                      
 * Call stack:                                                                          
 *     ebuild.sh, line   54:  Called src_compile                                        
 *   environment, line 2716:  Called distutils_src_compile                              
 *   environment, line  697:  Called die                                                
 * The specific snippet of code:                                                        
 *           "$(PYTHON -A)" setup.py "${DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";
 *                                                                                                        
 * If you need support, post the output of 'emerge --info =media-libs/mutagen-1.18',
 * the complete build log and the output of 'emerge -pqv =media-libs/mutagen-1.18'.
 * The complete build log is located at '/var/tmp/portage/media-libs/mutagen-1.18/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/mutagen-1.18/temp/environment'.
 * S: '/var/tmp/portage/media-libs/mutagen-1.18/work/mutagen-1.18'


Expected Results:  
successful merge

maya ~ # emerge -pqv =media-libs/mutagen-1.18
[ebuild  N    ] media-libs/mutagen-1.18  USE="-test"


Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.31-gentoo-r6-kaza x86_64)
=================================================================                                          
System uname: Linux-2.6.31-gentoo-r6-kaza-x86_64-AMD_Phenom-tm-_9950_Quad-Core_Processor-with-gentoo-2.0.1 
Timestamp of tree: Mon, 22 Feb 2010 11:00:01 +0000                                                         
app-shells/bash:     4.1_p2                                                                                
dev-java/java-config: 2.1.10                                                                               
dev-lang/python:     2.6.4, 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.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                                                    
sys-devel/binutils:  2.20                                                                                  
sys-devel/gcc:       4.3.4, 4.4.3                                                                          
sys-devel/gcc-config: 1.4.1                                                                                
sys-devel/libtool:   2.2.6b                                                                                
virtual/os-headers:  2.6.32                                                                                
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                             
ACCEPT_LICENSE="*"                                                                                         
CBUILD="x86_64-pc-linux-gnu"                                                                               
CFLAGS="-march=amdfam10 -O2 -pipe"                                                                         
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=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://gentoo.mneisen.org/ http://gentoo.wheel.sk/ http://gentoo.mirror.pw.edu.pl/ http://gentoo.tiscali.nl/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="us uk de fr en es"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3ds 64bit X a52 aac accessibility acl addbookmarks addressbook akonadi alsa amd64 aspell ass autoreplace bzip2 cairo cddb cdio clucene contactnotes corefonts crypt cxx dbus dht dirac downloadorder dts dvd dvdnav dvdr ebook enca encode eselect exceptions exif extra extras faac faad fam ffmpeg fuse gadu gif gimp glib gmail gnutella gnutls google google-gadgets gphoto2 groovy gtk hal history hyperestraier iconv icq infowidget inotify ipfilter iproute2 ipv6 jabber java jpeg jpeg2k kde kross ladspa lastfm latex lensfun lightning live mad maildir managesieve mediaplayer mmx mng mp3 mp4 mpd msn multilib musepack musicbrainz mysql ncurses net network nls nowlistening ogg ogg123 openexr opengl openid oscar pdf perl phonon pipes plasma png ps pulseaudio python qt3support qt4 quicktime rar raw readline replytolist rtc ruby scanfolder schroedinger search secure-delete semantic shm shutdown sieve sip skype speex sqlite sqlite3 sse sse2 ssl statistics stats subversion svg theora threads thumbnail tiff toolame transcode translator tremor truetype twolame unicode urlpicpreview vdpau vorbis wav wavpack webkit x264 xcb xorg xscreensaver xvid yahoo zlib" ALSA_CARDS="emu10k1 emu10k1x" 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" CAMERAS="ptp ptp2 canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="us uk de fr en es" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Rafał Mużyło 2010-02-22 21:38:30 UTC
Looks like it's incompatible with python3.
The restrict is missing (and the update was quite recent too).
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-02-22 21:53:08 UTC
It worked fine when it was added, so distutils.eclass changes have broken it, adding python to CC.
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-02-23 13:18:55 UTC
(In reply to comment #2)
> It worked fine when it was added, so distutils.eclass changes have broken it,
> adding python to CC.

There weren't any distutils.eclass changes, which could cause such a problem. The build log clearly shows that Python 3.1 is used. You should determine type of package and apply appropriate changes to the ebuild. Don't forget about restricting installation with Python 3.*.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-03-13 18:16:24 UTC
Fixed.