Bug 717098

Summary: Brew failed on Microcontainer User Guide
Product: [Community] Publican Reporter: Takuro Nagamoto <tnagamot>
Component: publican-jbossAssignee: Ruediger Landmann <rlandman+disabled>
Status: CLOSED NOTABUG QA Contact: Jeff Fearn ๐Ÿž <jfearn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.5CC: jmorgan, mmcallis, publican-list
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-28 03:37:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Takuro Nagamoto 2011-06-28 01:39:29 UTC
Description of problem:
Although I was able to build a ja-JP version of html/pdf for Microcontainer User Guide, I failed to brew it with the error in https://brewweb.devel.redhat.com/taskinfo?taskID=3437969.

Version-Release number of selected component (if applicable):
The publican's version is 2.5.

How reproducible:
Check out the package in question and run brew.

Steps to Reproduce:
1. svn co https://svn.devel.redhat.com/repos/ecs/JBoss_Enterprise_Application_Platform/releases/5.x/5.1.0/JBoss_Microcontainer_User_Guide/ JBoss_Microcontainer_User_Guide
2. cd JBoss_Microcontainer_User_Guid
3. publican package --brew --lang ja-JP
  
Actual results:
Beginning work on ja-JP
FATAL ERROR: Malformed UTF-8 character (fatal) at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/LibXML/Error.pm line 217.
 at /usr/lib/perl5/vendor_perl/5.8.8/Publican/Builder.pm line 582
 at /usr/bin/publican line 672
error: Bad exit status from /var/tmp/rpm-tmp.38972 (%build)
    Bad exit status from /var/tmp/rpm-tmp.38972 (%build)
RPM build errors:
Child returncode was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/JBoss_Enterprise_Application_Platform-JBoss_Microcontainer_User_Guide-5-web-ja-JP.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.4/site-packages/mock/util.py", line 324, in do
    raise mock.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps builddir/build/SPECS/JBoss_Enterprise_Application_Platform-JBoss_Microcontainer_User_Guide-5-web-ja-JP.spec']
LEAVE do --> EXCEPTION RAISED


Expected results:
Brew successfully done with "closed" status.

Additional info:

Comment 1 Jeff Fearn ๐Ÿž 2011-06-28 02:31:23 UTC
Same error happens for me when building it outside brew.

Bug appears to be a malformed character in the brands Feedback file:

ใƒใ‚ฐใƒฌใƒใƒผใƒˆใ‚’ๆๅ‡บใ•ใ‚Œใ‚‹ๅ ดๅˆใฏใ€ใใฎใ‚ฌใ‚คใƒ‰
...........................^

Comment 2 Jared MORGAN 2011-06-28 03:20:39 UTC
(In reply to comment #0)
> Description of problem:
> Although I was able to build a ja-JP version of html/pdf for Microcontainer
> User Guide, I failed to brew it with the error in
> https://brewweb.devel.redhat.com/taskinfo?taskID=3437969.
> 
> Version-Release number of selected component (if applicable):
> The publican's version is 2.5.

Jeff, could this be something to do with pushing a book using the older publican-jboss brand package?

tnagamot, Can you please confirm what publican-jboss brand package you are using?

rpm -qi publican jboss

or yum info publican-jboss

Your brand package should return this version and release (this result for fedora 14:

Name        : publican-jboss
Arch        : noarch
Version     : 2.6
Release     : 1.fc14
Size        : 395 k
Repo        : installed
From repo   : /publican-jboss-2.6-1.fc14.noarch
Summary     : Common documentation files for JBoss
URL         : https://fedorahosted.org/publican/
License     : CC-BY-SA
Description : This package provides common files and templates needed to build
            : documentation for JBoss with publican.

Other ja-JP books have been making up to docs.redhat.com recently (I've been tagging them), so perhaps there's something else going on here?

Cheers

J

> 
> How reproducible:
> Check out the package in question and run brew.
> 
> Steps to Reproduce:
> 1. svn co
> https://svn.devel.redhat.com/repos/ecs/JBoss_Enterprise_Application_Platform/releases/5.x/5.1.0/JBoss_Microcontainer_User_Guide/
> JBoss_Microcontainer_User_Guide
> 2. cd JBoss_Microcontainer_User_Guid
> 3. publican package --brew --lang ja-JP
> 
> Actual results:
> Beginning work on ja-JP
> FATAL ERROR: Malformed UTF-8 character (fatal) at
> /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/XML/LibXML/Error.pm
> line 217.
>  at /usr/lib/perl5/vendor_perl/5.8.8/Publican/Builder.pm line 582
>  at /usr/bin/publican line 672
> error: Bad exit status from /var/tmp/rpm-tmp.38972 (%build)
>     Bad exit status from /var/tmp/rpm-tmp.38972 (%build)
> RPM build errors:
> Child returncode was: 1
> EXCEPTION: Command failed. See logs for output.
>  # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps
> builddir/build/SPECS/JBoss_Enterprise_Application_Platform-JBoss_Microcontainer_User_Guide-5-web-ja-JP.spec']
> Traceback (most recent call last):
>   File "/usr/lib/python2.4/site-packages/mock/trace_decorator.py", line 70, in
> trace
>     result = func(*args, **kw)
>   File "/usr/lib/python2.4/site-packages/mock/util.py", line 324, in do
>     raise mock.exception.Error, ("Command failed. See logs for output.\n # %s"
> % (command,), child.returncode)
> Error: Command failed. See logs for output.
>  # ['bash', '--login', '-c', 'rpmbuild -bb --target noarch --nodeps
> builddir/build/SPECS/JBoss_Enterprise_Application_Platform-JBoss_Microcontainer_User_Guide-5-web-ja-JP.spec']
> LEAVE do --> EXCEPTION RAISED
> 
> 
> Expected results:
> Brew successfully done with "closed" status.
> 
> Additional info:

Comment 3 Jared MORGAN 2011-06-28 03:28:54 UTC
I've svn up'd that directory, and successfully built the ja-JP version using publican-jboss v2.6.1.fc14 brand.