summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/wrf/patches/4.2/arch.Config.pl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/wrf/patches/4.2/arch.Config.pl.patch')
-rw-r--r--var/spack/repos/builtin/packages/wrf/patches/4.2/arch.Config.pl.patch37
1 files changed, 24 insertions, 13 deletions
diff --git a/var/spack/repos/builtin/packages/wrf/patches/4.2/arch.Config.pl.patch b/var/spack/repos/builtin/packages/wrf/patches/4.2/arch.Config.pl.patch
index ca3840ac55..81a1a5e56d 100644
--- a/var/spack/repos/builtin/packages/wrf/patches/4.2/arch.Config.pl.patch
+++ b/var/spack/repos/builtin/packages/wrf/patches/4.2/arch.Config.pl.patch
@@ -1,16 +1,15 @@
-diff --git a/arch/Config.pl b/arch/Config.pl
-index b6f45db..75fad32 100644
---- a/arch/Config.pl
-+++ b/arch/Config.pl
-@@ -8,6 +8,7 @@
- select((select(STDOUT), $|=1)[0]);
- $sw_perl_path = perl ;
+diff -ru a/arch/Config.pl b/arch/Config.pl
+--- a/arch/Config.pl 2021-10-28 17:42:41.000000000 +0900
++++ b/arch/Config.pl 2021-10-28 17:48:01.000000000 +0900
+@@ -11,6 +11,7 @@
+ $sw_tirpc_lib = "";
+ $sw_tirpc_libdir = "";
$sw_netcdf_path = "" ;
+$sw_netcdff_path = "" ;
$sw_pnetcdf_path = "" ;
$sw_hdf5_path="";
$sw_phdf5_path="";
-@@ -63,6 +64,10 @@ while ( substr( $ARGV[0], 0, 1 ) eq "-" )
+@@ -75,6 +76,10 @@
{
$sw_netcdf_path = substr( $ARGV[0], 8 ) ;
}
@@ -21,7 +20,7 @@ index b6f45db..75fad32 100644
if ( substr( $ARGV[0], 1, 13 ) eq "dep_lib_path=" )
{
$sw_dep_lib_path = substr( $ARGV[0], 14 ) ;
-@@ -117,6 +122,7 @@ while ( substr( $ARGV[0], 0, 1 ) eq "-" )
+@@ -129,6 +134,7 @@
if ( substr( $ARGV[0], 1, 11 ) eq "USENETCDFF=" )
{
$sw_usenetcdff = substr( $ARGV[0], 12 ) ;
@@ -29,15 +28,15 @@ index b6f45db..75fad32 100644
}
if ( substr( $ARGV[0], 1, 10 ) eq "USENETCDF=" )
{
-@@ -443,6 +449,7 @@ while ( <CONFIGURE_DEFAULTS> )
- {
- $_ =~ s/CONFIGURE_PERL_PATH/$sw_perl_path/g ;
+@@ -457,6 +463,7 @@
+ $_ =~ s/CONFIGURE_TIRPC_INC/$sw_tirpc_inc/g ;
+ $_ =~ s/CONFIGURE_TIRPC_LIB/$sw_tirpc_libdir $sw_tirpc_lib/g ;
$_ =~ s/CONFIGURE_NETCDF_PATH/$sw_netcdf_path/g ;
+ $_ =~ s/CONFIGURE_NETCDFF_PATH/$sw_netcdff_path/g ;
$_ =~ s/CONFIGURE_PNETCDF_PATH/$sw_pnetcdf_path/g ;
$_ =~ s/CONFIGURE_HDF5_PATH/$sw_hdf5_path/g ;
$_ =~ s/CONFIGURE_PHDF5_PATH/$sw_phdf5_path/g ;
-@@ -484,17 +491,19 @@ while ( <CONFIGURE_DEFAULTS> )
+@@ -498,17 +505,19 @@
if ( $sw_netcdf_path )
{ $_ =~ s/CONFIGURE_WRFIO_NF/wrfio_nf/g ;
$_ =~ s:CONFIGURE_NETCDF_FLAG:-DNETCDF: ;
@@ -60,3 +59,15 @@ index b6f45db..75fad32 100644
$_ =~ s:CONFIGURE_NETCDF_LIB_PATH::g ;
}
+@@ -823,9 +832,9 @@
+ if ( $ENV{NETCDF_LDFLAGS} ) {
+ $_ =~ s:CONFIGURE_NETCDF_LIB_PATH:\$\(WRF_SRC_ROOT_DIR\)/external/io_netcdf/libwrfio_nf.a $ENV{NETCDF_LDFLAGS} : ;
+ } elsif ( $sw_os eq "Interix" ) {
+- $_ =~ s:CONFIGURE_NETCDF_LIB_PATH:\$\(WRF_SRC_ROOT_DIR\)/external/io_netcdf/libwrfio_nf.a -L$sw_netcdf_path/lib $sw_usenetcdff $sw_usenetcdf : ;
++ $_ =~ s:CONFIGURE_NETCDF_LIB_PATH:\$\(WRF_SRC_ROOT_DIR\)/external/io_netcdf/libwrfio_nf.a -L$sw_netcdf_path/lib -L$sw_netcdff_path/lib $sw_usenetcdff $sw_usenetcdf : ;
+ } else {
+- $_ =~ s:CONFIGURE_NETCDF_LIB_PATH:-L\$\(WRF_SRC_ROOT_DIR\)/external/io_netcdf -lwrfio_nf -L$sw_netcdf_path/lib $sw_usenetcdff $sw_usenetcdf : ;
++ $_ =~ s:CONFIGURE_NETCDF_LIB_PATH:-L\$\(WRF_SRC_ROOT_DIR\)/external/io_netcdf -lwrfio_nf -L$sw_netcdf_path/lib -L$sw_netcdff_path/lib $sw_usenetcdff $sw_usenetcdf : ;
+ }
+ }
+ else