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

Bug 659202

Summary: Warning "!!! You have no world file" occurs on empty world files
Product: Portage Development Reporter: Manuel Schmitt <manuel.schmitt>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: esigra, fturco
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 144480    

Description Manuel Schmitt 2018-06-26 04:28:58 UTC
When doing an 

 emerge --depclean

it throws

  !!! You have no world file

if a world file is empty but existing.

I suggest to change the behaviour to the following:

1. If the world file is really missing, show the error as before
2. If the world file exists but is empty, do not show the error, maybe another informational warning

Background for my suggestion: Using empty world file is not uncommon when using profiles derived from Gentoo's profile while adding all relevant packages to a derived @system set (e.g. for keeping multiple servers in sync with custom profiles).