Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521488 - dev-python/ws4py-0.3.4 USE=-server - python_export: no impl nor EPYTHON
Summary: dev-python/ws4py-0.3.4 USE=-server - python_export: no impl nor EPYTHON
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-29 08:37 UTC by Steven Lai
Modified: 2014-10-19 07:03 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,25.62 KB, text/plain)
2014-08-29 08:37 UTC, Steven Lai
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Lai 2014-08-29 08:37:32 UTC
Created attachment 383898 [details]
build.log

ws4py cannot merge after I remove the 'server' flag. I remember it used to be OK.
emerge --info:
Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.19-r1, 3.14.14-gentoo x86_64)
=================================================================
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Core-TM-_i3-2100_CPU_@_3.10GHz-with-gentoo-2.2
KiB Mem:     3922204 total,    460920 free
KiB Swap:    2096124 total,   1611264 free
Timestamp of tree: Wed, 20 Aug 2014 02:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /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"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
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 userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.aditsu.net:8000/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ rsync://gentoo.bloodhost.ru/gentoo-distfiles http://ftp.daum.net/gentoo/ http://ftp.twaren.net/Linux/Gentoo/ http://gentoo.cs.nctu.edu.tw/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
SYNC="rsync://rsync.jp.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr ebook emacs emboss encode exif fam firefox flac fortran gdbm gif git gnutls gpm gtk gtk3 gudev hwdb iconv ipv6 java jpeg kde kipi lcms ldap libnotify mad mercurial mmx mng modules mp3 mp4 mpeg multilib mysql ncurses nls nptl nsplugin ocaml odbc ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds ppp python qt3support qt4 readline samba sdl semantic-desktop session spell sse sse2 ssl startup-notification subversion svg tcpd threads tiff truetype udev udisks unicode upower usb v4l vim-syntax vorbis wifi wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid 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" 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 auth_digest" 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 ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="bn ca da de el en_GB es et fi fr gl gu hi hu it ja kk km kn ko ml mr nb nds nl or pa pl ru sa si sk sv ta te th ug uk vi zh zh_CN zh_TW" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 i386 mipsel" QEMU_USER_TARGETS="x86_64 i386 mipsel" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nvidia 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 SpanKY gentoo-dev 2014-10-18 04:54:50 UTC
i have no idea what that error message is trying to say
Comment 2 Steven Lai 2014-10-18 09:49:24 UTC
I think this problem occurred in 'src_install', when the ebuild is trying to delete some files located in 'sitedir'.

Can we just just remove these 2 lines?

50 	use client || rm -rf "${ED}$(python_get_sitedir)"/ws4py/client
51 	use server || rm -rf "${ED}$(python_get_sitedir)"/ws4py/server
Comment 3 Mike Gilbert gentoo-dev 2014-10-18 16:09:18 UTC
(In reply to SpanKY from comment #1)
> i have no idea what that error message is trying to say

It means you are calling python_get_sitedir, but EPYTHON is not defined, so it doesn't know what version of python to use.

distutils-r1_src_install will call python_install once for each enabled python version, with EPYTHON set appropriately.

We need to replace src_install with a python_install function like this:

python_install() {
    distutils-r1_python_install
    use client || rm -rf "${D}$(python_get_sitedir)"/ws4py/client
    use server || rm -rf "${D}$(python_get_sitedir)"/ws4py/server
}
Comment 4 Mike Gilbert gentoo-dev 2014-10-18 16:11:00 UTC
I guess Ian broke this when he migrated it to distuils-r1.
Comment 5 Mike Gilbert gentoo-dev 2014-10-18 16:21:07 UTC
+  18 Oct 2014; Mike Gilbert <floppym@gentoo.org> -ws4py-0.2.1-r1.ebuild,
+  -ws4py-0.2.1-r2.ebuild, -ws4py-0.2.1.ebuild, -ws4py-0.2.2.ebuild,
+  -ws4py-0.2.3.ebuild, -ws4py-0.2.4-r1.ebuild, -ws4py-0.2.4.ebuild,
+  -ws4py-0.3.2.ebuild, -ws4py-0.3.3.ebuild, ws4py-0.3.4.ebuild,
+  ws4py-9999.ebuild:
+  Fix installation when client or server use flag is disabled, bug 521488 by
+  Steven Lai. Remove old.
Comment 6 SpanKY gentoo-dev 2014-10-18 22:24:08 UTC
(In reply to Mike Gilbert from comment #3)

can we get the error message rewritten so it's understandable ?
Comment 7 Mike Gilbert gentoo-dev 2014-10-18 22:32:34 UTC
Given where the error is detected, this is probably the best I can do:

Index: python-utils-r1.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/python-utils-r1.eclass,v
retrieving revision 1.61
diff -u -r1.61 python-utils-r1.eclass
--- python-utils-r1.eclass      4 Sep 2014 14:52:58 -0000       1.61
+++ python-utils-r1.eclass      18 Oct 2014 22:31:03 -0000
@@ -241,7 +241,9 @@
                        ;;
                *)
                        impl=${EPYTHON}
-                       [[ ${impl} ]] || die "python_export: no impl nor EPYTHON"
+                       if [[ -z ${impl} ]]; then
+                               die "python_export called without a python implementation and EPYTHON is unset"
+                       fi
                        ;;
        esac
        debug-print "${FUNCNAME}: implementation: ${impl}"
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-10-19 07:03:01 UTC
Or less technically, that python utility functions are called outside python build environment scope, and possibly point people to docs on that.