Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169047 - Add --show-install-reasons functionality from paludis to Portage
Summary: Add --show-install-reasons functionality from paludis to Portage
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-02 21:24 UTC by Petteri Räty (RETIRED)
Modified: 2022-10-20 02:43 UTC (History)
3 users (show)

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


Attachments
More readable output with colour. Use "less" to open. (cave_explain_example.txt,5.21 KB, text/plain)
2011-04-12 00:35 UTC, Aleksandar Petrinic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2007-03-02 21:24:29 UTC
23:15 < zmedico> Betelgeuse: I suppose you could always file a feature request bug asking us to clone --show-install-reasons

\o/
Comment 1 Sebastian Luther (few) 2010-04-29 09:53:32 UTC
Could some please paste an example? What information does it contain that cannot be extracted out of emerge's output?
Comment 2 Aleksandar Petrinic 2011-04-12 00:21:57 UTC
paludis client is dead and removed from paludis project. Now there is a new client based on libpaludis called "cave".
There is no "--show-install-reasons" in cave since it shows reasons by default.
Anyway there is "--explain or -X" that explains a specific decision.
Here an example, I requested an explanation about sys-apps/baselayout.
Pay attention the old "--show-install-reasons" is specified for every package with "Reasons:".
---------------------------------------
ariel ape # cave resolve system -X sys-apps/baselayout
Done: 4286 steps               

These are the actions I will take, in order:

u   app-arch/xz-utils:0::gentoo 5.0.2 to ::installed replacing 5.0.1-r1
    nls -static-libs threads build_options: -optional_tests symbols=split -trace -preserve_work
    Reasons: target (system::gentoo), sys-kernel/linux-headers
    1.18 MBytes to download
u   sys-apps/baselayout:0::gentoo 2.0.2 to ::installed replacing 2.0.1-r1
    -build build_options: -optional_tests symbols=split -trace -preserve_work
    Reasons: target (system::gentoo), sys-apps/module-init-tools, sys-apps/openrc, sys-fs/udev
    39.05 kBytes to download
u   sys-libs/zlib:0::gentoo 1.2.5-r2 to ::installed replacing 1.2.3-r1
    build_options: -optional_tests symbols=split -trace -preserve_work
    Reasons: target (system::gentoo), app-arch/libarchive, app-text/ghostscript-gpl, 42 more
    474.97 kBytes to download
u   net-misc/rsync:0::gentoo 3.0.8 to ::installed replacing 3.0.7
    acl iconv ipv6 -static -xattr build_options: -optional_tests symbols=split -trace -preserve_work
    Reasons: target (system::gentoo), sys-apps/paludis (sug), sys-apps/portage
    772.19 kBytes to download
u   sys-devel/automake:1.11::gentoo 1.11.1-r1 to ::installed replacing 1.11.1
    build_options: -optional_tests symbols=split -trace -preserve_work
    Reasons: target (system::gentoo), !=sys-devel/automake-1.10 from sys-devel/libtool, sys-devel/libtool, sys-fs/udev
    1.02 MBytes to download
u   sys-fs/udev:0::gentoo (formerly from systemd) 167-r1 to ::installed replacing 164-r1 [cycle 1]
    extras (-selinux) (-test) build_options: -optional_tests symbols=split -trace -preserve_work
    Reasons: target (system::gentoo), !<sys-fs/udev-133 from sys-apps/openrc, dev-libs/libatasmart, 9 more
    589.82 kBytes to download
    In dependency cycle with: sys-apps/openrc:0, sys-apps/sysvinit:0, sys-fs/device-mapper:0, sys-fs/lvm2:0, sys-fs/udev:0, sys-kernel/linux-headers:0, virtual/init:0
u   sys-kernel/linux-headers:0::gentoo 2.6.38 to ::installed replacing 2.6.36.1 [cycle 1]
    build_options: -optional_tests -trace -preserve_work
    Reasons: target (system::gentoo), !<sys-kernel/linux-headers-2.6.29 from sys-fs/udev, sys-fs/udev
    4.40 MBytes to download
n   virtual/package-manager:0::gentoo 0 to ::installed
    "Virtual for the package manager"
    build_options: -optional_tests symbols=split -trace -preserve_work
    Reasons: target (system::gentoo)

Total: 7 upgrades, 1 new installs, 8.44 MBytes to download

Build Options:
    optional_tests:                Run tests considered by the package to be optional
    preserve_work:                 Do not remove build directories, and do not modify the image when merging
    symbols:                       How to handle debug symbols in installed files
    trace:                         Trace actions executed by the package (very noisy, for debugging broken builds only)

I cannot proceed without being permitted to do the following:

X   sys-apps/systemd 9999:0::installed
    Will be broken by uninstalls:
    Reasons: dependent upon sys-fs/udev-164-r1:0::installed
    Cannot proceed without: --uninstalls-may-break or --remove-if-dependent

Explaining requested decisions:

For sys-apps/baselayout:0::(install_to_slash):
    The following constraints were in action:
      * sys-apps/baselayout, use existing if same, installing to /
        Because of target (system::gentoo)
      * >=sys-apps/baselayout-1.12.5, use existing if possible, installing to /
        Because of >=sys-apps/baselayout-1.12.5 from sys-fs/udev-167-r1:0::gentoo, key 'Run dependencies', labelled 'RDEPEND'
      * >=sys-apps/baselayout-1.12.7-r2, use existing if possible, installing to /
        Because of >=sys-apps/baselayout-1.12.7-r2 from sys-apps/module-init-tools-3.5:0::installed, key 'Run dependencies', labelled 'RDEPEND'
      * >=sys-apps/baselayout-2.0.0, use existing if possible, installing to /
        Because of >=sys-apps/baselayout-2.0.0 from sys-apps/openrc-0.7.0:0::installed, key 'Run dependencies', labelled 'RDEPEND'
    The decision made was:
        Use origin ID sys-apps/baselayout-2.0.2:0::gentoo
        Install to repository installed
            Replacing sys-apps/baselayout-2.0.1-r1:0::installed
Executing pretend actions: 8 of 8

 * No unread news items found
ariel ape #
Comment 3 Aleksandar Petrinic 2011-04-12 00:35:14 UTC
Created attachment 269581 [details]
More readable output with colour. Use "less" to open.