Bug 676096 - ipa-pki-theme has no buildrequires for gcc-g++
Summary: ipa-pki-theme has no buildrequires for gcc-g++
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Dogtag Certificate System
Classification: Retired
Component: Build
Version: unspecified
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: ---
Assignee: Matthew Harmsen
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 530474
TreeView+ depends on / blocked
 
Reported: 2011-02-08 19:59 UTC by Michael Gregg
Modified: 2015-01-04 23:46 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-01 23:33:30 UTC


Attachments (Terms of Use)

Description Michael Gregg 2011-02-08 19:59:08 UTC
Description of problem:
gcc-g++ is required to buiold ipa-pki-theme, but there is no buildrequires for it in the spec file.

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

How reproducible:
always

Steps to Reproduce:
1. set up a machine with a build system minus gcc-g++
2. rpmbuild -ba <srpm>
  
Actual results:
-- Check if the system is big endian - little endian
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found.   Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
-- Configuring incomplete, errors occurred!
error: Bad exit status from /var/tmp/rpm-tmp.062A9y (%build)

Comment 2 Matthew Harmsen 2011-02-12 00:23:04 UTC
The PKI project, project(pki), consists of multiple sub-projects, some of which depend upon 'C' (C), some of which depend upon 'C++' (CXX), some of which depend upon 'Java' (Java), and some of which depend upon none of these languages (NONE).

The 'ipa-pki-theme' component requires NO languages, but utilizes:

    * project(pki)
      * project(dogtag)
        * project(ca-ui)
        * project(common-ui)

Although the 'ipa-pki-theme' component could potentially specify project(ca-ui NONE) and project(common-ui NONE), I found it impossible to suppress the check for the C++ compiler, for although project(dogtag) could legally be changed to project(dogtag Java) since that is the only language that 'dogtag-pki-theme' component uses ('dogtag-pki-theme' also requires project(dogtag)), project(pki) could NOT be changed since it is the top-level CMakeLists.txt file called when building all of the sub-projects.

Additionally, due to platform constraints, I must support "CMake 2.6-patch 4".

I will cc Andreas on this issue to see if there is a simple method of suppressing this check, but currently, my suggestion is simply to ALWAYS require a C++ compiler for building the PKI project (even when one only wants to build a single sub-project of the PKI project).

Comment 3 Matthew Harmsen 2011-02-15 02:12:17 UTC
Per CS Meeting of 20110214, marked as priority low blocking CSFuture

Comment 4 Andreas Schneider 2011-02-18 18:42:36 UTC
As the projects needs a C++ compiler to compile some C++ code the configure process will check for it.

If this is a big problem then I would move it to it's own repository and creates it's own build files.

Comment 5 Matthew Harmsen 2011-03-01 23:31:55 UTC
Per discussions in CS Meeting of 2/28/2011, close this bug as WONTFIX.


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