Bug 732608 - $xml_lang/icons/icons.svg file misplaced when packaging translated books
Summary: $xml_lang/icons/icons.svg file misplaced when packaging translated books
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: publican
Version: 2.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: 2.7
Assignee: Jeff Fearn 🐞
QA Contact: Ruediger Landmann
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-23 05:32 UTC by Ruediger Landmann
Modified: 2011-09-06 03:56 UTC (History)
2 users (show)

Fixed In Version: 2.7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-06 03:56:50 UTC


Attachments (Terms of Use)

Description Ruediger Landmann 2011-08-23 05:32:25 UTC
Description of problem:
When I package a book that has an $xml_lang/icons/icons.svg file but no $xml_lang/images/icons.svg file, the $xml_lang/icons/ directory gets copied to the root directory of the book. Building a binary RPM then works only if Publican still has access to the $xml_lang/icons/icons.svg file. 

This is a problem when building translated books from Publican-generated SRPMs, because Publican no longer has access to the original $xml_lang/ directory.

Version-Release number of selected component (if applicable):
2.6-3.fc15

How reproducible:
100%

Steps to Reproduce:
1. Create a book with an $xml_lang/icons/icons.svg file but no $xml_lang/images/icons.svg file
2. Set up a translated language with update_pot and update_po
3. Generate an SRPM in the translated language with publican package
4. Unpack the SRPM and attempt to generate a binary RPM with publican package --binary
  
Actual results:
Packaging fails with: 

cp: cannot stat `ru-RU/images/icon.svg': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.WqpFkF (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.WqpFkF (%install)
/usr/bin/rpmbuild exited with value 1
 at /usr/bin/publican line 885


Expected results:
Packaging succeeds

Additional info:

Comment 1 Jeff Fearn 🐞 2011-08-23 05:37:11 UTC
icons dir was incorrectly being moved out of language directory when packaging, leading to it not being found when using the tar file for rebuilding. Correctly nested icons dir and made spec templates use correct path.

Applied fix to branches/publican-2x and trunk.

Committed revision 1868.

Comment 2 Jeff Fearn 🐞 2011-09-06 03:56:50 UTC
Publican 2.7 has been release and includes a fix for this issue.


Note You need to log in before you can comment on or make changes to this bug.