Strip spaces from NAME

Strip trailing space(s) from 'NAME' being read from /etc/selinux/config as a trailing space in that name will cause a weird error during the make process for modules built out of tree.  This is seen on current RedHat machines which have space in the 'SELINUXTYPE' variable.
This commit is contained in:
David Sugar 2017-08-30 16:22:40 +00:00 committed by Chris PeBenito
parent 91c8855bce
commit f8a4b8e28b
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ EINFO ?= echo
PYTHON ?= python PYTHON ?= python
CUT ?= cut CUT ?= cut
NAME ?= $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config) NAME ?= $(strip $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config))
SHAREDIR ?= /usr/share/selinux SHAREDIR ?= /usr/share/selinux
HEADERDIR ?= $(SHAREDIR)/$(NAME)/include HEADERDIR ?= $(SHAREDIR)/$(NAME)/include