vagrant: do not disable-clean for musl

This commit is contained in:
Đoàn Trần Công Danh 2024-01-22 11:45:39 +07:00
parent 8bd45387c4
commit 8eb32de671

View File

@ -20,8 +20,13 @@ post_extract() {
}
do_install() {
local dc=yes
# https://build.voidlinux.org/builders/x86_64-musl_builder/builds/50813/steps/shell_3/logs/stdio
if [ "$XBPS_TARGET_LIBC" = musl ]; then
dc=
fi
GEM_PATH=$DESTDIR/usr/lib/vagrant GEM_HOME="$GEM_PATH" \
gem install vagrant-$version.gem --no-document -- --disable-clean
gem install vagrant-$version.gem --no-document -- ${dc:+--disable-clean}
vlicense LICENSE
@ -57,6 +62,5 @@ do_install() {
rm -r ${DESTDIR}/usr/lib/vagrant/cache
# XXX: work around bad permissions
chmod 644 ${DESTDIR}/usr/lib/vagrant/gems/google-protobuf-*/lib/google/protobuf.rb \
${DESTDIR}/usr/lib/vagrant/gems/google-protobuf-*/lib/google/protobuf/*.rb
chmod -R go-wx ${DESTDIR}/usr/lib/vagrant/gems/google-protobuf-*/lib/google
}