Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125154 - webapp-config-1.50.x doesn't create /var/db/webapps
Summary: webapp-config-1.50.x doesn't create /var/db/webapps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-05 16:54 UTC by kfm
Modified: 2006-03-06 00:32 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 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!