Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Sep 2024 21:04:32 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c005684472f8 - main - science/openmolcas: Fix build with gcc14
Message-ID:  <202409052104.485L4WIS015946@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit c005684472f840294c5b3c0e2df30046a4ad4a4f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-09-05 14:01:22 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-09-05 21:04:30 +0000

    science/openmolcas: Fix build with gcc14
    
    PR:             281246
    Reported by:    Lorenzo Salvadore <salvadore@freebsd.org>
---
 science/openmolcas/files/patch-src_parnell_parnell__unlink.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/science/openmolcas/files/patch-src_parnell_parnell__unlink.c b/science/openmolcas/files/patch-src_parnell_parnell__unlink.c
new file mode 100644
index 000000000000..edfd4660253a
--- /dev/null
+++ b/science/openmolcas/files/patch-src_parnell_parnell__unlink.c
@@ -0,0 +1,11 @@
+--- src/parnell/parnell_unlink.c.orig	2024-09-05 20:45:46 UTC
++++ src/parnell/parnell_unlink.c
+@@ -75,7 +75,7 @@ parnell_status_t parnell_unlink(char *fpath) {
+   }
+ 
+   /* try to delete file and catch errors but don't act on them */
+-  if (lstat(fpath, &info)) {
++  if (stat(fpath, &info)) {
+     /* if error other than "No such file or directory", report it */
+     if (errno != ENOENT) {
+       perror("parnell_unlink: error while calling stat on file");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409052104.485L4WIS015946>