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

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