[openwrt/openwrt] policycoreutils: fix ALTERNATIVES install location

LEDE Commits lede-commits at lists.infradead.org
Mon Sep 21 13:58:31 EDT 2020


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/236e79abb72e22c6e87110a7b0e5288cf3b48efa

commit 236e79abb72e22c6e87110a7b0e5288cf3b48efa
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Mon Sep 21 18:51:37 2020 +0100

    policycoreutils: fix ALTERNATIVES install location
    
    Fixes: 7817c831ef ("policycoreutils: break into smaller packages")
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 package/utils/policycoreutils/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/utils/policycoreutils/Makefile b/package/utils/policycoreutils/Makefile
index 3fd0e39081..03b3fd4879 100644
--- a/package/utils/policycoreutils/Makefile
+++ b/package/utils/policycoreutils/Makefile
@@ -135,7 +135,7 @@ endef
 define BuildUtil
   define Package/$(1)/install
 	$(INSTALL_DIR) $$(1)$(2)
-	$(INSTALL_BIN) $$(PKG_INSTALL_DIR)$(2)/$(3) $$(1)$(2)
+	$(INSTALL_BIN) $$(PKG_INSTALL_DIR)$(2)/$(3) $$(1)$(2)/$(if $(ALTS_$(3)),policycoreutils-$(3),$(3))
   endef
 
   $$(eval $$(call BuildPackage,$(1)))



More information about the lede-commits mailing list