From d9266857b612fd12312c78440f16b5d15cb9e51d Mon Sep 17 00:00:00 2001 From: Erick Ahmed Date: Thu, 13 Aug 2026 19:33:40 +0200 Subject: [PATCH] Fix build environment and feed configuration in Dockerfile --- Dockerfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 17bc85ec..ddf73fb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,9 +48,23 @@ RUN ln -s /usr/bin/automake /usr/bin/automake-1.10 && \ ENV CONFIG_SHELL=/bin/bash COPY . /home/builder/openwrt + RUN useradd -m -s /bin/bash builder + +# Fix 1: Rebuild conf tool to avoid zconf.tab.o errors +RUN cd /home/builder/openwrt && \ + make -C scripts/config clean && \ + rm -f scripts/config/zconf.tab.c scripts/config/lex.yy.c && \ + make -C scripts/config conf + +# Fix 2: Download packages feed (bypass Git TLS and git:// port issues) +RUN cd /home/builder/openwrt && \ + wget https://github.com/openwrt/packages/archive/master.tar.gz -O - | tar xz -C feeds/ && \ + mv feeds/packages-master feeds/packages + +# Fix ownership of new files (packages feed and conf binary) RUN chown -R builder:builder /home/builder/openwrt -RUN git config --system http.sslVerify false + USER builder WORKDIR /home/builder/openwrt