From c8ece55a32d1433869c0fa3ea51ff115afa92872 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 7 May 2021 01:25:30 +0200 Subject: [PATCH] polyml: fix lint, clean up, simplify, add libffi-devel outside x86 --- srcpkgs/polyml/template | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/srcpkgs/polyml/template b/srcpkgs/polyml/template index 28170c9d2d3..755274b19d7 100644 --- a/srcpkgs/polyml/template +++ b/srcpkgs/polyml/template @@ -1,33 +1,30 @@ # Template file for 'polyml' pkgname=polyml version=5.8.2 -revision=1 +revision=2 build_style=gnu-configure configure_args="--enable-shared" +makedepends="gmp-devel" +short_desc="Poly/ML Standard ML (SML) implementation" +maintainer="Leah Neukirchen " +license="LGPL-2.1-or-later" +homepage="http://www.polyml.org/" +distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz" +checksum=310b0ba748a50f38e99de7f65ba990bc4b4f4b0123ad76aba4c44d7cd1ed9277 +conflicts="mesa-demos>=0" # /usr/bin/poly +nocross=yes + case "$XBPS_TARGET_MACHINE" in - i686-musl|x86_64-musl) + i686*|x86_64*) # musl doesn't allow writing to .rodata and .text during # relocation, but polyexport.o contains DT_TEXTREL # since libpolyml/elfexport.cpp only creates absolute # relocations. Drop PIE and do relocations at link time. - nopie=yes;; - i686*|x86_64*) ;; - *) configure_args+=" --disable-native-codegeneration" ;; -esac -makedepends="gmp-devel" -conflicts="mesa-demos>=0" # /usr/bin/poly -short_desc="The Poly/ML Standard ML (SML) implementation" -maintainer="Leah Neukirchen " -license="LGPL-2.1" -homepage="http://www.polyml.org/" -distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz" -checksum=310b0ba748a50f38e99de7f65ba990bc4b4f4b0123ad76aba4c44d7cd1ed9277 -nocross=yes - -# broken on musl ppc and big endian ppc -case "$XBPS_TARGET_MACHINE" in - ppc64le) ;; - ppc*) broken="Segmentation Fault";; + [ "$XBPS_TARGET_LIBC" = "musl" ] && nopie=yes + ;; + *) makedepends+=" libffi-devel";; esac -# Since this is a compiler, no -devel package. +if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then + broken="crashes" +fi