mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
ruby: musl fixes, allow testsuite to pass
This commit is contained in:
parent
dd6049ea17
commit
015fe9d91f
1 changed files with 24 additions and 4 deletions
|
@ -3,7 +3,7 @@ _ruby_abiver=2.7.0
|
||||||
|
|
||||||
pkgname=ruby
|
pkgname=ruby
|
||||||
version=2.7.1
|
version=2.7.1
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-shared --disable-rpath
|
configure_args="--enable-shared --disable-rpath
|
||||||
DOXYGEN=/usr/bin/doxygen DOT=/usr/bin/dot PKG_CONFIG=/usr/bin/pkg-config"
|
DOXYGEN=/usr/bin/doxygen DOT=/usr/bin/dot PKG_CONFIG=/usr/bin/pkg-config"
|
||||||
|
@ -38,6 +38,7 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
configure_args+=" --with-coroutine=ppc64le"
|
configure_args+=" --with-coroutine=ppc64le"
|
||||||
;;
|
;;
|
||||||
ppc-musl)
|
ppc-musl)
|
||||||
|
_need_libucontext=yes
|
||||||
makedepends+=" libucontext-devel"
|
makedepends+=" libucontext-devel"
|
||||||
configure_args+=" LIBS=-lucontext"
|
configure_args+=" LIBS=-lucontext"
|
||||||
;;
|
;;
|
||||||
|
@ -54,6 +55,25 @@ post_patch() {
|
||||||
patch -sNp1 -i ${FILESDIR}/rubygems-avoid-platform-specific-gems.patch
|
patch -sNp1 -i ${FILESDIR}/rubygems-avoid-platform-specific-gems.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
# this allows the test suite to pass without crashing
|
||||||
|
export CFLAGS+=" -fno-omit-frame-pointer -fno-strict-aliasing"
|
||||||
|
export CPPFLAGS+=" -fno-omit-frame-pointer -fno-strict-aliasing"
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
ppc64le*) ;;
|
||||||
|
ppc*)
|
||||||
|
# Random segfaults otherwise
|
||||||
|
export CFLAGS+=" -Os"
|
||||||
|
export CPPFLAGS+=" -Os"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# force this to pass on systems with these as macros (musl)
|
||||||
|
export ac_cv_func_isnan=yes
|
||||||
|
export ac_cv_func_isinf=yes
|
||||||
|
}
|
||||||
|
|
||||||
pre_build() {
|
pre_build() {
|
||||||
# Force getaddrinfo detection.
|
# Force getaddrinfo detection.
|
||||||
sed -e 's,\(checking_for("wide getaddrinfo") {try_\)run,\1link,' -i ext/socket/extconf.rb
|
sed -e 's,\(checking_for("wide getaddrinfo") {try_\)run,\1link,' -i ext/socket/extconf.rb
|
||||||
|
@ -99,9 +119,9 @@ ruby-devel-doc_package() {
|
||||||
|
|
||||||
ruby-devel_package() {
|
ruby-devel_package() {
|
||||||
depends="ruby-${version}_${revision} gmp-devel"
|
depends="ruby-${version}_${revision} gmp-devel"
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
if [ "$_need_libucontext" ]; then
|
||||||
ppc-musl) depends+=" libucontext-devel" ;;
|
depends+=" libucontext-devel"
|
||||||
esac
|
fi
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
|
|
Loading…
Add table
Reference in a new issue