Skip to contentSkip to conversation

Fix libpmem configuration option

PATCH In review Miroslav Rezanina 5 participants 5 messages Jul 7, 2021 – Jul 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix libpmem configuration option

For some reason, libpmem option setting was set to work in an opposite way (--enable-libpmem disabled it and vice versa). Fixing this so configuration works properly.

---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
index 7994bdee92..ffa93cc5fd 100755
@@ -1501,9 +1501,9 @@ for opt do
   ;;
   --disable-debug-mutex) debug_mutex=no
   ;;
-  --enable-libpmem) libpmem=disabled
+  --enable-libpmem) libpmem="enabled"
   ;;
-  --disable-libpmem) libpmem=enabled
+  --disable-libpmem) libpmem="disabled"
   ;;
   --enable-xkbcommon) xkbcommon="enabled"
   ;;
Signature · 1 line
2.27.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Miroslav Rezanina

For some reason, libpmem option setting was set to work in an opposite way (--enable-libpmem disabled it and vice versa). Fixing this so configuration works properly.

---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configure +0 -0
index 7994bdee92..ffa93cc5fd 100755
@@ -1501,9 +1501,9 @@ for opt do
   ;;

configure for opt do · line 1509

Quoted 10 lines
configure +2 -2
   --disable-debug-mutex) debug_mutex=no
   ;;
-  --enable-libpmem) libpmem=disabled
+  --enable-libpmem) libpmem="enabled"
   ;;
-  --disable-libpmem) libpmem=enabled
+  --disable-libpmem) libpmem="disabled"
   ;;
   --enable-xkbcommon) xkbcommon="enabled"
   ;;
Fixes e36e8c70f6d ("configure, meson: convert libpmem detection to meson")
Reviewed-by Tested-by on v1 1/1
#2 lore raw
In reply to Miroslav Rezanina
Quoted 26 lines · Miroslav Rezanina

For some reason, libpmem option setting was set to work in an opposite way (--enable-libpmem disabled it and vice versa). Fixing this so configuration works properly.

---
configure | 4 ++--

1 file changed, 2 insertions(+), 2 deletions(-)
configure +2 -5
index 7994bdee92..ffa93cc5fd 100755
@@ -1501,9 +1501,9 @@ for opt do
 ;;
--disable-debug-mutex) debug_mutex=no
 ;;
- --enable-libpmem) libpmem=disabled
+ --enable-libpmem) libpmem="enabled"
 ;;
- --disable-libpmem) libpmem=enabled
+ --disable-libpmem) libpmem="disabled"
 ;;
--enable-xkbcommon) xkbcommon="enabled"
 ;;
--
Quoted 1 line

2.27.0

Good catch.

or

Reviewed-by on v1 1/1
#3 lore raw
In reply to Miroslav Rezanina
Quoted 15 lines

For some reason, libpmem option setting was set to work in an opposite way (--enable-libpmem disabled it and vice versa). Fixing this so configuration works properly.

---
 configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configure +0 -0
index 7994bdee92..ffa93cc5fd 100755
@@ -1501,9 +1501,9 @@ for opt do
   ;;

configure for opt do · line 1509

Quoted 10 lines
configure +2 -2
   --disable-debug-mutex) debug_mutex=no
   ;;
-  --enable-libpmem) libpmem=disabled
+  --enable-libpmem) libpmem="enabled"
   ;;
-  --disable-libpmem) libpmem=enabled
+  --disable-libpmem) libpmem="disabled"
   ;;
   --enable-xkbcommon) xkbcommon="enabled"
   ;;
#4 lore raw
In reply to Miroslav Rezanina

i have to apply below extra changes

From a8d027d3dfe70fb33363ad5934e163999fc29eec Mon Sep 17 00:00:00 2001
From: Li Zhijian <[email protected]>
Date: Thu, 8 Jul 2021 17:52:40 +0800
Subject: [PATCH] fix libpmem configuration

---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure +1 -1
index a172c83e150..0a3a4610f27 100755
@@ -4818,7 +4818,7 @@ elif test "$pthread_setname_np_wo_tid" = "yes" ; then
   echo "CONFIG_PTHREAD_SETNAME_NP_WO_TID=y" >> $config_host_mak
 fi
 
-if test "$libpmem" = "yes" ; then
+if test "$libpmem" = "enabled" ; then
   echo "CONFIG_LIBPMEM=y" >> $config_host_mak
   echo "LIBPMEM_LIBS=$libpmem_libs" >> $config_host_mak
   echo "LIBPMEM_CFLAGS=$libpmem_cflags" >> $config_host_mak
Signature · 1 line
2.31.1
Quoted 25 lines · Miroslav Rezanina

For some reason, libpmem option setting was set to work in an opposite way (--enable-libpmem disabled it and vice versa). Fixing this so configuration works properly.

---
  configure | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
configure +2 -2
index 7994bdee92..ffa93cc5fd 100755
@@ -1501,9 +1501,9 @@ for opt do
    ;;
    --disable-debug-mutex) debug_mutex=no
    ;;
-  --enable-libpmem) libpmem=disabled
+  --enable-libpmem) libpmem="enabled"
    ;;
-  --disable-libpmem) libpmem=enabled
+  --disable-libpmem) libpmem="disabled"
    ;;
    --enable-xkbcommon) xkbcommon="enabled"
    ;;