Ticket #1289 (new defect)

Opened 5 years ago

Last modified 5 years ago

Cannot install app-emulation/virt-manager with permission errors

Reported by: chutz Owned by:
Priority: Sometime Milestone:
Component: clients/cave Version: 1.4.0
Keywords: Cc:
Blocked By: Blocking:
Distribution: N/A

Description

Trying to install app-emulation/virt-manager fails as below:

> sudo cave resolve -1 app-emulation/virt-manager:0 -x
Done: 4292 steps

These are the actions I will take, in order:

u   app-emulation/virt-manager:0::gentoo 0.10.0-r1 to ::installed replacing 0.10.0
    -debug gnome-keyring policykit sasl PYTHON_SINGLE_TARGET: -python2_6 python2_7 PYTHON_TARGETS: -python2_6 python2_7 build_options: symbols=compress -dwarf_compress -optional_tests -trace work=tidyup
    Reasons: target

Total: 1 upgrades

Executing pretend actions: 1 of 1

1 of 1: Starting fetch for app-emulation/virt-manager-0.10.0-r1:0::gentoo...


Output from fetch app-emulation/virt-manager-0.10.0-r1:0::gentoo:

Checking 'virt-manager-0.10.0.tar.gz'... ok
Checking 'virt-manager-0.10.0-1cd29748.tar.xz'... ok

Done fetch for app-emulation/virt-manager-0.10.0-r1:0::gentoo


1 of 1: Starting install to / for app-emulation/virt-manager-0.10.0-r1:0::gentoo replacing 0.10.0:0::installed...


Output from installing app-emulation/virt-manager-0.10.0-r1:0::gentoo to ::installed replacing 0.10.0:0::installed:

Checking 'virt-manager-0.10.0.tar.gz'... ok
Checking 'virt-manager-0.10.0-1cd29748.tar.xz'... 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 setup saveenv as root:root...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting pkg_setup
>>> Done pkg_setup
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv setup saveenv
>>> Running ebuild phases loadenv unpack saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_unpack
>>> Unpacking virt-manager-0.10.0.tar.gz to /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/work
tar zxf /var/cache/distfiles/virt-manager-0.10.0.tar.gz --no-same-owner
>>> Unpacking virt-manager-0.10.0-1cd29748.tar.xz to /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/work
xz -dc /var/cache/distfiles/virt-manager-0.10.0-1cd29748.tar.xz | strip_tar_corruption | tar xf - --no-same-owner
>>> Done src_unpack
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv unpack saveenv
>>> Running ebuild phases loadenv prepare saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_prepare
>>> Done src_prepare
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv prepare saveenv
>>> Running ebuild phases loadenv configure saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv
>>> Done builtin_loadenv
>>> Starting src_configure
>>> Done src_configure
>>> Starting builtin_saveenv
>>> Done builtin_saveenv
>>> Completed ebuild phases loadenv configure saveenv
>>> Running ebuild phases loadenv compile saveenv as paludisbuild:paludisbuild...
>>> Starting builtin_loadenv

Error:
  * In program cave perform install --hooks --managed-output --output-exclusivity with-others =app-emulation/virt-manager-0.10.0-r1:0::gentoo --destination installed --replacing =app-emulation/virt-manager-0.10.0:0::installed --x-of-y 1 of 1:
  * When installing 'app-emulation/virt-manager-0.10.0-r1:0::gentoo' replacing { 'app-emulation/virt-manager-0.10.0:0::installed' }:
  * When running an ebuild command on 'app-emulation/virt-manager-0.10.0-r1:0::gentoo':
  * Install failed for 'app-emulation/virt-manager-0.10.0-r1:0::gentoo' (paludis::ActionFailedError)

>>> Done builtin_loadenv
>>> Starting src_compile
mkdir: cannot create directory '/var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp//python2.7/home': Permission denied

!!! ERROR in app-emulation/virt-manager-0.10.0-r1::gentoo:
!!! In distutils-r1_run_phase at line 1357
!!! (no message provided)

!!! Call stack:
!!!    * distutils-r1_run_phase (/var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/loadsaveenv:1357)
!!!    * _distutils-r1_run_foreach_impl (/var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/loadsaveenv:674)
!!!    * distutils-r1_src_compile (/var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/loadsaveenv:1369)
!!!    * src_compile (/var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/loadsaveenv:5649)
!!!    * ebuild_f_compile (/usr/libexec/paludis/2/src_compile.bash:56)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:668)
!!!    * main (/usr/libexec/paludis/ebuild.bash:691)

diefunc: making ebuild PID 8221 exit with error
die trap: exiting with error.

Failed install to / for app-emulation/virt-manager-0.10.0-r1:0::gentoo replacing 0.10.0:0::installed


 * Checking whether the GNU info directory needs updating...
 * No updates needed

Summary:

failed:    install app-emulation/virt-manager-0.10.0-r1:0::gentoo to ::installed replacing 0.10.0
*** Output log: //var/log/paludis/1381164541-install-app-emulation_virt-manager-0.10.0-r1:0::gentoo.out

 * No unread news items found

 * Searching for configuration files requiring action...
 * No configuration file updates required

And looking inside /var/tmp/paludis we can see the root cause:

> find /var/tmp/paludis -not -path \*/work/\* -ls
4006913    0 drwxrwsr-x   1 paludisbuild paludisbuild       72 Oct  8 01:54 /var/tmp/paludis
59821802    0 drwxr-sr-x   1 paludisbuild paludisbuild       26 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1
59821803    0 drwxr-sr-x   1 paludisbuild paludisbuild       38 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/work
59821804    0 drwxr-sr-x   1 paludisbuild paludisbuild      102 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp
59821805    0 -rw-r--r--   1 paludisbuild paludisbuild        0 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/build_start_time
59821808    0 drwxr-sr-x   1 root     paludisbuild       24 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/python2.7
59821809    0 drwxr-sr-x   1 root     paludisbuild       60 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/python2.7/bin
59821811    4 lrwxrwxrwx   1 root     paludisbuild       18 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/python2.7/bin/python -> /usr/bin/python2.7
59821812    4 lrwxrwxrwx   1 root     paludisbuild        6 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/python2.7/bin/python2 -> python
59821813    4 lrwxrwxrwx   1 root     paludisbuild       25 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/python2.7/bin/python-config -> /usr/bin/python2.7-config
59821814    4 lrwxrwxrwx   1 root     paludisbuild       17 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/python2.7/bin/2to3 -> /usr/bin/2to3-2.7
59821810    0 drwxr-sr-x   1 root     paludisbuild       38 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/python2.7/pkgconfig
59821815    4 lrwxrwxrwx   1 root     paludisbuild       34 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/python2.7/pkgconfig/python.pc -> /usr/lib64/pkgconfig/python-2.7.pc
59821816    4 lrwxrwxrwx   1 root     paludisbuild        9 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/python2.7/pkgconfig/python2.pc -> python.pc
59822411    4 -rw-r--r--   1 paludisbuild paludisbuild        5 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/epatch_user.log
59822413  236 -rw-r--r--   1 paludisbuild paludisbuild   241372 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/temp/loadsaveenv
59821806    0 drwxr-sr-x   1 paludisbuild paludisbuild        0 Oct  8 01:54 /var/tmp/paludis/app-emulation-virt-manager-0.10.0-r1/image

I can suspect it is the python_wrapper_setup function which creates these links, and the setup phase is after all the only one that runs as root:root according to this output.

Change History

comment:1 Changed 5 years ago by chutz

Note: See TracTickets for help on using tickets.