Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851750 - sys-apps/portage: unsuccessful depclean should not result in success
Summary: sys-apps/portage: unsuccessful depclean should not result in success
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on: 837899
Blocks:
  Show dependency tree
 
Reported: 2022-06-13 20:30 UTC by John Helmert III
Modified: 2023-11-11 04:15 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2022-06-13 20:30:56 UTC
Simple issue here. Even if depclean is unsuccessful, it returns success.

# emerge --quiet -cpv glibc && echo "removed glibc!"
  sys-libs/glibc-2.35-r7 pulled in by:
    dev-java/openjdk-bin-11.0.15_p10 requires >=sys-libs/glibc-2.2.5:*
    dev-java/openjdk-bin-17.0.3_p7 requires >=sys-libs/glibc-2.2.5:*
    dev-java/openjdk-bin-8.332_p09 requires >=sys-libs/glibc-2.2.5:*
    games-util/steam-launcher-1.0.0.74-r1 requires >=sys-libs/glibc-2.15[multilib]
    net-im/discord-bin-0.0.18 requires sys-libs/glibc
    sys-devel/gcc-11.3.0 requires sys-libs/glibc
    sys-libs/libxcrypt-4.4.28-r1 requires sys-libs/glibc[-crypt(+)]
    virtual/libc-1-r1 requires sys-libs/glibc:2.2
    www-client/chromium-bin-102.0.5005.115 requires >=sys-libs/glibc-2.32

removed glibc!

Here, I attempted to depclean glibc, and emerge returned as if the operation was successful.
Comment 1 Larry the Git Cow gentoo-dev 2022-06-17 17:05:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/portage.git/commit/?id=9ab9368c3324d615f1234d1ccb03eae939c393cf

commit 9ab9368c3324d615f1234d1ccb03eae939c393cf
Author:     John Helmert III <ajak@gentoo.org>
AuthorDate: 2022-06-15 22:11:17 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-06-17 17:01:49 +0000

    depclean: return failure when requested packages aren't depcleaned
    
    Closes: https://bugs.gentoo.org/851750
    Closes: https://github.com/gentoo/portage/pull/840
    Signed-off-by: John Helmert III <ajak@gentoo.org>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 lib/_emerge/actions.py | 5 +++++
 1 file changed, 5 insertions(+)