git: c7a893d55e16 - main - science/psi4: Fix build on some systems

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 01 Dec 2022 22:15:47 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c7a893d55e16926776dd694bfbe5bb878ee55176

commit c7a893d55e16926776dd694bfbe5bb878ee55176
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-01 15:37:11 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-01 22:15:40 +0000

    science/psi4: Fix build on some systems
    
    ... by adding missing include for errno.
    
    Reported by:    fallout
---
 science/psi4/files/patch-psi4_src_psi4_libpsio_rw.cc | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/science/psi4/files/patch-psi4_src_psi4_libpsio_rw.cc b/science/psi4/files/patch-psi4_src_psi4_libpsio_rw.cc
new file mode 100644
index 000000000000..4343c2bdb981
--- /dev/null
+++ b/science/psi4/files/patch-psi4_src_psi4_libpsio_rw.cc
@@ -0,0 +1,12 @@
+- workaround for https://github.com/psi4/psi4/issues/2810
+
+--- psi4/src/psi4/libpsio/rw.cc.orig	2022-12-01 20:44:27 UTC
++++ psi4/src/psi4/libpsio/rw.cc
+@@ -32,6 +32,7 @@
+  */
+ 
+ #include <cstdio>
++#include <cerrno>
+ #include "psi4/libpsio/psio.h"
+ #include "psi4/libpsio/psio.hpp"
+ #include "psi4/psi4-dec.h"