Skip to contentSkip to conversation

Fix systemd version detection

PATCH In review Benjamin Marzinski 2 participants 3 messages Apr 4, 2019 – Apr 5, 2019

Subsystems (2)
lore
Share & tools
lore

Benjamin Marzinski

author maintainer
#0 lore raw

PATCH 1/1 Fix systemd version detection

From: Igor Gnatenko <[email protected]>

---
 Makefile.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.inc +1 -1
index fc728ca..5b2f6d4 100644
@@ -37,7 +37,7 @@ endif
 
 ifndef SYSTEMD
 	ifeq ($(shell systemctl --version > /dev/null 2>&1 && echo 1), 1)
-		SYSTEMD = $(shell systemctl --version 2> /dev/null |  sed -n 's/systemd \([0-9]*\)/\1/p')
+		SYSTEMD = $(shell systemctl --version 2> /dev/null |  sed -n 's/systemd \([0-9]*\).*/\1/p')
 	endif
 endif
 
Signature · 1 line
2.17.2
author maintainer
#2 lore raw
Quoted 8 lines · Martin Wilck

Hi Ben,

Quoted 4 lines · Benjamin Marzinski

From: Igor Gnatenko <[email protected]>

Quoted 6 lines

I'd submitted a different patch last month:

"multipath-tools: Build: properly parse systemd's version"
https://www.redhat.com/archives/dm-devel/2019-March/msg00057.html

Did you disagree with that one?

Actually, I totally forgot about that one. It's fine.

-Ben

Quoted 1 line

Martin