commit hdf5 for openSUSE:Factory

2024-05-15 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2024-05-15 21:27:01

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.1880 (New)


Package is "hdf5"

Wed May 15 21:27:01 2024 rev:86 rq:1174039 version:1.12.3

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2024-03-21 
17:01:10.074008702 +0100
+++ /work/SRC/openSUSE:Factory/.hdf5.new.1880/hdf5.changes  2024-05-15 
21:27:37.867838474 +0200
@@ -1,0 +2,38 @@
+Mon May 13 11:41:05 UTC 2024 - Atri Bhattacharya 
+
+- Update to version 1.12.3:
+  * Bumped the minimum required version of Autoconf to 2.71.
+  * Added new option to build libaec and zlib inline with CMake.
+  * Changed the error handling for a not found path in the find
+plugin process.
+  * Removed "-commons" linking option to fix a compile error on
+MacOS Sonoma that resulted in build failure.
+  * Doxygen User Guide documentation can be configured and
+generated.
+- Minor patch rebase for updated version:
+  * Disable-phdf5-tests.patch
+  * Fix-error-message-not-the-name-but-the-link-information-is-parsed.patch
+  * H5O_fsinfo_decode-Make-more-resilient-to-out-of-bounds-read.patch
+  * Hot-fix-for-CVE-2020-10812.patch
+  * PPC64LE-Fix-long-double-handling.patch
+  * Report-error-if-dimensions-of-chunked-storage-in-data-layout-2.patch
+  * Validate-location-offset-of-the-accumulated-metadata-when-comparing.patch
+  * When-evicting-driver-info-block-NULL-the-corresponding-entry.patch
+  * hdf5-1.8.11-abort_unknown_host_config.patch
+  * hdf5-LD_LIBRARY_PATH.patch
+  * hdf5-Remove-timestamps-from-binaries.patch
+  * hdf5-wrappers.patch
+- Drop upstreamed patches:
+  * Remove-duplicate-code.patch
+  * H5O__pline_decode-Make-more-resilient-to-out-of-bounds-read.patch
+  * 
H5O_dtype_decode_helper-Parent-of-enum-needs-to-have-same-size-as-enum-itself.patch
+  * 
Pass-compact-chunk-size-info-to-ensure-requested-elements-are-within-bounds.patch
+  * Make-sure-info-block-for-external-links-has-at-least-3-bytes.patch
+  * Compound-datatypes-may-not-have-members-of-size-0.patch
+  * 
H5IMget_image_info-H5Sget_simple_extent_dims-does-not-exceed-array-size.patch
+  * Check-for-overflow-when-calculating-on-disk-attribute-data-size-2459.patch
+- New BuildRequires: hostname.
+- Work around an sed hack in upstream configure file by dropping
+  "-Werror=return-type" from RPM %optflags.
+
+---

Old:

  Check-for-overflow-when-calculating-on-disk-attribute-data-size-2459.patch
  Compound-datatypes-may-not-have-members-of-size-0.patch
  H5IMget_image_info-H5Sget_simple_extent_dims-does-not-exceed-array-size.patch
  H5O__pline_decode-Make-more-resilient-to-out-of-bounds-read.patch
  
H5O_dtype_decode_helper-Parent-of-enum-needs-to-have-same-size-as-enum-itself.patch
  Make-sure-info-block-for-external-links-has-at-least-3-bytes.patch
  
Pass-compact-chunk-size-info-to-ensure-requested-elements-are-within-bounds.patch
  Remove-duplicate-code.patch
  hdf5-1.12.2.tar.bz2

New:

  hdf5-1.12.3.tar.bz2

BETA DEBUG BEGIN:
  Old:  * 
H5IMget_image_info-H5Sget_simple_extent_dims-does-not-exceed-array-size.patch
  * Check-for-overflow-when-calculating-on-disk-attribute-data-size-2459.patch
- New BuildRequires: hostname.
  Old:  * Make-sure-info-block-for-external-links-has-at-least-3-bytes.patch
  * Compound-datatypes-may-not-have-members-of-size-0.patch
  * 
H5IMget_image_info-H5Sget_simple_extent_dims-does-not-exceed-array-size.patch
  Old:  * Compound-datatypes-may-not-have-members-of-size-0.patch
  * 
H5IMget_image_info-H5Sget_simple_extent_dims-does-not-exceed-array-size.patch
  * Check-for-overflow-when-calculating-on-disk-attribute-data-size-2459.patch
  Old:  * Remove-duplicate-code.patch
  * H5O__pline_decode-Make-more-resilient-to-out-of-bounds-read.patch
  * 
H5O_dtype_decode_helper-Parent-of-enum-needs-to-have-same-size-as-enum-itself.patch
  Old:  * H5O__pline_decode-Make-more-resilient-to-out-of-bounds-read.patch
  * 
H5O_dtype_decode_helper-Parent-of-enum-needs-to-have-same-size-as-enum-itself.patch
  * 
Pass-compact-chunk-size-info-to-ensure-requested-elements-are-within-bounds.patch
  Old:  * 
Pass-compact-chunk-size-info-to-ensure-requested-elements-are-within-bounds.patch
  * Make-sure-info-block-for-external-links-has-at-least-3-bytes.patch
  * Compound-datatypes-may-not-have-members-of-size-0.patch
  Old:  * 
H5O_dtype_decode_helper-Parent-of-enum-needs-to-have-same-size-as-enum-itself.patch
  * 
Pass-compact-chunk-size-info-to-ensure-requested-elements-are-within-bounds.patch
  * Make-sure-info-block-for-external-links-has-at-least-3-bytes.patch
  Old:- Drop upstreamed patches:
  * Remove-duplicate-code.patch
  * 

commit hdf5 for openSUSE:Factory

2024-02-09 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2024-02-09 23:52:52

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.1815 (New)


Package is "hdf5"

Fri Feb  9 23:52:52 2024 rev:84 rq:1145263 version:1.12.2

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2023-10-29 
19:41:46.791331712 +0100
+++ /work/SRC/openSUSE:Factory/.hdf5.new.1815/hdf5.changes  2024-02-09 
23:53:14.344951216 +0100
@@ -1,0 +2,5 @@
+Fri Feb  2 18:36:08 UTC 2024 - Atri Bhattacharya 
+
+- Add openmpi5 and gnu-hpc-openmpi5 flavours.
+
+---



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.CsKCsH/_old  2024-02-09 23:53:15.464991576 +0100
+++ /var/tmp/diff_new_pack.CsKCsH/_new  2024-02-09 23:53:15.468991720 +0100
@@ -1,7 +1,7 @@
 #
-# spec file
+# spec file for package hdf5
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed

++ _multibuild ++
--- /var/tmp/diff_new_pack.CsKCsH/_old  2024-02-09 23:53:15.548994603 +0100
+++ /var/tmp/diff_new_pack.CsKCsH/_new  2024-02-09 23:53:15.548994603 +0100
@@ -1,8 +1,10 @@
 
   serial
   openmpi4
+  openmpi5
   mvapich2
   gnu-openmpi4-hpc
+  gnu-openmpi5-hpc
   gnu-mvapich2-hpc
   gnu-mpich-hpc
   gnu-hpc


commit hdf5 for openSUSE:Factory

2023-10-29 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2023-10-29 19:41:25

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.17445 (New)


Package is "hdf5"

Sun Oct 29 19:41:25 2023 rev:83 rq:1120888 version:1.12.2

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2023-03-21 
17:41:41.373876617 +0100
+++ /work/SRC/openSUSE:Factory/.hdf5.new.17445/hdf5.changes 2023-10-29 
19:41:46.791331712 +0100
@@ -1,0 +2,6 @@
+Mon Oct 23 11:45:45 UTC 2023 - Nicolas Morey 
+
+- Drop support for obsolete openmpi[123]
+- Prepare support for openmpi5
+
+---



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.Y5dL1m/_old  2023-10-29 19:41:47.747366492 +0100
+++ /var/tmp/diff_new_pack.Y5dL1m/_new  2023-10-29 19:41:47.747366492 +0100
@@ -50,31 +50,17 @@
 %bcond_with hpc
 %endif
 
-%if "%{flavor}" == "openmpi1"
-%{?DisOMPI1}
-%global mpi_flavor openmpi
-%define mpi_vers 1
-%bcond_with hpc
-%endif
-
-%if "%{flavor}" == "openmpi2"
-%{?DisOMPI2}
-%global mpi_flavor openmpi
-%define mpi_vers 2
-%bcond_with hpc
-%endif
-
-%if "%{flavor}" == "openmpi3"
-%{?DisOMPI3}
+%if "%{flavor}" == "openmpi4"
+%{?DisOMPI4}
 %global mpi_flavor openmpi
-%define mpi_vers 3
+%define mpi_vers 4
 %bcond_with hpc
 %endif
 
-%if "%{flavor}" == "openmpi4"
-%{?DisOMPI4}
+%if "%{flavor}" == "openmpi5"
+%{?DisOMPI5}
 %global mpi_flavor openmpi
-%define mpi_vers 4
+%define mpi_vers 5
 %bcond_with hpc
 %endif
 
@@ -89,47 +75,29 @@
 %undefine c_f_ver
 %endif
 
-%if "%{flavor}" == "gnu-openmpi-hpc"
-%{?DisOMPI1}
-%bcond_without hpc
-%define compiler_family gnu
-%undefine c_f_ver
-%global mpi_flavor openmpi
-%define mpi_vers 1
-%endif
-
-%if "%{flavor}" == "gnu-mvapich2-hpc"
-%bcond_without hpc
-%define compiler_family gnu
-%undefine c_f_ver
-%global mpi_flavor mvapich2
-%endif
-
-%if "%{flavor}" == "gnu-openmpi2-hpc"
-%{?DisOMPI2}
+%if "%{flavor}" == "gnu-openmpi4-hpc"
+%{?DisOMPI4}
 %bcond_without hpc
 %define compiler_family gnu
 %undefine c_f_ver
 %global mpi_flavor openmpi
-%define mpi_vers 2
+%define mpi_vers 4
 %endif
 
-%if "%{flavor}" == "gnu-openmpi3-hpc"
-%{?DisOMPI3}
+%if "%{flavor}" == "gnu-openmpi5-hpc"
+%{?DisOMPI5}
 %bcond_without hpc
 %define compiler_family gnu
 %undefine c_f_ver
 %global mpi_flavor openmpi
-%define mpi_vers 3
+%define mpi_vers 5
 %endif
 
-%if "%{flavor}" == "gnu-openmpi4-hpc"
-%{?DisOMPI4}
+%if "%{flavor}" == "gnu-mvapich2-hpc"
 %bcond_without hpc
 %define compiler_family gnu
 %undefine c_f_ver
-%global mpi_flavor openmpi
-%define mpi_vers 4
+%global mpi_flavor mvapich2
 %endif
 
 %if "%{flavor}" == "gnu-mpich-hpc"
@@ -146,22 +114,22 @@
 %undefine mpi_flavor
 %endif
 
-%if "%{flavor}" == "gnu7-openmpi-hpc"
-%{?DisOMPI1}
+%if "%{flavor}" == "gnu7-openmpi4-hpc"
+%{?DisOMPI4}
 %bcond_without hpc
 %define compiler_family gnu
 %define c_f_ver 7
 %global mpi_flavor openmpi
-%define mpi_vers 1
+%define mpi_vers 4
 %endif
 
-%if "%{flavor}" == "gnu7-openmpi2-hpc"
-%{?DisOMPI2}
+%if "%{flavor}" == "gnu7-openmpi5-hpc"
+%{?DisOMPI5}
 %bcond_without hpc
 %define compiler_family gnu
 %define c_f_ver 7
 %global mpi_flavor openmpi
-%define mpi_vers 2
+%define mpi_vers 5
 %endif
 
 %if "%{flavor}" == "gnu7-mvapich2-hpc"
@@ -171,24 +139,6 @@
 %global mpi_flavor mvapich2
 %endif
 
-%if "%{flavor}" == "gnu7-openmpi3-hpc"
-%{?DisOMPI3}
-%bcond_without hpc
-%define compiler_family gnu
-%define c_f_ver 7
-%global mpi_flavor openmpi
-%define mpi_vers 3
-%endif
-
-%if "%{flavor}" == "gnu7-openmpi4-hpc"
-%{?DisOMPI4}
-%bcond_without hpc
-%define compiler_family gnu
-%define c_f_ver 7
-%global mpi_flavor openmpi
-%define mpi_vers 4
-%endif
-
 %if "%{flavor}" == "gnu7-mpich-hpc"
 %bcond_without hpc
 %define compiler_family gnu
@@ -203,40 +153,22 @@
 %undefine mpi_flavor
 %endif
 
-%if "%{flavor}" == "gnu8-openmpi-hpc"
-%{?DisOMPI1}
-%bcond_without hpc
-%define compiler_family gnu
-%define c_f_ver 8
-%global mpi_flavor openmpi
-%define mpi_vers 1
-%endif
-
-%if "%{flavor}" == "gnu8-openmpi2-hpc"
-%{?DisOMPI2}
-%bcond_without hpc
-%define compiler_family gnu
-%define c_f_ver 8
-%global mpi_flavor openmpi
-%define mpi_vers 2
-%endif
-
-%if "%{flavor}" == "gnu8-openmpi3-hpc"
-%{?DisOMPI3}
+%if "%{flavor}" == "gnu8-openmpi4-hpc"
+%{?DisOMPI4}
 %bcond_without hpc
 %define compiler_family gnu
 %define c_f_ver 8
 %global mpi_flavor openmpi
-%define mpi_vers 3
+%define mpi_vers 4
 %endif
 
-%if "%{flavor}" == "gnu8-openmpi4-hpc"
-%{?DisOMPI4}
+%if "%{flavor}" == "gnu8-openmpi5-hpc"
+%{?DisOMPI5}
 %bcond_without hpc
 %define compiler_family gnu
 %define c_f_ver 8
 %global mpi_flavor openmpi

commit hdf5 for openSUSE:Factory

2023-03-21 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2023-03-21 17:41:38

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.31432 (New)


Package is "hdf5"

Tue Mar 21 17:41:38 2023 rev:82 rq:1073525 version:1.12.2

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2023-02-17 
16:44:27.886680087 +0100
+++ /work/SRC/openSUSE:Factory/.hdf5.new.31432/hdf5.changes 2023-03-21 
17:41:41.373876617 +0100
@@ -49 +49 @@
-- Remove timestamp/buildhost/kernel version from libhdf5.settings
+- Remove timestamp/buildhost/kernel version from libhdf5.settings 
(boo#1209548).



Other differences:
--


commit hdf5 for openSUSE:Factory

2023-02-17 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2023-02-17 16:44:17

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.22824 (New)


Package is "hdf5"

Fri Feb 17 16:44:17 2023 rev:81 rq:1066251 version:1.12.2

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2022-11-16 
15:43:38.603892655 +0100
+++ /work/SRC/openSUSE:Factory/.hdf5.new.22824/hdf5.changes 2023-02-17 
16:44:27.886680087 +0100
@@ -1,0 +2,10 @@
+Mon Feb 13 09:18:05 UTC 2023 - Egbert Eich 
+
+- Fix CVE-2021-37501 - overflow in calculation of data buffer due to bogus
+  input file (bsc#1207973).
+  https://github.com/HDFGroup/hdf5/issues/2458
+  https://github.com/HDFGroup/hdf5/pull/2459
+  Check-for-overflow-when-calculating-on-disk-attribute-data-size-2459.patch
+  Remove-duplicate-code.patch
+
+---

New:

  Check-for-overflow-when-calculating-on-disk-attribute-data-size-2459.patch
  Remove-duplicate-code.patch



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.mRMx4q/_old  2023-02-17 16:44:30.546695067 +0100
+++ /var/tmp/diff_new_pack.mRMx4q/_new  2023-02-17 16:44:30.622695495 +0100
@@ -1,7 +1,7 @@
 #
-# spec file for package hdf5
+# spec file
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -450,6 +450,8 @@
 Patch109:   Hot-fix-for-CVE-2020-10812.patch
 Patch110:   Compound-datatypes-may-not-have-members-of-size-0.patch
 Patch111:   
H5IMget_image_info-H5Sget_simple_extent_dims-does-not-exceed-array-size.patch
+Patch112:   
Check-for-overflow-when-calculating-on-disk-attribute-data-size-2459.patch
+Patch113:   Remove-duplicate-code.patch
 
 BuildRequires:  fdupes
 %if 0%{?use_sz2}
@@ -704,6 +706,8 @@
 %patch109 -p1
 %patch110 -p1
 %patch111 -p1
+%patch112 -p1
+%patch113 -p1
 
 %if %{without hpc}
 # baselibs looks different for different flavors - generate it on the fly

++ 
Check-for-overflow-when-calculating-on-disk-attribute-data-size-2459.patch 
++
From: Egbert Eich 
Date: Sat Feb 11 13:54:17 2023 +0100
Subject: Check for overflow when calculating on-disk attribute data size (#2459)
Patch-mainline: Not yet
Git-repo: https://github.com/HDFGroup/hdf5
Git-commit: 0d026daa13a81be72495872f651c036fdc84ae5e
References: 

A bogus hdf5 file may contain dataspace messages with sizes
which lead to the on-disk data sizes to exceed what is addressable.
When calculating the size, make sure, the multiplication does not
overflow.
The test case was crafted in a way that the overflow caused the
size to be 0.

This fixes CVE-2021-37501 / Bug #2458.

Signed-off-by: Egbert Eich 
Signed-off-by: Egbert Eich 
---
 src/H5Oattr.c   |  3 +++
 src/H5private.h | 18 ++
 2 files changed, 21 insertions(+)
diff --git a/src/H5Oattr.c b/src/H5Oattr.c
index 4dee7aa187..3ef0b99aa4 100644
--- a/src/H5Oattr.c
+++ b/src/H5Oattr.c
@@ -235,6 +235,9 @@ H5O_attr_decode(H5F_t *f, H5O_t *open_oh, unsigned 
H5_ATTR_UNUSED mesg_flags, un
 
 /* Compute the size of the data */
 H5_CHECKED_ASSIGN(attr->shared->data_size, size_t, ds_size * 
(hsize_t)dt_size, hsize_t);
+H5_CHECK_MUL_OVERFLOW(attr->shared->data_size, ds_size, dt_size,
+ HGOTO_ERROR(H5E_RESOURCE, H5E_OVERFLOW, NULL,
+ "data size exceeds addressable range"))
 
 /* Go get the data */
 if (attr->shared->data_size) {
diff --git a/src/H5private.h b/src/H5private.h
index 931d7b9046..a115aee1a4 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -1605,6 +1605,24 @@ H5_DLL int HDvasprintf(char **bufp, const char *fmt, 
va_list _ap);
 #define H5_CHECK_OVERFLOW(var, vartype, casttype)
 #endif /* NDEBUG */
 
+/*
+ * A macro for checking whether a multiplication has overflown
+ * r is assumed to be the result of a prior multiplication of a and b
+ */
+#define H5_CHECK_MUL_OVERFLOW(r, a, b, err)
  \
+{  
  \
+bool mul_overflow = false; 
  \
+if (r != 0) {  
  \
+if (r / a != b)
  \
+mul_overflow = true;   

commit hdf5 for openSUSE:Factory

2022-11-16 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2022-11-16 15:43:26

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.1597 (New)


Package is "hdf5"

Wed Nov 16 15:43:26 2022 rev:80 rq:1035905 version:1.12.2

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2022-09-21 
14:44:04.194018080 +0200
+++ /work/SRC/openSUSE:Factory/.hdf5.new.1597/hdf5.changes  2022-11-16 
15:43:38.603892655 +0100
@@ -1,0 +2,35 @@
+Tue Nov 15 04:52:12 UTC 2022 - Atri Bhattacharya 
+
+- Add to specfile missing patch:
+  Fix-error-message-not-the-name-but-the-link-information-is-parsed.patch
+
+---
+Sat Oct 15 13:29:22 UTC 2022 - Egbert Eich 
+
+- Fix CVEs:
+  * CVE-2021-46244 (bsc#1195215)
+Compound-datatypes-may-not-have-members-of-size-0.patch
+  * CVE-2018-13867 (bsc#1101906)
+Validate-location-offset-of-the-accumulated-metadata-when-comparing.patch
+  * CVE-2018-16438 (bsc#1107069)
+Make-sure-info-block-for-external-links-has-at-least-3-bytes.patch
+  * CVE-2020-10812 (bsc#1167400)
+Hot-fix-for-CVE-2020-10812.patch
+  * CVE-2021-45830 (bsc#1194375)
+H5O_fsinfo_decode-Make-more-resilient-to-out-of-bounds-read.patch
+  * CVE-2019-8396 (bsc#1125882)
+H5O__pline_decode-Make-more-resilient-to-out-of-bounds-read.patch
+  * CVE-2018-11205 (bsc#1093663)
+
Pass-compact-chunk-size-info-to-ensure-requested-elements-are-within-bounds.patch
+  * CVE-2021-46242 (bsc#1195212)
+When-evicting-driver-info-block-NULL-the-corresponding-entry.patch
+  * CVE-2021-45833 (bsc#1194366)
+Report-error-if-dimensions-of-chunked-storage-in-data-layout-2.patch
+  * CVE-2018-14031 (bsc#1101475)
+
H5O_dtype_decode_helper-Parent-of-enum-needs-to-have-same-size-as-enum-itself.patch
+  * CVE-2018-17439 (bsc#598)
+
H5IMget_image_info-H5Sget_simple_extent_dims-does-not-exceed-array-size.patch
+- Fix an error message:
+Fix-error-message-not-the-name-but-the-link-information-is-parsed.patch
+
+---

New:

  Compound-datatypes-may-not-have-members-of-size-0.patch
  Fix-error-message-not-the-name-but-the-link-information-is-parsed.patch
  H5IMget_image_info-H5Sget_simple_extent_dims-does-not-exceed-array-size.patch
  H5O__pline_decode-Make-more-resilient-to-out-of-bounds-read.patch
  
H5O_dtype_decode_helper-Parent-of-enum-needs-to-have-same-size-as-enum-itself.patch
  H5O_fsinfo_decode-Make-more-resilient-to-out-of-bounds-read.patch
  Hot-fix-for-CVE-2020-10812.patch
  Make-sure-info-block-for-external-links-has-at-least-3-bytes.patch
  
Pass-compact-chunk-size-info-to-ensure-requested-elements-are-within-bounds.patch
  Report-error-if-dimensions-of-chunked-storage-in-data-layout-2.patch
  Validate-location-offset-of-the-accumulated-metadata-when-comparing.patch
  When-evicting-driver-info-block-NULL-the-corresponding-entry.patch



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.jOK1jW/_old  2022-11-16 15:43:39.451895730 +0100
+++ /var/tmp/diff_new_pack.jOK1jW/_new  2022-11-16 15:43:39.459895759 +0100
@@ -1,5 +1,5 @@
 #
-# spec file
+# spec file for package hdf5
 #
 # Copyright (c) 2022 SUSE LLC
 #
@@ -436,8 +436,21 @@
 # Could be ported but it's unknown if it's still needed
 Patch7: hdf5-mpi.patch
 Patch8: Disable-phdf5-tests.patch
+Patch9: 
Fix-error-message-not-the-name-but-the-link-information-is-parsed.patch
 # Imported from Fedora, strip flags from h5cc wrapper
 Patch10:hdf5-wrappers.patch
+Patch101:   
H5O_fsinfo_decode-Make-more-resilient-to-out-of-bounds-read.patch
+Patch102:   
H5O__pline_decode-Make-more-resilient-to-out-of-bounds-read.patch
+Patch103:   
H5O_dtype_decode_helper-Parent-of-enum-needs-to-have-same-size-as-enum-itself.patch
+Patch104:   
Report-error-if-dimensions-of-chunked-storage-in-data-layout-2.patch
+Patch105:   
When-evicting-driver-info-block-NULL-the-corresponding-entry.patch
+Patch106:   
Pass-compact-chunk-size-info-to-ensure-requested-elements-are-within-bounds.patch
+Patch107:   
Validate-location-offset-of-the-accumulated-metadata-when-comparing.patch
+Patch108:   
Make-sure-info-block-for-external-links-has-at-least-3-bytes.patch
+Patch109:   Hot-fix-for-CVE-2020-10812.patch
+Patch110:   Compound-datatypes-may-not-have-members-of-size-0.patch
+Patch111:   
H5IMget_image_info-H5Sget_simple_extent_dims-does-not-exceed-array-size.patch
+
 BuildRequires:  fdupes
 %if 0%{?use_sz2}
 BuildRequires:  libsz2-devel
@@ -678,7 +691,19 @@
 %patch6 -p1
 # %%patch7 -p1
 

commit hdf5 for openSUSE:Factory

2022-09-21 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2022-09-21 14:43:04

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.2083 (New)


Package is "hdf5"

Wed Sep 21 14:43:04 2022 rev:79 rq:1005137 version:1.12.2

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2022-08-15 
20:00:35.361456461 +0200
+++ /work/SRC/openSUSE:Factory/.hdf5.new.2083/hdf5.changes  2022-09-21 
14:44:04.194018080 +0200
@@ -1,0 +2,5 @@
+Wed Sep 21 01:09:47 UTC 2022 - Stefan Br??ns 
+
+- Remove timestamp/buildhost/kernel version from libhdf5.settings
+
+---



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.ag51Pl/_old  2022-09-21 14:44:05.530021569 +0200
+++ /var/tmp/diff_new_pack.ag51Pl/_new  2022-09-21 14:44:05.534021579 +0200
@@ -775,6 +775,14 @@
   --with-pthread \
   %{nil}
 
+# Remove timestamp/buildhost/kernel version
+export SDE_DATE=$(date -d @${SOURCE_DATE_EPOCH} -u)
+export UNAME_M_O=$(uname -m -o)
+sed -i -e "s/\(Configured on: \).*/\1 $SDE_DATE/" \
+   -e "s#\(Uname information: \).*#\1 $UNAME_M_O#" \
+   -e "s/\(Configured by: \).*/\1 abuild@OBS/" \
+   src/libhdf5.settings
+
 make V=1 %{?_smp_mflags}
 
 %install


commit hdf5 for openSUSE:Factory

2022-08-15 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2022-08-15 19:58:21

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.1521 (New)


Package is "hdf5"

Mon Aug 15 19:58:21 2022 rev:78 rq:995074 version:1.12.2

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2022-05-16 
18:09:03.601304075 +0200
+++ /work/SRC/openSUSE:Factory/.hdf5.new.1521/hdf5.changes  2022-08-15 
20:00:35.361456461 +0200
@@ -1,0 +2,14 @@
+Wed Jul 27 23:42:38 UTC 2022 - Atri Bhattacharya 
+
+- Update to version 1.12.2:
+  See 
.
+- Minor re-base of existing patches to apply cleanly:
+  * hdf5-LD_LIBRARY_PATH.patch
+  * hdf5-1.8.11-abort_unknown_host_config.patch
+  * hdf5-Remove-timestamps-from-binaries.patch
+  * hdf5-mpi.patch
+  * Disable-phdf5-tests.patch
+- Drop upstreamed patch:
+  hdf5-1.10.8-pr1494-fix-release-check-version.patch.
+
+---

Old:

  hdf5-1.10.8-pr1494-fix-release-check-version.patch
  hdf5-1.10.8.tar.bz2

New:

  hdf5-1.12.2.tar.bz2



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.QQHKI4/_old  2022-08-15 20:00:36.017458291 +0200
+++ /var/tmp/diff_new_pack.QQHKI4/_new  2022-08-15 20:00:36.021458301 +0200
@@ -34,9 +34,9 @@
 
 %define use_sz2 0
 
-%define vers 1.10.8
-%define _vers 1_10_8
-%define short_ver 1.10
+%define short_ver 1.12
+%define vers %{short_ver}.2
+%define _vers %( echo %{vers} | tr '.' '_' )
 %define src_ver %{version}
 %define pname hdf5
 %global _lto_cflags %{_lto_cflags} -ffat-lto-objects
@@ -436,8 +436,6 @@
 # Could be ported but it's unknown if it's still needed
 Patch7: hdf5-mpi.patch
 Patch8: Disable-phdf5-tests.patch
-# boo#1179521, boo#1196682, gh#HDFGroup/hdf5#1494
-Patch9: hdf5-1.10.8-pr1494-fix-release-check-version.patch
 # Imported from Fedora, strip flags from h5cc wrapper
 Patch10:hdf5-wrappers.patch
 BuildRequires:  fdupes
@@ -680,7 +678,6 @@
 %patch6 -p1
 # %%patch7 -p1
 %patch8 -p1
-%patch9 -p1
 %patch10 -p1
 
 %if %{without hpc}
@@ -775,7 +772,8 @@
 %if 0%{?use_sz2}
   --with-szlib \
 %endif
-  --with-pthread
+  --with-pthread \
+  %{nil}
 
 make V=1 %{?_smp_mflags}
 
@@ -941,15 +939,13 @@
 %{my_bindir}/h5repart
 %{my_bindir}/h5stat
 %{my_bindir}/h5unjam
-%{my_bindir}/mirror_server
-%{my_bindir}/mirror_server_stop
 
 %files -n %{libname -s %{sonum}}
-%doc ACKNOWLEDGMENTS README.txt
+%doc ACKNOWLEDGMENTS README.md
 %mylicense COPYING
 ##
 %if %{without mpi}
-%doc release_docs/HISTORY-1_8_0-1_10_0.txt
+%doc release_docs/HISTORY-1_10_0-1_12_0.txt
 %doc release_docs/RELEASE.txt
 %endif
 %defattr(0755,root,root)
@@ -1000,9 +996,9 @@
 %files devel
 ##
 %{?with_hpc:%dir %{my_incdir}}
-%doc release_docs/HISTORY-1_0-1_8_0_rc3.txt
+%doc release_docs/HISTORY-1_10_0-1_12_0.txt
 %doc release_docs/RELEASE.txt
-%doc ACKNOWLEDGMENTS README.txt
+%doc ACKNOWLEDGMENTS README.md
 %{?with_hpc:%{hpc_pkgconfig_file -n hdf5}}
 %{?with_hpc:%{hpc_pkgconfig_file -N -n hdf5_hl}}
 %{?with_hpc:%{hpc_pkgconfig_file -N -n hdf5_fortran}}

++ Disable-phdf5-tests.patch ++
--- /var/tmp/diff_new_pack.QQHKI4/_old  2022-08-15 20:00:36.049458380 +0200
+++ /var/tmp/diff_new_pack.QQHKI4/_new  2022-08-15 20:00:36.053458391 +0200
@@ -8,11 +8,11 @@
 Signed-off-by: Egbert Eich 
 Signed-off-by: Egbert Eich 
 ---
-Index: hdf5-1.10.5/testpar/CMakeTests.cmake
+Index: hdf5-1.12.2/testpar/CMakeTests.cmake
 ===
 hdf5-1.10.5.orig/testpar/CMakeTests.cmake
-+++ hdf5-1.10.5/testpar/CMakeTests.cmake
-@@ -43,7 +43,7 @@
+--- hdf5-1.12.2.orig/testpar/CMakeTests.cmake
 hdf5-1.12.2/testpar/CMakeTests.cmake
+@@ -43,7 +43,7 @@ foreach (skiptest ${SKIP_tests})
set (SKIP_testphdf5 "${SKIP_testphdf5};-x;${skiptest}")
  endforeach ()
  
@@ -21,16 +21,16 @@
  set_tests_properties (MPI_TEST_testphdf5 PROPERTIES
  FIXTURES_REQUIRED par_clear_testphdf5
  ENVIRONMENT "HDF5_ALARM_SECONDS=3600;srcdir=${HDF5_TEST_PAR_BINARY_DIR}"
-Index: hdf5-1.10.5/testpar/Makefile.am
+Index: hdf5-1.12.2/testpar/Makefile.am
 ===
 hdf5-1.10.5.orig/testpar/Makefile.am
-+++ hdf5-1.10.5/testpar/Makefile.am
+--- hdf5-1.12.2.orig/testpar/Makefile.am
 hdf5-1.12.2/testpar/Makefile.am
 @@ -30,7 +30,7 @@ check_SCRIPTS = $(TEST_SCRIPT_PARA)
  
  # Test programs.  These are our main targets.
  #
--TEST_PROG_PARA=t_mpi t_bigio testphdf5 t_cache t_cache_image t_pread 
t_pshutdown t_prestart t_init_term 

commit hdf5 for openSUSE:Factory

2022-05-16 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2022-05-16 18:07:05

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.1538 (New)


Package is "hdf5"

Mon May 16 18:07:05 2022 rev:77 rq:977433 version:1.10.8

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2022-05-05 
23:06:47.649587317 +0200
+++ /work/SRC/openSUSE:Factory/.hdf5.new.1538/hdf5.changes  2022-05-16 
18:09:03.601304075 +0200
@@ -335 +335 @@
-- set higher constraints for succesfull mpich tests (boo#133222) 
+- set higher constraints for succesfull mpich tests (boo#1133222)



Other differences:
--


commit hdf5 for openSUSE:Factory

2022-05-05 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2022-05-05 23:06:06

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.1538 (New)


Package is "hdf5"

Thu May  5 23:06:06 2022 rev:76 rq:975082 version:1.10.8

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2022-04-11 
23:50:34.010164646 +0200
+++ /work/SRC/openSUSE:Factory/.hdf5.new.1538/hdf5.changes  2022-05-05 
23:06:47.649587317 +0200
@@ -1,0 +2,10 @@
+Wed May  4 06:39:53 UTC 2022 - Egbert Eich 
+
+- Security Fix:
+  Add configure option --disable-hltools to disable GIF tools as
+  recommended in the 1.10.8 release:
+  CVE-2018-17433 (bsc#1109565),
+  CVE-2018-17436 (bsc#1109568),
+  CVE-2020-10809 (bsc#1167404).
+
+---
@@ -61 +71 @@
-  * Fixed CVE-2018-17432
+  * Fixed CVE-2018-17432 (bsc#1109564)
@@ -65,4 +75,6 @@
-parsing
-  * Fixed CVE-2018-14460
-  * Fixed CVE-2018-11206
-  * Fixed CVE-2018-14033 (same issue as CVE-2020-10811)
+parsing (bsc#1167401)
+  * Fixed CVE-2018-14460 (bsc#1102175)
+  * Fixed CVE-2018-11206 (bsc#1093657)
+(same issue as CVE-2018-14032 (bsc#1101474))
+  * Fixed CVE-2018-14033 (bsc#1101471)
+(same issue as CVE-2020-10811 (bsc#1167405))
@@ -204,0 +217 @@
+(bsc#1109570)
@@ -290 +303 @@
-  * CVE-2018-17434: Memory leak in the H5O__chunk_deserialize() 
+  * CVE-2018-17234: Memory leak in the H5O__chunk_deserialize() 
@@ -292,2 +305,6 @@
-  * CVE-2018-17437: A SIGFPE signal is raised in the function 
-  H5D__chunk_set_info_real. (bsc#1109168)
+  * CVE-2018-17434: A SIGFPE signal is raised in function apply_filters()
+  of h5repack_filters.c (bsc#1109566)
+  * CVE-2018-17437: Memory leak in the H5O_dtype_decode_helper() function
+  in H5Odtype.c. (bsc#1109569)
+  * CVE-2018-17237: A SIGFPE signal is raised in the function 
+  H5D__chunk_set_info_real (bsc#1109168) (commit 4e31361d).



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.lahSNZ/_old  2022-05-05 23:06:48.365588210 +0200
+++ /var/tmp/diff_new_pack.lahSNZ/_new  2022-05-05 23:06:48.369588216 +0200
@@ -760,6 +760,7 @@
 %hpc_configure \
 %define hpc_exec_prefix %{expand:%_hpc_exec_prefix}
 %endif # ?hpc
+  --disable-hltools \
   --disable-dependency-tracking \
   --enable-fortran \
   --enable-unsupported \


commit hdf5 for openSUSE:Factory

2022-04-11 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2022-04-11 23:49:05

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.1900 (New)


Package is "hdf5"

Mon Apr 11 23:49:05 2022 rev:75 rq:969150 version:1.10.8

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2022-04-03 
21:31:26.651520679 +0200
+++ /work/SRC/openSUSE:Factory/.hdf5.new.1900/hdf5.changes  2022-04-11 
23:50:34.010164646 +0200
@@ -1,0 +2,7 @@
+Thu Apr  7 23:51:05 UTC 2022 - Christoph Junghans 
+
+- add hdf5-wrappers.patch from Fedora, so strip flags from
+  wrappers and prefer shared linking
+- add missing zlib-devel devel dep
+
+---

New:

  hdf5-wrappers.patch



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.pVr9kr/_old  2022-04-11 23:50:34.802155610 +0200
+++ /var/tmp/diff_new_pack.pVr9kr/_new  2022-04-11 23:50:34.806155565 +0200
@@ -438,6 +438,8 @@
 Patch8: Disable-phdf5-tests.patch
 # boo#1179521, boo#1196682, gh#HDFGroup/hdf5#1494
 Patch9: hdf5-1.10.8-pr1494-fix-release-check-version.patch
+# Imported from Fedora, strip flags from h5cc wrapper 
+Patch10:hdf5-wrappers.patch
 BuildRequires:  fdupes
 %if 0%{?use_sz2}
 BuildRequires:  libsz2-devel
@@ -604,6 +606,7 @@
 Requires:   %{libname -l _hl_cpp -s %{sonum_HL_CXX}} = %{version}
 Requires:   %{name} = %{version}
 %{!?with_hpc:Requires:   %{pname}-devel-data = %{version}}
+Requires:   zlib-devel
 %if 0%{?use_sz2}
 Requires:   libsz2-devel
 %endif
@@ -678,6 +681,7 @@
 # %%patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 %if %{without hpc}
 # baselibs looks different for different flavors - generate it on the fly

++ hdf5-wrappers.patch ++
diff -Naur hdf5-1.10.8.orig/bin/h5cc.in hdf5-1.10.8/bin/h5cc.in
--- hdf5-1.10.8.orig/bin/h5cc.in2022-04-07 18:23:46.0 -0600
+++ hdf5-1.10.8/bin/h5cc.in 2022-04-07 18:24:04.0 -0600
@@ -89,10 +89,10 @@
 # paths and libraries from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in
 # from the hdf5 build. The order of the flags is intended to give precedence
 # to the user's flags.
-H5BLD_CFLAGS="@AM_CFLAGS@ @CFLAGS@"
+H5BLD_CFLAGS=
 H5BLD_CPPFLAGS="@AM_CPPFLAGS@ @CPPFLAGS@"
-H5BLD_LDFLAGS="@AM_LDFLAGS@ @LDFLAGS@"
-H5BLD_LIBS="@LIBS@"
+H5BLD_LDFLAGS=
+H5BLD_LIBS=
 
 CC="${HDF5_CC:-$CCBASE}"
 CLINKER="${HDF5_CLINKER:-$CLINKERBASE}"
@@ -105,7 +105,8 @@
 # available library is shared, it will be used by default.  The user can
 # override either default, although choosing an unavailable library will result
 # in link errors.
-STATIC_AVAILABLE="@enable_static@"
+# openSUSE prefers shared libraries
+STATIC_AVAILABLE=no
 if test "${STATIC_AVAILABLE}" = "yes"; then
   USE_SHARED_LIB="${HDF5_USE_SHLIB:-no}"
 else
@@ -385,7 +386,7 @@
   # paths and libraries from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in
   # from the hdf5 build. The order of the flags is intended to give precedence
   # to the user's flags.
-  $SHOW $CLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CFLAGS $CFLAGS $LDFLAGS 
$clibpath $link_objs $LIBS $link_args $shared_link
+  $SHOW $CLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CFLAGS $CFLAGS $LDFLAGS 
$clibpath $link_objs $LIBS $link_args
   status=$?
 fi
 
diff -Naur hdf5-1.10.8.orig/c++/src/h5c++.in hdf5-1.10.8/c++/src/h5c++.in
--- hdf5-1.10.8.orig/c++/src/h5c++.in   2022-04-07 18:23:45.0 -0600
+++ hdf5-1.10.8/c++/src/h5c++.in2022-04-07 18:24:04.0 -0600
@@ -87,10 +87,10 @@
 # paths and libraries from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in
 # from the hdf5 build. The order of the flags is intended to give precedence
 # to the user's flags.
-H5BLD_CXXFLAGS="@AM_CXXFLAGS@ @CXXFLAGS@"
+H5BLD_CXXFLAGS=
 H5BLD_CPPFLAGS="@AM_CPPFLAGS@ @CPPFLAGS@"
-H5BLD_LDFLAGS="@AM_LDFLAGS@ @LDFLAGS@"
-H5BLD_LIBS="@LIBS@"
+H5BLD_LDFLAGS=
+H5BLD_LIBS=
 
 CXX="${HDF5_CXX:-$CXXBASE}"
 CXXLINKER="${HDF5_CXXLINKER:-$CXXLINKERBASE}"
@@ -103,7 +103,8 @@
 # available library is shared, it will be used by default.  The user can
 # override either default, although choosing an unavailable library will result
 # in link errors.
-STATIC_AVAILABLE="@enable_static@"
+# openSUSE prefers shared libraries
+STATIC_AVAILABLE=no
 if test "${STATIC_AVAILABLE}" = "yes"; then
   USE_SHARED_LIB="${HDF5_USE_SHLIB:-no}"
 else
@@ -385,7 +386,7 @@
   # from the hdf5 build. The order of the flags is intended to give precedence
   # to the user's flags.
 
-  $SHOW $CXXLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CXXFLAGS $CXXFLAGS 
$LDFLAGS $clibpath $link_objs $LIBS $link_args $shared_link
+  $SHOW $CXXLINKER 

commit hdf5 for openSUSE:Factory

2022-04-03 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2022-04-03 21:31:03

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.1900 (New)


Package is "hdf5"

Sun Apr  3 21:31:03 2022 rev:74 rq:966612 version:1.10.8

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2022-02-27 
22:43:39.750640366 +0100
+++ /work/SRC/openSUSE:Factory/.hdf5.new.1900/hdf5.changes  2022-04-03 
21:31:26.651520679 +0200
@@ -1,0 +2,10 @@
+Thu Mar 31 08:25:44 UTC 2022 - Ben Greiner 
+
+- Add hdf5-1.10.8-pr1494-fix-release-check-version.patch
+  * boo#1179521, boo#1196682, gh#HDFGroup/hdf5#1494
+  * Avoids package crashes due to an overeager version check.
+Packages depending on the shared libraries are not being
+rebuilt in Factory after a patchlevel version bump of hdf5
+without SONAME changes.
+
+---

New:

  hdf5-1.10.8-pr1494-fix-release-check-version.patch



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.7eAa65/_old  2022-04-03 21:31:27.315513451 +0200
+++ /var/tmp/diff_new_pack.7eAa65/_new  2022-04-03 21:31:27.315513451 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package hdf5
+# spec file
 #
 # Copyright (c) 2022 SUSE LLC
 #
@@ -436,6 +436,8 @@
 # Could be ported but it's unknown if it's still needed
 Patch7: hdf5-mpi.patch
 Patch8: Disable-phdf5-tests.patch
+# boo#1179521, boo#1196682, gh#HDFGroup/hdf5#1494
+Patch9: hdf5-1.10.8-pr1494-fix-release-check-version.patch
 BuildRequires:  fdupes
 %if 0%{?use_sz2}
 BuildRequires:  libsz2-devel
@@ -675,6 +677,7 @@
 %patch6 -p1
 # %%patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 %if %{without hpc}
 # baselibs looks different for different flavors - generate it on the fly

++ hdf5-1.10.8-pr1494-fix-release-check-version.patch ++
>From 5595f1be4085006f62ebc603bf3fa52020205e48 Mon Sep 17 00:00:00 2001
From: Allen Byrne 
Date: Fri, 11 Mar 2022 14:11:31 -0600
Subject: [PATCH 1/2] Fix release check version logic #1438

---
 config/cmake/scripts/HDF5config.cmake |  2 +-
 release_docs/RELEASE.txt  | 17 +
 src/H5.c  | 14 ++
 test/CMakeTests.cmake |  2 +-
 4 files changed, 25 insertions(+), 10 deletions(-)

Index: hdf5-1.10.8/release_docs/RELEASE.txt
===
--- hdf5-1.10.8.orig/release_docs/RELEASE.txt
+++ hdf5-1.10.8/release_docs/RELEASE.txt
@@ -274,7 +274,23 @@ New Features
 (ADB - 2020/09/24)
 
 Library:
-
+- Issue #1436 identified a problem with the H5_VERS_RELEASE check in the
+  H5check_version function.
+
+  Investigating the original fix, #812, we discovered some inconsistencies
+  with a new block added to check H5_VERS_RELEASE for incompatibilities.
+  This new block was not using the new warning text dealing with the
+  H5_VERS_RELEASE check and would cause the warning to be duplicated.
+
+  By removing the H5_VERS_RELEASE argument in the first check for 
+  H5_VERS_MAJOR and H5_VERS_MINOR, the second check would only check
+  the H5_VERS_RELEASE for incompatible release versions. This adheres
+  to the statement that except for the develop branch, all release versions
+  in a major.minor maintenance branch should be compatible. The 
prerequisite
+  is that an application will not use any APIs not present in all release 
versions.
+
+  (ADB - 2022/03/11, #1438)
+
 - Change how the release part of version, in major.minor.release is checked
   for compatibility
 
Index: hdf5-1.10.8/src/H5.c
===
--- hdf5-1.10.8.orig/src/H5.c
+++ hdf5-1.10.8/src/H5.c
@@ -821,6 +821,7 @@ H5check_version(unsigned majnum, unsigne
 static int  checked  = 0; /* If we've already 
checked the version info */
 static unsigned int disable_version_check= 0; /* Set if the version 
check should be disabled */
 static const char * version_mismatch_warning = VERSION_MISMATCH_WARNING;
+static const char * release_mismatch_warning = RELEASE_MISMATCH_WARNING;
 herr_t  ret_value= SUCCEED; /* Return value */
 
 FUNC_ENTER_API_NOINIT_NOERR_NOFS
@@ -841,10 +842,7 @@ H5check_version(unsigned majnum, unsigne
 }
 
 /* H5_VERS_MAJOR and H5_VERS_MINOR must match */
-/* Cast relnum to int to avoid warning for unsigned < 0 comparison
- * in first release versions */
-if (H5_VERS_MAJOR != majnum || H5_VERS_MINOR != minnum || 

commit hdf5 for openSUSE:Factory

2022-02-27 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2022-02-27 22:43:00

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.1958 (New)


Package is "hdf5"

Sun Feb 27 22:43:00 2022 rev:73 rq:957812 version:1.10.8

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2021-01-30 
13:57:50.546404649 +0100
+++ /work/SRC/openSUSE:Factory/.hdf5.new.1958/hdf5.changes  2022-02-27 
22:43:39.750640366 +0100
@@ -1,0 +2,74 @@
+Wed Feb 16 11:18:17 UTC 2022 - Atri Bhattacharya 
+
+- Update to version 1.10.8:
+  * Added new option to control the build of High-Level tools
+  * Adds C++ Autotools configuration file for Intel
+  * Adds C++ Autotools configuration file for PGI
+  * Updates PGI C options
+  * CMake will now run the shell script tests in test/ by default
+  * Removed unused HDF5_ENABLE_HSIZET option from CMake
+  * CMake no longer builds the C++ library by default
+  * Removal of pre-VS2015 work-arounds
+  * Add CMake variable HDF5_LIB_INFIX
+  * Added a configure-time option to control certain compiler
+warnings
+  * CMake option to build the HDF filter plugins project as an
+external project
+  * Added a configure-time option to consider certain compiler
+warnings
+  * Autotools and CMake target added to produce doxygen generated
+documentation
+  * CMake option to build the HDF filter plugins project as an
+external project
+  * Added CMake option to format source files
+  * Change how the release part of version, in major.minor.release
+is checked
+  * H5Gcreate1() now rejects size_hint parameters larger than
+UINT32_MAX
+  * H5Pset_fapl_log() no longer crashes when passed an invalid
+fapl ID
+  * Fixes a segfault when H5Pset_mdc_log_options() is called
+multiple times
+  * File locking now works on Windows
+  * H5Epush_ret() now requires a trailing semicolon
+  * Improved performance of H5Sget_select_elem_pointlist
+  * H5Fget_name_f fixed to handle correctly trailing whitespaces
+and newly allocated buffers.
+  * Added new H5S functions.
+  * Refactored the perform tools and removed dependencies on test
+library.
+  * h5repack added help text for user-defined filters.
+  * Doxygen documentation is available when configured and
+generated.
+  * Fixed CVE-2018-17432
+  * Fixed a segmentation fault
+  * Detection of simple data transform function "x"
+  * Fixed CVE-2020-10810 - an invalid read and memory leak when
+parsing
+  * Fixed CVE-2018-14460
+  * Fixed CVE-2018-11206
+  * Fixed CVE-2018-14033 (same issue as CVE-2020-10811)
+  * Remove underscores on header file guards
+  * H5FArray.java class:
+- Convert the entire byte array into a 1-d array of the
+  desired type, rather than performing 1 conversion per row;
+- Use the Java Arrays method copyOfRange to grab the section
+  of the array from (1) that is desired to be inserted into
+  the destination array.
+  * Corrected path searched by CMake find_package command
+  * Corrected pkg-config compile script
+  * Fixed CMake C++ compiler flags
+  * Autotools clang debug optimization level change
+  * Better support for libaec (open-source Szip library) in CMake
+  * Refactor CMake configure for Fortran
+  * Remove arbitrary warning flag groups from CMake builds
+  * Reclassify CMake messages, to allow new modes and --log-level
+option
+  * Fixes Autotools determination of the stat struct having an
+st_blocks field
+  * Changed how h5dump and h5ls identify long double.
+  * Fixed tools argument parsing.
+  * Updated doxygen comments with changes for release
+- Minor rebase of patches to apply cleanly.
+
+---

Old:

  hdf5-1.10.7.tar.bz2

New:

  hdf5-1.10.8.tar.bz2



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.UdXX9C/_old  2022-02-27 22:43:40.442640565 +0100
+++ /var/tmp/diff_new_pack.UdXX9C/_new  2022-02-27 22:43:40.446640567 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hdf5
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -34,8 +34,8 @@
 
 %define use_sz2 0
 
-%define vers 1.10.7
-%define _vers 1_10_7
+%define vers 1.10.8
+%define _vers 1_10_8
 %define short_ver 1.10
 %define src_ver %{version}
 %define pname hdf5
@@ -912,8 +912,6 @@
 
 %files -n %{name}
 %{?with_hpc:%dir %my_bindir}
-%{my_bindir}/gif2h5
-%{my_bindir}/h52gif
 %{my_bindir}/h5clear
 %{my_bindir}/h5copy
 %{my_bindir}/h5debug
@@ -927,6 +925,7 @@
 %if 

commit hdf5 for openSUSE:Factory

2021-01-30 Thread Source-Sync
Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2021-01-30 13:56:49

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.28504 (New)


Package is "hdf5"

Sat Jan 30 13:56:49 2021 rev:72 rq:867822 version:1.10.7

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2020-11-29 
12:23:48.745722062 +0100
+++ /work/SRC/openSUSE:Factory/.hdf5.new.28504/hdf5.changes 2021-01-30 
13:57:50.546404649 +0100
@@ -1,0 +2,5 @@
+Fri Jan 29 22:05:44 UTC 2021 - Egbert Eich 
+
+- Fix update_so_version.sh, write so versions to file being included.
+
+---

New:

  so_versions



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.sSEwZT/_old  2021-01-30 13:57:51.250405836 +0100
+++ /var/tmp/diff_new_pack.sSEwZT/_new  2021-01-30 13:57:51.254405843 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package hdf5
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -412,14 +412,8 @@
  %define vname %{pname}
 %endif
 
-# TODO: The so numbers autodetected by update_so_version.sh
-# do not match the so numbers that are actually built.
-%define sonum 103
-%define sonum_CXX 103
-%define sonum_F 102
-%define sonum_HL 100
-%define sonum_HL_CXX 100
-%define sonum_HL_F 100
+# Run 'sh ./update_so_version.sh' when updating hdf5!
+%include %{_sourcedir}/so_versions
 
 Name:   %{package_name}
 Version:%vers
@@ -429,7 +423,7 @@
 Group:  Productivity/Scientific/Other
 URL:https://www.hdfgroup.org/HDF5/
 Source0:
https://www.hdfgroup.org/ftp/HDF5/releases/%{pname}-%{short_ver}/%{pname}-%{src_ver}/src/%{pname}-%{src_ver}.tar.bz2
-Source100:  _multibuild
+Source100:  so_versions
 Source1000: update_so_version.sh
 Patch0: hdf5-LD_LIBRARY_PATH.patch
 # not really needed but we want to get noticed if hdf5 doesn' t know our host

++ so_versions ++
%define sonum 103
%define sonum_CXX 103
%define sonum_F 102
%define sonum_HL 100
%define sonum_HL_CXX 100
%define sonum_HL_F 100
++ update_so_version.sh ++
--- /var/tmp/diff_new_pack.sSEwZT/_old  2021-01-30 13:57:51.338405984 +0100
+++ /var/tmp/diff_new_pack.sSEwZT/_new  2021-01-30 13:57:51.342405991 +0100
@@ -6,15 +6,10 @@
exit 1
 }
 
-dbg()
-{
-   echo "dbg: $@" >&2
-}
-
 cleanup()
 {
-   rm -f lt_vers.sh sonum_spec.sed
-   rm -f hdf5.spec.tmp
+rm -f ${spectmp}
+rm -f ${shtmp}
 }
 
 ## We are going to parse these variables from tarball:
@@ -24,47 +19,46 @@
 # LT_HL_VERS_INTERFACE
 # LT_HL_CXX_VERS_INTERFACE
 # LT_HL_F_VERS_INTERFACE
-# LT_TOOLS_VERS_INTERFACE
 
 cleanup
 
-VER="$(grep -m1 "^Version:" hdf5.spec)" || exit_error "can't grep version"
+spectmp=$(mktemp hdf-.spec)
+shtmp=$(mktemp lt-.sh)
+outtmp=$(mktemp so-)
+sed -e "s/@BUILD_FLAVOR@/standard/" hdf5.spec > ${spectmp}
+VER="$(rpmspec --define "_sourcedir $(pwd)" -P ${spectmp} | grep -m1 
"^Version:")" || \
+exit_error "can't grep version"
 read x VER <<<$VER
 
-SRC="$(grep -m1 "^Source0:" hdf5.spec)" || exit_error "can't grep source"
+SRC="$(rpmspec --define "_sourcedir $(pwd)" -P ${spectmp} | grep -m1 
"^Source0:")" || \
+exit_error "can't grep source"
 read x SRC <<<$SRC
 SRC=$(basename "$SRC" | sed "s/%{version}/$VER/")
 
 test -f "$SRC" || exit_error "tarball '$SRC' does not exist"
-dbg "inspecting $SRC"
 
 tar --wildcards -x -O -f "$SRC" "*/config/lt_vers.am" \
| tr -d ' \t' \
-   | grep "^LT_.*INTERFACE=" \
-   > lt_vers.sh \
+   | grep -E "^LT_.*INTERFACE=|^LT_.*AGE=" \
+   > ${shtmp} \
|| exit_error "can't grep interface versions"
 
-# we expect exactly 7 variables
-. lt_vers.sh || exit_error "can't source lt_vers.sh"
-test $(wc -l < lt_vers.sh) -le "7" \
-   || exit_error "more than 7 vars found, update this script!"
-
-for infix in "" _CXX _F _HL _HL_CXX _HL_F _TOOLS; do
-   var="LT${infix}_VERS_INTERFACE"
-   test "${!var}" -gt 0 || exit_error "$var='${!var}' bad or undefined"
-   dbg "update $var=${!var}"
-   def_sonum="sonum${infix}"
-   # create sed scripts for spec file
-   echo "s/^%define $def_sonum .*/%define $def_sonum ${!var}/" >> 
sonum_spec.sed
-done
+source ./${shtmp} || exit_error "can't source ${shtmp}"
 
-# update spec file if needed
-sed -f sonum_spec.sed hdf5.spec > hdf5.spec.tmp
-if diff -q hdf5.spec.tmp hdf5.spec &>/dev/null; then
-   dbg "hdf5.spec was up-to-date"
-else
-   mv hdf5.spec.tmp 

[opensuse-commit] commit hdf5 for openSUSE:Factory

2020-11-29 Thread User for buildservice source handling
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2020-11-29 12:23:29

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.5913 (New)


Package is "hdf5"

Sun Nov 29 12:23:29 2020 rev:71 rq:851572 version:1.10.7

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2020-11-24 
22:09:31.911331647 +0100
+++ /work/SRC/openSUSE:Factory/.hdf5.new.5913/hdf5.changes  2020-11-29 
12:23:48.745722062 +0100
@@ -5,2 +5,97 @@
-  * 
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6-RELEASE.txt
-  * 
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.7/src/hdf5-1.10.7-RELEASE.txt
+  * Add metadata cache optimization to reduce skip list usage.
+  * Add BEST_EFFORT value to HDF5_USE_FILE_LOCKING environment variable.
+  * Add H5Pset/get_file_locking() API calls.
+  * Add Mirror VFD.
+Use TCP/IP sockets to perform write-only (W/O) file I/O on a remote
+machine. Must be used in conjunction with the Splitter VFD.
+  * Add Splitter VFD.
+Maintain separate R/W and W/O channels for "concurrent" file writes
+to two files using a single HDF5 file handle.
+  * Fixed an assertion failure in the parallel library when collectively
+   filling chunks.
+  * Fortran/C++ libs: Add wrappers for H5Pset/get_file_locking() API calls.
+ h5pget_file_locking_f()
+ h5pset_file_locking_f()
+  * Added new Fortran parameters:
+H5F_LIBVER_ERROR_F
+H5F_LIBVER_NBOUNDS_F
+H5F_LIBVER_V18_F
+H5F_LIBVER_V110_F
+  * Add new Fortran API: h5pget_libver_bounds_f.
+  * h5repack added options to control how external links are handled.
+  * The tools library was updated by standardizing the error stack process.
+  * The H5DSis_scale function was updated to return "not a dimension scale" (0)
+instead of failing (-1), when CLASS or DIMENSION_SCALE attributes are
+not written according to Dimension Scales Specification.
+  * Bug Fixes:
++ Fix bug and simplify collective metadata write operation when some ranks
+  have no entries to contribute.  This fixes parallel regression test
+  failures with IBM SpectrumScale MPI on the Summit system at ORNL.
++ Fixed use-of-uninitialized-value error.
+  Appropriate initialization of local structs was added to remove the
+  use-of-uninitialized-value errors reported by MemorySanitizer.
++ Creation of dataset with optional filter.
+  A fix is applied to allow the creation of a dataset in such
+  situation, as specified in the user documentation.
++ Explicitly declared dlopen to use RTLD_LOCAL.
++ H5Sset_extent_none() sets the dataspace class to H5S_NO_CLASS which
+  causes asserts/errors when passed to other dataspace API calls.
++ Fixed the segmentation fault when reading attributes with multiple 
threads
+  The problem was fixed by setting the file pointer to the current opened
+  file pointer when the attribute was accessed.  Similar patch up was done
+  before when reading dataset with variable length string datatype.
++ Don't allocate an empty (0-dimensioned) chunked dataset's chunk
+  index, until the dataset's dimensions are increased.
++ Fortan: Corrected INTERFACE INTENT(IN) to INTENT(OUT) for buf_size in
+  h5fget_file_image_f.
++ h5diff fixed a command line parsing error.
++ h5diff added a command line option to ignore attributes.
++ h5diff added another level to the verbose argument to print filenames.
++ h5repack was fixed to repack the reference attributes properly.
+  * For details check:
+
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.7/src/hdf5-1.10.7-RELEASE.txt
+- version 1.10.6
+  * Added S3 and HDFS Virtual File Drivers (VFDs) to HDF5.
+Instructions to enable them when configuring HDF5 on Linux and Mac
+may be found at.
+
https://portal.hdfgroup.org/display/HDF5/Virtual+File+Drivers+-+S3+and+HDFS.
+  * Added new wrappers for H5Pset/get_create_intermediate_group()
+LinkCreatPropList::setCreateIntermediateGroup()
+LinkCreatPropList::getCreateIntermediateGroup()
+  * h5repack was fixed to repack datasets with external storage
+to other types of storage.
+  * Bug Fixes:
++ Improved performance when creating a large number of small datasets by
+  retrieving default property values from the API context instead of doing
+  skip list searches. More work is required to achieve parity with HDF5 
1.8.
++ Fixed user-created data access properties not existing in the property 
list
+  returned by H5Dget_access_plist. Thanks to Steven Varga for submitting a
+  reproducer and a patch.
++ Inappropriate linking with deprecated MPI C++ libraries.
+  HDF5 does not define 

[opensuse-commit] commit hdf5 for openSUSE:Factory

2020-11-24 Thread User for buildservice source handling
Hello community,

here is the log from the commit of package hdf5 for openSUSE:Factory checked in 
at 2020-11-24 22:09:23

Comparing /work/SRC/openSUSE:Factory/hdf5 (Old)
 and  /work/SRC/openSUSE:Factory/.hdf5.new.5913 (New)


Package is "hdf5"

Tue Nov 24 22:09:23 2020 rev:70 rq:848498 version:1.10.7

Changes:

--- /work/SRC/openSUSE:Factory/hdf5/hdf5.changes2020-09-15 
16:25:47.310453084 +0200
+++ /work/SRC/openSUSE:Factory/.hdf5.new.5913/hdf5.changes  2020-11-24 
22:09:31.911331647 +0100
@@ -1,0 +2,22 @@
+Fri Nov  6 10:41:02 UTC 2020 - Ana Guerrero Lopez 
+
+- Update to version 1.10.7
+  * 
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.6/src/hdf5-1.10.6-RELEASE.txt
+  * 
https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.7/src/hdf5-1.10.7-RELEASE.txt
+- Security bugs fixed: 
+  * CVE-2018-13870: heap-based buffer over-read in the function 
+H5O_link_decode in H5Olink.c  (bsc#1101493)
+  * CVE-2018-13869: memcpy parameter overlap in the function 
+H5O_link_decode in H5Olink.c (bsc#1101495)
+  * CVE-2018-17438:  A SIGFPE signal is raised in the function 
+H5D__select_io() of H5Dselect.c in the HDF HDF5 through 1.10.3 
+library during an attempted parse of a crafted HDF file, 
+because of incorrect protection against division
+(bsc#1109570)
+  * CVE-2018-17435: A heap-based buffer over-read in H5O_attr_decode() 
+in H5Oattr.c in the HDF HDF5 through 1.10.3 library allows 
+attackers to cause a denial of service via a crafted HDF5 file. 
+(bsc#1109567)
+- Refresh patches
+
+---
@@ -73,0 +96,7 @@
+- Security bugs fixed: 
+  * CVE-2018-17233: A SIGFPE signal is raised in the function 
+  H5D__create_chunk_file_map_hyper. (bsc#1109166)
+  * CVE-2018-17434: Memory leak in the H5O__chunk_deserialize() 
+  function in H5Ocache.c (bsc#1109167)
+  * CVE-2018-17437: A SIGFPE signal is raised in the function 
+  H5D__chunk_set_info_real. (bsc#1109168)
@@ -89 +117,0 @@
-
@@ -204,0 +233,20 @@
+- Security bugs fixed: 
+  * CVE-2017-17505: NULL pointer dereference in the function
+H5O_pline_decode allowing for DoS via crafted file (bsc#1072087)
+  * CVE-2017-17506: Out of bounds read in the function 
+H5Opline_pline_decode (bsc#1072090)
+  * CVE-2017-17508: divide-by-zero vulnerability in function 
+H5T_set_loc (bsc#1072108)
+  * CVE-2017-17509: out of bounds write vulnerability in function 
+H5G__ent_decode_vec (bsc#1072111)
+  * CVE-2018-11202: NULL pointer dereference in H5S_hyper_make_spans 
+in H5Shyper.c allows a remote denial of service attack (bsc#1093641)
+  * CVE-2018-11203: division by zero in H5D__btree_decode_key in H5Dbtree.c
+It could allow a remote denial of service attack (bsc#1093649)
+  * CVE-2018-11204: A NULL pointer dereference was discovered in 
+H5O__chunk_deserialize in H5Ocache.c (bsc#1093655)
+  * CVE-2018-11206: A out of bounds read was discovered 
+in H5O_fill_new_decode and H5O_fill_old_decode in H5Ofill.c
+(bsc#1093657)
+  * CVE-2018-11207: division by zero was discovered in H5D__chunk_init 
+in H5Dchunk.c (bsc#1093653)

Old:

  hdf5-1.10.5.tar.bz2

New:

  hdf5-1.10.7.tar.bz2



Other differences:
--
++ hdf5.spec ++
--- /var/tmp/diff_new_pack.QsHH3E/_old  2020-11-24 22:09:33.479333100 +0100
+++ /var/tmp/diff_new_pack.QsHH3E/_new  2020-11-24 22:09:33.48104 +0100
@@ -34,8 +34,8 @@
 
 %define use_sz2 0
 
-%define vers 1.10.5
-%define _vers 1_10_5
+%define vers 1.10.7
+%define _vers 1_10_7
 %define short_ver 1.10
 %define src_ver %{version}
 %define pname hdf5
@@ -785,13 +785,13 @@
 find %{buildroot} -type f -name "*.la" -delete -print
 
 %if %{without mpi}
-find %{buildroot}%{_prefix}/share/hdf5_examples -type f \
- | grep -v ".sh$" | xargs chmod 644
+
 %if %{with hpc}
 # copy to versioned subdir
 install -m 755 -d %{buildroot}%{_prefix}/share/%{version}
-mv %{buildroot}%{_prefix}/share/hdf5_examples/* \
-%{buildroot}%{_prefix}/share/%{version}
+install -m 755 -d %{buildroot}%{_prefix}/share/hdf5_examples
+mv %{buildroot}%{_prefix}/lib/hpc/*/hdf5/*/share/hdf5_examples/* \
+%{buildroot}%{_prefix}/share/%{version}/
 mv %{buildroot}%{_prefix}/share/%{version} \
 %{buildroot}%{_prefix}/share/hdf5_examples
 %else
@@ -805,9 +805,10 @@
 %_hdf5_version  %{version}
 EOF
 %endif
+
 %else
 # delete examples from parallel builds
-rm -rf %{buildroot}%{_prefix}/share/hdf5_examples
+find  %{buildroot} -type d -name "hdf5_examples" -exec rm -rf {} +;
 %endif
 
 %fdupes -s %{buildroot}/%{_datadir}
@@ -906,19 +907,16 @@
 
 %if %{without mpi}
 %files -n %{vname}-examples
-%defattr(-,root,root)
 %{?with_hpc:%dir