Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519976 - www-apps/ikiwiki-3.20140227 with dev-lang/python:3.3 - /usr/bin/python3.3 /usr/libexec/ikiwiki/plugins/rst hangs
Summary: www-apps/ikiwiki-3.20140227 with dev-lang/python:3.3 - /usr/bin/python3.3 /us...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alice Ferrazzi
URL: http://ikiwiki.info/bugs/rst_plugin_h...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-15 09:35 UTC by Alex Efros
Modified: 2016-05-22 11:08 UTC (History)
0 users

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


Attachments
3.20140831-proxy-fix-python3-utf8-encode-decode-function.patch (3.20140831-proxy-fix-python3-utf8-encode-decode-function.patch,1.45 KB, patch)
2014-09-04 12:03 UTC, Alice Ferrazzi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2014-08-15 09:35:59 UTC
When I open page /ikiwiki.cgi?do=prefs and try to click "Setup" button it hangs if current python version set to python3.3 and works ok if it set to python2.7.

When it hang I see these processes:
24744 ?        S      0:00 /usr/bin/perl /usr/bin/ikiwiki
24745 ?        S      0:00  \_ /usr/bin/python3.3 /usr/libexec/ikiwiki/plugins/rst

The "rst" plugin is disabled in my configuration, but I suppose it might check is it available or something like that and thus try to run it while opening "Setup" page.
Comment 1 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2014-08-18 02:10:08 UTC
with my configuration is working also with python 3.3
please try on the new version when available.
I will upload in this days 3.20140815.
Comment 2 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2014-09-02 08:49:51 UTC
i also got stuck on same bug recently.
i'm trying to investigate on it but i think is better if you send the bug upstream http://ikiwiki.info/bugs/.
and copy here the link of the bug.

and if you can also past your emerge --info.

thanks you
Comment 3 Alex Efros 2014-09-02 19:54:04 UTC
Portage 2.2.8-r1 (hardened/linux/x86, gcc-4.7.3, glibc-2.19-r1, 3.15.5-hardened-r2 i686)
=================================================================
System uname: Linux-3.15.5-hardened-r2-i686-Intel-R-_Core-TM-2_Duo_CPU_E4500_@_2.20GHz-with-gentoo-2.2
KiB Mem:     2056044 total,     93572 free
KiB Swap:    6013948 total,   5972444 free
Timestamp of tree: Sun, 17 Aug 2014 06:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
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, 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 powerman perl-experimental-snapshots local
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /service /usr/inferno/keydb /usr/inferno/lib /usr/inferno/services /usr/share/gnupg/qualified.txt /var/log /var/qmail/alias /var/qmail/control /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage-distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --autounmask-write"
FCFLAGS="-march=native -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 webrsync-gpg xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirror.leaseweb.com/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://gentoo.modulix.net/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage-packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded"
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/powerman /var/lib/layman/perl-experimental-snapshots /usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="bash-completion berkdb bzip2 caps cli cracklib crypt cxx dri fontconfig gdbm gif gnutls gpg hardened iconv icu idn ipv6 jpeg jpeg2k mbox mmx mng modules mysql ncurses network-cron nls nptl openmp pam pax_kernel pcre perl pic png readline session spell sse sse2 sse3 ssl ssse3 svg tcpd tiff truetype unicode urandom vim-syntax x86 xattr xtpax zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="log_config vhost_alias autoindex alias rewrite dir deflate filter mime negotiation auth_basic authn_file authz_host authz_user authz_groupfile cgi actions headers env setenvif" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi fancyindex" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 intel mach64 mga nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa via vmware nouveau" 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, PORTAGE_COMPRESS_FLAGS, USE_PYTHON
Comment 4 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2014-09-04 11:39:46 UTC
open bug upstream after talking with Alex Efros in irc:  http://ikiwiki.info/bugs/rst_plugin_hangs_when_used_with_Python_3/

is fixed using the patch provided in the link
Comment 5 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2014-09-04 12:03:10 UTC
Created attachment 384190 [details, diff]
3.20140831-proxy-fix-python3-utf8-encode-decode-function.patch
Comment 6 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2014-09-04 12:05:58 UTC
--- ikiwiki-3.20140613.ebuild	2014-09-04 20:59:31.000000000 +0900
+++ ikiwiki-3.20140831.ebuild	2014-09-04 20:50:15.000000000 +0900
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit perl-module
+inherit perl-module eutils
 
 DESCRIPTION="A wiki compiler"
 HOMEPAGE="http://ikiwiki.info/"
@@ -88,6 +88,7 @@ DEPEND="${DEPEND}
 SRC_TEST=do
 
 src_prepare() {
+	epatch "${FILESDIR}/${PV}-proxy-fix-python3-utf8-encode-decode-function.patch"
 	addpredict "/usr/lib/plan9/lib/" #bug 498444
 	sed -i 's,lib/ikiwiki,libexec/ikiwiki,' \
 		"${S}"/{IkiWiki.pm,Makefile.PL,doc/plugins/install.mdwn} || die
@@ -96,6 +97,7 @@ src_prepare() {
 #	else
 #		sed -i '/w3m/d' "${S}"/Makefile.PL || die
 #	fi
+	epatch_user
 }
 
 src_install() {
Comment 7 Pacho Ramos gentoo-dev 2016-05-22 11:08:51 UTC
this should be fixed in 3.20150107