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

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