Merge lp:~vanvugt/compiz/fix-1023738 into lp:compiz/0.9.8

Proposed by Daniel van Vugt
Status: Merged
Approved by: Sam Spilsbury
Approved revision: 3286
Merged at revision: 3289
Proposed branch: lp:~vanvugt/compiz/fix-1023738
Merge into: lp:compiz/0.9.8
Diff against target: 19 lines (+2/-0)
1 file modified
cmake/CompizCommon.cmake (+2/-0)
To merge this branch: bzr merge lp:~vanvugt/compiz/fix-1023738
Reviewer Review Type Date Requested Status
Sam Spilsbury Approve
jenkins continuous-integration Pending
Review via email: mp+115067@code.launchpad.net

This proposal supersedes a proposal from 2012-07-12.

Commit message

Fix build failure due to invalid sed expression that would be generated
by shell expansion of ";;" to " ". (LP: #1023738)

Description of the change

Fix build failure due to invalid sed expression that would be generated
by shell expansion of ";;" to " ". (LP: #1023738)

To post a comment you must log in.
Revision history for this message
jenkins (martin-mrazik+qa) wrote : Posted in a previous version of this proposal
review: Approve (continuous-integration)
Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

This is fine, however I think using VERBATIM is the preferred way of handling this issue in CMake:

http://cmake.org/cmake/help/v2.8.8/cmake.html#command:add_custom_command

14 add_custom_command (
15 OUTPUT ${_dst}
16 COMMAND cat ${_src} |
17 sed -e 's;^_;;g' >
19 ${_dst}
20 DEPENDS ${_src}
                    VERBATIM
21 )

If that works, then I'd go with using VERBATIM, otherwise:

review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

It might just be a shell quoting problem...

     COMMAND "cat ${_src} | sed -e 's;^_;;g' > ${_dst}"

Revision history for this message
Sam Spilsbury (smspillaz) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'cmake/CompizCommon.cmake'
2--- cmake/CompizCommon.cmake 2012-07-05 00:21:48 +0000
3+++ cmake/CompizCommon.cmake 2012-07-16 05:45:25 +0000
4@@ -337,6 +337,7 @@
5 sed -e 's;<_;<;g' -e 's;</_;</;g' >
6 ${_dst}
7 DEPENDS ${_src}
8+ VERBATIM
9 )
10 endif ()
11 endfunction ()
12@@ -364,6 +365,7 @@
13 sed -e 's;^_;;g' >
14 ${_dst}
15 DEPENDS ${_src}
16+ VERBATIM
17 )
18 endif ()
19 endfunction ()

Subscribers

People subscribed via source and target branches