Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1093113

Summary: FTBFS: pacemaker Can't locate Syntax/Highlight/Engine/Kate/.pm in @INC
Product: Red Hat Enterprise Linux 7 Reporter: Pat Riehecky <riehecky>
Component: publicanAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED WONTFIX QA Contact: cluster-qe <cluster-qe>
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: cluster-maint, csieh, fdinitto, jpokorny, kbsingh, misterbonnie, redhatbugs, tis
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-02 08:58:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
mock config for replication
none
Proposed patch to pacemaker none

Description Pat Riehecky 2014-04-30 16:06:16 UTC
Created attachment 891212 [details]
mock config for replication

Description of problem: Attempting to rebuild pacemaker on the RHEL7 RC fails to build.  It appears to be importing perl a perl module in an odd manner.

I don't believe Syntax/Highlight/Engine/Kate/.pm is a valid perl module for importing.

Version-Release number of selected component (if applicable):pacemaker-1.1.10-29.el7.src.rpm


How reproducible:100%


Steps to Reproduce:
1.init buildroot with attached mock config
2.
3.

Actual results:
Beginning work on en-US
DTD Validation OK
	Starting html-desktop
	Using XML::LibXSLT on /usr/share/publican/xsl/html-single.xsl
	Finished html-desktop
rm -rf Pacemaker_Remote/tmp
touch Pacemaker_Remote.build
undefined language: Apache_Configuration at /usr/share/perl5/vendor_perl/Syntax/Highlight/Engine/Kate.pm line 621.
cannot create plugin for language 'Apache_Configuration'
Can't locate Syntax/Highlight/Engine/Kate/.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 263) line 1.
BEGIN failed--compilation aborted at (eval 263) line 1.
  STACK IS EMPTY: PANIC
 at /usr/share/perl5/vendor_perl/Syntax/Highlight/Engine/Kate/Template.pm line 463.
	Syntax::Highlight::Engine::Kate::Template::logwarning('Syntax::Highlight::Engine::Kate=HASH(0x75c38c8)', 'cannot create plugin for language \'Apache_Configuration\'\x{a}Ca...') called at /usr/share/perl5/vendor_perl/Syntax/Highlight/Engine/Kate/Template.pm line 509
	Syntax::Highlight::Engine::Kate::Template::pluginGet('Syntax::Highlight::Engine::Kate=HASH(0x75c38c8)', 'Apache_Configuration') called at /usr/share/perl5/vendor_perl/Syntax/Highlight/Engine/Kate.pm line 633
	Syntax::Highlight::Engine::Kate::reset('Syntax::Highlight::Engine::Kate=HASH(0x75c38c8)') called at /usr/share/perl5/vendor_perl/Syntax/Highlight/Engine/Kate.pm line 581
	Syntax::Highlight::Engine::Kate::language('Syntax::Highlight::Engine::Kate=HASH(0x75c38c8)', 'Apache_Configuration') called at /usr/share/perl5/vendor_perl/Publican/Builder.pm line 2430
	Publican::Builder::highlight('XML::LibXML::NodeList=ARRAY(0x75c32f8)', 'XML::LibXML::NodeList=ARRAY(0x75a4070)') called at /usr/lib64/perl5/vendor_perl/XML/LibXSLT.pm line 81
	XML::LibXSLT::perl_dispatcher('CODE(0x3d4aab8)', 'XML::LibXML::Document=SCALAR(0x3a47768)', 'XML::LibXML::NodeList', 1, 'XML::LibXML::Document=SCALAR(0x3a80f38)', 'XML::LibXML::NodeList', 1, 'XML::LibXML::Document=SCALAR(0x39b07b0)') called at /usr/lib64/perl5/vendor_perl/XML/LibXSLT.pm line 467
	eval {...} called at /usr/lib64/perl5/vendor_perl/XML/LibXSLT.pm line 467
	eval {...} called at /usr/lib64/perl5/vendor_perl/XML/LibXSLT.pm line 467
	XML::LibXSLT::StylesheetWrapper::transform('XML::LibXSLT::StylesheetWrapper=HASH(0x39d2e70)', 'XML::LibXML::Document=SCALAR(0x3a14660)', 'toc.section.depth', 2, 'desktop', 1, 'generate.section.toc.level', 4, 'l10n.gentext.language', ...) called at /usr/share/perl5/vendor_perl/Publican/Builder.pm line 1557
	Publican::Builder::transform('Publican::Builder=HASH(0x1742950)', 'HASH(0x3aba520)') called at /usr/share/perl5/vendor_perl/Publican/Builder.pm line 244
	Publican::Builder::build('Publican::Builder=HASH(0x1742950)', 'HASH(0x3afac00)') called at /usr/bin/publican line 936
LibXSLT: error coming back from perl-dispatcher in pm file. Can't call method "basecontext" on an undefined value at /usr/share/perl5/vendor_perl/Syntax/Highlight/Engine/Kate.pm line 634.
 at /usr/share/perl5/vendor_perl/Publican/Builder.pm line 1557.

Expected results:
no errors

Additional info:

Comment 3 Pat Riehecky 2014-05-01 14:17:15 UTC
Sending to the publican folks.

Publican version: publican-3.2.0-3.el7.noarch (from RC)

Fails to generate docs for the listed pacemaker package.

publican-3.1.5-4.el7.noarch (from BETA) correctly generates the docs.

Comment 4 Tuomo Soini 2014-05-05 13:09:43 UTC
This is same problem as bug#995932

Comment 5 Andrew Beekhof 2014-10-23 03:38:12 UTC
This is blocking pacemaker docs from building

Comment 6 Tuomo Soini 2014-10-23 05:35:30 UTC
Created attachment 949639 [details]
Proposed patch to pacemaker

I don't know if this is really publican or pacemaker bug but this patch to pacemaker fixes the build.

There is one instance of this is doc, every other case I found was [source,C]. Seems like publican doesn't accept this any more.

[source,Apache Configuration]

Comment 7 Tuomo Soini 2014-10-23 07:24:24 UTC
Actually this is obviously not pacemaker bug but my patch is work-around for the bug.

Comment 8 Jeff Fearn 🐞 2015-01-27 03:51:32 UTC
In my testing back porting the patch for 995932 fixes this issue, just waiting for ACKs now.

Comment 10 Jan Pokorný [poki] 2019-04-02 07:59:39 UTC
Just spotted this bug, looks like this has actually been a non-issue
for years now, definitely not a problem in pacemaker context anymore.
Feel free to close it (upon further deliberation).