Subject: bugzilla's checkconfig.pl doesn't recognize pkgsrc's File::Spec
To: None <tech-pkg@netbsd.org>
From: None <Brandon.Adams@Omron.com>
List: tech-pkg
Date: 06/17/2005 11:49:55
This is a multipart message in MIME format.
--=_alternative 005C8F9486257023_=
Content-Type: text/plain; charset="us-ascii"

Hi again,

I'm still trying to install bugzilla from pkgsrc on OpenBSD 3.7 i386 and 
ran into this:

devel/bugzilla's install requires running a script called checkconfig.pl 
to complete installation. Using the pkgsrc from Jun 15th, the build of 
perl and perl's File::Spec breaks checkconfig.pl. The problem is that the 
parsing logic in checkconfig.pl doesn't recognize 0.9 as a version higher 
than 0.82. bugzilla wouldn't install until I forced the issue by changing 
the offending line to "0.9". Here's a patch for checkconfig.pl that is put 
into /usr/pkg/share/bugzilla by default. Someone should probably notify 
the bugzilla people that their logic code is broken there, as I imagine 
this would affect anyone who happens to upgrade past File::Spec v0.9. 

--- checksetup.pl  Fri Jun 17 06:50:27 2005
+++ checksetup.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!/usr/pkg/bin/perl -w
 # -*- Mode: perl; indent-tabs-mode: nil -*-
 #
 # The contents of this file are subject to the Mozilla Public
@@ -288,7 +288,7 @@ my $modules = [
     },
     {
         name => 'File::Spec',
-        version => '0.82'
+        version => '0.9'
     },
     {
         name => 'File::Temp',

I don't know if that could be included, and its really a band-aid, but at 
least it allows the package to function.

Brandon Adams
brandon.adams@omron.com

--=_alternative 005C8F9486257023_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">Hi again,</font>
<br>
<br><font size=2 face="sans-serif">I'm still trying to install bugzilla from pkgsrc on OpenBSD 3.7 i386 and ran into this:</font>
<br>
<br><font size=2 face="sans-serif">devel/bugzilla's install requires running a script called checkconfig.pl to complete installation. Using the pkgsrc from Jun 15th, the build of perl and perl's File::Spec breaks checkconfig.pl. The problem is that the parsing logic in checkconfig.pl doesn't recognize 0.9 as a version higher than 0.82. bugzilla wouldn't install until I forced the issue by changing the offending line to &quot;0.9&quot;. Here's a patch for checkconfig.pl that is put into /usr/pkg/share/bugzilla by default. Someone should probably notify the bugzilla people that their logic code is broken there, as I imagine this would affect anyone who happens to upgrade past File::Spec v0.9. </font>
<br>
<br><font size=2 face="sans-serif">--- checksetup.pl &nbsp;Fri Jun 17 06:50:27 2005</font>
<br><font size=2 face="sans-serif">+++ checksetup.pl</font>
<br><font size=2 face="sans-serif">@@ -1,4 +1,4 @@</font>
<br><font size=2 face="sans-serif">-#!/usr/bin/perl -w</font>
<br><font size=2 face="sans-serif">+#!/usr/pkg/bin/perl -w</font>
<br><font size=2 face="sans-serif">&nbsp;# -*- Mode: perl; indent-tabs-mode: nil -*-</font>
<br><font size=2 face="sans-serif">&nbsp;#</font>
<br><font size=2 face="sans-serif">&nbsp;# The contents of this file are subject to the Mozilla Public</font>
<br><font size=2 face="sans-serif">@@ -288,7 +288,7 @@ my $modules = [</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;},</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;{</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;name =&gt; 'File::Spec',</font>
<br><font size=2 face="sans-serif">- &nbsp; &nbsp; &nbsp; &nbsp;version =&gt; '0.82'</font>
<br><font size=2 face="sans-serif">+ &nbsp; &nbsp; &nbsp; &nbsp;version =&gt; '0.9'</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;},</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp;{</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;name =&gt; 'File::Temp',</font>
<br>
<br><font size=2 face="sans-serif">I don't know if that could be included, and its really a band-aid, but at least it allows the package to function.</font>
<br>
<br><font size=2 face="sans-serif">Brandon Adams</font>
<br><font size=2 face="sans-serif">brandon.adams@omron.com</font>
<br>
--=_alternative 005C8F9486257023_=--