Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
``Tools/build/regen-configure.sh`` no longer leaves an ``autom4te.cache``
directory owned by root in the source tree: the Autoconf container now runs as
the invoking user, and the cache is removed when the script finishes.
9 changes: 8 additions & 1 deletion Tools/build/regen-configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@ if command -v selinuxenabled >/dev/null && selinuxenabled; then
PATH_OPT=":Z"
fi

"$RUNTIME" run --rm -v "$abs_srcdir:$WORK_DIR$PATH_OPT" "$IMAGE"
purge_autom4te_cache() {
"$RUNTIME" run --rm -v "$abs_srcdir:$WORK_DIR$PATH_OPT" \
--entrypoint sh "$IMAGE" -c "rm -rf $WORK_DIR/autom4te.cache"
}

purge_autom4te_cache
trap purge_autom4te_cache EXIT
"$RUNTIME" run --rm -u "$(id -u):$(id -g)" -v "$abs_srcdir:$WORK_DIR$PATH_OPT" "$IMAGE"
Loading