Fixed Po4a in Gentoo

Today my emerge was complain that it was able to re-emerge app-text/po4a-0.57::gentoo with the follow error message:

Created MYMETA.yml and MYMETA.json                                                                                             
Creating new 'Build' script for 'po4a' version '0.57'                                                                          
Created META.yml and META.json                                                                                                 
Unknown format type: pod.                                      
List of valid formats:                                         
  - asciidoc: AsciiDoc format.                                                                                                 
  - dia: uncompressed Dia diagrams.                                                                                            
  - docbook: DocBook XML.
  - guide: Gentoo Linux's XML documentation format.                                                                            
  - ini: INI format.                                           
  - kernelhelp: Help messages of each kernel compilation option.
  - latex: LaTeX format.                                                                                                       
  - man: Good old manual page format.                  
  - pod: Perl Online Documentation format.                                                                                     
  - rubydoc: Ruby Documentation (RD) format.                                                                                   
  - sgml: either DebianDoc or DocBook DTD.                                                                                     
  - texinfo: The info page format.                                                                                             
  - tex: generic TeX documents (see also latex).                                                                               
  - text: simple text document.                                                                                                
  - wml: WML documents.                                                                                                        
  - xhtml: XHTML documents.                                                                                                    
  - xml: generic XML documents (see also docbook).
  - yaml: YAML documents.                                                                                                      
Died at Po4aBuilder.pm line 161.           
 * ERROR: app-text/po4a-0.57::gentoo failed (compile phase):                                                                   
 *   Compilation failed                                                                                                        
 *                                                                                                                             
 * Call stack:                                                 
 *     ebuild.sh, line  125:  Called src_compile              
 *   environment, line 1095:  Called perl-module_src_compile                                                                   
 *   environment, line  624:  Called die                                                                                       
 * The specific snippet of code:                               
 *           ./Build build || die "Compilation failed";

I was surprised, because it should have everything in place. After some tinkering around I’ve found some issue on github[0]. Ah so I need to upgrade the package?

Emerging the newer version did not fix the problem. The problem is…that the dependency is missing!? Wtf? In the ticket there point to the fact that the perl-Pod-Parser, however, it is a virtual package. But re-emerging causes the underlying dependency to be re-install too. Guess what, it wasn’t there…

emerge -avq virtual/perl-Pod-Parser                                                                              
[ebuild  N    ] dev-perl/Pod-Parser-1.630.0-r1  USE="-test"                                                                    
[ebuild   R   ] virtual/perl-Pod-Parser-1.630.0-r8                                                                             
                                                                                                                               
Would you like to merge these packages? [Yes/No] yes                                                                           
>>> Verifying ebuild manifests                                                                                                 
>>> Emerging (1 of 2) dev-perl/Pod-Parser-1.630.0-r1::gentoo
>>> Installing (1 of 2) dev-perl/Pod-Parser-1.630.0-r1::gentoo
>>> Emerging (2 of 2) virtual/perl-Pod-Parser-1.630.0-r8::gentoo
>>> Installing (2 of 2) virtual/perl-Pod-Parser-1.630.0-r8::gentoo
>>> Recording virtual/perl-Pod-Parser in "world" favorites file...
>>> Jobs: 2 of 2 complete

Afterwards, po4a was able to be installed again.

emerge -avq virtual/perl-Pod-Parser
[ebuild  N    ] dev-perl/Pod-Parser-1.630.0-r1  USE="-test"
[ebuild   R   ] virtual/perl-Pod-Parser-1.630.0-r8
Would you like to merge these packages? [Yes/No] yes                                                                           
>>> Verifying ebuild manifests                                                                                                 
>>> Emerging (1 of 2) dev-perl/Pod-Parser-1.630.0-r1::gentoo
>>> Installing (1 of 2) dev-perl/Pod-Parser-1.630.0-r1::gentoo
>>> Emerging (2 of 2) virtual/perl-Pod-Parser-1.630.0-r8::gentoo
>>> Installing (2 of 2) virtual/perl-Pod-Parser-1.630.0-r8::gentoo
>>> Recording virtual/perl-Pod-Parser in "world" favorites file...
>>> Jobs: 2 of 2 complete

Hope that this might help you.

so far,
akendo

[0] https://github.com/mquinson/po4a/issues/142