From 734a5c3dd3de39c0f9ca9f92116447aaaf106c27 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Sun, 9 Apr 2017 15:34:11 +0200 Subject: [PATCH] openmpi: fix musl. --- srcpkgs/openmpi/template | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/srcpkgs/openmpi/template b/srcpkgs/openmpi/template index 8fc5e38a6f..587dbb7b02 100644 --- a/srcpkgs/openmpi/template +++ b/srcpkgs/openmpi/template @@ -19,8 +19,9 @@ distfiles="${homepage}/software/ompi/v${version%.*}/downloads/${pkgname}-${versi checksum=b169e15f5af81bf3572db764417670f508c0df37ce86ff50deb56bd3acb43957 nocross=yes # libtool -rpath /usr/lib issue -post_install() { - vlicense LICENSE +post_extract() { + sed -i 's,sys/unistd.h,unistd.h,g' opal/include/opal/sys/cma.h + sed -i '1i#include ' opal/mca/pmix/pmix112/pmix/include/pmix_server.h } pre_configure() { # used wrongly upstream? but nocross anyway @@ -39,6 +40,9 @@ pre_configure() { unset FC FC_FOR_BUILD } +post_install() { + vlicense LICENSE +} libopenmpi_package() { short_desc+=" - runtime libraries"