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 edcc992cd651e4b66cc0ef9b984725d2cf180d18 (commit) via 66e86b4770dcda3b5e79776c4cda6e60646189f1 (commit) from 7309669cc1a57fcde79114d03f333db2a1af872e (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=edcc992cd651e4b66cc0ef9b984725d2cf180d18 commit edcc992cd651e4b66cc0ef9b984725d2cf180d18 Merge: 7309669 66e86b4 Author: Eric Noulard <eric.noul...@gmail.com> AuthorDate: Mon Nov 15 15:02:23 2010 -0500 Commit: CMake Topic Stage <kwro...@kitware.com> CommitDate: Mon Nov 15 15:02:23 2010 -0500 Merge topic 'CPackRPM-ComponentSupport' into next 66e86b4 CPack fix kwstyle breakage and make CPackRPM backward compatible http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=66e86b4770dcda3b5e79776c4cda6e60646189f1 commit 66e86b4770dcda3b5e79776c4cda6e60646189f1 Author: Eric NOULARD <eric.noul...@gmail.com> AuthorDate: Mon Nov 15 20:54:19 2010 +0100 Commit: Eric NOULARD <eric.noul...@gmail.com> CommitDate: Mon Nov 15 20:54:19 2010 +0100 CPack fix kwstyle breakage and make CPackRPM backward compatible backward compatible= No componentized RPM unless requested using CPACK_RPM_COMP0NENT_INSTALL diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index d9f2b47..92e5b6a 100644 --- a/Source/CPack/cmCPackGenerator.cxx +++ b/Source/CPack/cmCPackGenerator.cxx @@ -741,7 +741,9 @@ int cmCPackGenerator::InstallProjectViaInstallCMakeProjects( * - Because it was already used for component install * in order to put things in subdirs... */ - cmSystemTools::PutEnv((std::string("DESTDIR=")+tempInstallDirectory).c_str()); + cmSystemTools::PutEnv( + (std::string("DESTDIR=")+tempInstallDirectory).c_str() + ); cmCPackLogger(cmCPackLog::LOG_DEBUG, "- Creating directory: '" << dir << "'" << std::endl); diff --git a/Source/CPack/cmCPackRPMGenerator.cxx b/Source/CPack/cmCPackRPMGenerator.cxx index a06b626..34e93d3 100644 --- a/Source/CPack/cmCPackRPMGenerator.cxx +++ b/Source/CPack/cmCPackRPMGenerator.cxx @@ -44,7 +44,7 @@ int cmCPackRPMGenerator::PackageFiles() << toplevel << std::endl); /* Are we in the component packaging case */ - if (!this->ComponentGroups.empty()) + if (SupportsComponentInstallation() & (!this->ComponentGroups.empty())) { /* Reset package file name list it will be populated during the * component packaging run*/ @@ -57,8 +57,12 @@ int cmCPackRPMGenerator::PackageFiles() compIt!=this->Components.end(); ++compIt ) { std::string localToplevel(initialTopLevel); - std::string packageFileName(cmSystemTools::GetParentDirectory(toplevel.c_str())); - std::string outputFileName(std::string(this->GetOption("CPACK_PACKAGE_FILE_NAME")) + std::string packageFileName( + cmSystemTools::GetParentDirectory(toplevel.c_str()) + ); + std::string outputFileName( + std::string(this->GetOption("CPACK_PACKAGE_FILE_NAME") + ) +"-"+compIt->first + this->GetOutputExtension()); localToplevel += "/"+ compIt->first; @@ -68,12 +72,14 @@ int cmCPackRPMGenerator::PackageFiles() /* replace proposed CPACK_OUTPUT_FILE_NAME */ this->SetOption("CPACK_OUTPUT_FILE_NAME",outputFileName.c_str()); /* replace the TEMPORARY package file name */ - this->SetOption("CPACK_TEMPORARY_PACKAGE_FILE_NAME",packageFileName.c_str()); + this->SetOption("CPACK_TEMPORARY_PACKAGE_FILE_NAME", + packageFileName.c_str()); this->SetOption("CPACK_RPM_PACKAGE_COMPONENT",compIt->first.c_str()); if (!this->ReadListFile("CPackRPM.cmake")) { - cmCPackLogger(cmCPackLog::LOG_ERROR, "Error while execution CPackRPM.cmake" << std::endl); + cmCPackLogger(cmCPackLog::LOG_ERROR, + "Error while execution CPackRPM.cmake" << std::endl); retval = 0; } @@ -86,7 +92,8 @@ int cmCPackRPMGenerator::PackageFiles() { if (!this->ReadListFile("CPackRPM.cmake")) { - cmCPackLogger(cmCPackLog::LOG_ERROR, "Error while execution CPackRPM.cmake" << std::endl); + cmCPackLogger(cmCPackLog::LOG_ERROR, + "Error while execution CPackRPM.cmake" << std::endl); retval = 0; } } @@ -99,4 +106,15 @@ int cmCPackRPMGenerator::PackageFiles() return retval; } +bool cmCPackRPMGenerator::SupportsComponentInstallation() const + { + if (IsSet("CPACK_RPM_COMPONENT_INSTALL")) + { + return true; + } + else + { + return false; + } + } diff --git a/Source/CPack/cmCPackRPMGenerator.h b/Source/CPack/cmCPackRPMGenerator.h index 9063ea7..57d5cca 100644 --- a/Source/CPack/cmCPackRPMGenerator.h +++ b/Source/CPack/cmCPackRPMGenerator.h @@ -39,7 +39,7 @@ protected: virtual int InitializeInternal(); virtual int PackageFiles(); virtual const char* GetOutputExtension() { return ".rpm"; } - virtual bool SupportsComponentInstallation() const {return true;} + virtual bool SupportsComponentInstallation() const; }; ----------------------------------------------------------------------- Summary of changes: Source/CPack/cmCPackGenerator.cxx | 4 +++- Source/CPack/cmCPackRPMGenerator.cxx | 30 ++++++++++++++++++++++++------ Source/CPack/cmCPackRPMGenerator.h | 2 +- 3 files changed, 28 insertions(+), 8 deletions(-) hooks/post-receive -- CMake _______________________________________________ Cmake-commits mailing list Cmake-commits@cmake.org http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-commits