star-build

Automation tool for project installation
git clone git://git.meso-star.com/star-build.git
Log | Files | Refs | README | LICENSE

commit 89b36f7eb94db7ab76e69b27a2325ca694aff307
parent 2685ee5484d01dc5199ec902746baf2eb40c3fe4
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 17 Sep 2026 16:10:45 +0200

NetCDF: corrects the generation of the patched pc file

If the patched pkg-config file already existed, it was regenerated but
using patched version as input. The corrected pc file was therefore both
the input and output of the sed command used to correct what was assumed
to be the original pc file, resulting in an empty pc file.

The patched file is now deleted before re-generation to ensure it is
only the output of the sed command.

Diffstat:
Msrc/sci-libs/netcdf-patch_4.9.3.mk | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/sci-libs/netcdf-patch_4.9.3.mk b/src/sci-libs/netcdf-patch_4.9.3.mk @@ -1,7 +1,8 @@ netcdf-patch: - prefix=$$(cat .prefix) &&\ - pc="$$(pkg-config --path netcdf)" &&\ + prefix="$$(cat .prefix)" &&\ path="$${prefix}/lib/pkgconfig" &&\ + rm -f "$${path}/netcdf.pc" &&\ + pc="$$(pkg-config --path netcdf)" &&\ mkdir -p "$${path}" &&\ sed -e 's/HDF5::HDF5/hdf5/' \ -e 's/hdf5::hdf5_hl/hdf5_hl/' \