[Cmake-commits] CMake branch, next, updated. v3.2.0-rc1-576-g1c8e39c

Domen Vrankar domen.vrankar at gmail.com
Sat Feb 21 11:50:52 EST 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  1c8e39c5048031f311faac056f6f92c9663958b5 (commit)
       via  f8512ddad6cf2648835e02d00e0327a41e0d160a (commit)
       via  771eca76401502032e2e70fa46d4069f63304745 (commit)
      from  1b59af5fd3ac3a6ced99dd70b4e319b837ee8361 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=1c8e39c5048031f311faac056f6f92c9663958b5
commit 1c8e39c5048031f311faac056f6f92c9663958b5
Merge: 1b59af5 f8512dd
Author:     Domen Vrankar <domen.vrankar at gmail.com>
AuthorDate: Sat Feb 21 11:50:51 2015 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Sat Feb 21 11:50:51 2015 -0500

    Merge topic 'rpm_at_in_path' into next
    
    f8512dda fixup! rpm revert at in path escaping patch
    771eca76 rpm revert at in path escaping patch

diff --cc Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
index 5be9d17,2597050..f06605a
--- a/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
+++ b/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
@@@ -207,12 -204,31 +208,35 @@@ if(CPackGen MATCHES "RPM"
          endif()
  
          message(FATAL_ERROR "error: '${check_file}' rpm package relocation path does not match expected value - regex '${check_file_match_expected_relocation_path}'; RPM output: '${check_file_content}'; generated spec file: '${spec_file_content}'")
 +      endif()
 +      string(REGEX MATCH ${check_file_match_expected_architecture} check_file_match_architecture ${check_file_content})
 +      if (NOT check_file_match_architecture)
 +          message(FATAL_ERROR "error: '${check_file}' Architecture does not match expected value - '${check_file_match_expected_architecture}'; RPM output: '${check_file_content}'; generated spec file: '${spec_file_content}'")
        endif()
      endforeach()
-   elseif(${CPackComponentWay} STREQUAL "IgnoreGroup")
+ 
+     # test package content
+     foreach(check_file ${expected_file})
+       string(REGEX MATCH ".*Unspecified.*" check_file_Unspecified_match ${check_file})
+ 
+       if(check_file_Unspecified_match)
+         execute_process(COMMAND ${RPM_EXECUTABLE} -pql ${check_file}
+             OUTPUT_VARIABLE check_file_content
+             ERROR_QUIET
+             OUTPUT_STRIP_TRAILING_WHITESPACE)
+ 
+         string(REGEX MATCH ".*bin/@in at _@path@@with/@and/@/@in_path@/mylibapp2$" check_at_in_path ${check_file_content})
+ 
+         if(NOT check_at_in_path)
+           file(GLOB_RECURSE spec_file "${CPackComponentsForAll_BINARY_DIR}/*Unspecified*.spec")
+ 
+           if(spec_file)
+             file(READ ${spec_file} spec_file_content)
+           endif()
+ 
+           message(FATAL_ERROR "error: '${check_file}' rpm package path with @ characters is missing or invalid. RPM output: '${check_file_content}'; generated spec file: '${spec_file_content}'")
+         endif()
+       endif()
+     endforeach()
    endif()
  endif()

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f8512ddad6cf2648835e02d00e0327a41e0d160a
commit f8512ddad6cf2648835e02d00e0327a41e0d160a
Author:     Domen Vrankar <domen.vrankar at gmail.com>
AuthorDate: Sat Feb 21 16:31:31 2015 +0100
Commit:     Domen Vrankar <domen.vrankar at gmail.com>
CommitDate: Sat Feb 21 16:31:31 2015 +0100

    fixup! rpm revert at in path escaping patch
    
    Test for correct handling of @ symbols paths.

diff --git a/Tests/CPackComponentsForAll/CMakeLists.txt b/Tests/CPackComponentsForAll/CMakeLists.txt
index b55594e..51af297 100644
--- a/Tests/CPackComponentsForAll/CMakeLists.txt
+++ b/Tests/CPackComponentsForAll/CMakeLists.txt
@@ -43,7 +43,7 @@ install(TARGETS mylibapp
 # CPACK_MONOLITHIC_INSTALL=1 is set (at cmake time).
 install(TARGETS mylibapp2
   RUNTIME
-  DESTINATION bin)
+  DESTINATION bin/@in at _@path@@with\\@and\\@/\@in_path\@) # test @ char in path
 
 install(FILES mylib.h
   DESTINATION include
diff --git a/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake b/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
index 68d846f..2597050 100644
--- a/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
+++ b/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake
@@ -139,6 +139,7 @@ if(CPackGen MATCHES "RPM")
   set(CPACK_COMPONENT_HEADERS_DESCRIPTION
     "C/C\\+\\+ header files for use with MyLib")
 
+  # test package info
   if(${CPackComponentWay} STREQUAL "IgnoreGroup")
     # set gnu install prefixes to what they are set during rpm creation
     # CMAKE_SIZEOF_VOID_P is not set here but lib is prefix of lib64 so
@@ -205,6 +206,29 @@ if(CPackGen MATCHES "RPM")
         message(FATAL_ERROR "error: '${check_file}' rpm package relocation path does not match expected value - regex '${check_file_match_expected_relocation_path}'; RPM output: '${check_file_content}'; generated spec file: '${spec_file_content}'")
       endif()
     endforeach()
-  elseif(${CPackComponentWay} STREQUAL "IgnoreGroup")
+
+    # test package content
+    foreach(check_file ${expected_file})
+      string(REGEX MATCH ".*Unspecified.*" check_file_Unspecified_match ${check_file})
+
+      if(check_file_Unspecified_match)
+        execute_process(COMMAND ${RPM_EXECUTABLE} -pql ${check_file}
+            OUTPUT_VARIABLE check_file_content
+            ERROR_QUIET
+            OUTPUT_STRIP_TRAILING_WHITESPACE)
+
+        string(REGEX MATCH ".*bin/@in at _@path@@with/@and/@/@in_path@/mylibapp2$" check_at_in_path ${check_file_content})
+
+        if(NOT check_at_in_path)
+          file(GLOB_RECURSE spec_file "${CPackComponentsForAll_BINARY_DIR}/*Unspecified*.spec")
+
+          if(spec_file)
+            file(READ ${spec_file} spec_file_content)
+          endif()
+
+          message(FATAL_ERROR "error: '${check_file}' rpm package path with @ characters is missing or invalid. RPM output: '${check_file_content}'; generated spec file: '${spec_file_content}'")
+        endif()
+      endif()
+    endforeach()
   endif()
 endif()

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=771eca76401502032e2e70fa46d4069f63304745
commit 771eca76401502032e2e70fa46d4069f63304745
Author:     Domen Vrankar <domen.vrankar at gmail.com>
AuthorDate: Wed Jan 7 20:33:27 2015 +0100
Commit:     Domen Vrankar <domen.vrankar at gmail.com>
CommitDate: Sat Feb 21 15:54:47 2015 +0100

    rpm revert at in path escaping patch
    
    Patch for escaping at symbols in paths was added
    to RPM generator and was obsoleted in next cmake
    release. The change that obsoleted it also caused
    it to break paths with @ symbols for which it was
    written to solve.

diff --git a/Modules/CPackRPM.cmake b/Modules/CPackRPM.cmake
index 7516393..da9cc80 100644
--- a/Modules/CPackRPM.cmake
+++ b/Modules/CPackRPM.cmake
@@ -1156,13 +1156,6 @@ if(CPACK_RPM_PACKAGE_DEBUG)
    message("CPackRPM:Debug: CPACK_TEMPORARY_PACKAGE_FILE_NAME = ${CPACK_TEMPORARY_PACKAGE_FILE_NAME}")
 endif()
 
-# protect @ in pathname in order to avoid their
-# interpretation during the configure_file step
-set(CPACK_RPM_INSTALL_FILES_LIST "${CPACK_RPM_INSTALL_FILES}")
-set(PROTECTED_AT "@")
-string(REPLACE "@" "\@PROTECTED_AT\@" CPACK_RPM_INSTALL_FILES "${CPACK_RPM_INSTALL_FILES_LIST}")
-set(CPACK_RPM_INSTALL_FILES_LIST "")
-
 #
 # USER generated/provided spec file handling.
 #
@@ -1273,9 +1266,6 @@ else()
   configure_file(${CPACK_RPM_BINARY_SPECFILE}.in ${CPACK_RPM_BINARY_SPECFILE} @ONLY)
 endif()
 
-# remove AT protection
-unset(PROTECTED_AT)
-
 if(RPMBUILD_EXECUTABLE)
   # Now call rpmbuild using the SPECFILE
   execute_process(

-----------------------------------------------------------------------

Summary of changes:
 Modules/CPackRPM.cmake                             |   10 --------
 Tests/CPackComponentsForAll/CMakeLists.txt         |    2 +-
 .../RunCPackVerifyResult.cmake                     |   26 +++++++++++++++++++-
 3 files changed, 26 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list