vagrant: fix musl build

This commit is contained in:
Duncaen 2023-05-17 00:00:53 +02:00
parent eb602d67bb
commit 3cd5f02b7b
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
1 changed files with 5 additions and 7 deletions

View File

@ -14,14 +14,8 @@ distfiles="https://github.com/hashicorp/vagrant/archive/v${version}.tar.gz"
checksum=34fce02219c67174457a6f8750063047f6c29b7148e425e4f3647cb80b8a5b2e
nocross=yes
case "$XBPS_TARGET_MACHINE" in
*-musl)
broken=https://build.voidlinux.org/builders/x86_64-musl_builder/builds/47636/steps/shell_3/logs/stdio
;;
esac
post_extract() {
vsed -i 's|, "< 3\.1"||g' vagrant.gemspec
vsed -e 's|, "< 3\.1"||g' -i vagrant.gemspec
}
do_install() {
@ -60,4 +54,8 @@ do_install() {
find ${DESTDIR} -type d -name doc -print0|xargs -0 rm -rf --
find ${DESTDIR} -type d -name ports -print0|xargs -0 rm -rf --
rm -r ${DESTDIR}/usr/lib/vagrant/cache
# XXX: work around bad permissions
chmod 644 ${DESTDIR}/usr/lib/vagrant/gems/google-protobuf-3.23.0/lib/google/protobuf.rb \
${DESTDIR}/usr/lib/vagrant/gems/google-protobuf-3.23.0/lib/google/protobuf/*.rb
}