From 953f385e4b410fb7c560b47295ef2fd34e25d44a Mon Sep 17 00:00:00 2001 From: Dimitri Savineau Date: Wed, 14 Sep 2022 11:55:08 -0400 Subject: [PATCH] nfs-ganesha/rpm: Fix tcmalloc allocator setup The previous commit installed the gperftools-devel package and set the cmake ALLOCATION variable to tcmalloc but this isn't used at all during the RPM package build via mock. We also need those changes in the RPM spec file. This is a temporary solution until the upstream nfs-ganesha RPM spec file will support such change. Signed-off-by: Dimitri Savineau --- nfs-ganesha/build/build_rpm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nfs-ganesha/build/build_rpm b/nfs-ganesha/build/build_rpm index 162e7cc2..3ac0b9c1 100644 --- a/nfs-ganesha/build/build_rpm +++ b/nfs-ganesha/build/build_rpm @@ -124,6 +124,8 @@ fi sed -i 's/libcephfs1-devel/libcephfs-devel/' $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec sed -i 's/librgw2-devel/librgw-devel/' $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec sed -i 's/CMAKE_BUILD_TYPE=Debug/CMAKE_BUILD_TYPE=RelWithDebInfo/' $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec +sed -i '/^BuildRequires:.*cmake$/a\BuildRequires: gperftools-devel\' $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec +sed -i '/-DSANITIZE_ADDRESS/a\ -DALLOCATOR=tcmalloc\' $WORKSPACE/nfs-ganesha/src/nfs-ganesha.spec ## Create the source rpm echo "Building SRPM" -- 2.47.3