Files
meta-openembedded/meta-oe/recipes-support/hdf5/files/0001-cmake-remove-build-flags.patch
Yogita Urade 8f59b84cdd hdf5: upgrade to 1.14.4
Release notes:
https://github.com/HDFGroup/hdf5/blob/hdf5_1.14.4.3/release_docs/RELEASE.txt

License update: link update
from https://raw.githubusercontent.com/hdfgroup/hdf5/develop/COPYING_LBNL_HDF5
to https://raw.githubusercontent.com/hdfgroup/hdf5/hdf5_1_14/COPYING_LBNL_HDF5.

Upstream has only Released tar file extension is .gz so
SRC_URI tar file extension changed from .bz2 to .gz

Fixes
File /usr/lib/libhdf5.settings in package hdf5 contains reference to TMPDIR
File /usr/src/debug/hdf5/1.14.4-3/src/H5build_settings.c in package
hdf5-src contains reference to TMPDIR [buildpaths]

- Running H5make_libsettings is no longer required for cross-compiling
      The functionality of H5make_libsettings is now handled via template files,
      so H5make_libsettings has been removed.

- Running H5detect is no longer required for cross-compiling
      The functionality of H5detect is now exercised at library startup,
      so H5detect has been removed

Rework the patch 0001-cmake-remove-build-flags.patch to fix the build path
issue.

Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2024-08-03 12:15:31 -04:00

68 lines
2.6 KiB
Diff

From 9f5afd99cce93e68996deb2b5fa7c32737d279fe Mon Sep 17 00:00:00 2001
From: Mingli Yu <mingli.yu@windriver.com>
Date: Tue, 16 Jul 2024 17:54:29 +0800
Subject: [PATCH] cmake: remove build flags
Don't generate the build host related info and reemove the build flags
to improve reproducibility.
Upstream-Status: Inappropriate [oe specific]
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
---
config/cmake/libhdf5.settings.cmake.in | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/config/cmake/libhdf5.settings.cmake.in b/config/cmake/libhdf5.settings.cmake.in
index deb07ed..6f255c4 100644
--- a/config/cmake/libhdf5.settings.cmake.in
+++ b/config/cmake/libhdf5.settings.cmake.in
@@ -23,23 +23,23 @@ Linking Options:
----------------
Libraries: @BUILD_NAME_EXT@
Statically Linked Executables: @BUILD_STATIC_EXECS@
- LDFLAGS: @CMAKE_SHARED_LINKER_FLAGS@
+ LDFLAGS:
H5_LDFLAGS: @H5_LDFLAGS@
AM_LDFLAGS: @AM_LDFLAGS@
Extra libraries: @LINK_LIBS@
- Archiver: @CMAKE_AR@
- AR_FLAGS:
- Ranlib: @CMAKE_RANLIB@
+ Archiver:
+ AR_FLAGS:
+ Ranlib:
Languages:
----------
C: YES
- C Compiler: @CMAKE_C_COMPILER@ @CMAKE_C_COMPILER_VERSION@
+ C Compiler:
CPPFLAGS: @CPPFLAGS@
H5_CPPFLAGS: @H5_CPPFLAGS@
AM_CPPFLAGS: @AM_CPPFLAGS@
- CFLAGS: @CMAKE_C_FLAGS@
- H5_CFLAGS: @HDF5_CMAKE_C_FLAGS@
+ CFLAGS:
+ H5_CFLAGS:
AM_CFLAGS: @AM_CFLAGS@
Shared C Library: @H5_ENABLE_SHARED_LIB@
Static C Library: @H5_ENABLE_STATIC_LIB@
@@ -51,11 +51,11 @@ Languages:
AM Fortran Flags: @AM_FCFLAGS@
Shared Fortran Library: @H5_ENABLE_SHARED_LIB@
Static Fortran Library: @H5_ENABLE_STATIC_LIB@
- Module Directory: @CMAKE_Fortran_MODULE_DIRECTORY@
+ Module Directory:
C++: @HDF5_BUILD_CPP_LIB@
C++ Compiler: @CMAKE_CXX_COMPILER@ @CMAKE_CXX_COMPILER_VERSION@
- C++ Flags: @CMAKE_CXX_FLAGS@
+ C++ Flags:
H5 C++ Flags: @HDF5_CMAKE_CXX_FLAGS@
AM C++ Flags: @AM_CXXFLAGS@
Shared C++ Library: @H5_ENABLE_SHARED_LIB@
--
2.25.1