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

Bug 125154

Summary: webapp-config-1.50.x doesn't create /var/db/webapps
Product: Gentoo Linux Reporter: kfm
Component: [OLD] UnspecifiedAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED FIXED    
Severity: normal CC: ragnaroc
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description kfm 2006-03-05 16:54:28 UTC
Hi. To demonstrate this issue first let's look at what happens when webapp-config-1.11 is invoked as such on a "clean" setup:

  # webapp-config --list-installs
  Fatal error: No virtual installs found for *-*
  Fatal error(s) - aborting

OK, that's not a very nice message but it's expected behaviour with this version of webapp-config. Now let's see what happens when we do the same with a clean install of webapp-config-1.5.11:

  # webapp-config --list-installs
  * Fatal error: "/var/db/webapps" specifies no directory! webapp-config needs a valid directory to store/retrieve information. Pease correct your settings.
  * Fatal error(s) - aborting

Why isn't this directory either automatically created by the ebuild or created on the fly by the WebappDB class in db.py? And what settings are there to correct? The directory appears to be hard-coded in the constructor. I don't see any reason why a user should have to attend to this before the tool works properly.

So, I'm requesting to have a "keepdir /var/db/webapps" call in the ebuild itself. I suggest "keepdir" instead of "dodir" becuase if "keepdir" isn't used then I think the following scenario could occur (similar to bug 107756):

  1) emerge webapp-config clean, /var/db/webapps is initially created and is empty
  2) Later re-emerge webapp-config where /var/db/webapps is empty (for whatever reason)
  3) Because /var/db/webapps exists but is empty and "keepdir" isn't used, portage will think it's OK to remove the dir and so we end up with the same problem all over again!
Comment 1 Gunnar Wrobel (RETIRED) gentoo-dev 2006-03-06 00:32:51 UTC
Absolutely valid point.

Added keepdir in cvs.

Thanks for the report!