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

Bug 123230

Summary: www-apps/rt rt-3.4.5 has an issue in the reconfig script
Product: Gentoo Linux Reporter: corey <corey_s>
Component: New packagesAssignee: Renat Lumpau (RETIRED) <rl03>
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description corey 2006-02-17 21:58:43 UTC
The problem is in the 'reconfig' script that the rt ebuild provides.  It uses 
two environment variables ( PN and PVR ) that aren't actually set when the webapp-config script is ran manually. Since they're not set, a very crucial bit of final processing/configuration gets skipped - which is the cause of the problem:

end up with config variables that point to

This results in a serious misconfiguration where the webapps root is used rather than the vhost document root.

# PN=rt; PVR=3.4.5; export PN PVR
# webapp-config -I -h <vhost> -d rt rt <version>

... will force things to work correctly.

When the 'vhosts' USE flag is _not_ set, and the webapp-config gets ran automatically, then those env vars are available at the time the script runs, and everything works out with no issues.

So I don't know whether this is simply a documentation bug ( ), or whether it is an ebuild bug.

I'm guessing that the best fix would be to have the
script end up containing the correct PN and PVR values in whatever manner is the right way of doing that sort of thing in portage.

Something to the affect of:

--- reconfig    2006-01-26 14:10:33.000000000 -0700
+++ reconfig-fix        2006-02-17 22:56:08.000000000 -0700
@@ -1,4 +1,6 @@

 die() {
Comment 1 Renat Lumpau (RETIRED) gentoo-dev 2006-02-18 06:44:18 UTC
please upgrade to webapp-config-1.50.10
Comment 2 corey 2006-02-21 14:37:38 UTC
Verified that upgrading to webapp-config-1.50.10 solved the reported issue.