[arch-commits] Commit in openmpi/trunk (PKGBUILD system_ltdl.patch)
Anatol Pomozov
anatolik at archlinux.org
Sun Sep 28 15:56:30 UTC 2014
Date: Sunday, September 28, 2014 @ 17:56:29
Author: anatolik
Revision: 223652
upgpkg: openmpi 1.8.3-1
- disable --debug compilation flag. Not clear why stephane enabled it in 115803 - ./configure states that --debug is not for users. Fixes FS#41875
- add package check() function to make sure it is not broken at compile time. Add patches that make sure tests use system version of ltdl library.
Added:
openmpi/trunk/system_ltdl.patch
Modified:
openmpi/trunk/PKGBUILD
-------------------+
PKGBUILD | 23 ++++++++++++++----
system_ltdl.patch | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 84 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-09-28 15:55:46 UTC (rev 223651)
+++ PKGBUILD 2014-09-28 15:56:29 UTC (rev 223652)
@@ -3,7 +3,7 @@
# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
pkgname=openmpi
-pkgver=1.8.2
+pkgver=1.8.3
pkgrel=1
pkgdesc='High performance message passing library (MPI)'
arch=(i686 x86_64)
@@ -13,15 +13,23 @@
makedepends=(inetutils valgrind gcc-fortran)
optdepends=('gcc-fortran: fortran support')
options=(staticlibs)
-source=(http://www.open-mpi.org/software/ompi/v1.8/downloads/${pkgname}-${pkgver}.tar.bz2)
-sha1sums=('55067856b351cbeb5ebe8a430bfe0656115a04ed')
+source=(http://www.open-mpi.org/software/ompi/v1.8/downloads/${pkgname}-${pkgver}.tar.bz2
+ system_ltdl.patch)
+sha1sums=('4be9c5d2a8baee6a80bde94c6485931979a428fe'
+ 'd5f8a3d463f1a1f29ca4725d6fb3b9f8c40799dc')
-build() {
+prepare() {
cd $pkgname-$pkgver
# Make sure we use the system ltdl library rather than the ones in the tarball
rm -r opal/libltdl
+ patch -p1 < ../system_ltdl.patch
+ ./autogen.pl
+}
+build() {
+ cd $pkgname-$pkgver
+
./configure --prefix=/usr \
--sysconfdir=/etc/${pkgname} \
--enable-mpi-fortran=all \
@@ -30,7 +38,6 @@
--enable-smp-locks \
--with-valgrind \
--enable-memchecker \
- --enable-debug \
--enable-pretty-print-stacktrace \
--without-slurm \
--with-hwloc=/usr \
@@ -41,6 +48,12 @@
make
}
+check() {
+ cd $pkgname-$pkgver
+
+ make check
+}
+
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
Added: system_ltdl.patch
===================================================================
--- system_ltdl.patch (rev 0)
+++ system_ltdl.patch 2014-09-28 15:56:29 UTC (rev 223652)
@@ -0,0 +1,66 @@
+diff --git a/config/ltdl.m4 b/config/ltdl.m4
+index ea76f4d..2f1cbfe 100644
+--- a/config/ltdl.m4
++++ b/config/ltdl.m4
+@@ -162,6 +162,8 @@ m4_defun([_LTDL_INSTALLABLE],
+ fi
+ fi
+
++enable_ltdl_install=no
++
+ # If configure.ac declared an installable ltdl, and the user didn't override
+ # with --disable-ltdl-install, we will install the shipped libltdl.
+ case $enable_ltdl_install in
+diff --git a/ompi/debuggers/Makefile.am b/ompi/debuggers/Makefile.am
+index 2adf3fd..5b22a91 100644
+--- a/ompi/debuggers/Makefile.am
++++ b/ompi/debuggers/Makefile.am
+@@ -46,8 +46,7 @@ headers = \
+ # Simple checks to ensure that the DSOs are functional
+
+ dlopen_test_SOURCES = dlopen_test.c
+-dlopen_test_CPPFLAGS = -I$(top_srcdir)/opal/libltdl
+-dlopen_test_LDADD = $(top_builddir)/opal/libltdl/libltdlc.la
++dlopen_test_LDADD = -lltdl
+
+ predefined_gap_test_SOURCES = predefined_gap_test.c
+ predefined_gap_test_LDFLAGS = $(WRAPPER_EXTRA_LDFLAGS)
+diff --git a/ompi/debuggers/dlopen_test.c b/ompi/debuggers/dlopen_test.c
+index 029a4ee..023afb8 100644
+--- a/ompi/debuggers/dlopen_test.c
++++ b/ompi/debuggers/dlopen_test.c
+@@ -13,7 +13,7 @@
+ #include <string.h>
+ #include <stdlib.h>
+
+-#include "opal/libltdl/ltdl.h"
++#include "ltdl.h"
+
+ static int do_test(void);
+
+diff --git a/test/support/components.c b/test/support/components.c
+index 41c4345..6b4b464 100644
+--- a/test/support/components.c
++++ b/test/support/components.c
+@@ -24,7 +24,7 @@
+
+ #include "opal/constants.h"
+ #include "opal/mca/mca.h"
+-#include "opal/libltdl/ltdl.h"
++#include "ltdl.h"
+
+ #include "components.h"
+
+diff --git a/test/support/components.h b/test/support/components.h
+index 6db1f0d..fc8dfc5 100644
+--- a/test/support/components.h
++++ b/test/support/components.h
+@@ -20,7 +20,7 @@
+ #ifndef OMPI_SUPPORT_COMPONENTS_H
+ #define OMPI_SUPPORT_COMPONENTS_H
+
+-#include "opal/libltdl/ltdl.h"
++#include "ltdl.h"
+ #include "opal/mca/mca.h"
+
+ BEGIN_C_DECLS
More information about the arch-commits
mailing list