Blame SOURCES/0035-Makefile.inc-trim-extra-information-from-systemd-ver.patch

96a22b
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
96a22b
From: Benjamin Marzinski <bmarzins@redhat.com>
96a22b
Date: Mon, 6 Jul 2020 13:21:12 -0500
96a22b
Subject: [PATCH] Makefile.inc: trim extra information from systemd version
96a22b
96a22b
Some systemd versions print extra information in the
96a22b
"pkg-config --modversion" output, which confuses make. Trim this
96a22b
off.
96a22b
96a22b
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
96a22b
---
96a22b
 Makefile.inc | 2 +-
96a22b
 1 file changed, 1 insertion(+), 1 deletion(-)
96a22b
96a22b
diff --git a/Makefile.inc b/Makefile.inc
96a22b
index c2abd301..220009e0 100644
96a22b
--- a/Makefile.inc
96a22b
+++ b/Makefile.inc
96a22b
@@ -37,7 +37,7 @@ endif
96a22b
 
96a22b
 ifndef SYSTEMD
96a22b
 	ifeq ($(shell pkg-config --modversion libsystemd >/dev/null 2>&1 && echo 1), 1)
96a22b
-		SYSTEMD = $(shell pkg-config --modversion libsystemd)
96a22b
+		SYSTEMD = $(shell pkg-config --modversion libsystemd | awk '{print $$1}')
96a22b
 	else
96a22b
 		ifeq ($(shell systemctl --version >/dev/null 2>&1 && echo 1), 1)
96a22b
 			SYSTEMD = $(shell systemctl --version 2> /dev/null | \
96a22b
-- 
96a22b
2.17.2
96a22b