View previous topic :: View next topic |
Author |
Message |
matc n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Aug 2005 Posts: 29
|
Posted: Fri May 31, 2013 3:13 pm Post subject: [SOLVED]: python-exec emerge fails, hangs up system update |
|
|
After waiting far too long, I started to update my toolchain/system/world. The system update is hanging on the failure of dev-python/python-exec to emerge. So far I haven't managed to find a similar problem in these forums or the bugs, or by googling python-exec etc., and I can't figure out my problem from studying the (long--sorry!) listings below. Hopefully someone here can steer me in the right direction.
Output of "emerge --info '=dev-python/python-exec-0.3.1'"
Code: | Portage 2.1.11.62 (default/linux/x86/13.0, gcc-4.6.3, glibc-2.15-r3, 2.6.31-gentoo-r6 i686)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Pentium-R-_Dual_CPU_T2390_@_1.86GHz-with-gentoo-2.2
KiB Mem: 2061848 total, 188904 free
KiB Swap: 522104 total, 521044 free
Timestamp of tree: Fri, 31 May 2013 09:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 3.2_p39::<unknown repository>
dev-java/java-config: 1.3.7-r1, 2.1.11
dev-lang/python: 2.4.6, 2.5.4-r3, 2.6.5-r3
dev-util/cmake: 2.8.10.2-r2
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.6-r1
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.4_p6, 1.5, 1.6.3::<unknown repository>, 1.7.9-r2, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1, 1.12.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.1.2, 4.3.4, 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 x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA dlj-1.1 sun-bcla-java-vm"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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 /etc/udev/rules.d"
CXXFLAGS="-march=i686 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="aalib acl acpi acpi4linux bash-completion berkdb bzip2 cli cracklib crypt cxx dbus dri flac fortran gcj gdbm gpm iconv imap ipv6 java leim maildir modules mudflap ncurses nls nptl nptlonly opengl openmp pam pcre pods qt3support readline rplay samba session ssl stroke svg tcpd tiff unicode usb videos vim-with-x x86 xv 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="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" INPUT_DEVICES="keyboard mouse" 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-3" PYTHON_SINGLE_TARGET="python2_6" PYTHON_TARGETS="python2_6" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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 |
Build log /var/tmp/portage/dev-python/python-exec-0.3.1/temp/build.log
Code: | * Package: dev-python/python-exec-0.3.1
* Repository: gentoo
* Maintainer: python@gentoo.org
* Upstream: mgorny@gentoo.org https://bitbucket.org/mgorny/python-exec/issues/
* USE: elibc_glibc kernel_linux python_targets_jython2_5 python_targets_jython2_7 python_targets_python2_5 python_targets_python2_6
* FEATURES: sandbox
/var/tmp/portage/dev-python/python-exec-0.3.1/temp/environment: line 3896: syntax error near unexpected token `||'
/var/tmp/portage/dev-python/python-exec-0.3.1/temp/environment: line 3896: ` || die'
* ERROR: dev-python/python-exec-0.3.1 failed (unpack phase):
* error sourcing environment
*
* Call stack:
* ebuild.sh, line 498: Called die
* The specific snippet of code:
/usr/lib/portage/bin/ebuild-helpers/sed: line 10: /dev/null: Permission denied
/usr/lib/portage/bin/ebuild-helpers/sed: line 10: /dev/null: Permission denied
* source "${T}"/environment || \
* die "error sourcing environment"
*
* If you need support, post the output of `emerge --info '=dev-python/python-exec-0.3.1'`,
* the complete build log and the output of `emerge -pqv '=dev-python/python-exec-0.3.1'`.
* The complete build log is located at '/var/tmp/portage/dev-python:python-exec-0.3.1:20130531-142037.log'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/python-exec-0.3.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/python-exec-0.3.1/temp/environment'.
* Working directory: '/var/tmp/portage/dev-python/python-exec-0.3.1'
* S: '/var/tmp/portage/dev-python/python-exec-0.3.1/work/python-exec-0.3.1'
sh: /dev/null: Permission denied
* --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
* LOG FILE: "/var/log/sandbox/sandbox-8182.log"
*
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line
F: open_wr
S: deny
P: /dev/tty
A: /dev/tty
R: /dev/tty
C: /bin/bash /usr/lib/portage/bin/ebuild-helpers/sed -n -e # When we get to the line that failed, append it to the
# hold space, move the hold space to the pattern space,
# then print out the pattern space and quit immediately
498{H;g;p;q} -e # If this line ends with a line continuation, append it
# to the hold space
/\\$/H -e # If this line does not end with a line continuation,
# erase the line and set the hold buffer to it (thus
# erasing the hold buffer in the process)
/[^\]$/{s:^.*$::;h} /usr/lib/portage/bin/ebuild.sh
F: open_wr
S: deny
P: /dev/tty
A: /dev/tty
R: /dev/tty
C: /bin/bash /usr/lib/portage/bin/ebuild-helpers/sed -e 1d -e s:^:RETAIN-LEADING-SPACE:
F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib/portage/bin/ebuild-helpers/sed -e 1d -e s:^:RETAIN-LEADING-SPACE:
F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib/portage/bin/ebuild-helpers/sed -n -e # When we get to the line that failed, append it to the
# hold space, move the hold space to the pattern space,
# then print out the pattern space and quit immediately
498{H;g;p;q} -e # If this line ends with a line continuation, append it
# to the hold space
/\\$/H -e # If this line does not end with a line continuation,
# erase the line and set the hold buffer to it (thus
# erasing the hold buffer in the process)
/[^\]$/{s:^.*$::;h} /usr/lib/portage/bin/ebuild.sh
F: open_wr
S: deny
P: /dev/tty
A: /dev/tty
R: /dev/tty
C: /bin/bash /usr/lib/portage/bin/ebuild-ipc exit 1
F: open_wr
S: deny
P: /dev/tty
A: /dev/tty
R: /dev/tty
C: sh -c uname -p 2> /dev/null
F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: sh -c uname -p 2> /dev/null
* --------------------------------------------------------------------------------
/var/tmp/portage/dev-python/python-exec-0.3.1/temp/environment: line 3896: syntax error near unexpected token `||'
/var/tmp/portage/dev-python/python-exec-0.3.1/temp/environment: line 3896: ` || die'
* ERROR: dev-python/python-exec-0.3.1 failed:
* error sourcing environment
*
* Call stack:
* misc-functions.sh, line 17: Called source '/usr/lib/portage/bin/ebuild.sh'
* ebuild.sh, line 498: Called die
* The specific snippet of code:
/usr/lib/portage/bin/ebuild-helpers/sed: line 10: /dev/null: Permission denied
/usr/lib/portage/bin/ebuild-helpers/sed: line 10: /dev/null: Permission denied
* source "${T}"/environment || \
* die "error sourcing environment"
*
* If you need support, post the output of `emerge --info '=dev-python/python-exec-0.3.1'`,
* the complete build log and the output of `emerge -pqv '=dev-python/python-exec-0.3.1'`.
* The complete build log is located at '/var/tmp/portage/dev-python:python-exec-0.3.1:20130531-142037.log'.
* For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/python-exec-0.3.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-python/python-exec-0.3.1/temp/environment'.
* Working directory: '/var/tmp/portage/dev-python/python-exec-0.3.1'
* S: '/var/tmp/portage/dev-python/python-exec-0.3.1/work/python-exec-0.3.1'
sh: /dev/null: Permission denied
* --------------------------- ACCESS VIOLATION SUMMARY ---------------------------
* LOG FILE: "/var/log/sandbox/sandbox-8265.log"
*
VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line
F: open_wr
S: deny
P: /dev/tty
A: /dev/tty
R: /dev/tty
C: /bin/bash /usr/lib/portage/bin/ebuild-helpers/sed -n -e # When we get to the line that failed, append it to the
# hold space, move the hold space to the pattern space,
# then print out the pattern space and quit immediately
498{H;g;p;q} -e # If this line ends with a line continuation, append it
# to the hold space
/\\$/H -e # If this line does not end with a line continuation,
# erase the line and set the hold buffer to it (thus
# erasing the hold buffer in the process)
/[^\]$/{s:^.*$::;h} /usr/lib/portage/bin/ebuild.sh
F: open_wr
S: deny
P: /dev/tty
A: /dev/tty
R: /dev/tty
C: /bin/bash /usr/lib/portage/bin/ebuild-helpers/sed -e 1d -e s:^:RETAIN-LEADING-SPACE:
F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib/portage/bin/ebuild-helpers/sed -n -e # When we get to the line that failed, append it to the
# hold space, move the hold space to the pattern space,
# then print out the pattern space and quit immediately
498{H;g;p;q} -e # If this line ends with a line continuation, append it
# to the hold space
/\\$/H -e # If this line does not end with a line continuation,
# erase the line and set the hold buffer to it (thus
# erasing the hold buffer in the process)
/[^\]$/{s:^.*$::;h} /usr/lib/portage/bin/ebuild.sh
F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: /bin/bash /usr/lib/portage/bin/ebuild-helpers/sed -e 1d -e s:^:RETAIN-LEADING-SPACE:
F: open_wr
S: deny
P: /dev/tty
A: /dev/tty
R: /dev/tty
C: /bin/bash /usr/lib/portage/bin/ebuild-ipc exit 1
F: open_wr
S: deny
P: /dev/tty
A: /dev/tty
R: /dev/tty
C: sh -c uname -p 2> /dev/null
F: open_wr
S: deny
P: /dev/null
A: /dev/null
R: /dev/null
C: sh -c uname -p 2> /dev/null
* --------------------------------------------------------------------------------
|
Output of "emerge -pqv '=dev-python/python-exec-0.3.1'"
Code: | [ebuild N ] dev-python/python-exec-0.3.1 PYTHON_TARGETS="(jython2_5) (jython2_7) (python2_5) (python2_6) (python2_7) (python3_1) (python3_2) (-pypy1_9) (-pypy2_0) (-python3_3)" |
I have a feeling the python target flags could have something to do with this, so for what it's worth, here is the info I can think of to include about python on my system:
eselect python list
Code: | Available Python interpreters:
[1] python2.4
[2] python2.5
[3] python2.6 * |
eix -e python
Code: | [UD] dev-lang/python
Available versions:
(2.4) 2.4.1-r1[1]
(2.5) 2.5.4-r4 2.5.4-r5
(2.6) 2.6.8 2.6.8-r1
(2.7) 2.7.3-r2 2.7.3-r3 ~2.7.4 ~2.7.5
(3.1) [m]3.1.5 [m]3.1.5-r1
(3.2) [m]3.2.3 [m]~3.2.3-r1 [m]3.2.3-r2 [m]~3.2.4 [m]~3.2.5
(3.3) [m]**3.3.1 [m]~3.3.2
{{X (-)berkdb bootstrap build doc elibc_uclibc examples gdbm hardened ipv6 (+)ncurses nocxx (+)readline sqlite (+)ssl tcltk +threads tk ucs2 +wide-unicode wininst +xml}}
Installed versions: 2.4.6(2.4)(16:11:27 08/17/09)(berkdb cxx gdbm ipv6 ncurses readline ssl threads xml -bootstrap -build -doc -elibc_uclibc -examples -tk -ucs2 -wininst) 2.5.4-r3(2.5)(00:51:21 07/02/09)(berkdb gdbm ipv6 ncurses readline sqlite ssl threads xml -build -doc -elibc_uclibc -examples -tk -ucs2 -wininst) 2.6.5-r3(2.6)(12:24:55 09/28/10)(berkdb gdbm ipv6 ncurses readline sqlite ssl threads wide-unicode xml -build -doc -elibc_uclibc -examples -tk -wininst)
Homepage: http://www.python.org/
Description: Python is an interpreted, interactive, object-orientated programming language.
[1] /usr/local/portage |
In my /etc/portage/package.use, I have (all on on line)
Code: | dev-python/python-exec -python_targets_jython2_5 -python_targets_jython2_7 -python_targets_pypy1_9 -python_targets_pypy2_0 -python_targets_python2_5 python_targets_python2_6 -python_targets_python2_7 -python_targets_python3_1 -python_targets_python3_2 -python_targets_python3_3 |
I also have the following lines in my /etc/make.conf
Code: | PYTHON_TARGETS="python2_6"
PYTHON_SINGLE_TARGET="python2_6"
|
I welcome any ideas that can help me get this package to emerge and hopefully continue on with my upgrade. Thanks!
Last edited by matc on Fri May 31, 2013 7:42 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mgorny Developer
![Developer Developer](/images/ranks/rank-dev.gif)
Joined: 27 Apr 2007 Posts: 83
|
Posted: Fri May 31, 2013 4:26 pm Post subject: |
|
|
Could you paste the part of /var/tmp/portage/dev-python/python-exec-0.3.1/temp/environment near line 3896? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
matc n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Aug 2005 Posts: 29
|
Posted: Fri May 31, 2013 5:31 pm Post subject: |
|
|
Quote: |
Could you paste the part of /var/tmp/portage/dev-python/python-exec-0.3.1/temp/environment near line 3896? |
This is lines 3849-3907 in the environment file. I hope this is what you're suggesting I pull out for you. Thanks for taking a look and please let me know if I need to show you some other part of the file.
Code: | python_wrapper_setup ()
{
debug-print-function ${FUNCNAME} "${@}";
local workdir=${1:-${T}/${EPYTHON}};
local impl=${2:-${EPYTHON}};
[[ -n ${workdir} ]] || die "${FUNCNAME}: no workdir specified.";
[[ -n ${impl} ]] || die "${FUNCNAME}: no impl nor EPYTHON specified.";
if [[ ! -x ${workdir}/bin/python ]]; then
mkdir -p "${workdir}"/{bin,pkgconfig} || die;
rm -f "${workdir}"/bin/python{,2,3,-config};
rm -f "${workdir}"/bin/2to3;
rm -f "${workdir}"/pkgconfig/python{,2,3}.pc;
local EPYTHON PYTHON;
python_export "${impl}" EPYTHON PYTHON;
local pyver;
if [[ ${EPYTHON} == python3* ]]; then
pyver=3;
else
pyver=2;
fi;
ln -s "${PYTHON}" "${workdir}"/bin/python || die;
ln -s python "${workdir}"/bin/python${pyver} || die;
local nonsupp=();
if [[ ${EPYTHON} == python* ]]; then
ln -s "${PYTHON}-config" "${workdir}"/bin/python-config || die;
if [[ ${EPYTHON} != python2.5 ]]; then
ln -s "${PYTHON/python/2to3-}" "${workdir}"/bin/2to3 || die;
else
nonsupp+=(2to3);
fi;
if [[ ${EPYTHON} != python2.[56] ]]; then
ln -s "${EPREFIX}"/usr/$(get_libdir)/pkgconfig/${EPYTHON/n/n-}.pc "${workdir}"/pkgconfig/python.pc || die;
else
ln -s /dev/null "${workdir}"/pkgconfig/python.pc || die;
fi;
ln -s python.pc "${workdir}"/pkgconfig/python${pyver}.pc || die;
else
nonsupp+=(2to3 python-config);
fi;
local x;
for x in "${nonsupp[@]}";
do
echo > "${workdir}"/bin/${x} <<__EOF__
#!/bin/sh
echo "${x} is not supported by ${EPYTHON}" >&2
exit 1
__EOF__
|| die
chmod +x "${workdir}"/bin/${x} || die;
done;
if [[ ${PATH##:*} != ${workdir}/bin ]]; then
PATH=${workdir}/bin${PATH:+:${PATH}};
fi;
if [[ ${PKG_CONFIG_PATH##:*} != ${workdir}/pkgconfig ]]; then
PKG_CONFIG_PATH=${workdir}/pkgconfig${PKG_CONFIG_PATH:+:${PKG_CONFIG_PATH}};
fi;
export PATH PKG_CONFIG_PATH;
fi
}
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mgorny Developer
![Developer Developer](/images/ranks/rank-dev.gif)
Joined: 27 Apr 2007 Posts: 83
|
Posted: Fri May 31, 2013 5:51 pm Post subject: |
|
|
It seems that this is a serious bug in bash. I've opened bug #471926 for it and removed the problematic statements for now. It should be fine after the next |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
matc n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Aug 2005 Posts: 29
|
Posted: Fri May 31, 2013 6:13 pm Post subject: |
|
|
Quote: | It seems that this is a serious bug in bash. I've opened bug #471926 for it and removed the problematic statements for now. It should be fine after the next
|
Thanks! I'm syncing right now.
Do I emerge just python-exec, or to I need to re-emerge bash and/or something else?
Thanks again! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
matc n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 Aug 2005 Posts: 29
|
Posted: Fri May 31, 2013 7:40 pm Post subject: |
|
|
It worked! Forgive me that I can't see what you changed, but I'm merging away.
As my problem seems to be fixed, I'm marking the post as solved.
Many thanks to you, mgorny
[EDIT]: I emerged python-exec by itself--it worked--then moved on to the rest of my project. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|