Commit 835bdc62 authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: work around some more unreproducible logfiles kept only by cdebootstrap



Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent df02db89
......@@ -76,12 +76,17 @@ for LOOP in "first" "second" ; do
;;
debootstrap|cdebootstrap)
sudo $REALTOOL $SUITE $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}
# work around logfiles and files kept by both debootstrap and cdebootstrap
for FILE in /var/log/bootstrap.log /var/log/dpkg.log /var/log/alternatives.log ; do
cleanup_unreproducible_file "unreproducible logfile" $FILE
done
for FILE in /etc/machine-id /var/cache/ldconfig/aux-cache ; do
cleanup_unreproducible_file "unreproducible file" $FILE
done
# work around some more logfiles kept only by cdebootstrap
for FILE in /var/log/apt/history.log /var/log/apt/term.log /var/log/bootstrap.log ; do
cleanup_unreproducible_file "unreproducible logfile" $FILE
done
sudo tar --mtime="@$SOURCE_DATE_EPOCH" --clamp-mtime -C $BUILDDIR/$SUBDIR/${TOOL}/ -cf $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}.tar ${SUITE}
sudo rm -rf --one-file-system $BUILDDIR/$SUBDIR/${TOOL}/${SUITE}
;;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment