New comment by tornaria on void-packages repository https://github.com/void-linux/void-packages/pull/33006#issuecomment-922087250 Comment: To help the conversation, this affects the do_extract hook in the following way: 1. The first step is to create a tmpdir named `"$XBPS_BUILDDIR/.extractdir-XXXXXX"`, we call that `$extractdir` 2. The second step is the actual extraction, which is just as before but extracting everything into `$extractdir` 3. The third step is the move, so that's where the semantics lies. The move, with current behaviour, I think would be something like ``` if [ -n "$create_wrksrc" ]; then mkdir -p "$wrksrc" || msg_error "$pkgver: failed to create wrksrc.\n" echo mv -i "$extractdir"/* -t "$wrksrc" || msg_error "$pkgver: failed to move $extractdir/* into $wrksrc" else echo mv -i "$extractdir"/* -t "$XBPS_BUILDDIR" || msg_error "$pkgver: failed to move $extractdir/* into $XBPS_BUILDIR" fi ```