Bug 1305310 - Improvements to the cmake package
Summary: Improvements to the cmake package
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: cmake
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-06 22:53 UTC by roidelapluie
Modified: 2016-02-07 23:28 UTC (History)
5 users (show)

Fixed In Version: cmake-3.4.3-3.fc24
Clone Of:
Environment:
Last Closed: 2016-02-07 23:28:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to fix tests under el7 (2.63 KB, patch)
2016-02-06 22:53 UTC, roidelapluie
no flags Details | Diff

Description roidelapluie 2016-02-06 22:53:32 UTC
Created attachment 1121814 [details]
Patch to fix tests under el7

Description of problem:

I would like to bring some improvements to the cmake spec file that would allow us to rebuild it in EL7.

1. The package provides a --without gui flag. However, that flag does not work because of a installed but not packaged file:

error: Installed (but unpackaged) file(s) found:
   /usr/share/man/man1/cmake-gui.1.gz


The solution I have used is to change the section of the %{_mandir}/man1/cmake-gui.1.gz file.




2. There are 2 requirements missing:
BuildRequires:  gcc-c++                                                  
BuildRequires:  make


3. A patch is needed to fix the tests:

332:   Expected stderr to match:
332: 
332:    expect-err> Error message was: ([Cc]ould *n.t resolve host:? '?-no-site-'?|The requested URL returned error:.*)
332:    expect-err>    Problems when submitting via FTP
332: 
332:   Actual stderr:
332: 
332:    actual-err>    Error when uploading file: /home/bob/rpmbuild/BUILD/cmake-3.4.3/build/Tests/RunCMake/ctest_submit/FailDrop-ftp-build/Testing/20160206-1516/Configure.xml
332:    actual-err>    Error message was: Could not resolve host: -no-site-; Name or service not known
332:    actual-err>    Problems when submitting via FTP


The patch is attached

Comment 1 roidelapluie 2016-02-06 22:57:02 UTC
The version of the package I started from is 3.4.3-2.

Comment 2 Rex Dieter 2016-02-07 20:25:16 UTC
You may be interested in the cmake3 pkg available from epel-7 repo

Comment 3 Orion Poplawski 2016-02-07 23:28:10 UTC
Well, while there is the beginning of a cmake3 review (with a couple options) here: https://bugzilla.redhat.com/show_bug.cgi?id=1290199 - it is not yet in EPEL7.

I've filed https://public.kitware.com/Bug/view.php?id=15957 about cmake-gui.1 getting installed, but have worked around it in 3.4.3-3.

I've filed https://public.kitware.com/Bug/view.php?id=15958 for the ctest failure.  I did not see it in my testing so I did not yet apply it.

Thanks for the report.


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