[source] base-files: create /etc/opkg before generating distfeeds.conf

LEDE Commits lede-commits at lists.infradead.org
Wed Dec 13 07:43:25 PST 2017


jogo pushed a commit to source.git, branch master:
https://git.lede-project.org/5538b4df7fdc3c184110880bb323f074dc4a6bee

commit 5538b4df7fdc3c184110880bb323f074dc4a6bee
Author: Jonas Gorski <jonas.gorski at gmail.com>
AuthorDate: Wed Dec 13 14:30:30 2017 +0100

    base-files: create /etc/opkg before generating distfeeds.conf
    
    Ensure /etc/opkg exists before trying to write there. This fixes a build
    failure if SIGNED_PACKAGES is disabled.
    
    Reported-by: Matthias Schiffer <mschiffer at universe-factory.net>
    Signed-off-by: Jonas Gorski <jonas.gorski at gmail.com>
---
 package/base-files/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index 6e8ef58..2cf76b1 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -190,6 +190,7 @@ define Package/base-files/install
 		echo -e "# Build configuration for board $(BOARD)/$(SUBTARGET)/$(PROFILE)\n" >$(1)/etc/build.config; \
 		cat $(BIN_DIR)/config.seed >>$(1)/etc/build.config)
 
+	mkdir -p $(1)/etc/opkg
 	$(call FeedSourcesAppend,$(1)/etc/opkg/distfeeds.conf)
 	$(VERSION_SED) $(1)/etc/opkg/distfeeds.conf
 endef



More information about the lede-commits mailing list