Subject: bug#55846: closed (Re: bug#55846: make bootstrap -j2 fails on macOS)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 10 Jun 2022 08:36:02 +0000

Your bug report

#55846: make bootstrap -j2 fails on macOS

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].

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

Subject: Re: bug#55846: make bootstrap -j2 fails on macOS
From: Mattias Engdegård <[email-masked]>
To: [email-masked]
Cc: Po Lu <[email-masked]>, Lars Ingebrigtsen <[email-masked]>, Alan Third <[email-masked]>, Joakim Verona <[email-masked]>
Date: Fri, 10 Jun 2022 10:35:42 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

I'm applying the first patch since it solves my problem without any apparent adverse effects. If anyone has a better idea, feel free to modify.

Subject: make bootstrap -j2 fails on macOS
From: Mattias Engdegård <[email-masked]>
To: [email-masked]
Date: Wed, 8 Jun 2022 12:41:54 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

nextstep/Makefile.in has the rule

${ns_check_file} ${ns_appdir}: ${srcdir}/${ns_appsrc} ${ns_appsrc}
	rm -rf ${ns_appdir}
	${MKDIR_P} ${ns_appdir}
	( cd ${srcdir}/${ns_appsrc} ; tar cfh - . ) | \
	  ( cd ${ns_appdir} ; umask 022; tar xf - )
	[ "`cd ${srcdir} && /bin/pwd`" = "`/bin/pwd`" ] || \
	  ( cd ${ns_appsrc} ; tar cfh - . ) | \
	    ( cd ${ns_appdir} ; umask 022; tar xf - )
	touch ${ns_appdir}

but because of its dual targets, ns_check_file and ns_appdir, it is unsafe to use in parallel builds and seems in fact often to be invoked twice at the same time, which leads to general confusion and eventual build failure.