Bug 612515 - publican package fails because of missing images/icon.svg
Summary: publican package fails because of missing images/icon.svg
Alias: None
Product: Publican
Classification: Community
Component: publican   
(Show other bugs)
Version: 1.6
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Jeff Fearn 🐞
QA Contact: Fedora Extras Quality Assurance
: 630497 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2010-07-08 12:29 UTC by Ruediger Landmann
Modified: 2010-11-24 04:17 UTC (History)
5 users (show)

Fixed In Version: publican-2.2-0.fc13
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-10-08 20:41:48 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Ruediger Landmann 2010-07-08 12:29:36 UTC
Description of problem:
Building a binary package fails. Publican complains that images/icon.svg is missing, even if the book XML directory contains a file named images/icon.svg

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. run "publican package --binary" on a book that contains an images/icon.svg file in its XML directory

Actual results:
Packaging fails with an error like:

+ cp images/icon.svg /home/XXXXXX/rpmbuild/BUILDROOT/NAME_OF_BOOK/usr/share/icons/hicolor/scalable/apps/NAME_OF_BOOK.svg
cp: cannot stat `images/icon.svg': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.tyJmfc (%install)

Expected results:
Packaging succeeds

Comment 1 Jeff Fearn 🐞 2010-07-09 00:41:47 UTC
A directory isn't being created in the %install section of the generated spec file when building with old style icons.

Fixed in build: 2.1-0.t1

Workaround: copy $lang/images/icon.svg to $lang/icons/icon.svg

Comment 2 Ruediger Landmann 2010-08-06 03:57:02 UTC
Verified in 2.1.t20

publican package --binary --lang en-US

on a book with only an en-US/images/icon.svg file. 

Packaging succeeded, and icon.svg was placed in /usr/share/icons/hicolor/scalable/apps/ in the binary RPM package.

Comment 3 Ruediger Landmann 2010-09-06 02:28:50 UTC
*** Bug 630497 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2010-10-06 05:48:09 UTC
publican-2.2-0.fc13 has been submitted as an update for Fedora 13.

Comment 5 Fedora Update System 2010-10-06 05:49:27 UTC
publican-2.2-0.fc12 has been submitted as an update for Fedora 12.

Comment 6 Fedora Update System 2010-10-06 05:49:30 UTC
publican-2.2-0.fc14 has been submitted as an update for Fedora 14.

Comment 7 Fedora Update System 2010-10-08 20:39:32 UTC
publican-2.2-0.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.

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