mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 09:57:14 +08:00
update openmpi and hwloc
This commit is contained in:
parent
9a9be0aeb7
commit
39780997fd
@ -4,27 +4,31 @@
|
||||
# maintainer (x86_64): Drake Justice <djustice[at]chakra-project[dot]org>
|
||||
|
||||
pkgname=hwloc
|
||||
pkgver=1.3.1
|
||||
pkgver=1.9
|
||||
pkgrel=1
|
||||
pkgdesc="Portable Hardware Locality is a portable abstraction of hierarchical architectures"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.open-mpi.org/projects/hwloc/"
|
||||
license=('BSD')
|
||||
depends=('sh' 'pciutils')
|
||||
depends=('sh' 'pciutils' 'libxml2')
|
||||
makedepends=('pkg-config')
|
||||
optdepends=('cairo: Graphical output' 'libxml2: XML export')
|
||||
options=('!libtool' '!docs')
|
||||
source=(http://www.open-mpi.org/software/hwloc/v1.3/downloads/${pkgname}-${pkgver}.tar.bz2)
|
||||
sha1sums=('1051c937c3d2a4c98922903f313a1fa021bb35ba')
|
||||
source=(http://www.open-mpi.org/software/hwloc/v${pkgver}/downloads/${pkgname}-${pkgver}.tar.bz2)
|
||||
sha1sums=('99646446502e0f9952170bf1082be63361d99b6d')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
./configure --prefix=/usr
|
||||
cd ${pkgname}-${pkgver}
|
||||
./configure --prefix=/usr --disable-cairo
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
cd ${pkgname}-${pkgver}
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
|
||||
|
@ -1,21 +1,23 @@
|
||||
# Maintainer: Manuel Tortosa
|
||||
|
||||
pkgname=openmpi
|
||||
pkgver=1.7.2
|
||||
pkgrel=3
|
||||
pkgdesc="High performance message passing library (MPI)"
|
||||
arch=('x86_64')
|
||||
url="http://www.open-mpi.org"
|
||||
license=('custom')
|
||||
depends=('gcc-fortran' 'openssh' 'valgrind' 'libltdl' 'hwloc')
|
||||
makedepends=('inetutils')
|
||||
source=(http://www.open-mpi.org/software/ompi/v1.7/downloads/${pkgname}-${pkgver}.tar.bz2)
|
||||
sha1sums=('89676c1171784b1c26e1598caf88e87f897f6653')
|
||||
pkgver=1.8.2
|
||||
pkgrel=1
|
||||
pkgdesc='High performance message passing library (MPI)'
|
||||
arch=(i686 x86_64)
|
||||
url='http://www.open-mpi.org'
|
||||
license=(custom)
|
||||
depends=(libltdl 'hwloc>=1.9')
|
||||
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')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
# Make sure we use the system ltdl librariry rather than the ones in the tarball
|
||||
# Make sure we use the system ltdl library rather than the ones in the tarball
|
||||
rm -r opal/libltdl
|
||||
}
|
||||
|
||||
@ -24,8 +26,7 @@ build() {
|
||||
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc/${pkgname} \
|
||||
--mandir=/usr/share/man \
|
||||
--enable-mpi-f90 \
|
||||
--enable-mpi-fortran=all \
|
||||
--libdir=/usr/lib/${pkgname} \
|
||||
--with-threads=posix \
|
||||
--enable-smp-locks \
|
||||
@ -43,23 +44,20 @@ build() {
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
make DESTDIR="${pkgdir}" install
|
||||
cd $pkgname-$pkgver
|
||||
make DESTDIR="$pkgdir" install
|
||||
|
||||
# FS#28583
|
||||
install -d -m 755 "${pkgdir}"/usr/lib/pkgconfig
|
||||
install -d -m 755 "$pkgdir"/usr/lib/pkgconfig
|
||||
for i in ompi-c.pc ompi-cxx.pc ompi-f77.pc ompi-f90.pc ompi.pc; do
|
||||
ln -sf /usr/lib/openmpi/pkgconfig/${i} "${pkgdir}"/usr/lib/pkgconfig/
|
||||
ln -sf /usr/lib/openmpi/pkgconfig/$i "$pkgdir"/usr/lib/pkgconfig/
|
||||
done
|
||||
|
||||
# Openmpi's otfinfo conflicts with the one from texlive
|
||||
mv "${pkgdir}"/usr/bin/otfinfo{,mpi}
|
||||
mv "$pkgdir"/usr/bin/otfinfo{,mpi}
|
||||
|
||||
# Remove dangling symlink
|
||||
rm "${pkgdir}"/usr/share/man/man1/orteCC.1
|
||||
|
||||
# TODO: the safety of this is uncertain
|
||||
rm -rf "${pkgdir}"/usr/include/event2
|
||||
# Remove dangling symlink and useless file
|
||||
rm "$pkgdir"/usr/share/vampirtrace/config.log
|
||||
|
||||
install -d -m 755 "${pkgdir}"/etc/ld.so.conf.d
|
||||
echo "/usr/lib/${pkgname}" > "${pkgdir}"/etc/ld.so.conf.d/${pkgname}.conf
|
||||
|
Loading…
Reference in New Issue
Block a user