Subject: bug#78923: closed (Re: bug#78924: 31.0.50; recent gnulib update breaks on current OSX (15.5))

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 29 Jun 2025 13:13:04 +0000

Your bug report

#78924: 31.0.50; recent gnulib update broke build on OSX 15.5

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
78924: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=78924
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#78924: 31.0.50; recent gnulib update breaks on current OSX (15.5)
From: Paul Eggert <[email-masked]>
To: Liam Stitt <[email-masked]>
Cc: [email-masked]
Date: Sun, 29 Jun 2025 06:11:55 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks for reporting that. I updated Gnulib and installed the attached 
patch to Emacs, which should fix things.

From 30bfb03adfa88e94c9f81eacbd125f96a32432c0 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email-masked]>
Date: Sun, 29 Jun 2025 06:07:23 -0700
Subject: [PATCH] Update from Gnulib by running admin/merge-gnulib

---
 lib/open.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/open.c b/lib/open.c
index 8356c14f5b3..d76372fd603 100644
--- a/lib/open.c
+++ b/lib/open.c
@@ -55,6 +55,10 @@ orig_open (const char *filename, int flags, mode_t mode)
 #include <sys/stat.h>
 #include <unistd.h>
 
+#ifndef HAVE_WORKING_O_DIRECTORY
+# define HAVE_WORKING_O_DIRECTORY false
+#endif
+
 #ifndef OPEN_TRAILING_SLASH_BUG
 # define OPEN_TRAILING_SLASH_BUG false
 #endif
-- 
2.48.1

Subject: 31.0.50; recent gnulib update broke build on OSX 15.5
From: Liam Stitt <[email-masked]>
To: [email-masked]
Date: Sun, 29 Jun 2025 03:26:43 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi. As of the recent gnulib update, building on Sequoia yields:

open.c:145:11: error: use of undeclared identifier 'HAVE_WORKING_O_DIRECTORY'
  145 |      || (!HAVE_WORKING_O_DIRECTORY && flags & O_DIRECTORY));
      |           ^