Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531968 - app-editors/gedit-3.12.2-r1 fails to emerge with python_export called without a python implementation and EPYTHON is unset
Summary: app-editors/gedit-3.12.2-r1 fails to emerge with python_export called withou...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-08 07:54 UTC by Amit Prakash Ambasta
Modified: 2015-01-03 10:27 UTC (History)
5 users (show)

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


Attachments
build.log.gz (build.log.gz,21.75 KB, application/x-gzip)
2014-12-23 01:41 UTC, Michael Jones
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amit Prakash Ambasta 2014-12-08 07:54:22 UTC
Emerging app-editors/gedit-3.12.2-r1 fails to emerge with  python_export called without a python implementation and EPYTHON is unset during the install phase.

Currently selected system-wide version of python is python3_4


Use Flags:
[ebuild   R    ] app-editors/gedit-3.12.2-r1  USE="introspection spell -python {-test} -zeitgeist" PYTHON_TARGETS="python3_4%* -python3_3 (-python3_2%)"

Reproducible: Always

Steps to Reproduce:
1.emerge -av gedit
Actual Results:  
 *   ERROR: app-editors/gedit-3.12.2-r1::gentoo failed (install phase):
 *   python_export called without a python implementation and EPYTHON is unset

Expected Results:  
Should install successfully

Emerge --info
Portage 2.2.15 (python 3.4.2-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.3, glibc-2.20, 3.17.3-gentoo x86_64)
=================================================================
System uname: Linux-3.17.3-gentoo-x86_64-Intel-R-_Core-TM-_i5-4210U_CPU_@_1.70GHz-with-gentoo-2.2
KiB Mem:     8088972 total,    843044 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Sat, 06 Dec 2014 11:00:01 +0000
sh bash 4.3_p30-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r3
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo steam-overlay sublime-text ambasta
Installed sets: @hostapd
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA google-chrome AdobeFlash-11.x skype-4.0.0.7-copyright google-talkplugin Oracle-BCLA-JavaSE Google-TOS PUEL TeamViewer license"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
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"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
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://mirror.leaseweb.com/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.inode.at/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://gentoo.gg3.net/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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="/home/portage/"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/steam /var/lib/layman/sublime-text /var/lib/layman/ambasta"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cdr cli colord corefonts cracklib crypt cups cxx dbus dejavu directfb dri dts dvd dvdr emboss encode evo exif fam firefox flac foomaticdb fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv introspection jpeg lcms ldap libnotify libsecret mad mmx mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ntp ogg opengl openmp pango pcre pdf png policykit ppds pulseaudio python3 qt3support readline sdl session socialweb spell sse sse2 ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="32 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="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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965" 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"
USE_PYTHON="3.4"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC
Comment 1 Pacho Ramos gentoo-dev 2014-12-18 20:19:12 UTC
I cannot reproduce this, @gnome is anyone seeing something strange in ebuild? Should we ask for help to python team?
Comment 2 Jan Vesely 2014-12-20 12:23:41 UTC
I'm seeing this as well.

Emerging with -python_targets_python3_4 fails.
Emerging with +python (and +python_targets_python3_4) works ok.
Comment 3 Michael Jones 2014-12-23 01:41:10 UTC
I also have this problem.

emerge --info




Portage 2.2.14 (python 3.3.5-final-0, hardened/linux/amd64/no-multilib, gcc-4.8.3, glibc-2.19-r1, 3.15.10-hardened-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.15.10-hardened-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.2
KiB Mem:     8179968 total,    306212 free
KiB Swap:   20495396 total,  20465548 free
Timestamp of tree: Mon, 22 Dec 2014 21:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p53
dev-java/java-config:     2.2.0
dev-lang/perl:            5.18.2-r2
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.11.6-r1, 1.12.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo Aerosta-LLC-Overlay atlassian-ebuilds
Installed sets: @android, @archive, @base-system, @creative, @desktop-applications, @development-cli, @development-gui, @games, @java, @lxde, @multimedia, @network-manager, @portage, @qt, @vcs, @virt-client
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
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="-march=x86-64 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs --keep-going --newuse --deep --backtrack=3000 --complete-graph --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg clean-logs compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://mirror.datapipe.net/gentoo http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.mirrors.hoobly.com/ http://gentoo.netnitco.net"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
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="/var/lib/layman/aerosta /var/lib/layman/atlassian"
USE="X a52 aac acl acpi alsa amd64 apng autoipd avahi berkdb branding bzip2 cairo cdda cdr clang cli cracklib crypt cxx dbus dconf dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac gd gdbm gif gnome-keyring gpm gstreamer gtk gudev hardened iconv icu ipv6 jpeg justify lcms libnotify libsecret lm_sensors mad mdnsresponder-compat minizip mmx mng modules mp3 mp4 mpeg ncurses networkmanager nls nptl ogg opengl openmp pam pango pax_kernel pcre pdf png policykit postgres ppds pulseaudio python qt4 readline samba sdl session sound spell sqlite sse sse2 ssl startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower urandom usb vorbis x264 xattr xcb xinerama xml xtpax xv xvid 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" 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 ublox ubx" GRUB_PLATFORMS="coreboot efi-32 efi-64 emu qemu pc" INPUT_DEVICES="evdev synaptics mouse keyboard wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm aarch64 i386 x86_64" QEMU_USER_TARGETS="arm aarch64 i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i965 nouveau vesa modesetting fbdev qxl radeon r600 radeonsi" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON







emerge -pqv gedit

[ebuild     U ] app-editors/gedit-3.12.2-r1 [3.12.2] USE="introspection spell -python {-test} -zeitgeist" PYTHON_TARGETS="python3_3 -python3_4%"
Comment 4 Michael Jones 2014-12-23 01:41:40 UTC
Created attachment 392246 [details]
build.log.gz
Comment 5 Pacho Ramos gentoo-dev 2015-01-02 11:59:29 UTC
I still don't see what is wrong in ebuild, @python team, any ideas? Thanks
Comment 6 Mike Gilbert gentoo-dev 2015-01-02 16:30:31 UTC
(In reply to Pacho Ramos from comment #5)
> I still don't see what is wrong in ebuild, @python team, any ideas? Thanks

In pkg_setup, you all python_setup only if the 'python' use flag is enabled.

In src_install, you call python_get_sitedir unconditionally.

When you call python_get_sitedir without previously having called python_setup, the error reported in this bug occurs.

I would suggest modifying src_install to only call python_get_sitedir when the 'python' use flag is enabled.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-01-02 19:29:01 UTC
This is because it tries to obtain sitedir for pyoverridesdir even if python is disabled. A quick solution:

Index: gedit-3.12.2-r1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-editors/gedit/gedit-3.12.2-r1.ebuild,v
retrieving revision 1.5
diff -d -u -p -r1.5 gedit-3.12.2-r1.ebuild
--- gedit-3.12.2-r1.ebuild	19 Dec 2014 13:33:36 -0000	1.5
+++ gedit-3.12.2-r1.ebuild	2 Jan 2015 19:27:39 -0000
@@ -100,6 +100,9 @@ src_test() {
 }
 
 src_install() {
+	local args=()
+	use python && args+=( pyoverridesdir="$(python_get_sitedir)/gi/overrides" )
+
 	# manually set pyoverridesdir due to bug #524018 and AM_PATH_PYTHON limitations
-	gnome2_src_install pyoverridesdir="$(python_get_sitedir)/gi/overrides"
+	gnome2_src_install "${args[@]}"
 }

I don't have my GPG key on this computer, so please commit it for me :).
Comment 8 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-01-02 22:21:22 UTC
+  02 Jan 2015; Michał Górny <mgorny@gentoo.org> gedit-3.12.2-r1.ebuild,
+  gedit-3.14.2.ebuild:
+  Do not reference Python sitedir when Python is disabled, bug #531968.

Also committed to -9999::gnome.
Comment 9 Pacho Ramos gentoo-dev 2015-01-03 10:27:25 UTC
Oops, thanks people!