Hi Yavor, List::MoreUtils is installed globally on my system. Up until now I've never used bug resolution changes through Scmbug, so I wouldn't be able to tell whether this works as expected or not. Besides, the systems I am doing my tests on is not yet completely configured, so I haven't tried to commit anything yet.
Cheers, Marcel. On Thu, 2011-03-24 at 13:51 +0200, Yavor Nikolov wrote: > Hi Marcel, > > - Have you installed List::MoreUtils on system-wide level or it's > still just locally present in <bugzilla-root>/lib? (It's interesting > to see how things work when most bugzilla dependencies are only > locally installed in its lib subfolder). > - In addition to just having the daemon running: it's interesting to > also test that Scmbug works - e.g. changing resolution status of a > bug. > > On Thu, Mar 24, 2011 at 13:34, Marcel Loose <[email protected]> wrote: > > On Wed, 2011-03-23 at 22:34 -0400, Kristis Makris wrote: > > http://bugzilla.mkgnu.net/show_bug.cgi?id=1073 > > > > On Tue, 2011-03-15 at 08:55 +0100, Thorsten Schöning wrote: > > > > ?? I do not understand why catdir was invoked. Why is > the code trying to > > > > list the directories in the $inst_dir? > > > > > > It doesn't list anything, catdir builds paths in an OS > independent > > > way, e.g. using / vs. \. "use lib" must be used with the > lib-directory > > > > Thanks. It turns out using '/' works both for Linux and > Windows, and > > that's what Scmbug assumes anyway. When someone tries to run > Scmbug on > > some other OS and everything breaks, then I'll open a bug > and use catdir > > everywhere in Scmbug, not just the Bugzilla backend. > > > > So, catdir() is not needed. > > > > Can someone try the patch I suggested with eval, and no > catdir(), no > > BINMODE, no File::Spec, and no SERVER_SOFTWARE listed below? > > > > Index: Bugzilla.pm.in > > > =================================================================== > > RCS > file: > /projects/scmbug/cvsroot/system/src/lib/product/Daemon/Bugzilla.pm.in,v > > retrieving revision 1.89 > > diff -u -r1.89 Bugzilla.pm.in > > --- Bugzilla.pm.in 6 Mar 2011 15:38:27 -0000 1.89 > > +++ Bugzilla.pm.in 24 Mar 2011 02:32:37 -0000 > > @@ -153,7 +153,8 @@ > > if ($self->is_version_up_to_3_4() || > > $self->is_version_up_to_3_6() || > > $self->is_version_latest()) { > > - unshift @INC, $self->installation_directory() . > "/lib"; > > + my $installation_directory = > $self->installation_directory() . "/lib"; > > + eval "use lib \"$installation_directory\""; > > } > > > > # > > > > > Hi Kristis, > > I manually > changed /usr/share/scmbug/lib/Scmbug/Daemon/Bugzilla.pm > according to your patch above and it seems to work OK. The > daemon is now > running. > > Cheers, > Marcel Loose. > > > > _______________________________________________ > scmbug-users mailing list > [email protected] > http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users > > _______________________________________________ scmbug-users mailing list [email protected] http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
