Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501034 - net-im/pidgin-2.10.9-r1 USE="-ncurses python" - python_fix_shebang: EPYTHON unset (pkg_setup not called?)
Summary: net-im/pidgin-2.10.9-r1 USE="-ncurses python" - python_fix_shebang: EPYTHON u...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-02-12 01:49 UTC by Austin English (RETIRED)
Modified: 2014-02-12 12:39 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Austin English (RETIRED) gentoo-dev 2014-02-12 01:49:50 UTC
pidgin fails to emerge on my machine:
 * ERROR: net-im/pidgin-2.10.9-r1::gentoo failed (install phase):
 *   python_fix_shebang: EPYTHON unset (pkg_setup not called?)

aw25 pidgin # eix net-im/pidgin
[I] net-im/pidgin
     Available versions:  2.10.7-r4 2.10.7-r5 2.10.9 2.10.9-r1 {aqua dbus debug doc eds gadu gnutls groupwise +gstreamer +gtk idn meanwhile mxit ncurses networkmanager nls perl prediction python sasl silc spell tcl tk +xscreensaver zephyr zeroconf PYTHON_SINGLE_TARGET="python2_7 python3_2 python3_3" PYTHON_TARGETS="python2_7 python3_2 python3_3"}
     Installed versions:  2.10.9-r1(05:39:46 PM 02/11/2014)(gtk python spell xscreensaver -aqua -dbus -debug -doc -eds -gadu -gnutls -groupwise -gstreamer -idn -meanwhile -mxit -ncurses -networkmanager -nls -perl -prediction -sasl -silc -tcl -tk -zephyr -zeroconf PYTHON_SINGLE_TARGET="python2_7 -python3_2 -python3_3" PYTHON_TARGETS="python2_7 python3_3 -python3_2")
     Homepage:            http://pidgin.im/
     Description:         GTK Instant Messenger client

Looking at the ebuild, the problem is that I don't have the ncurses flag set. In pkg_setup():
	if use dbus || { use ncurses && use python; }; then
		python-single-r1_pkg_setup
	fi
but in src_install():
	if use python || use dbus ; then
		python_fix_shebang "${D}"
		python_optimize
	fi

so python's setup doesn't run if +ncurses is not set. This patch fixes it:
aw25 pidgin # diff -ur pidgin-2.10.9-r1.ebuild pidgin-2.10.9-r2.ebuild 
--- pidgin-2.10.9-r1.ebuild	2014-02-08 23:01:26.000000000 -0800
+++ pidgin-2.10.9-r2.ebuild	2014-02-11 17:48:42.303531991 -0800
@@ -122,7 +122,7 @@
 		elog "You did not pick the ncurses or gtk use flags, only libpurple"
 		elog "will be built."
 	fi
-	if use dbus || { use ncurses && use python; }; then
+	if use dbus || use python; then
 		python-single-r1_pkg_setup
 	fi
 


Reproducible: Always

Steps to Reproduce:
USE="+python -ncurses" emerge -av1 =net-im/pidgin-2.10.9-r1
Actual Results:  
pidgin installs

Expected Results:  
emerge fails
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-02-12 12:39:41 UTC
+  12 Feb 2014; Lars Wendler <polynomial-c@gentoo.org> pidgin-2.10.9.ebuild,
+  pidgin-2.10.9-r1.ebuild:
+  Fixed compilation with USE="-ncurses python" (bug #501034).
+
Thanks for the report.