After deploying www-apps/rt-4.0.5 using webapp-config the paths in <webapp-hostroot>/rt-4.0.5/lib/RT/Generated.pm are not set correctly to reflect webapp install path. Current content: $BasePath = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5'; $EtcPath = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/etc'; $BinPath = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/bin'; $SbinPath = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/sbin'; $VarPath = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/var'; $LexiconPath = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/share/po'; $PluginPath = ''; $LocalPath = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/local'; $LocalEtcPath = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/local/etc'; $LocalLibPath = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/local/lib'; $LocalLexiconPath = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/local/po'; $LocalPluginPath = ''; # $MasonComponentRoot is where your rt instance keeps its mason html files $MasonComponentRoot = '//usr/share/webapps/rt/4.0.5/htdocs'; # $MasonLocalComponentRoot is where your rt instance keeps its site-local # mason html files. $MasonLocalComponentRoot = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/local/html'; # $MasonDataDir Where mason keeps its datafiles $MasonDataDir = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/var/mason_data'; # RT needs to put session data (for preserving state between connections # via the web interface) $MasonSessionDir = '//usr/share/webapps/rt/4.0.5/hostroot/rt-4.0.5/var/session_data'; Workaround: sed -i -e 's#//usr/share/webapps/rt/4.0.5/hostroot#//var/www/example.net/www#' Generated.pm Reproducible: Always Steps to Reproduce: 1. emerge www-apps/rt 2. webapp-config -I -h www.example.com -d rt rt 4.0.5 Actual Results: Initial sign of misconfiguration I noticed was that after creating RT_SiteConfig.pm the settings weren't picked up when using rt-setup-database Expected Results: configured paths should point to the webapp deployment path, not to /usr/share/webapps
Created attachment 341230 [details, diff] patch for files/reconfig.
Comment on attachment 341230 [details, diff] patch for files/reconfig. Fixed the problem mentioned in the ticket, and organized the line while I was at it.
I have confirmed and fixed this bug in my overlay. Peter, can you please test this and commit to the tree? Thanks!
Comment on attachment 341230 [details, diff] patch for files/reconfig. >diff --git a/www-apps/rt/files/reconfig b/www-apps/rt/files/reconfig >index e84018c..605db4c 100644 >--- a/www-apps/rt/files/reconfig >+++ b/www-apps/rt/files/reconfig >@@ -12,7 +12,7 @@ if [ $1 = "install" ]; then > # fix location > cd ${VHOST_ROOT}/${PF} > sed -e "s|${MY_HOSTROOTDIR}/${PF}|${VHOST_ROOT}/${PF}|g >- s|${MY_HTDOCSDIR}|${MY_INSTALLDIR}|g" -i bin/* lib/RT.pm sbin/* etc/RT_Config.pm || die >+ s|${MY_HTDOCSDIR}|${MY_INSTALLDIR}|g" -i bin/* etc/RT_Config.pm lib/RT/Generated.pm lib/RT.pm sbin/* || die > > if [[ -e ${VHOST_ROOT}/${PF}/etc/rt_apache2.conf ]]; then > sed -i \
Created attachment 341308 [details, diff] Last patch introduced a regression with 3.8.x. This fixes to check for Generated.pm
I just went to install 4.0.8 on a demo server and this patch still hasn't made it into Gentoo. Can I please get this QA'd and pushed?
Thank you Eric. Pushed to the tree. +*rt-4.0.8-r1 (12 Oct 2013) + + 12 Oct 2013; Peter Volkov <pva@gentoo.org> +rt-4.0.8-r1.ebuild, + files/reconfig, metadata.xml: + Generated.pm should point on webapp-config installed directory, bug #414829, + thank Christoph Erdle for report and Eric Martin for this fix.