Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322993 - >=dev-libs/libgweather-2.30.0 fails on python 3
Summary: >=dev-libs/libgweather-2.30.0 fails on python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 313471
  Show dependency tree
 
Reported: 2010-06-06 17:25 UTC by Michael Weber (RETIRED)
Modified: 2010-09-27 21:26 UTC (History)
0 users

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


Attachments
build.log (build.log,70.12 KB, text/plain)
2010-06-06 17:27 UTC, Michael Weber (RETIRED)
Details
environment (environment,110.40 KB, text/plain)
2010-06-06 17:27 UTC, Michael Weber (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2010-06-06 17:25:41 UTC
Hi, after yesterdays false reports, i think this error isn'nt introduced by any other package, besides the user activating python 3 as default.

libtool: compile:  i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I/usr/include/python3.1 -I/usr/include/python3.1 -pthread -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng14 -DGTK_DISABLE_SINGLE_INCLUDES -O2 --param l1-cache-size=8 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=pentium4 -pipe -DG_DISABLE_SINGLE_INCLUDES -MT gweathermodule.lo -MD -MP -MF .deps/gweathermodule.Tpo -c gweathermodule.c  -fPIC -DPIC -o .libs/gweathermodule.o
  File "<string>", line 1
    from distutils import sysconfig; print sysconfig.get_python_lib(1, 0, prefix='/usr')
                                                   ^
SyntaxError: invalid syntax
/usr/bin/python3.1: can't open file '/gtk-2.0/codegen/codegen.py': [Errno 2] No such file or directory

workaround

--- /var/lib/layman/gnome/dev-libs/libgweather/libgweather-2.30.0.ebuild        2010-06-02 16:17:06.000000000 +0000
+++ libgweather-2.30.0-r1.ebuild        2010-06-06 02:59:31.000000000 +0000
@@ -4,8 +4,9 @@
 
 EAPI="2"
 GCONF_DEBUG="no"
+PYTHON_DEPEND="python? 2"
 
-inherit autotools gnome2
+inherit autotools gnome2 python
 
 DESCRIPTION="Library to access weather information from online services"
 HOMEPAGE="http://www.gnome.org/"
@@ -38,6 +39,7 @@
                --disable-all-translations-in-one-xml
                --disable-static
                $(use_enable python)"
+       use python && python_set_active_version 2
 }
 
 src_prepare() {
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-06-06 17:27:32 UTC
Created attachment 234323 [details]
build.log

Portage 2.1.8.3 (default/linux/x86/10.0/desktop/gnome, gcc-4.5.0, glibc-2.11.1-r0, 2.6.34-gentoo-ganymed.0 i686)
=================================================================
System uname: Linux-2.6.34-gentoo-ganymed.0-i686-Intel-R-_Pentium-R-_4_CPU_3.06GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 05 Jun 2010 20:00:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.5.0
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.8
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 --param l1-cache-size=8 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
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"
CXXFLAGS="-O2 --param l1-cache-size=8 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=pentium4 -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://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB de"
MAKEOPTS="-j2"
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 /var/lib/layman/x11 /var/lib/layman/gnome /var/lib/layman/xmw"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif git gnome gnome-keyring gpm gstreamer gtk iconv introspection ipv6 jpeg lcms ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline reflection sdl session spell spl ssl startup-notification subversion svg sysfs tcpd tiff truetype unicode usb vim-syntax vorbis x264 x86 xcb xml xorg xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-06-06 17:27:48 UTC
Created attachment 234325 [details]
environment
Comment 3 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-27 21:26:15 UTC
+*libgweather-2.30.3 (27 Sep 2010)
+
+  27 Sep 2010; Gilles Dartiguelongue <eva@gentoo.org>
+  +libgweather-2.30.3.ebuild:
+  Version bump. Update for tzdata 2010k. Translation updates. Set python:2
+  in pkg_setup, bug #322993.
+
Thanks for reporting.