Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123230 - www-apps/rt rt-3.4.5 has an issue in the reconfig script
Summary: www-apps/rt rt-3.4.5 has an issue in the reconfig script
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Renat Lumpau (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-17 21:58 UTC by corey
Modified: 2006-02-21 14:37 UTC (History)
0 users

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 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:

the 
/var/www/<vhost>/rt-<version>/*/*.pm's
end up with config variables that point to
/usr/share/webapps/rt/<version>/hostroot/rt-<version>/*/*.pm's

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 ( http://wiki.bestpractical.com/index.cgi?GentooInstallGuide ), or whether it is an ebuild bug.

I'm guessing that the best fix would be to have the
/usr/share/webapps/rt/<version>/hooks/reconfig
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 @@
 #!/bin/bash
+PN=${PN:-rt}
+PVR=${PVR:-3.4.5}
 PF=${PN}-${PVR}

 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.