[Mageia-sysadm] [477] do snapshots of the custom bugzilla template
Michael scherer
misc at zarb.org
Fri Nov 26 22:00:41 CET 2010
On Fri, Nov 26, 2010 at 08:42:32PM +0100, Dexter Morgan wrote:
> On Fri, Nov 26, 2010 at 7:42 PM, Michael scherer <misc at zarb.org> wrote:
> > On Fri, Nov 26, 2010 at 04:03:12PM +0100, root at mageia.org wrote:
> >> Revision: 477
> >> Author: dmorgan
> >> Date: 2010-11-26 16:03:12 +0100 (Fri, 26 Nov 2010)
> >> Log Message:
> >> -----------
> >> do snapshots of the custom bugzilla template
> >>
> >> Modified Paths:
> >> --------------
> >> puppet/modules/bugzilla/manifests/init.pp
> >>
> >> Modified: puppet/modules/bugzilla/manifests/init.pp
> >> ===================================================================
> >> --- puppet/modules/bugzilla/manifests/init.pp 2010-11-26 12:48:53 UTC (rev 476)
> >> +++ puppet/modules/bugzilla/manifests/init.pp 2010-11-26 15:03:12 UTC (rev 477)
> >> @@ -1,5 +1,7 @@
> >> class bugzilla {
> >>
> >> + $bugzilla_location = "/usr/share/bugzilla/template/en/custom"
> >> +
> >
> > IMHO, /usr is not really the good place for this, as it should be kept
> > for the distribution :
> > http://www.pathname.com/fhs/pub/fhs-2.3.html#PURPOSE18
> >
> > According to FHS, this would rather go to /var/.
> >
> > --
> > Michael Scherer
>
> hi,
>
> the issue here is that bugzilla is directly installed here. you
> suggest we change the rpm ?
I suggest to either use bugzilla facility to use any directory ( but a quick check
of the code show that bugzilla do not support it, while this seems to be quite easy to do by adding
some code to Bugzilla/Constants.pm ), or to use a extension ( which will then give a
/var/ directory as result to the call of template_dir ).
Extensions seems safer to me, but that would still requires fiddling
with /usr to add the extension. I am not sure it can be done by some
PERL5LIB magic. And the fact that no one even commented on this
3 years old bug report ( https://bugzilla.mozilla.org/show_bug.cgi?id=370447 )
do let me much hope :/
A third option would be to use PERL5LIB to shortcircuit Bugzilla::Constants.
> should we wait for mageia to start or we do a custom rpm for now ?
I think a extension can be done without touching to bugzilla rpm.
But IMHO, bugzilla should be able to read template from a custom directory,
like transifex or any catalyst application ( ie, like everything we have
deployed so far except bugzilla ).
--
Michael Scherer
More information about the Mageia-sysadm
mailing list