Date: Sunday, March 20, 2022 @ 21:38:09 Author: archange Revision: 1166263
upgpkg: pnetcdf-openmpi 1.12.3-1 Modified: pnetcdf-openmpi/trunk/PKGBUILD ----------+ PKGBUILD | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-03-20 21:33:46 UTC (rev 1166262) +++ PKGBUILD 2022-03-20 21:38:09 UTC (rev 1166263) @@ -3,8 +3,8 @@ _pkg=pnetcdf _mpi=openmpi pkgname=${_pkg}-${_mpi} -pkgver=1.12.2 -pkgrel=2 +pkgver=1.12.3 +pkgrel=1 pkgdesc="Parallel I/O Library for NetCDF File Access (${_mpi} version)" arch=(x86_64) url="https://parallel-netcdf.github.io/" @@ -17,28 +17,31 @@ replaces=(parallel-netcdf parallel-netcdf-openmpi) options=(staticlibs) source=("${url}/Release/${_pkg}-${pkgver}.tar.gz") -sha1sums=('3ab82ea878e321f6c0fd9afb44c8707949485d09') +sha256sums=('439e359d09bb93d0e58a6e3f928f39c2eae965b6c97f64e67cd42220d6034f77') prepare() { - cd ${_pkg}-${pkgver} - autoreconf -vfi + cd ${_pkg}-${pkgver} + autoreconf -vfi } build() { - cd ${_pkg}-${pkgver} - ./configure --prefix=/usr --enable-shared #--enable-netcdf4 - sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool - make LIBTOOLFLAGS=--verbose + cd ${_pkg}-${pkgver} + export CFLAGS+=" -ffat-lto-objects" + # https://github.com/Parallel-NetCDF/PnetCDF/issues/72 + ./configure --prefix=/usr --enable-shared #--enable-netcdf4 + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make LIBTOOLFLAGS=--verbose } check() { - cd ${_pkg}-${pkgver} - make check - make ptest + cd ${_pkg}-${pkgver} + export OMPI_MCA_opal_warn_on_missing_libcuda=0 + make check + make ptest } package() { - cd ${_pkg}-${pkgver} - make DESTDIR="${pkgdir}" install - install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${_pkg} + cd ${_pkg}-${pkgver} + make DESTDIR="${pkgdir}" install + install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${_pkg} }