<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>8471</bug_id>
          
          <creation_ts>2009-12-10 13:55:46 +0000</creation_ts>
          <short_desc>validator rpm packaging</short_desc>
          <delta_ts>2009-12-11 09:06:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>Website</component>
          <version>0.8.5</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Cedric Boudinet">bouced</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>30060</commentid>
    <comment_count>0</comment_count>
    <who name="Cedric Boudinet">bouced</who>
    <bug_when>2009-12-10 13:55:46 +0000</bug_when>
    <thetext>Hi!
I have build a rpm for w3c-validator using misc/w3c-markup-validator.spec
After installing, I often had the following error :
Base class package &quot;Class::Accessor&quot; is empty.
    (Perhaps you need to &apos;use&apos; the module which defines that package first.)
 at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/SGML/Parser/OpenSP.pm line 13
BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/SGML/Parser/OpenSP.pm line 13.
Compilation failed in require at /usr/share/w3c-markup-validator/cgi-bin/check line 61.
BEGIN failed--compilation aborted at /usr/share/w3c-markup-validator/cgi-bin/check line 61.

Then I installed perl-Class-Accessor rpm and the problem was gone.
Is it possible to fix the spec file so that dependency with perl(Class::Accessor) is managed ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30063</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2009-12-10 17:13:42 +0000</bug_when>
    <thetext>That would not be the right thing to do.  Validator does not use Class::Accessor directly, it&apos;s SGML::Parser::OpenSP that currently does, and that&apos;s an internal detail of SGML::Parser::OpenSP.

The correct way to fix this is to fix it in the package where your SGML::Parser::OpenSP comes from [0], or if it is not installed from a rpm package, I&apos;m afraid you&apos;ll need to make sure that Class::Accessor is installed yourself.

[0] For example Fedora has it in the perl-SGML-Parser-OpenSP package which already has a dependency on perl(Class::Accessor) but then again Fedora has the validator packaged too (as w3c-markup-validator) which contains all the necessary dependencies, so I&apos;m guessing you&apos;re using some other distribution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30074</commentid>
    <comment_count>2</comment_count>
    <who name="Cedric Boudinet">bouced</who>
    <bug_when>2009-12-11 09:06:07 +0000</bug_when>
    <thetext>I do agree with you (I realised a while after submitting the bug report)
Sorry for disturbing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>