patch launchmon to fix char * conversion error (#12219)

This commit is contained in:
Gregory Lee 2019-07-31 14:47:36 -07:00 committed by Greg Becker
parent 5c970613b6
commit 162f1338d9
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,19 @@
*** launchmon-v1.0.2/launchmon/src/linux/lmon_api/lmon_coloc_spawner.cxx.orig Wed Jul 31 10:44:44 2019
--- launchmon-v1.0.2/launchmon/src/linux/lmon_api/lmon_coloc_spawner.cxx Wed Jul 31 10:45:04 2019
***************
*** 122,128 ****
memcpy(lmonpl, (*iter).c_str(), (*iter).size() + 1);
lmonpl += (*iter).size() + 1;
}
! lmonpl = '\0'; /* ending null */
if (write_lmonp_long_msg(m_be_master_sockfd, msg, msgsize) < 0)
{
--- 122,128 ----
memcpy(lmonpl, (*iter).c_str(), (*iter).size() + 1);
lmonpl += (*iter).size() + 1;
}
! *lmonpl = '\0'; /* ending null */
if (write_lmonp_long_msg(m_be_master_sockfd, msg, msgsize) < 0)
{

View File

@ -26,6 +26,8 @@ class Launchmon(AutotoolsPackage):
depends_on("boost")
depends_on("spectrum-mpi", when='arch=ppc64le')
patch('launchmon-char-conv.patch', when='@1.0.2')
def setup_environment(self, spack_env, run_env):
if self.spec.satisfies('@master'):
# automake for launchmon requires the AM_PATH_LIBGCRYPT macro