diff --git a/tools/toolchain/scripts/stage3/install_libxc.sh b/tools/toolchain/scripts/stage3/install_libxc.sh index 833258f89f..eff502198b 100755 --- a/tools/toolchain/scripts/stage3/install_libxc.sh +++ b/tools/toolchain/scripts/stage3/install_libxc.sh @@ -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 diff --git a/tools/toolchain/scripts/stage3/libxc-6.0.0_mgga_xc_b97mv.patch b/tools/toolchain/scripts/stage3/libxc-6.0.0_mgga_xc_b97mv.patch new file mode 100644 index 0000000000..02446f697c --- /dev/null +++ b/tools/toolchain/scripts/stage3/libxc-6.0.0_mgga_xc_b97mv.patch @@ -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] = {