Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464314 - net-libs/libqmi-1.0.0: build fails w/python3
Summary: net-libs/libqmi-1.0.0: build fails w/python3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-03 09:10 UTC by Flo Gravo
Modified: 2013-04-27 21:43 UTC (History)
3 users (show)

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


Attachments
/var/tmp/portage/net-libs/libqmi-1.0.0/temp/build.log (build.log,14.59 KB, text/plain)
2013-04-03 09:11 UTC, Flo Gravo
Details
fixed libqmi ebuild (libqmi-1.0.0.ebuild,1.01 KB, text/plain)
2013-04-26 13:33 UTC, Evgeny Bobkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Flo Gravo 2013-04-03 09:10:29 UTC
emerge --info
Portage 2.2.0_alpha171 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.2, glibc-2.17, 3.8.5-gentoo x86_64)
=================================================================
System uname: Linux-3.8.5-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9550_@_2.66GHz-with-gentoo-2.2
KiB Mem:     8130816 total,   1286016 free
KiB Swap:    8387580 total,   8387580 free
Timestamp of tree: Tue, 02 Apr 2013 20:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r5::gnome
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo science luman gentoo-haskell flow sunrise gnome THG
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /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="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=core2"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe -march=core2"
GENTOO_MIRRORS="http://gentoo.mirror.dkm.cz/pub/gentoo/ http://de-mirror.org/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://gentoo.tiscali.nl/ http://mirror.leaseweb.com/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS=" -j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/luman /var/lib/layman/haskell /var/lib/layman/flow /var/lib/layman/sunrise /var/lib/layman/gnome /usr/local/portage/thg"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth broadway btrfs bzip2 cairo cdda cddb cdr cheese cli colord consolekit cracklib crypt cuda cups cxx dbus device-mapper dri dts dvd dvdr eds eigen emboss encode equalizer evo exif fat ffmpeg fftw firefox flac fontconfig fortran ftp g3dvl gallium gbm gdbm gif gimp git gnome gnome-keyring gnome-online-accounts gnome-screensaver gnome-shell gpm gptfdisk graphite grilo gstreamer gtk gtk3 harfbuzz http iconv icu id3tag ipv6 irc jabber jit jpeg jpeg2k ladspa laptop lcms lensfun libav libnotify libsamplerate libsecret libvisual lzma lzo mad matroska mercurial minizip mms mmx mmxext modules mount mp3 mp4 mpeg mplayer mudflap multilib musicbrainz nautilus ncurses networkmanager nfs nls nptl ntfs ntfsprogs ntp ogg opencl openexr opengl openmp openrc opus pam pango pcre pdf pm-utils png policykit ppds pulseaudio python3 quvi rar raw readline sdl session shared-dricore shared-glapi sip smp socialweb spell sse sse2 sse2check sse3 sse4 sse4_1 ssl ssse3 startup-notification svg t1lib taglib tcpd theora threads tiff truetype udev udisks umfpack unicode upnp upnp-av upower usb v4l vaapi vala vdpau vorbis vpx webgl webkit webkit2 webm webp wxwidgets x264 xcb xetex xft xine xinerama xml xv xvid xz youtube zeitgeist zeroconf zlib" ABI_X86="64" 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="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="words sheets" CAMERAS="ptp2" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Reproducible: Always

Steps to Reproduce:
emerge libqmi
Actual Results:  
 * Messages for package net-libs/libqmi-1.0.0:

 * ERROR: net-libs/libqmi-1.0.0 failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=net-libs/libqmi-1.0.0'`,
 * the complete build log and the output of `emerge -pqv '=net-libs/libqmi-1.0.0'`.
 * The complete build log is located at '/var/tmp/portage/net-libs/libqmi-1.0.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-libs/libqmi-1.0.0/temp/environment'.
 * Working directory: '/var/tmp/portage/net-libs/libqmi-1.0.0/work/libqmi-1.0.0'
 * S: '/var/tmp/portage/net-libs/libqmi-1.0.0/work/libqmi-1.0.0'
Comment 1 Flo Gravo 2013-04-03 09:11:24 UTC
Created attachment 344170 [details]
/var/tmp/portage/net-libs/libqmi-1.0.0/temp/build.log
Comment 2 SpanKY gentoo-dev 2013-04-03 18:06:41 UTC
what is `python` ?  i'm assuming it's python3
Comment 3 Flo Gravo 2013-04-04 12:39:39 UTC
eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.2 *

So, Yes!
Comment 4 Taylor S 2013-04-05 14:17:39 UTC
(In reply to comment #3)
> eselect python list
> Available Python interpreters:
>   [1]   python2.7
>   [2]   python3.2 *
> 
> So, Yes!

I can confirm that the build fails when using python 3.2.
The workaround is as easy as setting the python version to 2.x during compile and then resetting it to what it was before.
Comment 5 Evgeny Bobkin 2013-04-26 13:33:26 UTC
Created attachment 346644 [details]
fixed libqmi ebuild
Comment 6 Evgeny Bobkin 2013-04-26 13:36:17 UTC
same here, I was able to build it with python 2 only.

additionally I have modified the ebuild to incorporate this fact.
Comment 7 SpanKY gentoo-dev 2013-04-27 21:06:58 UTC
Comment on attachment 346644 [details]
fixed libqmi ebuild

please post diffs, not entire files
Comment 8 SpanKY gentoo-dev 2013-04-27 21:43:10 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix building with python-3
http://sources.gentoo.org/net-libs/libqmi/files/libqmi-1.0.0-python3.patch?rev=1.1
http://sources.gentoo.org/net-libs/libqmi/libqmi-1.0.0.ebuild?r1=1.2&r2=1.3