Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 725148

Summary: app-portage/gentoolkit-0.5.0 eclean-dist removes /usr/portage/distfiles directory if it ends up empty
Product: Portage Development Reporter: July Tikhonov <july.tikh>
Component: UnclassifiedAssignee: Portage Tools Team <tools-portage>
Status: UNCONFIRMED ---    
Severity: normal CC: fturco
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.