Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 725148 - app-portage/gentoolkit-0.5.0 eclean-dist removes /usr/portage/distfiles directory if it ends up empty
Summary: app-portage/gentoolkit-0.5.0 eclean-dist removes /usr/portage/distfiles direc...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-25 07:00 UTC by July Tikhonov
Modified: 2021-12-23 15:01 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 July Tikhonov 2020-05-25 07:00:22 UTC
Steps to reproduce:
1) make it so that /usr/portage/distfiles does not contain useful files (i.e. that would not be removed by eclean-dist), but contains at least one file.
2) run eclean-dist or eclean-dist --deep
3) observe that /usr/portage/distfiles directory is no longer present

This is not a problem for portage itself (it will recreate this directory as needed), but subsequently running eclean-dist or eclean-pkg will give error like

!!! /usr/portage/distfiles does not appear to be a directory.
!!! Please set DISTDIR to a sane value.
!!! (Check your make.conf file and environment).

Expected result: eclean-dist does not break subsequent run of eclean-pkg, by either not removing the distfiles directory or by eclean-pkg not generating error out of this.

(gentoolkit-0.4.8 seems to have the same problem.)
Comment 1 Francesco Turco 2020-05-25 09:24:53 UTC
I can also reproduce this bug with app-portage/gentoolkit-0.5.0.