Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473632 - net-analyzer/namebench: needs python2 before installation
Summary: net-analyzer/namebench: needs python2 before installation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on: 479292
Blocks:
  Show dependency tree
 
Reported: 2013-06-17 19:47 UTC by Nils Freydank
Modified: 2013-08-03 08:25 UTC (History)
0 users

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


Attachments
python's error messages (file_473632.txt,709 bytes, text/plain)
2013-06-17 19:47 UTC, Nils Freydank
Details
namebench-1.3.1-r1.ebuild (namebench-1.3.1-r1.ebuild,1.15 KB, text/plain)
2013-08-01 15:09 UTC, Sergey Popov (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Freydank 2013-06-17 19:47:26 UTC
Created attachment 351266 [details]
python's error messages

Hi, namebench needs python:2.7 as default version while emerging - instead of just using it if it's installed.

First I emerged namebench while python:3.2 was default. I got no emerge-errors.
Starting 'namebench' resulted in an error (message is attached).

Switching to python:2.7 via 

eselect python set 1


did not change anything (I got still the same error).

Building namebench with  3.2 as default and running namebench with

python2 /usr/bin/namebench got me another error (also attached).


Building namebench after setting python to 2.7 works fine.
Comment 1 Nils Freydank 2013-06-17 19:48:58 UTC
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.9.5-gentoo x86_64)
=================================================================
System uname: Linux-3.9.5-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-gentoo-2.2
KiB Mem:     3936328 total,    993144 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Mon, 17 Jun 2013 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
ccache version 3.1.9 [enabled]
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/ccache:          3.1.9
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo gamerlay local-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer -fstack-protector"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
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=native -O2 -pipe -fomit-frame-pointer -fstack-protector"
DISTDIR="/.portagecache/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news nodoc parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/.portagecache/binaries"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/overlays --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/.portagecache"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/overlays/layman/gamerlay /usr/portage/overlays/local"
SYNC=""
USE="X a52 aac acl acpi alsa amd64 bash-completion branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus dri dts dvd dvdr encode exif fam flac fontconfig gdbm gif gpg gpm gstreamer iconv ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp opus pam pango pcre pdf png ppds qt3support raw readline sdl session smp sockets socks5 sound spell sse sse2 ssl ssse3 svg syslog tcpd theora threads tiff truetype udev unicode usb vaapi vim-syntax vorbis wifi x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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="kexi words flow plan sheets stage tables krita karbon braindump author" 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="pc" 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 de_DE en no" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-17 19:55:15 UTC
Should probably migrate to distutils-r1.eclass.
Comment 3 Sergey Popov (RETIRED) gentoo-dev 2013-07-31 17:24:56 UTC
Confirming this. Should be migrated to distutils-r1, i will post some draft ebuilds later
Comment 4 Sergey Popov (RETIRED) gentoo-dev 2013-08-01 15:09:47 UTC
Created attachment 354832 [details]
namebench-1.3.1-r1.ebuild

Draft revbumped ebuild

I do not like those ugly construction, that i have to put in DEPEND, CCing python@ team for clarification. 

@python: is that ebuild OK, or it can be improved?
Comment 5 Sergey Popov (RETIRED) gentoo-dev 2013-08-03 08:25:44 UTC
+  03 Aug 2013; Sergey Popov <pinkbyte@gentoo.org> -namebench-1.3.1.ebuild,
+  +namebench-1.3.1-r1.ebuild:
+  Revision bump: EAPI 5, port to distutils-r1 eclass, fix bug #473632. Drop old
+  revision

Thanks to mgorny for tips, made in #gentoo-python