Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1002279
Summary: | Project configuration bugs when using cmake-fedora-newprj | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Matt Woelfel <matthew.woelfel> | ||||
Component: | cmake-fedora | Assignee: | Ding-Yi Chen <dchen> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 19 | CC: | daniel.perez.alcazar, dchen, direwolfross | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2015-01-12 02:04:25 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
I can confirm the same happens in Fedora 18. Maybe I don't get the error in step 7, but I can reproduce the others. Same solution depicted in the patch worked for me. Name : cmake-fedora Version : 1.0.5 Release : 1.fc18 Architecture: noarch Install Date: Wed 25 Sep 2013 05:45:50 PM CEST Group : System Environment/Libraries Size : 236784 License : BSD Signature : RSA/SHA256, Tue 21 Aug 2012 06:35:37 AM CEST, Key ID ff01125cde7f38bd Source RPM : cmake-fedora-1.0.5-1.fc18.src.rpm Build Date : Tue 21 Aug 2012 04:52:02 AM CEST Build Host : buildvm-32.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project URL : https://fedorahosted.org/cmake-fedora/ Summary : CMake helper modules for fedora developers ManageArchive is not being included in the CMakeLists.txt file generated by cmake-fedora-newprj. I get the following error: CMake Error at CMakeLists.txt:98 (PACK_SOURCE_ARCHIVE): Unknown CMake command "PACK_SOURCE_ARCHIVE". Which goes away when I add to CMakeLists.txt: INCLUDE(ManageArchive) Version: cmake-fedora-1.2.7-1.fc20.noarch (and cmake-2.8.12.1-1.fc20.x86_64) cmake-fedora-2.1.3-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/cmake-fedora-2.1.3-1.fc20 cmake-fedora-2.1.3-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/cmake-fedora-2.1.3-1.fc19 cmake-fedora-2.1.3-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/cmake-fedora-2.1.3-1.el6 cmake-fedora-2.1.3-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/cmake-fedora-2.1.3-1.el5 cmake-fedora-2.2.2-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/cmake-fedora-2.2.2-1.fc20 cmake-fedora-2.2.2-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/cmake-fedora-2.2.2-1.fc19 cmake-fedora-2.2.2-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/cmake-fedora-2.2.2-1.el5 cmake-fedora-2.2.2-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/cmake-fedora-2.2.2-1.el6 cmake-fedora-2.3.0-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/cmake-fedora-2.3.0-1.fc20 cmake-fedora-2.3.0-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/cmake-fedora-2.3.0-1.fc19 cmake-fedora-2.3.0-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/cmake-fedora-2.3.0-1.el6 cmake-fedora-2.3.0-1.el5 has been submitted as an update for Fedora EPEL 5. https://admin.fedoraproject.org/updates/cmake-fedora-2.3.0-1.el5 cmake-fedora-2.3.0-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. cmake-fedora-2.3.0-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. cmake-fedora-2.3.0-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report. cmake-fedora-2.3.0-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. This message is a notice that Fedora 19 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 19. It is Fedora's policy to close all bug reports from releases that are no longer maintained. Approximately 4 (four) weeks from now this bug will be closed as EOL if it remains open with a Fedora 'version' of '19'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 19 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. |
Created attachment 791513 [details] fix missing include and syntax error Description of problem: I was trying to test out cmake-fedora-newprj on a simple project and ran into some issues with the generated configuration file and some of the cmake supporting libraries. Version-Release number of selected component (if applicable): cmake-fedora-1.0.5-2.fc19.noarch How reproducible: 100% Steps to Reproduce: 1. Create your project files . └── src ├── CMakeLists.txt └── hello.c 2. cmake-fedora-newprj hello 3. mkdir build && cd build && cmake .. -- The C compiler identification is GNU 4.8.1 -- The CXX compiler identification is GNU 4.8.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done CMake Error at /usr/share/cmake/Modules/ManageVersion.cmake:85 (SET_COMPILE_ENV): Unknown CMake command "SET_COMPILE_ENV". Call Stack (most recent call first): CMakeLists.txt:48 (RELEASE_NOTES_READ_FILE) 4. Apply patch to ManageVersion 5. cmake .. ---- Output ---- CMake Error at CMakeLists.txt:70 (MANAGE_SOURCE_VERSION_CONTROL_): Unknown CMake command "MANAGE_SOURCE_VERSION_CONTROL_". 6. Remove offending line in hello/CMakeLists.txt, which should not have been generated in the first place since the flag was ommitted from cmake-fedora-newprj. 7. cmake .. CMake Error at /usr/share/cmake/Modules/ManageReleaseFedora.cmake:171 (ADD_DEPENDENCIES): Cannot add target-level dependencies to non-existent target "tag_pre". The add_dependencies works for top-level logical targets created by the add_executable, add_library, or add_custom_target commands. If you want to add file-level dependencies see the DEPENDS option of the add_custom_target and add_custom_command commands. Call Stack (most recent call first): /usr/share/cmake/Modules/ManageReleaseFedora.cmake:362 (RELEASE_ADD_KOJI_BUILD_SCRATCH) CMakeLists.txt:96 (RELEASE_FEDORA) CMake Error at /usr/share/cmake/Modules/ManageUpload.cmake:140 (MANAGE_UPLOAD_MAKE_TAGET): Unknown CMake command "MANAGE_UPLOAD_MAKE_TAGET". Call Stack (most recent call first): CMakeLists.txt:110 (MANAGE_UPLOAD_CMD) -- Configuring incomplete, errors occurred! 8. Apply patch to ManageUpload.cmake to fix the last error output in step 7. Actual results: Build scripts that don't work without some hacking. Expected results: A basic cmake project that builds after the initial cmake-fedora-newprj. Additional info: I'm not familiar enough with cmake to address all the above issues and get the project building using cmake-fedora-newprj, but this should help tackle some of the issues.