policycoreutils: Update fixfile

The functional call may not always work as specified, be sure to include the
() to make sure the shell knows this is a function.

Also add both findutils and grep as necessary for fixfiles to run properly
in a minimal environment.  Busybox is not adequate at this time.

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
This commit is contained in:
Mark Hatle 2017-09-14 16:10:58 -05:00
parent bca5c61150
commit 907e373e40
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,8 @@ DEPENDS += "${@target_selinux(d, 'libpam audit')}"
RDEPENDS_${BPN}-fixfiles += "\
${BPN}-setfiles \
grep \
findutils \
"
RDEPENDS_${BPN}-genhomedircon += "\
${BPN}-genhomedircon \

View File

@ -33,7 +33,7 @@ index 1aa330f..a10837d 100755
# number if the current is less than 2.6.30 and 0 if they are the same.
#
-function useseclabel {
+useseclabel {
+useseclabel () {
VER=`uname -r`
SUP=2.6.30
expr '(' "$VER" : '\([^.]*\)' ')' '-' '(' "$SUP" : '\([^.]*\)' ')' '|' \