Bug 663399 - PUG 3.7.1.1. "Source RPM packages and binary RPM packages" needs review
Summary: PUG 3.7.1.1. "Source RPM packages and binary RPM packages" needs review
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Publican
Classification: Community
Component: Publican Users Guide
Version: 2.5
Hardware: i686
OS: Linux
low
low
Target Milestone: ---
Assignee: Zac Dover
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-15 17:02 UTC by luigi votta
Modified: 2013-08-09 04:49 UTC (History)
5 users (show)

Fixed In Version: 3.2.0
Clone Of:
Environment:
Last Closed: 2013-08-09 04:49:06 UTC
Embargoed:


Attachments (Terms of Use)
PUG-patch (79.52 KB, patch)
2010-12-18 18:42 UTC, luigi votta
no flags Details | Diff

Description luigi votta 2010-12-15 17:02:50 UTC
Description of problem:
When creating a source desktop package, Package Manager refuses to install, claiming with a "Cannot add package Documentation-*-en-US-0-0.fc14.src.rpm to transaction. Not a compatible architecture: src".  

However manual build from the created spec file, builds creating a binary installable package. 

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

Steps to Reproduce:
0. in publican.cfg, set os_ver: .fc14 
1. create a source desktop package (publican package --desktop --lang en-US)
2. sudo yum localinstall Documentation-*-en-US-0-0.fc14.src.rpm 
  
Actual results:
Cannot add package Documentation-*-en-US-0-0.fc14.src.rpm to transaction. Not a compatible architecture: src

Expected results:
Build and install documentation.

Additional info:
Tested spec with rpmlint, and rpmbuild: NO problems.

Comment 1 Jeff Fearn 🐞 2010-12-15 21:35:37 UTC
Hi Luigi, this behaviour is correct, you cannot install source RPMs with Package Manager. Publican will create binary RPMs if you add --binary to the command line.

e.g.

$ publican package --desktop --lang en-US --binary

The binary package name will match: Documentation-*-en-US-0-0.fc14.noarch.rpm

Comment 2 Jeff Fearn 🐞 2010-12-16 05:49:55 UTC
Section 3.7.1.1. Source RPM packages and binary RPM packages needs to be reviewed.

Comment 3 luigi votta 2010-12-18 18:42:18 UTC
Created attachment 469531 [details]
PUG-patch

Comment 4 luigi votta 2010-12-18 18:45:01 UTC
Hi Jeff, thank you for the answer. 

Hi Rüdiger, I've a new patch for PUG. I've inserted some examples about toc_section_depth, generate_section_toc_level and chunk_section_depth.

Greetings
Luigi

Comment 5 Ruediger Landmann 2011-07-14 05:15:18 UTC
Thanks once again for the detailed feedback and suggestions Luigi; I've incorporated the vast majority of them into the Guide for 2.6.

Comment 6 Jared MORGAN 2012-05-04 04:25:42 UTC
(In reply to comment #2)
> Section 3.7.1.1. Source RPM packages and binary RPM packages needs to be
> reviewed.

OS: Fedora 16

Publican Version: publican-3.0-0.fc16.t168.src.rpm

Remarks:

Doc used to verify is http://jfearn.fedorapeople.org/en-US/Publican/2.7/html-single/Users_Guide/index.html

This section is now 3.8.1.1. Source RPM packages and binary RPM packages

Information about the differences between source and binary RPMs now clearer, with explanatory sub-section 3.8.1.2. Desktop packages and web packages explaining the differences in more detail.

Comment 7 Jared MORGAN 2012-05-04 04:27:20 UTC
(In reply to comment #4)
> Hi Jeff, thank you for the answer. 
> 
> Hi Rüdiger, I've a new patch for PUG. I've inserted some examples about
> toc_section_depth, generate_section_toc_level and chunk_section_depth.
> 
> Greetings
> Luigi

OS: Fedora 16

Publican Version: publican-3.0-0.fc16.t168.src.rpm

Remarks:

Doc used to verify is http://jfearn.fedorapeople.org/en-US/Publican/2.7/html-single/Users_Guide/index.html

3.1.1. The publican.cfg file now contains detailed examples of the three build options mentioned.

Comment 9 Jeff Fearn 🐞 2013-08-09 04:49:06 UTC
The fix for this bug has been shipped in publican 3.2.0


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