Skip to contentSkip to conversation

build: escape CC environment variable

PATCH New Federico Simoncelli 1 participant 2 messages Sep 13, 2011 DRBD driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 build: escape CC environment variable

This will allow to set CC to multiple commands; useful if you want to use ccache: export CC="ccache gcc"

---
 configure.ac |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
configure.ac +1 -1
index e3ab808..724b03f 100644
@@ -130,7 +130,7 @@ AC_PATH_PROG(DPKG_BUILDPACKAGE, dpkg-buildpackage)
 AC_PATH_PROG(UDEVADM, udevadm, [false], [/sbin$PATH_SEPARATOR$PATH])
 AC_PATH_PROG(UDEVINFO, udevinfo, [false], [/sbin$PATH_SEPARATOR$PATH])
 
-if test -z $CC; then
+if test -z "$CC"; then
    if test "$WITH_UTILS" = "yes"; then
       AC_MSG_ERROR([Cannot build utils without a C compiler, either install a compiler or pass the --without-utils option.])
    fi 
Signature · 1 line
1.7.1
#1 lore raw

PATCH 2/2 drbdsetup: sh-status should use _pdsk in all cases

Either the resource is StandAlone/Diskless or not we should report the peer disk status using the same label (_pdsk).

---
 user/drbdsetup.c        |    2 +-
 user/legacy/drbdsetup.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
user/drbdsetup.c +1 -1
index ac0618d..81ee13a 100644
@@ -1808,7 +1808,7 @@ static int sh_status_scmd(struct drbd_cmd *cm __attribute((unused)),
 		printf("%s_role=\n", _P);
 		printf("%s_peer=\n", _P);
 		printf("%s_disk=\n", _P);
-		printf("%s_pdisk=\n", _P);
+		printf("%s_pdsk=\n", _P);
 		printf("%s_flags_susp=\n", _P);
 		printf("%s_flags_aftr_isp=\n", _P);
 		printf("%s_flags_peer_isp=\n", _P);
user/legacy/drbdsetup.c +1 -1
index 3492d0c..c04c0fa 100644
@@ -1653,7 +1653,7 @@ static int sh_status_scmd(struct drbd_cmd *cm __attribute((unused)),
 		printf("%s_role=\n", _P);
 		printf("%s_peer=\n", _P);
 		printf("%s_disk=\n", _P);
-		printf("%s_pdisk=\n", _P);
+		printf("%s_pdsk=\n", _P);
 		printf("%s_flags_susp=\n", _P);
 		printf("%s_flags_aftr_isp=\n", _P);
 		printf("%s_flags_peer_isp=\n", _P);
Signature · 1 line
1.7.1