First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 125154
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Web Application Packages Maintainers <web-apps@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Kerin Millar <kerframil@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 125154 depends on: Show dependency tree
Bug 125154 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-03-05 16:54 0000
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 From Gunnar Wrobel 2006-03-06 00:32:51 0000 -------
Absolutely valid point.

Added keepdir in cvs.

Thanks for the report!

First Last Prev Next    No search results available      Search page      Enter new bug