Skip to content
Snippets Groups Projects
Commit e559b4da authored by Konstantin Pavlov's avatar Konstantin Pavlov
Browse files

modules: Added a hack to make build system fetch a requested nginx version

We're now using a tip of default branch on pkg-oss which moves fast and
breaks things.  A better solution is probably to check out a specific
nginx tag and build whatever is available for it.  This, however, is not
currently possible with 1.19.6, and only works for 1.19.7.  This should
probably be reverted once we have enough tags supporting it.
parent fa2213a7
No related branches found
No related tags found
No related merge requests found
...@@ -45,9 +45,9 @@ RUN set -ex \ ...@@ -45,9 +45,9 @@ RUN set -ex \
elif make -C /pkg-oss/debian list | grep -P "^$module\s+\d" > /dev/null; then \ elif make -C /pkg-oss/debian list | grep -P "^$module\s+\d" > /dev/null; then \
echo "Building $module from pkg-oss sources"; \ echo "Building $module from pkg-oss sources"; \
cd /pkg-oss/debian; \ cd /pkg-oss/debian; \
make rules-module-$module BASE_VERSION=$NGINX_VERSION; \ make rules-module-$module BASE_VERSION=$NGINX_VERSION NGINX_VERSION=$NGINX_VERSION; \
mk-build-deps --install --tool="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes" debuild-module-$module/nginx-$NGINX_VERSION/debian/control; \ mk-build-deps --install --tool="apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes" debuild-module-$module/nginx-$NGINX_VERSION/debian/control; \
make module-$module BASE_VERSION=$NGINX_VERSION; \ make module-$module BASE_VERSION=$NGINX_VERSION NGINX_VERSION=$NGINX_VERSION; \
find ../../ -maxdepth 1 -mindepth 1 -type f -name "*.deb" -exec mv -v {} /tmp/packages/ \;; \ find ../../ -maxdepth 1 -mindepth 1 -type f -name "*.deb" -exec mv -v {} /tmp/packages/ \;; \
else \ else \
echo "Don't know how to build $module module, exiting"; \ echo "Don't know how to build $module module, exiting"; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment