From 82b1c5bdecf499a2646aafe9eb22119bbd942dbadc16424010622baf208b0276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Fri, 15 May 2015 09:45:48 +0000 Subject: [PATCH 1/3] Accepting request 307173 from home:olh:branches:devel:tools:building - CPack/RPM architecture test fixup (SLE11/11.4) (bco#15442) cmake.git-4552bc8.patch OBS-URL: https://build.opensuse.org/request/show/307173 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=211 --- cmake.changes | 6 +++++ cmake.git-4552bc8.patch | 55 +++++++++++++++++++++++++++++++++++++++++ cmake.spec | 6 +++-- 3 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 cmake.git-4552bc8.patch diff --git a/cmake.changes b/cmake.changes index 860caf8..b051959 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu May 14 18:42:34 UTC 2015 - olaf@aepfle.de + +- CPack/RPM architecture test fixup (SLE11/11.4) (bco#15442) + cmake.git-4552bc8.patch + ------------------------------------------------------------------- Wed May 13 11:13:00 UTC 2015 - hrvoje.senjan@gmail.com diff --git a/cmake.git-4552bc8.patch b/cmake.git-4552bc8.patch new file mode 100644 index 0000000..cc10f7c --- /dev/null +++ b/cmake.git-4552bc8.patch @@ -0,0 +1,55 @@ +From 4552bc886d1bd8966f6ef2f7790835dfdb2e6d8b Mon Sep 17 00:00:00 2001 +From: Domen Vrankar +Date: Sun, 15 Mar 2015 20:37:16 +0100 +Subject: [PATCH] CPack/RPM relocation paths test fixup + +Patch fixes bug in test reported with +id 15442 - older versions of rpm print +out package info a bit differently so +we should ignore white spaces +--- + Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake | 10 ++++++---- + 1 file changed, 6 insertions(+), 4 deletions(-) + +diff --git a/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake b/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake +index c7ec709..079b819 100644 +--- a/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake ++++ b/Tests/CPackComponentsForAll/RunCPackVerifyResult.cmake +@@ -162,28 +162,30 @@ if(CPackGen MATCHES "RPM") + ERROR_QUIET + OUTPUT_STRIP_TRAILING_WHITESPACE) + ++ set(whitespaces "[\\t\\n\\r ]*") ++ + if(check_file_libraries_match) + set(check_file_match_expected_summary ".*${CPACK_RPM_libraries_PACKAGE_SUMMARY}.*") + set(check_file_match_expected_description ".*${CPACK_RPM_libraries_PACKAGE_DESCRIPTION}.*") +- set(check_file_match_expected_relocation_path "Relocations : ${CPACK_PACKAGING_INSTALL_PREFIX} ${CPACK_PACKAGING_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") ++ set(check_file_match_expected_relocation_path "Relocations${whitespaces}:${whitespaces}${CPACK_PACKAGING_INSTALL_PREFIX}${whitespaces}${CPACK_PACKAGING_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}") + set(spec_regex "*libraries*") + set(check_content_list "^/usr/foo/bar\n/usr/foo/bar/lib.*\n/usr/foo/bar/lib.*/libmylib.a$") + elseif(check_file_headers_match) + set(check_file_match_expected_summary ".*${CPACK_RPM_PACKAGE_SUMMARY}.*") + set(check_file_match_expected_description ".*${CPACK_COMPONENT_HEADERS_DESCRIPTION}.*") +- set(check_file_match_expected_relocation_path "Relocations : ${CPACK_PACKAGING_INSTALL_PREFIX} ${CPACK_PACKAGING_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}") ++ set(check_file_match_expected_relocation_path "Relocations${whitespaces}:${whitespaces}${CPACK_PACKAGING_INSTALL_PREFIX}${whitespaces}${CPACK_PACKAGING_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}") + set(spec_regex "*headers*") + set(check_content_list "^/usr/foo/bar\n/usr/foo/bar/include\n/usr/foo/bar/include/mylib.h$") + elseif(check_file_applications_match) + set(check_file_match_expected_summary ".*${CPACK_RPM_PACKAGE_SUMMARY}.*") + set(check_file_match_expected_description ".*${CPACK_COMPONENT_APPLICATIONS_DESCRIPTION}.*") +- set(check_file_match_expected_relocation_path "Relocations : ${CPACK_PACKAGING_INSTALL_PREFIX} ${CPACK_PACKAGING_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}") ++ set(check_file_match_expected_relocation_path "Relocations${whitespaces}:${whitespaces}${CPACK_PACKAGING_INSTALL_PREFIX}${whitespaces}${CPACK_PACKAGING_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}.*") + set(spec_regex "*applications*") + set(check_content_list "^/usr/foo/bar\n/usr/foo/bar/bin\n/usr/foo/bar/bin/mylibapp$") + elseif(check_file_Unspecified_match) + set(check_file_match_expected_summary ".*${CPACK_RPM_PACKAGE_SUMMARY}.*") + set(check_file_match_expected_description ".*DESCRIPTION.*") +- set(check_file_match_expected_relocation_path "Relocations : ${CPACK_PACKAGING_INSTALL_PREFIX} ${CPACK_PACKAGING_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}") ++ set(check_file_match_expected_relocation_path "Relocations${whitespaces}:${whitespaces}${CPACK_PACKAGING_INSTALL_PREFIX}${whitespaces}${CPACK_PACKAGING_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}") + set(spec_regex "*Unspecified*") + set(check_content_list "^/usr/foo/bar + /usr/foo/bar/bin +-- +1.7.10.4 + diff --git a/cmake.spec b/cmake.spec index 7d6959d..b91f4c9 100644 --- a/cmake.spec +++ b/cmake.spec @@ -36,6 +36,8 @@ Patch5: system-libs.patch # PATCH-FIX-UPSTREAM cmake-fix-pie-binaries.patch -- new "file" is reporting PIE binaries a bit differently # I sent this by email to cmake-developers. Patch6: cmake-fix-pie-binaries.patch +# PATCH-FIX-UPSTREAM cmake.git-4552bc8.patch -- CPack/RPM architecture test fixup +Patch11: cmake.git-4552bc8.patch BuildRequires: curl-devel BuildRequires: fdupes BuildRequires: gcc-c++ @@ -65,6 +67,7 @@ CMake is a cross-platform, open-source build system %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch11 -p1 %build export CXXFLAGS="%{optflags}" @@ -137,8 +140,7 @@ export PATH=$NPATH %files %defattr(-,root,root) %config %{_sysconfdir}/rpm/macros.cmake -%{_prefix}/lib/rpm/fileattrs/cmake.attr -%{_prefix}/lib/rpm/cmake.prov +%{_prefix}/lib/rpm %{_bindir}/cpack %{_bindir}/cmake %{_bindir}/ctest From e2680dcd0f80b7091356e6806ddfb641d172da7b04248b0dea74e55acddab057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Fri, 15 May 2015 09:46:23 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=212 --- cmake.changes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake.changes b/cmake.changes index b051959..fb46780 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Thu May 14 18:42:34 UTC 2015 - olaf@aepfle.de -- CPack/RPM architecture test fixup (SLE11/11.4) (bco#15442) +- CPack/RPM architecture test fixup (SLE11/11.4) (cmake bug #15442) cmake.git-4552bc8.patch ------------------------------------------------------------------- From ca67974e766ddef5e38dfa05e8426d3f3bae869bf585baebf821a1badc50cd8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Fri, 15 May 2015 09:46:50 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=213 --- cmake.changes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake.changes b/cmake.changes index fb46780..b319765 100644 --- a/cmake.changes +++ b/cmake.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Thu May 14 18:42:34 UTC 2015 - olaf@aepfle.de -- CPack/RPM architecture test fixup (SLE11/11.4) (cmake bug #15442) +- CPack/RPM architecture test fixup (SLE11/11.4) (cmake bug#15442) cmake.git-4552bc8.patch -------------------------------------------------------------------