Add patch for missing comma at end of line in mgga_xc_b97mv.c

This commit is contained in:
Matthias Krack 2022-12-14 10:42:14 +01:00
parent dcdcc0020b
commit 385cb981c5
2 changed files with 17 additions and 0 deletions

View file

@ -39,6 +39,10 @@ case "$with_libxc" in
[ -d libxc-${libxc_ver} ] && rm -rf libxc-${libxc_ver}
tar -xzf libxc-${libxc_ver}.tar.gz
cd libxc-${libxc_ver}
# Fix missing comma at end of line in src/mgga_xc_b97mv.c
patch -p1 < "${SCRIPT_DIR}/stage3/libxc-${libxc_ver}_mgga_xc_b97mv.patch"
# CP2K does not make use of fourth derivatives, so skip their compilation with --disable-lxc
./configure --prefix="${pkg_install_dir}" --libdir="${pkg_install_dir}/lib" --disable-lxc \
> configure.log 2>&1 || tail -n ${LOG_LINES} configure.log

View file

@ -0,0 +1,13 @@
diff --git a/src/mgga_xc_b97mv.c b/src/mgga_xc_b97mv.c
index 111319f57..b68dea598 100644
--- a/src/mgga_xc_b97mv.c
+++ b/src/mgga_xc_b97mv.c
@@ -17,7 +17,7 @@ typedef struct {
#define N_PAR 15
static const char *names[N_PAR] = {
- "_cx00", "_cx01", "_cx02", "_cx10", "_cx11"
+ "_cx00", "_cx01", "_cx02", "_cx10", "_cx11",
"_css00", "_css02", "_css10", "_css32", "_css42",
"_cos00", "_cos01", "_cos03", "_cos10", "_cos32"};
static const char *desc[N_PAR] = {