[arch-commits] Commit in netcdf/trunk (PKGBUILD fix-tst_h_dimscales.patch)
Bruno Pagani
archange at archlinux.org
Wed May 23 15:17:53 UTC 2018
Date: Wednesday, May 23, 2018 @ 15:17:52
Author: archange
Revision: 328323
upgpkg: netcdf 4.6.1-1
Remove patch integrated upstream
Modified:
netcdf/trunk/PKGBUILD
Deleted:
netcdf/trunk/fix-tst_h_dimscales.patch
---------------------------+
PKGBUILD | 37 +++++++++++++++++++--------------
fix-tst_h_dimscales.patch | 49 --------------------------------------------
2 files changed, 22 insertions(+), 64 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-23 14:56:08 UTC (rev 328322)
+++ PKGBUILD 2018-05-23 15:17:52 UTC (rev 328323)
@@ -4,42 +4,49 @@
# Contributor: damir <damir at archlinux.org>
pkgname=netcdf
-pkgver=4.5.0
+pkgver=4.6.1
pkgrel=1
pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library"
arch=('x86_64')
url="https://www.unidata.ucar.edu/software/netcdf/"
depends=('hdf5' 'curl')
+makedepends=('cmake')
optdepends=('netcdf-fortran: fortran bindings' 'netcdf-cxx: c++ bindings')
options=('!makeflags')
license=('custom')
-source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/Unidata/netcdf-c/archive/v${pkgver}.tar.gz"
- 'fix-tst_h_dimscales.patch')
-sha256sums=('f7d1cb2a82100b9bf9a1130a50bc5c7baf0de5b5022860ac3e09a0a32f83cf4a'
- 'b2b18ddd4dc0c0e08e59454a6e141e4ba6547ffd5df50d5fe758df45ec77aa6c')
+source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/Unidata/netcdf-c/archive/v${pkgver}.tar.gz")
+sha256sums=('a2fabf27c72a5ee746e3843e1debbaad37cd035767eaede2045371322211eebb')
prepare() {
- cd ${pkgname}-c-${pkgver}
- patch -p1 -i ../fix-tst_h_dimscales.patch
+ mkdir -p build
}
build() {
- cd ${pkgname}-c-${pkgver}
- ./configure \
- --prefix=/usr \
- --enable-shared \
- --disable-parallel4
+ cd build
+ cmake ../${pkgname}-c-${pkgver} \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DENABLE_CDF5=ON \
+ -DENABLE_DAP_LONG_TESTS=ON \
+ -DENABLE_EXAMPLE_TESTS=ON \
+ -DENABLE_EXTRA_TESTS=ON \
+ -DENABLE_FAILING_TESTS=ON \
+ -DENABLE_FILTER_TESTING=ON \
+ -DENABLE_LARGE_FILE_TESTS=ON
make
}
check() {
- cd ${pkgname}-c-${pkgver}
- make check
+ cd build
+ # One test failure https://github.com/Unidata/netcdf-c/issues/808
+ make test || warning "Test failure"
}
package() {
- cd ${pkgname}-c-${pkgver}
+ cd build
make DESTDIR="${pkgdir}" install
+ cd "${srcdir}"/${pkgname}-c-${pkgver}
install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
}
Deleted: fix-tst_h_dimscales.patch
===================================================================
--- fix-tst_h_dimscales.patch 2018-05-23 14:56:08 UTC (rev 328322)
+++ fix-tst_h_dimscales.patch 2018-05-23 15:17:52 UTC (rev 328323)
@@ -1,49 +0,0 @@
-From 6a71bf81b1b663387c0f0ca9e41ab24601c678c5 Mon Sep 17 00:00:00 2001
-From: Ed Hartnett <edwardjameshartnett at gmail.com>
-Date: Mon, 23 Oct 2017 09:49:38 -0600
-Subject: [PATCH] fixed memory problem in tst_h_dimscales
-
----
- h5_test/tst_h_dimscales.c | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/h5_test/tst_h_dimscales.c b/h5_test/tst_h_dimscales.c
-index 73c817d58..349b1a836 100644
---- a/h5_test/tst_h_dimscales.c
-+++ b/h5_test/tst_h_dimscales.c
-@@ -85,7 +85,7 @@ rec_scan_group(hid_t grpid)
- }
- else
- {
-- int visitor_data = 0;
-+ hid_t visitor_data = 0;
-
- /* Here's how to get the number of scales attached
- * to the dataset's dimension 0. */
-@@ -379,7 +379,7 @@ main()
- if ((grpid = H5Gopen(fileid, GRP_NAME)) < 0) ERR;
-
- /* Loop through datasets to find variables. */
-- if (H5Gget_num_objs(grpid, &num_obj) < 0) ERR;
-+ if (H5Gget_num_objs(grpid, (hsize_t *)&num_obj) < 0) ERR;
- for (i=0; i<num_obj; i++)
- {
- /* Get the type (i.e. group, dataset, etc.), and the name of
-@@ -426,7 +426,7 @@ main()
- else
- {
- char label[STR_LEN+1];
-- int visitor_data = 0;
-+ hid_t visitor_data = 0;
-
- /* Here's how to get the number of scales attached
- * to the dataset's dimension 0. */
-@@ -617,7 +617,7 @@ main()
- else
- {
- char label[STR_LEN+1];
-- int visitor_data = 0;
-+ hid_t visitor_data = 0;
-
- /* SHould have these dimensions... */
- if (dims[TIME_DIM] != 0 || dims[LAT_DIM] != LAT_LEN ||
More information about the arch-commits
mailing list