aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2020-09-27 17:10:34 +0100
committerDaniel Golle <daniel@makrotopia.org>2020-09-27 17:22:01 +0100
commite8b34880f9776264837d0ba1604ef602ac93882e (patch)
treea61c8a893c0c1cf05d57908372292e976dabe752 /package
parent96023cd4ba66c33e77d9df562dda44b0a1ba1ac9 (diff)
downloadupstream-e8b34880f9776264837d0ba1604ef602ac93882e.tar.gz
upstream-e8b34880f9776264837d0ba1604ef602ac93882e.tar.bz2
upstream-e8b34880f9776264837d0ba1604ef602ac93882e.zip
policycoreutils: fix host utils rpath and bin directory
'setfiles' and others should be installed to $(STAGING_DIR_HOSTPKG)/bin rather than $(...)/sbin which isn't in PATH. Also using -Wl,-rpath to set library search location instead of setting LD_LIBRARY_PATH when calling setfiles in image.mk. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'package')
-rw-r--r--package/utils/policycoreutils/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/package/utils/policycoreutils/Makefile b/package/utils/policycoreutils/Makefile
index 03b3fd4879..6b7b78ed78 100644
--- a/package/utils/policycoreutils/Makefile
+++ b/package/utils/policycoreutils/Makefile
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=policycoreutils
PKG_VERSION:=3.1
-PKG_RELEASE:=3
+PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/SELinuxProject/selinux/releases/download/20200710
@@ -67,9 +67,11 @@ MAKE_FLAGS += \
HOST_MAKE_FLAGS += \
PAMH=$(CONFIG_BUSYBOX_CONFIG_PAM) \
- PREFIX=$(STAGING_DIR_HOSTPKG) \
- SBINDIR=$(STAGING_DIR_HOSTPKG)/sbin \
- ETCDIR=$(STAGING_DIR_HOSTPKG)/etc
+ DESTDIR=$(STAGING_DIR_HOSTPKG) \
+ PREFIX= \
+ SBINDIR=/bin
+
+HOST_LDFLAGS += -Wl,-rpath=$(STAGING_DIR_HOSTPKG)/lib
$(eval $(foreach a,$(DIR_SBIN),ALTS_$(a):=300:/sbin/$(a):/sbin/policycoreutils-$(a)$(newline)))
$(eval $(foreach a,$(DIR_USR_BIN),ALTS_$(a):=300:/usr/bin/$(a):/usr/bin/policycoreutils-$(a)$(newline)))