View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0011595 | CMake | CPack | public | 2010-12-10 12:12 | 2010-12-13 14:17 | ||||
Reporter | Benoît Bleuzé | ||||||||
Assigned To | Eric NOULARD | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | amd64 | OS | Linux Fedora | OS Version | 11 | ||||
Product Version | CMake 2.8.3 | ||||||||
Target Version | CMake 2.8.4 | Fixed in Version | CMake 2.8.4 | ||||||
Summary | 0011595: CPack can't generate RPMs (on FC11) | ||||||||
Description | Generating tar packages works fine, but trying to generate RPM packages fails all the time. message from the command line: CPack Error: Problem copying the package: /home/bbleuze/code/build/XXX/_CPack_Packages/Linux/RPM/XXX-0.2.0.rpm to /home/bbleuze/code/build/XXX/XXX-0.2.0.rpm CPack Error: Error when generating package: XXX The generator tries to copy a list a files, surrounded by single quotes (extracted from rpmbuild.err): '[' -e /home/bbleuze/code/build/XXX/_CPack_Packages/Linux/RPM/XXX-0.2.0 ']' + mv '/home/bbleuze/code/build/XXX/_CPack_Packages/Linux/RPM/tmpBBroot/*' /home/bbleuze/code/build/XXX/_CPack_Packages/Linux/RPM/XXX-0.2.0 mv: cannot stat `/home/bbleuze/code/build/XXX/_CPack_Packages/Linux/RPM/tmpBBroot/*': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.7Die0i (%install) Bad exit status from /var/tmp/rpm-tmp.7Die0i (%install) As you can see the file * doesn't exist. Basic bash mistake, globbing doesn't work when surrounded by single quotes. Thank you for your help fixing this. Benoît Bleuzé. | ||||||||
Steps To Reproduce | compile anything, run cpack -G RPM | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | ![]() | ||||||||
Relationships | |||||||||||
|
Relationships |
Notes | |
(0023873) Eric NOULARD (developer) 2010-12-10 13:25 |
Hi Benoit, Are you sure you are using CMake/CPack 2.8.3? What says cpack --version? I cannot reproduce this bug and it reminds me of something already fixed. The singly quoted lines should now be double quoted. May be you have several cmake/cpack version installed? |
(0023906) Benoît Bleuzé (reporter) 2010-12-13 03:21 |
I do have several versions of cmake installed. 2.8.1 and 2.8.3. I compiled them both. My PATH environment variable is set only to point at the 2.8.3 version however. and running cpack --version or cmake --version yields a 2.8.3 string. Any idea? |
(0023907) Eric NOULARD (developer) 2010-12-13 04:08 |
OK I can reproduce the problem. I'll try to fix it. The strange thing is the spec file is double quoted but used shell file ends up with single quote... |
(0023908) Eric NOULARD (developer) 2010-12-13 04:17 |
Hi Benoit, Would you please try to replace the <yourprefix>/share/cmake-2.8/Modules/CPackRPM.cmake with the one attached to the tracker. It should fix the problem. |
(0023915) Benoît Bleuzé (reporter) 2010-12-13 07:06 |
It works with the new CPackRPM.cmake file. Thanks a lot for the quick response. I guess this change will make it in the next revision? On my end this bug is fixed. Benoit. |
(0023920) Eric NOULARD (developer) 2010-12-13 07:28 |
Yes it should make it for 2.8.4, I'll have to check whether if it does not induce regression on other RPM based distro. Since my collection of RPM-based distro is not that wide if you have any (various version of FC or RHEL, OpenSUSE, Mandriva etc..) |
(0023922) Benoît Bleuzé (reporter) 2010-12-13 09:24 |
I tried with FC13. Same problem without the new file, correct behaviour with it. If you have some more tests I can run them for you. |
(0023930) Eric NOULARD (developer) 2010-12-13 14:17 |
Merge topic 'CPackRPM-Fix0011595' into next 8d366cd CPackRPM fix bug 0011595 : Can't generate RPMs (on FC11...) Pushing upstream next |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2010-12-10 12:12 | Benoît Bleuzé | New Issue | |
2010-12-10 13:11 | Eric NOULARD | Assigned To | => Eric NOULARD |
2010-12-10 13:11 | Eric NOULARD | Status | new => assigned |
2010-12-10 13:25 | Eric NOULARD | Note Added: 0023873 | |
2010-12-10 15:17 | Eric NOULARD | Category | (No Category) => CPack |
2010-12-11 05:19 | Eric NOULARD | Relationship added | related to 0010871 |
2010-12-11 05:19 | Eric NOULARD | Relationship added | related to 0010345 |
2010-12-13 03:21 | Benoît Bleuzé | Note Added: 0023906 | |
2010-12-13 04:08 | Eric NOULARD | Note Added: 0023907 | |
2010-12-13 04:15 | Eric NOULARD | File Added: CPackRPM.cmake | |
2010-12-13 04:17 | Eric NOULARD | Note Added: 0023908 | |
2010-12-13 04:19 | Eric NOULARD | Target Version | => CMake 2.8.4 |
2010-12-13 04:19 | Eric NOULARD | Summary | cpack can't generate RPMs => CPack can't generate RPMs (on FC11) |
2010-12-13 07:06 | Benoît Bleuzé | Note Added: 0023915 | |
2010-12-13 07:28 | Eric NOULARD | Note Added: 0023920 | |
2010-12-13 09:24 | Benoît Bleuzé | Note Added: 0023922 | |
2010-12-13 14:17 | Eric NOULARD | Note Added: 0023930 | |
2010-12-13 14:17 | Eric NOULARD | Status | assigned => closed |
2010-12-13 14:17 | Eric NOULARD | Resolution | open => fixed |
2010-12-13 14:17 | Eric NOULARD | Fixed in Version | => CMake 2.8.4 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |