[arch-commits] Commit in netcdf/repos (6 files)
Bruno Pagani
archange at archlinux.org
Fri Oct 27 22:51:09 UTC 2017
Date: Friday, October 27, 2017 @ 22:51:08
Author: archange
Revision: 264621
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
netcdf/repos/community-staging-i686/
netcdf/repos/community-staging-i686/PKGBUILD
(from rev 264620, netcdf/trunk/PKGBUILD)
netcdf/repos/community-staging-i686/fix-tst_h_dimscales.patch
(from rev 264620, netcdf/trunk/fix-tst_h_dimscales.patch)
netcdf/repos/community-staging-x86_64/
netcdf/repos/community-staging-x86_64/PKGBUILD
(from rev 264620, netcdf/trunk/PKGBUILD)
netcdf/repos/community-staging-x86_64/fix-tst_h_dimscales.patch
(from rev 264620, netcdf/trunk/fix-tst_h_dimscales.patch)
----------------------------------------------------+
community-staging-i686/PKGBUILD | 45 +++++++++++++++++
community-staging-i686/fix-tst_h_dimscales.patch | 49 +++++++++++++++++++
community-staging-x86_64/PKGBUILD | 45 +++++++++++++++++
community-staging-x86_64/fix-tst_h_dimscales.patch | 49 +++++++++++++++++++
4 files changed, 188 insertions(+)
Copied: netcdf/repos/community-staging-i686/PKGBUILD (from rev 264620, netcdf/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2017-10-27 22:51:08 UTC (rev 264621)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+
+pkgname=netcdf
+pkgver=4.5.0
+pkgrel=1
+pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library"
+arch=('i686' 'x86_64')
+url="https://www.unidata.ucar.edu/software/netcdf/"
+depends=('hdf5' 'curl')
+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')
+
+prepare() {
+ cd ${pkgname}-c-${pkgver}
+ patch -p1 -i ../fix-tst_h_dimscales.patch
+}
+
+build() {
+ cd ${pkgname}-c-${pkgver}
+ ./configure \
+ --prefix=/usr \
+ --enable-shared \
+ --disable-parallel4
+ make
+}
+
+check() {
+ cd ${pkgname}-c-${pkgver}
+ make check
+}
+
+package() {
+ cd ${pkgname}-c-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
Copied: netcdf/repos/community-staging-i686/fix-tst_h_dimscales.patch (from rev 264620, netcdf/trunk/fix-tst_h_dimscales.patch)
===================================================================
--- community-staging-i686/fix-tst_h_dimscales.patch (rev 0)
+++ community-staging-i686/fix-tst_h_dimscales.patch 2017-10-27 22:51:08 UTC (rev 264621)
@@ -0,0 +1,49 @@
+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 ||
Copied: netcdf/repos/community-staging-x86_64/PKGBUILD (from rev 264620, netcdf/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2017-10-27 22:51:08 UTC (rev 264621)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Maintainer: Bruno Pagani (a.k.a. ArchangeGabriel) <archange at archlinux.org>
+# Contributor: damir <damir at archlinux.org>
+
+pkgname=netcdf
+pkgver=4.5.0
+pkgrel=1
+pkgdesc="network Common Data Form interface for array-oriented data access and corresponding library"
+arch=('i686' 'x86_64')
+url="https://www.unidata.ucar.edu/software/netcdf/"
+depends=('hdf5' 'curl')
+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')
+
+prepare() {
+ cd ${pkgname}-c-${pkgver}
+ patch -p1 -i ../fix-tst_h_dimscales.patch
+}
+
+build() {
+ cd ${pkgname}-c-${pkgver}
+ ./configure \
+ --prefix=/usr \
+ --enable-shared \
+ --disable-parallel4
+ make
+}
+
+check() {
+ cd ${pkgname}-c-${pkgver}
+ make check
+}
+
+package() {
+ cd ${pkgname}-c-${pkgver}
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 COPYRIGHT -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}
Copied: netcdf/repos/community-staging-x86_64/fix-tst_h_dimscales.patch (from rev 264620, netcdf/trunk/fix-tst_h_dimscales.patch)
===================================================================
--- community-staging-x86_64/fix-tst_h_dimscales.patch (rev 0)
+++ community-staging-x86_64/fix-tst_h_dimscales.patch 2017-10-27 22:51:08 UTC (rev 264621)
@@ -0,0 +1,49 @@
+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