View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010518CMakeCPackpublic2010-04-08 05:502011-01-12 07:26
ReporterGuillaume Duhamel 
Assigned ToEric NOULARD 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0010518: Parameter substitution not turned off for license in STGZ packages
DescriptionIn STGZ packages, parameter substitution is not turned off when displaying the license file. This may end up in a crash when running the generated .sh file as the license file may contain special characters like $ or ` (for instance, the GPL license file contains multiple `).
Additional InformationI attached a (quite simple) patch to the problem.
TagsNo tags attached.
Attached Filespatch file icon cpack-here-doc.patch [^] (416 bytes) 2010-04-08 05:50 [Show Content]

 Relationships
has duplicate 0011788closedEric NOULARD CPACK_RESOURCE_FILE_LICENSE fails if file contains quotes 

  Notes
(0023998)
David Cole (manager)
2010-12-14 18:26

Eric,

Does the attached patch look reasonable to you? Have you tried it?

If you don't want it assigned to you, feel free to assign it back to me...

Thanks,
David
(0024119)
Eric NOULARD (developer)
2010-12-14 18:55

Hi Dave,

Yes it does.
I did some rough test and it works as expected.

I'm not currently on my dev box, I may do some more tests
and push it to next when I'm done.
(0024123)
Eric NOULARD (developer)
2010-12-14 19:01

OK I confirm the quoting of the so-called "here document" is the usual
way to go, cf:
http://en.wikipedia.org/wiki/Here_document#Unix_Shells [^]

I'll push it when I get my hand on my dev host again.
Feel free to push it yourself before me and close the bug.
(0024188)
Eric NOULARD (developer)
2010-12-15 15:29

Merge topic 'CPackSTGZ-NoSubstitution' into next

07bd856 CPackSTGZ quote here-doc, fix bug10518

Pushing upstream next
To git@cmake.org:cmake.git

 Issue History
Date Modified Username Field Change
2010-04-08 05:50 Guillaume Duhamel New Issue
2010-04-08 05:50 Guillaume Duhamel File Added: cpack-here-doc.patch
2010-12-14 18:26 David Cole Assigned To => Eric NOULARD
2010-12-14 18:26 David Cole Status new => assigned
2010-12-14 18:26 David Cole Note Added: 0023998
2010-12-14 18:55 Eric NOULARD Note Added: 0024119
2010-12-14 19:01 Eric NOULARD Note Added: 0024123
2010-12-15 15:29 Eric NOULARD Note Added: 0024188
2010-12-15 15:29 Eric NOULARD Status assigned => closed
2010-12-15 15:29 Eric NOULARD Resolution open => fixed
2010-12-15 15:29 Eric NOULARD Fixed in Version => CMake 2.8.4
2011-01-12 07:26 David Cole Target Version => CMake 2.8.4
2011-02-02 16:51 Eric NOULARD Relationship added related to 0011788
2011-02-03 02:13 Eric NOULARD Relationship deleted related to 0011788
2011-02-03 02:14 Eric NOULARD Relationship added has duplicate 0011788


Copyright © 2000 - 2018 MantisBT Team