PacketFence - BTS - PacketFence
View Issue Details
0000806PacketFencecorepublic2009-09-28 15:422012-02-29 10:58
obilodeau 
obilodeau 
highmajoralways
closedfixed 
 
 
0000806: Parse::RecDescent regression causing errors in admin interface
Error message is: Can't coerce GLOB to string in or at /usr/local/pf/bin/pfcmd line 1794.

It turns out that a newer Parse::RecDescent generate a pfcmd_pregrammar.pm that causes problems when pfcmd is called form the admin interface.

http://search.cpan.org/dist/Parse-RecDescent/ [^]

known buggy:
perl-Parse-RecDescent-1.962.2-1.el5.rf

known to work:
perl-Parse-RecDescent-1.94-1.el5.rf

Tasks:
- pin down specific version in packetfence's rpm spec
- find out what are we doing wrong in our usage or if its an upstream regression

Workaround for users who already installed (not tested):
rpm -e --nodeps perl-Parse-RecDescent
yum install perl-Parse-RecDescent-1.94

No tags attached.
child of 0000833closed obilodeau Parse::RecDescent 1.962 regression 
Issue History
2009-09-28 15:42obilodeauNew Issue
2009-09-28 15:43obilodeauStatusnew => assigned
2009-09-28 15:43obilodeauAssigned To => obilodeau
2009-09-28 15:59obilodeauNote Added: 0001315
2009-09-28 15:59obilodeauSeverityminor => major
2009-10-13 11:28rbalzardNote Added: 0001327
2009-10-13 11:31rbalzardNote Edited: 0001327
2009-10-13 11:32rbalzardCategory1.8.5 => future
2009-10-26 15:58obilodeauNote Added: 0001369
2009-10-30 10:19obilodeauNote Added: 0001378
2009-10-30 10:19obilodeauPrioritynormal => high
2009-10-30 15:11obilodeauNote Added: 0001379
2009-10-30 15:11obilodeauStatusassigned => resolved
2009-10-30 15:11obilodeauResolutionopen => fixed
2009-10-30 15:12obilodeauNote Added: 0001380
2009-10-30 15:17obilodeauRelationship addedchild of 0000833
2010-01-19 10:45obilodeauNote Added: 0001457
2011-01-26 15:43obilodeauStatusresolved => closed
2012-02-29 10:58obilodeauCategoryfuture => core

Notes
(0001315)
obilodeau   
2009-09-28 15:59   
Increasing severity since anyone using the web admin to do management will experience problems.
(0001327)
rbalzard   
2009-10-13 11:28   
(edited on: 2009-10-13 11:31)
Fixed temporarily the issue by seting the version to 1.94 in packetfence.spec.
This will stabilize v1.8.5.

fixed in revision c891b969c76b5c2d7c2ff3128bb7e9bd1bdfcbea

(0001369)
obilodeau   
2009-10-26 15:58   
The fix was wrong. RecDescent is needed as a build dependency also. I pinned both requirement to 1.94.

Fixed in monotone at rev: 4153b5c682de89bb8b48a3395a6e90d974a1c4a2
http://mtn.inverse.ca/revision/info/4153b5c682de89bb8b48a3395a6e90d974a1c4a2 [^]

We'll test during the 1.9.x window and report upstream if still broken but no time right now.
(0001378)
obilodeau   
2009-10-30 10:19   
doing a yum update will fetch the latest Parse::RecDescent it would seem, our rpm spec doesn't pin down a specific version..

increasing priority to get this fixed quickly
(0001379)
obilodeau   
2009-10-30 15:11   
Fixed in the RPM spec by avoiding what seems to be a Require: bug with perl dependencies.

Mtn revision: 4520915c38a648ad954e8e2953fb53c0df0892c6

pushed new RPMs 1.8.5-2 to our yum repo
(0001380)
obilodeau   
2009-10-30 15:12   
By the way, here is what a failed update attempt will look like:

[root@localhost pf]# yum update perl-Parse-RecDescent
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirrors.portafixe.com
 * base: mirror.unl.edu
 * extras: centos.mirror.nac.net
 * rpmforge: fr2.rpmfind.net
 * updates: mirrors.cmich.edu
Setting up Update Process
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: perl-Parse-RecDescent = 1.94 for package: packetfence
---> Package perl-Parse-RecDescent.noarch 0:1.962.2-1.el5.rf set to be updated
--> Finished Dependency Resolution
packetfence-1.8.5-2.el5.noarch from installed has depsolving problems
  --> Missing Dependency: perl-Parse-RecDescent = 1.94 is needed by package packetfence-1.8.5-2.el5.noarch 
(installed)
Error: Missing Dependency: perl-Parse-RecDescent = 1.94 is needed by package packetfence-1.8.5-2.el5.noarch 
(installed)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
(0001457)
obilodeau   
2010-01-19 10:45   
To avoid updating perl-Parse-RecDescent:

yum update --exclude=perl-Parse-RecDescent