From 8eb32de671d36c5caaee07fd3f12486cdc6d7435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 22 Jan 2024 11:45:39 +0700 Subject: [PATCH] vagrant: do not disable-clean for musl --- srcpkgs/vagrant/template | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/srcpkgs/vagrant/template b/srcpkgs/vagrant/template index cd207be0d2d..d2599fdb67a 100644 --- a/srcpkgs/vagrant/template +++ b/srcpkgs/vagrant/template @@ -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 }