Bug#930592: reprotest: uses faketime regardless of the specified variations

Niko Tyni ntyni at debian.org
Sun Jun 16 08:59:05 BST 2019


Package: reprotest
Version: 0.7.8

My package has a test which don't work under faketime (see #930441),
so I'm trying to eliminate that from the build command in reprotest but
had no success so far.

It looks like reprotest is using faketime to fix the time of the first
build regardless of the variations listed.

  % reprotest -vv --variations=-time .
[...]
  DEBUG:reprotest:#### BEGIN REPROTEST BUILD SCRIPT ##############################################
  run_build() {
      mkdir -p /tmp/reprotest.yUxixU/build-control-aux && \
      mv /tmp/reprotest.yUxixU/build-control/ /tmp/reprotest.yUxixU/const_build_path && \
      SETARCH_ARCH=$(uname -m) && \
      SETARCH_OPTS="$SETARCH_OPTS -R" && \
      CPU_MAX=$(nproc) && \
      CPU_MIN=$({ echo $CPU_MAX; echo 1; } | sort -n | head -n1) && \
      CPU_NUM=$CPU_MIN && \
      umask 0022 && \
      export REPROTEST_BUILD_PATH=/tmp/reprotest.yUxixU/const_build_path/ && \
      export REPROTEST_UMASK=$(umask) && \
      faketime @1560633864 \
      taskset -a -c $(echo $(shuf -i0-$((CPU_MAX - 1)) -n$CPU_NUM) | tr ' ' ,) \
      setarch $SETARCH_ARCH $SETARCH_OPTS \
      sh -ec 'cd "$REPROTEST_BUILD_PATH"; unset REPROTEST_BUILD_PATH; umask "$REPROTEST_UMASK"; unset REPROTEST_UMASK; dpkg-buildpackage --no-sign -b'
  }
[...]
  sh: 12: faketime: not found
 
If faketime usage is indeed currently hardcoded and I'm not just missing
something, it seems this should be reflected in the Debian package
dependencies as well; currently faketime is just a recommendation.

Thanks for your work on Debian,
-- 
Niko Tyni   ntyni at debian.org



More information about the Reproducible-builds mailing list