COPY . /pdns-recursor
WORKDIR /pdns-recursor
-#ADD builder-support/helpers/ /pdns/builder-support/helpers/
-RUN cd /pdns-recursor/builder-support/helpers/ && \
- ./install_rust.sh
RUN mkdir /sdist
meson setup /tmp/rec-meson-dist-build && \
meson dist -C /tmp/rec-meson-dist-build --no-tests
+RUN cd /pdns-recursor/builder-support/helpers/ && \
+ ./install_rust.sh
+
RUN cp /tmp/rec-meson-dist-build/meson-dist/pdns-recursor-${BUILDER_VERSION}.tar.xz /sdist/
#!/bin/sh -e
echo Running meson-dist-script
+export CARGO="${CARGO:-$_defaultCARGO}"
+
echo PWD=$(pwd)
echo MESON_SOURCE_ROOT=$MESON_SOURCE_ROOT
echo MESON_PROJECT_DIST_ROOT=$MESON_PROJECT_DIST_ROOT
+echo CARGO=$CARGO
if [ -z "${BUILDER_VERSION}" ]; then
echo "BUILDER_VERSION is not set" >&2
exit 1
fi
+if [ -z "${CARGO}" ]; then
+ echo PATH=$PATH
+ ls -l /usr/bin/cargo
+ export CARGO=/usr/bin/cargo
+ #exit 1
+fi
+
cd "$MESON_PROJECT_DIST_ROOT"
# Get all symlinks
# Unfortunately we cannot use --offline because for some reason cargo-update wants
# to check all dependencies even though we are telling it exactly what to update
cd "$MESON_PROJECT_DIST_ROOT"/rec-rust-lib/rust/
-cargo update --verbose --precise ${BUILDER_VERSION} recrust
+ls -l /usr/bin/cargo
+echo $CARGO update --verbose --precise ${BUILDER_VERSION} recrust
+$CARGO update --verbose --precise ${BUILDER_VERSION} recrust
cd "$MESON_PROJECT_BUILD_ROOT"
# Generate man pages
'cpp_std=c++17',
],
)
+
+env = environment()
+cargo = find_program('cargo')
+env.set('_defaultCARGO', cargo.full_path())
meson.add_dist_script('meson-dist-script.sh')
# When running meson dist, the command below produces multiple lines on stderr: