[paludis-user] failed pbin install, cannot load saved environment

Andrej Filipcic andrej.filipcic at ijs.si
Tue Nov 19 11:19:33 UTC 2013


Hi,

I have a problem installing gentoo pbin dev-python/reportlab-2.6

this command (pbins are in f9bin overlay)
cave resolve -1z -Cs --via-binary '*/*' --hide '*/*::f9bin'
dev-python/reportlab -x
shows the messages at the bottom of this email.

I tried to manually setup the env and run scrub function in verbose mode
and it fails when it encounters BASHPID env:
ebuild_scrub_environment
/var/tmp/paludis/environment-dev-python-reportlab-2.6-29966 --pivot
...
+++ BASH=/bin/bash
++++ [[ BASHOPTS ==
?(*[[:space:]])!(PATH|PALUDIS_SOURCE_MERGED_VARIABLES|PALUDIS_BRACKET_MERGED_VARIABLES|LD_LIBRARY_PATH|paludis_declared_functions|[^a-zA-Z_]*|*[^a-zA-Z0-9_]*|EUID|PPID|UID|FUNCNAME|GROUPS|SHELLOPTS|BASHOPTS|IFS|BASH_@(ARGC|ARGV|LINENO|SOURCE|VERSINFO|REMATCH)|BASH_COMPLETION?(_DIR)|bash+([0-9])?([a-z])|EBUILD_KILL_PID|PALUDIS_LOADSAVEENV_DIR|PALUDIS_DO_NOTHING_SANDBOXY|SANDBOX_ACTIVE|PALUDIS_IGNORE_PIVOT_ENV_FUNCTIONS|PALUDIS_IGNORE_PIVOT_ENV_VARIABLES|PALUDIS_PIPE_COMMAND_READ_FD|PALUDIS_PIPE_COMMAND_WRITE_FD)
]]
++++ [[
BASHOPTS=cmdhist:expand_aliases:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
!= @(*=*|export|declare) ]]
++++ [[ BASHPID ==
?(*[[:space:]])!(PATH|PALUDIS_SOURCE_MERGED_VARIABLES|PALUDIS_BRACKET_MERGED_VARIABLES|LD_LIBRARY_PATH|paludis_declared_functions|[^a-zA-Z_]*|*[^a-zA-Z0-9_]*|EUID|PPID|UID|FUNCNAME|GROUPS|SHELLOPTS|BASHOPTS|IFS|BASH_@(ARGC|ARGV|LINENO|SOURCE|VERSINFO|REMATCH)|BASH_COMPLETION?(_DIR)|bash+([0-9])?([a-z])|EBUILD_KILL_PID|PALUDIS_LOADSAVEENV_DIR|PALUDIS_DO_NOTHING_SANDBOXY|SANDBOX_ACTIVE|PALUDIS_IGNORE_PIVOT_ENV_FUNCTIONS|PALUDIS_IGNORE_PIVOT_ENV_VARIABLES|PALUDIS_PIPE_COMMAND_READ_FD|PALUDIS_PIPE_COMMAND_WRITE_FD)
]]
+++ BASHPID=27222
+++ [[ eval "trap DEBUG; shopt -u extdebug; set +T; return ${?}" ==
?(*[[:space:]])!(PATH|PALUDIS_SOURCE_MERGED_VARIABLES|PALUDIS_BRACKET_MERGED_VARIABLES|LD_LIBRARY_PATH|paludis_declared_functions|[^a-zA-Z_]*|*[^a-zA-Z0-9_]*|EUID|PPID|UID|FUNCNAME|GROUPS|SHELLOPTS|BASHOPTS|IFS|BASH_@(ARGC|ARGV|LINENO|SOURCE|VERSINFO|REMATCH)|BASH_COMPLETION?(_DIR)|bash+([0-9])?([a-z])|EBUILD_KILL_PID|PALUDIS_LOADSAVEENV_DIR|PALUDIS_DO_NOTHING_SANDBOXY|SANDBOX_ACTIVE|PALUDIS_IGNORE_PIVOT_ENV_FUNCTIONS|PALUDIS_IGNORE_PIVOT_ENV_VARIABLES|PALUDIS_PIPE_COMMAND_READ_FD|PALUDIS_PIPE_COMMAND_WRITE_FD)
]]
+++ [[ eval != @(*=*|export|declare) ]]
++ eval 'trap DEBUG; shopt -u extdebug; set +T; return 1'
++++ [[ trap DEBUG ==
?(*[[:space:]])!(PATH|PALUDIS_SOURCE_MERGED_VARIABLES|PALUDIS_BRACKET_MERGED_VARIABLES|LD_LIBRARY_PATH|paludis_declared_functions|[^a-zA-Z_]*|*[^a-zA-Z0-9_]*|EUID|PPID|UID|FUNCNAME|GROUPS|SHELLOPTS|BASHOPTS|IFS|BASH_@(ARGC|ARGV|LINENO|SOURCE|VERSINFO|REMATCH)|BASH_COMPLETION?(_DIR)|bash+([0-9])?([a-z])|EBUILD_KILL_PID|PALUDIS_LOADSAVEENV_DIR|PALUDIS_DO_NOTHING_SANDBOXY|SANDBOX_ACTIVE|PALUDIS_IGNORE_PIVOT_ENV_FUNCTIONS|PALUDIS_IGNORE_PIVOT_ENV_VARIABLES|PALUDIS_PIPE_COMMAND_READ_FD|PALUDIS_PIPE_COMMAND_WRITE_FD)
]]
+++ trap DEBUG
+++ shopt -u extdebug
+++ set +T
+++ return 1
++ eval 'shopt -u extglob; return 1'
+++ shopt -u extglob
+++ return
....


Any idea how to fix this? This is the only package out of 3k which fails
installing from pbin. Installing directly from gentoo to the system
works fine.
using sys-apps/paludis-1.4.2-r1

Cheers,
Andrej


....
2 of 2: Starting install to / for dev-python/reportlab-2.6:0::f9bin
replacing 2.6:0::installed...


Output from installing dev-python/reportlab-2.6:0::f9bin to ::installed
replacing 2.6:0::installed:

Checking
'f9bin--dev-python--reportlab-2.6--C.26066.1384859335.699457.C.tar.bz2'...
ok
>>> Running ebuild phase killold as root:root...
>>> Starting builtin_killold
>>> Done builtin_killold
>>> Completed ebuild phase killold
>>> Running ebuild phases init saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_init
>>> Done builtin_init
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases init saveenv
>>> Running ebuild phases loadenv pivotbin pretend as
paludisbuild:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting builtin_pivotbin
>>> Extracting package environment
tar jxvf
/net/karolina/d1/nfs/gentoo/packages/amd64.paludis/f9bin--dev-python--reportlab-2.6--C.26066.1384859335.699457.C.tar.bz2
-C /var/tmp/paludis/dev-python-reportlab-2.6/temp/ --strip-components 1
PBIN/environment
PBIN/environment
>>> Switching to package environment
cp /var/tmp/paludis/dev-python-reportlab-2.6/temp//environment
/var/tmp/paludis/environment-dev-python-reportlab-2.6-29966
ebuild_scrub_environment
/var/tmp/paludis/environment-dev-python-reportlab-2.6-29966 --pivot

Error:
  * In program cave perform install --hooks --managed-output
--output-exclusivity with-others =dev-python/reportlab-2.6:0::f9bin
--destination installed --replacing
=dev-python/reportlab-2.6:0::installed --x-of-y 2 of 2:
  * When installing 'dev-python/reportlab-2.6:0::f9bin' replacing {
'dev-python/reportlab-2.6:0::installed' }:
  * When running an ebuild command on 'dev-python/reportlab-2.6:0::f9bin':
  * Install failed for 'dev-python/reportlab-2.6:0::f9bin'
(paludis::ActionFailedError)


!!! ERROR in dev-python/reportlab-2.6::f9bin:
!!! In ebuild_load_environment at line 952
!!! Can't load saved environment for cleaning

!!! Call stack:
!!!    * ebuild_load_environment
(/var/tmp/paludis/dev-python-reportlab-2.6/temp/loadsaveenv:952)
!!!    * builtin_pivotbin
(/usr/libexec/paludis/pbin-1/builtin_pivotbin.bash:38)
!!!    * generic_internal_pivotbin
(/usr/libexec/paludis/pbin-1/builtin_pivotbin.bash:50)
!!!    * ebuild_f_pivotbin
(/usr/libexec/paludis/pbin-1/builtin_pivotbin.bash:57)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:673)
!!!    * main (/usr/libexec/paludis/ebuild.bash:696)


!!! Could not extract the saved environment file. This is usually
!!! caused by a broken environment.bz2 that was generated by an old
!!! Portage version. The file that needs repairing is:
!!!     /var/tmp/paludis/dev-python-reportlab-2.6/temp//environment
!!! Try copying this file, bunzip2ing it and sourcing it using a new
!!! bash shell (do not continue to use said shell afterwards). You
!!! should get an error that gives you a rough idea of where the
!!! problem lies.
...

-- 
_____________________________________________________________
   prof. dr. Andrej Filipcic,   E-mail: Andrej.Filipcic at ijs.si
   Department of Experimental High Energy Physics - F9
   Jozef Stefan Institute, Jamova 39, P.o.Box 3000
   SI-1001 Ljubljana, Slovenia
   Tel.: +386-1-477-3674    Fax: +386-1-477-3166
-------------------------------------------------------------




More information about the paludis-user mailing list