GNU bug report logs - #79681
30.2; Cannot build Emacs from release archive if source tree is read-only

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Philipp <p.stephani2@HIDDEN>; dated Thu, 23 Oct 2025 05:00:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 79681 <at> debbugs.gnu.org:


Received: (at 79681) by debbugs.gnu.org; 26 Oct 2025 09:59:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 26 05:59:15 2025
Received: from localhost ([127.0.0.1]:44194 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vCxWt-000532-H4
	for submit <at> debbugs.gnu.org; Sun, 26 Oct 2025 05:59:15 -0400
Received: from woodpecker.gentoo.org ([140.211.166.183]:51394
 helo=smtp.gentoo.org)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ulm@HIDDEN>) id 1vCxWr-00052l-BB
 for 79681 <at> debbugs.gnu.org; Sun, 26 Oct 2025 05:59:13 -0400
Received: from urania (p200300cbaf3a7600096c4abd746d37c4.dip0.t-ipconnect.de
 [IPv6:2003:cb:af3a:7600:96c:4abd:746d:37c4])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange secp256r1 server-signature RSA-PSS (4096 bits) server-digest
 SHA256) (No client certificate requested) (Authenticated sender: ulm)
 by smtp.gentoo.org (Postfix) with ESMTPSA id 14CFB335D27;
 Sun, 26 Oct 2025 09:59:03 +0000 (UTC)
From: =?utf-8?Q?Ulrich_M=C3=BCller?= <ulm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#79681: 30.2; Cannot build Emacs from release archive if
 source tree is read-only
In-Reply-To: <865xc2qbpd.fsf@HIDDEN> (Eli Zaretskii's message of "Sun, 26 Oct
 2025 11:00:46 +0200")
References: <m2qzuutds7.fsf@HIDDEN> <86a51iuqzx.fsf@HIDDEN>
 <F8B74607-2007-408D-8AAE-E234888A4CB7@HIDDEN>
 <86qzutu3hm.fsf@HIDDEN>
 <93B066AD-193C-4CD0-9EE4-03B753BCAD89@HIDDEN>
 <86o6pwu9ap.fsf@HIDDEN>
 <FC736657-11B0-44DE-956A-FBC75AA1F630@HIDDEN>
 <865xc2qbpd.fsf@HIDDEN>
Date: Sun, 26 Oct 2025 10:59:00 +0100
Message-ID: <u3476rnkr@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 79681
Cc: Philipp Stephani <p.stephani2@HIDDEN>, eggert@HIDDEN,
 79681 <at> debbugs.gnu.org, Ulrich Mueller <ulm@HIDDEN>, alan@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>>>>> On Sun, 26 Oct 2025, Eli Zaretskii wrote:

> So I give up at this point.  Unless Ulrich (CC'ed) has some ideas, or
> someone else comes up with patches, the limitation that the source
> tree must be writable will remain in place.  Eventually, I think we
> should remove the small-ja-dic option, at which point a large chunk of
> this problem will go away, and it will become reasonably easy to fix
> the rest.  For now, I'm not too motivated to fix this, sorry.

Gentoo has dropped the small-ja-dic flag some time ago, because we
concluded that the space saving is not worth the hassle:

| https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ed9473b9f640b5f8a6fc5a482465813189bb463
| app-editors/emacs: Drop the small-ja-dic flag
| This has saved 4.6 MiB of space for the installed image, which is
| insignificant compared to the total installation footprint of 190 MiB.

So, no objections here to removing the option.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.

Message received at 79681 <at> debbugs.gnu.org:


Received: (at 79681) by debbugs.gnu.org; 26 Oct 2025 09:01:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 26 05:01:01 2025
Received: from localhost ([127.0.0.1]:44082 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vCwcW-0001Wj-RJ
	for submit <at> debbugs.gnu.org; Sun, 26 Oct 2025 05:01:01 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48286)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vCwcU-0001WS-FN
 for 79681 <at> debbugs.gnu.org; Sun, 26 Oct 2025 05:00:59 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vCwcL-0003c9-Vv; Sun, 26 Oct 2025 05:00:50 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=2WqQarpjXK4xCKt+tXCY3mETefMn3Tnqg3q4JdisT4U=; b=jAPC2O+Ds8uA
 +Kn1lq9TIPSVqHPrg+pv7DzeXPwi5rUksrPZGbhqahXNIZzn8zDrQ7eWSBHLDV+5tSG2uUWFTDI2m
 N5bDmUDsVzok5uoHk2MpMHRkQCmS44C5xbDlc0jImVd1H/MNMwXMS+sFBiYkielrZoqXhe6rEGRGY
 5Mo6E8Cs+4znKSWqRUBFn8jNwL5oMpyCVNnntuRcAaqWsIJhtFjNLuCBMplwrIbRHqIJ4NhP+tG9g
 59ymKEaq12fLpHrS8xtWQPD2SmE9oKxb3VwexwgYBw5QPb6FZ1LpGhoQDGKq2Uyn0kZBGc4zB8U3G
 U+wk8DvXUWmFoK6hFKKFCA==;
Date: Sun, 26 Oct 2025 11:00:46 +0200
Message-Id: <865xc2qbpd.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Philipp Stephani <p.stephani2@HIDDEN>, Ulrich Mueller <ulm@HIDDEN>
In-Reply-To: <FC736657-11B0-44DE-956A-FBC75AA1F630@HIDDEN> (message from
 Philipp Stephani on Fri, 24 Oct 2025 16:49:42 +0200)
Subject: Re: bug#79681: 30.2; Cannot build Emacs from release archive if
 source tree is read-only
References: <m2qzuutds7.fsf@HIDDEN> <86a51iuqzx.fsf@HIDDEN>
 <F8B74607-2007-408D-8AAE-E234888A4CB7@HIDDEN> <86qzutu3hm.fsf@HIDDEN>
 <93B066AD-193C-4CD0-9EE4-03B753BCAD89@HIDDEN> <86o6pwu9ap.fsf@HIDDEN>
 <FC736657-11B0-44DE-956A-FBC75AA1F630@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79681
Cc: alan@HIDDEN, eggert@HIDDEN, 79681 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Philipp Stephani <p.stephani2@HIDDEN>
> Date: Fri, 24 Oct 2025 16:49:42 +0200
> Cc: alan@HIDDEN,
>  eggert@HIDDEN,
>  79681 <at> debbugs.gnu.org
> 
> 
> 
> > Am 24.10.2025 um 08:02 schrieb Eli Zaretskii <eliz@HIDDEN>:
> > 
> >> From: Philipp Stephani <p.stephani2@HIDDEN>
> >> Date: Thu, 23 Oct 2025 16:08:44 +0200
> >> Cc: Alan Third <alan@HIDDEN>,
> >> eggert@HIDDEN,
> >> 79681 <at> debbugs.gnu.org
> >> 
> >> 
> >> 
> >>> Am 23.10.2025 um 15:55 schrieb Eli Zaretskii <eliz@HIDDEN>:
> >>> 
> >>>> My guess is that since leim/small-ja-dic-option in the build tree didn't exist, Make generates it, so it's too new and it'll try to regenerate ja-dic.el in the source tree.
> >>> 
> >>> Why doesn't Make find small-ja-dic-option via VPATH?  Are you using
> >>> GNU Make?  If so, I think it should have found the file in the source
> >>> tree, and copying it should not be needed.
> >> 
> >> I just tried it with GNU Make from Homebrew (installed as gmake) and got the same error:
> >> 
> >> gmake[3]: Entering directory '/private/tmp/build/leim'
> >>  GEN      small-ja-dic-option
> >>  GEN      ../../emacs-30.2/leim/../lisp/leim/ja-dic/ja-dic.el
> >>  INFO     Processing OKURI-ARI entries
> >>  INFO     Processing POSTFIX entries
> >>  INFO     Processing PREFIX entries
> >>  INFO     Collecting OKURI-NASI entries
> >>  INFO     Collecting OKURI-NASI entries...    
> >>  [...]
> >>  INFO     Collecting OKURI-NASI entries...done
> >>  INFO     Processing OKURI-NASI entries
> >>  INFO     Processing OKURI-NASI entries...    
> >>  [...]
> >>  INFO     Processing OKURI-NASI entries...done
> >> File ja-dic.el is write-protected; try to save anyway? (yes or no) yes
> >> gmake[3]: Leaving directory '/private/tmp/build/leim'
> >> gmake[3]: Entering directory '/private/tmp/build/lisp'
> >>  ELC      leim/ja-dic/ja-dic.elc
> >>  INFO     Extracting OKURI-NASI entries...    
> >>  [...]
> >>  INFO     Extracting OKURI-NASI entries...done
> >>>> Error occurred processing ../../emacs-30.2/lisp/leim/ja-dic/ja-dic.el: File error (("Opening output file" "Cannot overwrite file" "/private/tmp/emacs-30.2/lisp/leim/ja-dic/ja-dic.elc"))
> > 
> > Please show the VPATH line(s) from leim/Makefile in that build.
> 
> There is no such line.  (It's also not present in leim/Makefile.in <http://makefile.in/> on master.)
> 
> I tried adding
> 
>    VPATH = ${srcdir}
> 
> to leim/Makefile manually, but that hasn't helped either.

After looking at this for some time, my conclusion is that there are
too many issues here.  Basically, the leim/ directory is not well
suited for building outside of the source tree; in particular, any
regeneration of the dictionary files modifies the files in the source
tree.

Some issues that I saw:

 . missing VPATH, without which small-ja-dic-option file which comes
   with the tarball is not found
 . the rule for updating small-ja-dic-option always generates a new
   file when building outside of the source tree, even if I add VPATH,
   because Make doesn't tweak $@ to include the directory when
   small-ja-dic-option from the tarball is found
 . I don't know how to modify the rule for small-ja-dic-option so that
   it compares with the file in the source tree, but generates a new
   file in the build tree: move-if-change doesn't support such an
   option
 . the rules to regenerate the dictionaries, ja-dic and others, all
   modify the files in the source tree, so if they need to be run
   (e.g., if the build is configured with --small-ja-dic=yes), the
   source tree must be writable

So I give up at this point.  Unless Ulrich (CC'ed) has some ideas, or
someone else comes up with patches, the limitation that the source
tree must be writable will remain in place.  Eventually, I think we
should remove the small-ja-dic option, at which point a large chunk of
this problem will go away, and it will become reasonably easy to fix
the rest.  For now, I'm not too motivated to fix this, sorry.

P.S. The macOS-specific issue still needs investigation, so comments
and suggestions about that are welcome.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.

Message received at 79681 <at> debbugs.gnu.org:


Received: (at 79681) by debbugs.gnu.org; 24 Oct 2025 14:50:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 24 10:50:04 2025
Received: from localhost ([127.0.0.1]:36679 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vCJ7D-000361-62
	for submit <at> debbugs.gnu.org; Fri, 24 Oct 2025 10:50:03 -0400
Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:39880)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <p.stephani2@HIDDEN>)
 id 1vCJ7A-00035K-44
 for 79681 <at> debbugs.gnu.org; Fri, 24 Oct 2025 10:50:01 -0400
Received: by mail-wr1-x433.google.com with SMTP id
 ffacd0b85a97d-427087ee59cso324316f8f.3
 for <79681 <at> debbugs.gnu.org>; Fri, 24 Oct 2025 07:50:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761317394; x=1761922194; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=rBYKd8tX116dPanKAUE+FEw40W2g2y5A+LEOXmDBwEk=;
 b=hk5p25VtwVsQKOXmfzPDieIADEaQRu5ldhC6IeTOjflpFkUE+pd68o2Um5bJC1+Y6T
 ZGr+8eoFhaJmnPKADFwmxHWRjfInFu+3V4BHNuHsE2ont69RWVLGlTmaxF/Xmuh36odF
 189azUgRIq+vY3zRYXZwGdjml8sst147Pc3wyJoLLQ42PBe8hAAqXhOeCefn6rUcL6yi
 hM3POKJ/7cQ+sqEKJaZA7gClD7xf7PTGIYmunjY8aw+s3vEAj/81JEU2WmQq6cCcUc7l
 zJol99GLfTrqPLXVnzt3R0kevQRqVMh0vzyVpvOm2ANMzRoB8+RaHLRavNtoeuFVnU0a
 DYAA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761317394; x=1761922194;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=rBYKd8tX116dPanKAUE+FEw40W2g2y5A+LEOXmDBwEk=;
 b=oaXykhyr0o1m2AoqAfglOdvGEWsPEFLfWdda02MkXRVzOUL+glepIPJAwzLsZ0jZnE
 F4/zy3K7mPWBSLs5B5dsj7T4LFDG1i0Ze1Vsa1WyoRlmda5Coac5/iSBdyDMaeMJujC0
 SVyx86SsInRr44vzjJWBug4z2gX2jQJIR7gUG4yglMd+56gwlLBKQZ8Db59YsJEDezSA
 d8K/WUpO+tjgtYiQxPKN2kh4+yiMt3inMMW4c6c0jOyPka14sxRPzDlzBLuqaf3c/6/C
 /sriSWOI6Kj+93rUzFWPXw3jFjBH68JDsdFjJ1ZTrt+IfBJOwuwqmk22cF5ug4Z15x3o
 JbLA==
X-Forwarded-Encrypted: i=1;
 AJvYcCXcsn/YDTKbxlIF0S3oaGOtOxajFE6jT+tSNqV4rtSqxHKBM72iMrBnvp15IEBMS3GMtFh6qQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yy+iQrfJQlQEg9/zoEJYA+wsKSGMqkv/mKAev3Fe9ufcI6c7HgY
 Jsdz8aC+DwMQaYJbkypM19yozEW3muSA9irSEC9Qss80nQaFuvjyDgKVqbXogw==
X-Gm-Gg: ASbGncvT8HlaRWU/lsWjm3qZEZ/n1w9Vfm22gDjDvzickL1FY45fMyV05zV/Q1z2LiJ
 VBsLHeg9OvQFd7libOPEwwNSFVhSj8NTBUG6Xpy5gydr3OPiACbLcY19CzZ7jvhIa+FWOqKKaC5
 cOkh+udiE+ELkUDoCnyPbAAXQrUFGBSQs/wOK+Lb00Ho0z2lFTH1wYzznNyOPpf7hdfy55lryrJ
 s0yCMG57jAumlVgta8Ta+Qcs/FMPSER8BlQ8JPMPsjS6TnTwbeTxv7ZBuQZhf+fexQNQWuTxp68
 xim2QuECjCLG/8jlmTi3rDOrMYvhG2XKojkYpeyjhCuCicx8F2auVl/aolEjtwermeDIdESMfAf
 eOU7PTCQKFL1UzF4Yu1tuRdumm5cU0t2pTqzhXqHPe+causuo6zrsY00/Ajymi6gZf4tO9vTGQk
 AOR8sp+IGe9in5Xut4wWzUmh3PgdxxSJYmPeIr15jMkc+n
X-Google-Smtp-Source: AGHT+IEQp8jq+dB/0fTu8Ran0LfRFG4i/ccs/zTa+mNw+EVA0j9yq1XSqtMnkDt+L3DrWjJYuy/avw==
X-Received: by 2002:a05:6000:26c3:b0:3e7:1f63:6e66 with SMTP id
 ffacd0b85a97d-4284e56d1acmr5764183f8f.5.1761317393530; 
 Fri, 24 Oct 2025 07:49:53 -0700 (PDT)
Received: from smtpclient.apple ([2001:a61:3a9a:e01:b5a1:39ed:3171:8c36])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-429898acc6esm9499190f8f.25.2025.10.24.07.49.52
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 24 Oct 2025 07:49:52 -0700 (PDT)
Content-Type: text/plain;
	charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.100.1.1.5\))
Subject: Re: bug#79681: 30.2; Cannot build Emacs from release archive if
 source tree is read-only
From: Philipp Stephani <p.stephani2@HIDDEN>
In-Reply-To: <86o6pwu9ap.fsf@HIDDEN>
Date: Fri, 24 Oct 2025 16:49:42 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <FC736657-11B0-44DE-956A-FBC75AA1F630@HIDDEN>
References: <m2qzuutds7.fsf@HIDDEN> <86a51iuqzx.fsf@HIDDEN>
 <F8B74607-2007-408D-8AAE-E234888A4CB7@HIDDEN> <86qzutu3hm.fsf@HIDDEN>
 <93B066AD-193C-4CD0-9EE4-03B753BCAD89@HIDDEN> <86o6pwu9ap.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3864.100.1.1.5)
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 79681
Cc: alan@HIDDEN, eggert@HIDDEN, 79681 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)



> Am 24.10.2025 um 08:02 schrieb Eli Zaretskii <eliz@HIDDEN>:
>=20
>> From: Philipp Stephani <p.stephani2@HIDDEN>
>> Date: Thu, 23 Oct 2025 16:08:44 +0200
>> Cc: Alan Third <alan@HIDDEN>,
>> eggert@HIDDEN,
>> 79681 <at> debbugs.gnu.org
>>=20
>>=20
>>=20
>>> Am 23.10.2025 um 15:55 schrieb Eli Zaretskii <eliz@HIDDEN>:
>>>=20
>>>> My guess is that since leim/small-ja-dic-option in the build tree =
didn't exist, Make generates it, so it's too new and it'll try to =
regenerate ja-dic.el in the source tree.
>>>=20
>>> Why doesn't Make find small-ja-dic-option via VPATH?  Are you using
>>> GNU Make?  If so, I think it should have found the file in the =
source
>>> tree, and copying it should not be needed.
>>=20
>> I just tried it with GNU Make from Homebrew (installed as gmake) and =
got the same error:
>>=20
>> gmake[3]: Entering directory '/private/tmp/build/leim'
>>  GEN      small-ja-dic-option
>>  GEN      ../../emacs-30.2/leim/../lisp/leim/ja-dic/ja-dic.el
>>  INFO     Processing OKURI-ARI entries
>>  INFO     Processing POSTFIX entries
>>  INFO     Processing PREFIX entries
>>  INFO     Collecting OKURI-NASI entries
>>  INFO     Collecting OKURI-NASI entries...   =20
>>  [...]
>>  INFO     Collecting OKURI-NASI entries...done
>>  INFO     Processing OKURI-NASI entries
>>  INFO     Processing OKURI-NASI entries...   =20
>>  [...]
>>  INFO     Processing OKURI-NASI entries...done
>> File ja-dic.el is write-protected; try to save anyway? (yes or no) =
yes
>> gmake[3]: Leaving directory '/private/tmp/build/leim'
>> gmake[3]: Entering directory '/private/tmp/build/lisp'
>>  ELC      leim/ja-dic/ja-dic.elc
>>  INFO     Extracting OKURI-NASI entries...   =20
>>  [...]
>>  INFO     Extracting OKURI-NASI entries...done
>>>> Error occurred processing =
../../emacs-30.2/lisp/leim/ja-dic/ja-dic.el: File error (("Opening =
output file" "Cannot overwrite file" =
"/private/tmp/emacs-30.2/lisp/leim/ja-dic/ja-dic.elc"))
>=20
> Please show the VPATH line(s) from leim/Makefile in that build.

There is no such line.  (It's also not present in leim/Makefile.in =
<http://makefile.in/> on master.)

I tried adding

   VPATH =3D ${srcdir}

to leim/Makefile manually, but that hasn't helped either.=




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.

Message received at 79681 <at> debbugs.gnu.org:


Received: (at 79681) by debbugs.gnu.org; 24 Oct 2025 06:02:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 24 02:02:36 2025
Received: from localhost ([127.0.0.1]:34838 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vCAsm-0001oZ-5M
	for submit <at> debbugs.gnu.org; Fri, 24 Oct 2025 02:02:36 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57190)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vCAsj-0001oF-9y
 for 79681 <at> debbugs.gnu.org; Fri, 24 Oct 2025 02:02:34 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vCAsc-0008T6-5s; Fri, 24 Oct 2025 02:02:26 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=FCOGt1TSxksBmKA0EvOQQox4cpxyKLbaRGLnaxm7p/w=; b=cxaOVtTX5zQO
 ax2VeJfZj+t5YbKwAPCEUN7vM3oGy5oX6G1QeLmHXAtOPMx1us/Axd7T5+H8mf111NvpmMPbxfV9p
 nz1RUY7UKgCwDPf+KSONEQ20EyNK5COVM/PXu/v62nGvG+2LlvNa4Zp2wgaIC+fCl/ZHhdASE/Y56
 h+WvrNVQxHKn2ywZwIRjP+pRFN5m3KHJxNVbhlSrYE1pNg0sqwhI13nr9CK/uDrPvI2Bw70mqiMfd
 TdW3XGuyd4d14tQgaYh0OTaE4bf4HoObCOlHAA4NoQ8yrGcoXxWBlqoWJQ1B/A3mcQnVezM9cjHqt
 avsdOJGUTMlSDlgAdoWCqQ==;
Date: Fri, 24 Oct 2025 09:02:22 +0300
Message-Id: <86o6pwu9ap.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Philipp Stephani <p.stephani2@HIDDEN>
In-Reply-To: <93B066AD-193C-4CD0-9EE4-03B753BCAD89@HIDDEN> (message from
 Philipp Stephani on Thu, 23 Oct 2025 16:08:44 +0200)
Subject: Re: bug#79681: 30.2; Cannot build Emacs from release archive if
 source tree is read-only
References: <m2qzuutds7.fsf@HIDDEN> <86a51iuqzx.fsf@HIDDEN>
 <F8B74607-2007-408D-8AAE-E234888A4CB7@HIDDEN> <86qzutu3hm.fsf@HIDDEN>
 <93B066AD-193C-4CD0-9EE4-03B753BCAD89@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79681
Cc: alan@HIDDEN, eggert@HIDDEN, 79681 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Philipp Stephani <p.stephani2@HIDDEN>
> Date: Thu, 23 Oct 2025 16:08:44 +0200
> Cc: Alan Third <alan@HIDDEN>,
>  eggert@HIDDEN,
>  79681 <at> debbugs.gnu.org
> 
> 
> 
> > Am 23.10.2025 um 15:55 schrieb Eli Zaretskii <eliz@HIDDEN>:
> > 
> >> My guess is that since leim/small-ja-dic-option in the build tree didn't exist, Make generates it, so it's too new and it'll try to regenerate ja-dic.el in the source tree.
> > 
> > Why doesn't Make find small-ja-dic-option via VPATH?  Are you using
> > GNU Make?  If so, I think it should have found the file in the source
> > tree, and copying it should not be needed.
> 
> I just tried it with GNU Make from Homebrew (installed as gmake) and got the same error:
> 
> gmake[3]: Entering directory '/private/tmp/build/leim'
>   GEN      small-ja-dic-option
>   GEN      ../../emacs-30.2/leim/../lisp/leim/ja-dic/ja-dic.el
>   INFO     Processing OKURI-ARI entries
>   INFO     Processing POSTFIX entries
>   INFO     Processing PREFIX entries
>   INFO     Collecting OKURI-NASI entries
>   INFO     Collecting OKURI-NASI entries...    
>   [...]
>   INFO     Collecting OKURI-NASI entries...done
>   INFO     Processing OKURI-NASI entries
>   INFO     Processing OKURI-NASI entries...    
>   [...]
>   INFO     Processing OKURI-NASI entries...done
> File ja-dic.el is write-protected; try to save anyway? (yes or no) yes
> gmake[3]: Leaving directory '/private/tmp/build/leim'
> gmake[3]: Entering directory '/private/tmp/build/lisp'
>   ELC      leim/ja-dic/ja-dic.elc
>   INFO     Extracting OKURI-NASI entries...    
>   [...]
>   INFO     Extracting OKURI-NASI entries...done
> >>Error occurred processing ../../emacs-30.2/lisp/leim/ja-dic/ja-dic.el: File error (("Opening output file" "Cannot overwrite file" "/private/tmp/emacs-30.2/lisp/leim/ja-dic/ja-dic.elc"))

Please show the VPATH line(s) from leim/Makefile in that build.

> $ gmake --version
> GNU Make 4.4.1
> 
> macOS ships an old version of GNU Make:
> $ make --version
> GNU Make 3.81

Make 3.81 should be good enough, that's the minimal version we
require.  VPATH is fully supported by 3.81.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.

Message received at 79681 <at> debbugs.gnu.org:


Received: (at 79681) by debbugs.gnu.org; 23 Oct 2025 19:34:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 23 15:34:03 2025
Received: from localhost ([127.0.0.1]:33774 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vC14V-0002wk-JL
	for submit <at> debbugs.gnu.org; Thu, 23 Oct 2025 15:34:03 -0400
Received: from mail.cs.ucla.edu ([131.179.128.66]:60156)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eggert@HIDDEN>)
 id 1vC14S-0002wG-VE
 for 79681 <at> debbugs.gnu.org; Thu, 23 Oct 2025 15:34:01 -0400
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id ECB953C01EBB2;
 Thu, 23 Oct 2025 12:33:54 -0700 (PDT)
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP
 id FUFcAGjBCBIK; Thu, 23 Oct 2025 12:33:54 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id C3C533C01FA12;
 Thu, 23 Oct 2025 12:33:54 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu C3C533C01FA12
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1761248034;
 bh=eyHJJOITBc7M5zFGoAss/fVuiusz2WFQdA78Xf4s1qI=;
 h=Message-ID:Date:MIME-Version:To:From;
 b=P5/KH/JBp/CpoZbmymxgmEcQE+ZV93oOc1prCHqKfN3GUIko4SefxZaI8Pc482fS3
 1yC/9iWn64YJbiFoQzxOn+4Fpr5stwpSRecp437lrmk9D4BT0tplouDNcf82M+OYnn
 IWvSkJwGGYxxmc0jgR0H1K82n14GXz5Nw1oP8KoTCGModaMUUmvAwFxjg4CcRQRLYk
 abjYWUGWRYIHXt3unwyrZxOakCoQaMxNOTNh79ngVgZ1XRZWxXVLfBXt7WZKfBEwBD
 WljPMu7O3HXsmz0DXIFdzim+zW32aX7cDNTFEXzSIXGc9vs3hOZGYAWYGB3buFu9fT
 WE/sYXO3UQpWw==
X-Virus-Scanned: amavis at mail.cs.ucla.edu
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP
 id PGpQ7WIqnYra; Thu, 23 Oct 2025 12:33:54 -0700 (PDT)
Received: from penguin.cs.ucla.edu
 (47-154-25-30.fdr01.snmn.ca.ip.frontiernet.net [47.154.25.30])
 by mail.cs.ucla.edu (Postfix) with ESMTPSA id A44BA3C01EBB2;
 Thu, 23 Oct 2025 12:33:54 -0700 (PDT)
Message-ID: <02a948fe-fc06-46e8-b25d-980356f46b20@HIDDEN>
Date: Thu, 23 Oct 2025 12:33:52 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#79681: 30.2; Cannot build Emacs from release archive if
 source tree is read-only
To: Eli Zaretskii <eliz@HIDDEN>, Philipp <p.stephani2@HIDDEN>
References: <m2qzuutds7.fsf@HIDDEN> <86a51iuqzx.fsf@HIDDEN>
Content-Language: en-US
From: Paul Eggert <eggert@HIDDEN>
Organization: UCLA Computer Science Department
In-Reply-To: <86a51iuqzx.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 79681
Cc: 79681 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 2025-10-22 22:27, Eli Zaretskii wrote:
> Paul, do you see any reasons why we have $srcdir in that place?

Not offhand, no. Not that I am following this issue closely.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.

Message received at 79681 <at> debbugs.gnu.org:


Received: (at 79681) by debbugs.gnu.org; 23 Oct 2025 14:09:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 23 10:09:09 2025
Received: from localhost ([127.0.0.1]:33096 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vBw05-0005Aq-7u
	for submit <at> debbugs.gnu.org; Thu, 23 Oct 2025 10:09:09 -0400
Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]:40676)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <p.stephani2@HIDDEN>)
 id 1vBvzy-0005AA-LQ
 for 79681 <at> debbugs.gnu.org; Thu, 23 Oct 2025 10:09:06 -0400
Received: by mail-ej1-x62d.google.com with SMTP id
 a640c23a62f3a-b6d551bcd62so13568266b.2
 for <79681 <at> debbugs.gnu.org>; Thu, 23 Oct 2025 07:09:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761228536; x=1761833336; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=HIu9+AkImIkNpcxtU/6Z6sW3xXp1mBuxl51X1nbl1Vs=;
 b=aF3jdG/LSMKZa0hKN5zPU5tXfOAnpAdUyOtkY6+dBmb3Q6QWVIup1/FTp7hpSUFOyD
 TcuUxAvQCTAGMQR5YXjR67LaAyVg0CzVx8izLK1X4/xXeTLEUNrQRhwgxV5bTrGpb8S7
 nN0ZB72zKzC1msI40ZysINOQytadCUOvxeawHr+sHviRvfnfEc3Jvs0dIwF4i+i7jts6
 Oa3ITXP6MxtsSUfDV6vDFaL+uSqV7RFohF9JdCrH3WdhZZnfXIeKf8WiWQf68fpNhWRE
 hGFxPaXOBQGtvl4BgX7SmLe5jB4v68q44vG9ZvW2z5Q+m5nze65ELNmHyDq0fwqJuuCi
 vhyA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761228536; x=1761833336;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=HIu9+AkImIkNpcxtU/6Z6sW3xXp1mBuxl51X1nbl1Vs=;
 b=I0WaSrCmvVi9b9e8pp4jE72MjOto3FwfVOyShInRUuC1DBf2JN5wFbmnEH1FPNLh13
 XzzXVIKy53qjSInrt9TPsIhSsDFrdQfDFyprU/duiMirp3gAqEXjnPudgPAYc8+T9Oyc
 LfKBLnDMVDEyJF+xeW+GxYs8ctNOwsjlpI7ZGeg1w8WY51tQn7nVDhFYcvde0Av/LJLY
 gfP18rvDYVWvEJkkrqw0yV10llvrkDe0+97WY3xMEuPG3FGD8iMqHt/GPPZH4YJ2AVRo
 MIhuvsksFFkixLIueoW5DDiTy47YQjFSJ4kK29jZL8++YD/xxmdXYOQsUlL3SWute+PB
 TSTA==
X-Forwarded-Encrypted: i=1;
 AJvYcCV3eO47IcavZLAMTjttyeUI+gLEy+eHIOLT/IyADL/L34vu6BgLKuuxQuMRj0wwn5oZbt3Auw==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YwiBF3OH5NKPK5AenSsDc+WNFfz9WX2Hy74e0sO2RKzgp4o7+jj
 5pOi+d16ih1USN1RksCVEouFcIkf7QojFvoZMuDczJWo9Xxfh83f8eVh
X-Gm-Gg: ASbGncvJenDfKL6rvEmy68Mo3AWN7rp4X+DO6gU5AA01fs+B6/s/L1NgERKj7W3te2Q
 ppiscmWAIOVJRyewQPcAlQKsmu5d9DEpIVosO9gUmlnpw2XWKVi/Xw9mWOxs1lBUgUEZkPg2QVg
 oDRK6ukPEfhU49Zjhv6Ba+yQ+4ZMMzd/hZJ/XJCkqVpHwxM7Kmvv3cIIxgRW03P+ezL7o3N8NXk
 hHtPjHYj5dBAY8jyLurk19XL8+g9uEBC7Af628i2duj0Ll5SDcb9A6tIvMGCsaQabD7MlV8pCv3
 XfiyNt04rAw1O9CdvbSd58dRJZj43PWpFFFE60UdEOsojIS5jq1EUSwl4+7zPA02F/1bo902T/v
 Q5eJ9NZbTPy1ZPTyb4HXgHnHgYH07LwoUn2yKncC2SQs1ah7IWjOaITKgqzAziQH3eHLcVTDlu/
 FmM1ZMO9tNQI+C3lpQTsG21vG2RYxw2Fe25Bd2moODqQE9
X-Google-Smtp-Source: AGHT+IEdXlk7JADHwxxJGC7ityam7TxCLTXDlQdRDihiYoYHuPE8D5j79ZDvaG+aSZZ1gA8zQAuMeQ==
X-Received: by 2002:a17:907:c24:b0:b38:7f08:8478 with SMTP id
 a640c23a62f3a-b6c72716445mr734190266b.0.1761228536009; 
 Thu, 23 Oct 2025 07:08:56 -0700 (PDT)
Received: from smtpclient.apple ([2001:a61:3a9a:e01:60dd:de02:4431:3803])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-b6d511f7b1dsm232535166b.19.2025.10.23.07.08.55
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 23 Oct 2025 07:08:55 -0700 (PDT)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.100.1.1.5\))
Subject: Re: bug#79681: 30.2; Cannot build Emacs from release archive if
 source tree is read-only
From: Philipp Stephani <p.stephani2@HIDDEN>
In-Reply-To: <86qzutu3hm.fsf@HIDDEN>
Date: Thu, 23 Oct 2025 16:08:44 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <93B066AD-193C-4CD0-9EE4-03B753BCAD89@HIDDEN>
References: <m2qzuutds7.fsf@HIDDEN> <86a51iuqzx.fsf@HIDDEN>
 <F8B74607-2007-408D-8AAE-E234888A4CB7@HIDDEN> <86qzutu3hm.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3864.100.1.1.5)
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 79681
Cc: Alan Third <alan@HIDDEN>, eggert@HIDDEN, 79681 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)



> Am 23.10.2025 um 15:55 schrieb Eli Zaretskii <eliz@HIDDEN>:
>=20
>> From: Philipp Stephani <p.stephani2@HIDDEN>
>> Date: Thu, 23 Oct 2025 15:35:24 +0200
>> Cc: Paul Eggert <eggert@HIDDEN>,
>> 79681 <at> debbugs.gnu.org
>>=20
>>> Does it mean there are other files in the source tree that we write
>>> to?  If so, please name them, or show the relevant error messages.
>>=20
>> After running
>>=20
>> ../emacs-30.2/configure --without-ns --without-all --without-x  =
--with-x-toolkit=3Dno
>>=20
>> with the configure.ac patch applied (and running autogen.sh to =
regenerate configure; ../emacs-30.2 is the source tree), I get this =
message:
>>=20
>>  GEN      small-ja-dic-option
>>  GEN      ../../emacs-30.2/leim/../lisp/leim/ja-dic/ja-dic.el
>>  INFO     Processing OKURI-ARI entries
>>  INFO     Processing POSTFIX entries
>>  INFO     Processing PREFIX entries
>>  INFO     Collecting OKURI-NASI entries
>>  [...]
>>  INFO     Processing OKURI-NASI entries...done
>> File ja-dic.el is write-protected; try to save anyway? (yes or no) no
>>=20
>> Error: error ("Attempt to save to a file that you aren=E2=80=99t =
allowed to write")
>>  signal(error ("Attempt to save to a file that you aren=E2=80=99t =
allowed to write"))
>>  error("Attempt to save to a file that you aren't allowed to write")
>>  basic-save-buffer-2()
>>  basic-save-buffer-1()
>>  basic-save-buffer(nil)
>>  save-buffer(0)
>>  skkdic-convert("/private/tmp/emacs-30.2/leim/SKK-DIC/SKK-JISYO.L" =
"/private/tmp/emacs-30.2/lisp/leim/ja-dic" t)
>>  batch-skkdic-convert()
>>  command-line-1(("-l" "ja-dic-cnv" "-f" "batch-skkdic-convert" "-dir" =
"../../emacs-30.2/leim/../lisp/leim/ja-dic" "--no-reduction" =
"../../emacs-30.2/leim/SKK-DIC/SKK-JISYO.L"))
>>  command-line()
>>  normal-top-level()
>> Attempt to save to a file that you aren=E2=80=99t allowed to write
>>=20
>> Error (auto-save): Auto-saving ja-dic.el: Opening output file: =
Permission denied, /private/tmp/emacs-30.2/lisp/leim/ja-dic/#ja-dic.el#
>> make[3]: *** [../../emacs-30.2/leim/../lisp/leim/ja-dic/ja-dic.el] =
Error 255
>> make[2]: *** [generate-ja-dic] Error 2
>> make[1]: *** [lisp] Error 2
>>=20
>>=20
>> My guess is that since leim/small-ja-dic-option in the build tree =
didn't exist, Make generates it, so it's too new and it'll try to =
regenerate ja-dic.el in the source tree.
>=20
> Why doesn't Make find small-ja-dic-option via VPATH?  Are you using
> GNU Make?  If so, I think it should have found the file in the source
> tree, and copying it should not be needed.

I just tried it with GNU Make from Homebrew (installed as gmake) and got =
the same error:

gmake[3]: Entering directory '/private/tmp/build/leim'
  GEN      small-ja-dic-option
  GEN      ../../emacs-30.2/leim/../lisp/leim/ja-dic/ja-dic.el
  INFO     Processing OKURI-ARI entries
  INFO     Processing POSTFIX entries
  INFO     Processing PREFIX entries
  INFO     Collecting OKURI-NASI entries
  INFO     Collecting OKURI-NASI entries...   =20
  [...]
  INFO     Collecting OKURI-NASI entries...done
  INFO     Processing OKURI-NASI entries
  INFO     Processing OKURI-NASI entries...   =20
  [...]
  INFO     Processing OKURI-NASI entries...done
File ja-dic.el is write-protected; try to save anyway? (yes or no) yes
gmake[3]: Leaving directory '/private/tmp/build/leim'
gmake[3]: Entering directory '/private/tmp/build/lisp'
  ELC      leim/ja-dic/ja-dic.elc
  INFO     Extracting OKURI-NASI entries...   =20
  [...]
  INFO     Extracting OKURI-NASI entries...done
>>Error occurred processing ../../emacs-30.2/lisp/leim/ja-dic/ja-dic.el: =
File error (("Opening output file" "Cannot overwrite file" =
"/private/tmp/emacs-30.2/lisp/leim/ja-dic/ja-dic.elc"))

Error: permission-denied ("Removing old name" "Permission denied" =
"/private/tmp/emacs-30.2/lisp/leim/ja-dic/ja-dic.elc")
  =
delete-file-internal("/private/tmp/emacs-30.2/lisp/leim/ja-dic/ja-dic.elc"=
)
  delete-file("../../emacs-30.2/lisp/leim/ja-dic/ja-dic.elc")
  batch-byte-compile-file("../../emacs-30.2/lisp/leim/ja-dic/ja-dic.el")
  batch-byte-compile()
  command-line-1(("--eval" "(setq load-prefer-newer t =
byte-compile-warnings 'all)" "--eval" "(setq org--inhibit-version-check =
t)" "-f" "batch-byte-compile" =
"../../emacs-30.2/lisp/leim/ja-dic/ja-dic.el"))
  command-line()
  normal-top-level()
Removing old name: Permission denied, =
/private/tmp/emacs-30.2/lisp/leim/ja-dic/ja-dic.elc
gmake[3]: *** [Makefile:335: leim/ja-dic/ja-dic.elc] Error 255
gmake[3]: Leaving directory '/private/tmp/build/lisp'
gmake[2]: *** [Makefile:174: generate-ja-dic] Error 2
gmake[2]: Leaving directory '/private/tmp/build/lisp'
gmake[1]: *** [Makefile:537: lisp] Error 2

(I answered "yes" instead of "no" this time just to see what happens, =
but it just failed with a different error.)

$ gmake --version
GNU Make 4.4.1

macOS ships an old version of GNU Make:
$ make --version
GNU Make 3.81





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.

Message received at 79681 <at> debbugs.gnu.org:


Received: (at 79681) by debbugs.gnu.org; 23 Oct 2025 13:56:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 23 09:56:00 2025
Received: from localhost ([127.0.0.1]:33064 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vBvnI-0004Uv-NX
	for submit <at> debbugs.gnu.org; Thu, 23 Oct 2025 09:56:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47558)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vBvnD-0004Uc-3Y
 for 79681 <at> debbugs.gnu.org; Thu, 23 Oct 2025 09:55:54 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vBvn4-0005D4-Iz; Thu, 23 Oct 2025 09:55:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=cN5H3I8+mkEJP8wiha5wkcGdIAYrEUM3VLdZMXyS0/o=; b=XFzhPQ8c+Q2I12BllmDW
 CG5YNI17UCf02WXT/6xCqxkP8q+qGoGAsvdor3BQ4Mud5Uiof/hchcS4+L9TfqA2H6u8sSukbSTVT
 4EzPGToppKdEIG2JUzwa/JzbhEw8Un4nER4s9S/ZBd+lr0YyPo176xDG9gQXBNpF9K66y9OD55Ch5
 hxmbtae3WGAFTd4v+cv35/4bWwaIxYdVF4itKDzDUzX36yMkSQGkAqi6B/kIdbR5zoaEb+UEXRn0Y
 7vs0hE7GC8ThiMFZ1X7YzCZjkILnYDhk3j1ac6dCOqEm3yyR0WPxdWuyLJ9S9sqZG+4MrvZaBn7A8
 qO7hUejzn9s6Ww==;
Date: Thu, 23 Oct 2025 16:55:33 +0300
Message-Id: <86qzutu3hm.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Philipp Stephani <p.stephani2@HIDDEN>, Alan Third <alan@HIDDEN>
In-Reply-To: <F8B74607-2007-408D-8AAE-E234888A4CB7@HIDDEN> (message from
 Philipp Stephani on Thu, 23 Oct 2025 15:35:24 +0200)
Subject: Re: bug#79681: 30.2; Cannot build Emacs from release archive if
 source tree is read-only
References: <m2qzuutds7.fsf@HIDDEN> <86a51iuqzx.fsf@HIDDEN>
 <F8B74607-2007-408D-8AAE-E234888A4CB7@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79681
Cc: eggert@HIDDEN, 79681 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Philipp Stephani <p.stephani2@HIDDEN>
> Date: Thu, 23 Oct 2025 15:35:24 +0200
> Cc: Paul Eggert <eggert@HIDDEN>,
>  79681 <at> debbugs.gnu.org
> 
> > Does it mean there are other files in the source tree that we write
> > to?  If so, please name them, or show the relevant error messages.
> 
> After running
> 
> ../emacs-30.2/configure --without-ns --without-all --without-x  --with-x-toolkit=no
> 
> with the configure.ac patch applied (and running autogen.sh to regenerate configure; ../emacs-30.2 is the source tree), I get this message:
> 
>   GEN      small-ja-dic-option
>   GEN      ../../emacs-30.2/leim/../lisp/leim/ja-dic/ja-dic.el
>   INFO     Processing OKURI-ARI entries
>   INFO     Processing POSTFIX entries
>   INFO     Processing PREFIX entries
>   INFO     Collecting OKURI-NASI entries
>   [...]
>   INFO     Processing OKURI-NASI entries...done
> File ja-dic.el is write-protected; try to save anyway? (yes or no) no
> 
> Error: error ("Attempt to save to a file that you aren’t allowed to write")
>   signal(error ("Attempt to save to a file that you aren’t allowed to write"))
>   error("Attempt to save to a file that you aren't allowed to write")
>   basic-save-buffer-2()
>   basic-save-buffer-1()
>   basic-save-buffer(nil)
>   save-buffer(0)
>   skkdic-convert("/private/tmp/emacs-30.2/leim/SKK-DIC/SKK-JISYO.L" "/private/tmp/emacs-30.2/lisp/leim/ja-dic" t)
>   batch-skkdic-convert()
>   command-line-1(("-l" "ja-dic-cnv" "-f" "batch-skkdic-convert" "-dir" "../../emacs-30.2/leim/../lisp/leim/ja-dic" "--no-reduction" "../../emacs-30.2/leim/SKK-DIC/SKK-JISYO.L"))
>   command-line()
>   normal-top-level()
> Attempt to save to a file that you aren’t allowed to write
> 
> Error (auto-save): Auto-saving ja-dic.el: Opening output file: Permission denied, /private/tmp/emacs-30.2/lisp/leim/ja-dic/#ja-dic.el#
> make[3]: *** [../../emacs-30.2/leim/../lisp/leim/ja-dic/ja-dic.el] Error 255
> make[2]: *** [generate-ja-dic] Error 2
> make[1]: *** [lisp] Error 2
> 
> 
> My guess is that since leim/small-ja-dic-option in the build tree didn't exist, Make generates it, so it's too new and it'll try to regenerate ja-dic.el in the source tree.

Why doesn't Make find small-ja-dic-option via VPATH?  Are you using
GNU Make?  If so, I think it should have found the file in the source
tree, and copying it should not be needed.

> If I run configure on macOS/Darwin without any options, it'll try to build a graphical ("nextstep") app.  This fails in the following step:

This is NS-specific, so someone who is familiar with macOS needs to
look at that.  Maybe Alan could help.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.

Message received at 79681 <at> debbugs.gnu.org:


Received: (at 79681) by debbugs.gnu.org; 23 Oct 2025 13:35:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 23 09:35:54 2025
Received: from localhost ([127.0.0.1]:60576 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vBvTq-0003Dz-2G
	for submit <at> debbugs.gnu.org; Thu, 23 Oct 2025 09:35:54 -0400
Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:39090)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <p.stephani2@HIDDEN>)
 id 1vBvTj-0003D8-4M
 for 79681 <at> debbugs.gnu.org; Thu, 23 Oct 2025 09:35:47 -0400
Received: by mail-ej1-x630.google.com with SMTP id
 a640c23a62f3a-b3f5a6e114dso16709366b.0
 for <79681 <at> debbugs.gnu.org>; Thu, 23 Oct 2025 06:35:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761226537; x=1761831337; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=C3IpLOVXMgcwsucx03PRiY92szh1i5+Mtbn6JGZb5Dg=;
 b=G7njduQzgjryDLrPrKeypRHuPuf8G0QXNIVpwLdNwMI62UzO9ebYlTQ3igAc8i5wUI
 W2SLcttt2x1i4ritg/NG7ZK77s56gN/DOVOJfzxQUkuE5OPXFMKrDATtARAT4o4s4P7U
 MuCnK9ToHf2r4rNFIn94zNynBqJptnlSZyQbf3g0ocddse6BNq5RGU5I8GMZiCaGF3on
 dduihyQOZFxGgfYQNuG1wWLZkMXRthFMrtnIl3ZjuIROKN9YRGN/2ELKdo+eDlpxRs8O
 6y03jhuZFMGyb+xH5AcDWuebO3dG5adDjjQh2gzHLB3QhEl+zzucodgf75kcBXnjRaBC
 zNQg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761226537; x=1761831337;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=C3IpLOVXMgcwsucx03PRiY92szh1i5+Mtbn6JGZb5Dg=;
 b=HzPv2N9wcdHs3ymo2RfV5ZYdRgcU1rJIZ4b9CamginMBS8YNenAnPcvqAeoYQ6hPoT
 x4/vsz42vSwr8XWbLsNofH5Vcj8tkZTGptG5Ous7aH44RMWyBAdUPPKiAbHd1rz0j06I
 WNcLqlrbIVhaCyIj4750N2U1lTzJI2DQlUJL8NFOhEQEYILMstQIFYQ12fns35nKrAk/
 vYm3YLgDhPGSkn1tp7DEfeXH2z3a1CrMPENKg/ZmUdFzYorBNk7MQlN5RUb/F+aDTXQD
 NGW2pxQiRKmiftEd+KTWiRLyCtlXgn6Pys9j/Tjygc2W6b/QhgJXixH+mqXBpgj89DbS
 dekw==
X-Forwarded-Encrypted: i=1;
 AJvYcCUkV/J65a+Dchi9gOBWTHcGPg2NsV5N/Yw2sISAvYEr16hIbN2kTxIHxn7vdmAcSMBej4htlg==@debbugs.gnu.org
X-Gm-Message-State: AOJu0Yzhp7uTaEd/Ioq7LJOC/zgon/9SjwxJr2/HKAVfnuMEShwQ5zag
 HbgYEvMuzP9AVbEqbyjxnJ7plAH/aOL+QeoU0TdWd0ypjB1M4R7n8uUw
X-Gm-Gg: ASbGncvdoCCKgq2kmGwOC/4AJMSIh39e8xgc7i0B/bXkokqJuuQOBOBg64AanMN4qng
 8eJW45GcqvTo955WdSeNWCPMmBJ2pZWmtW2Y3SJ2ofpVADNH2yL87ffD8fdwkc4xRRXZla4P1ws
 wRp/luQGRmM4HVDD6RA3wbkEZw4y9ajVztNJvBwWeYNFducK9gXmo3CbdNLVYDGlE00DlHHFhSh
 5hy1qfrXhhQnXTUFSpcnfL/INCLl0sBwet0vTdiSQWHb6SfyT6d89RAtRPpWzmV6UAGpcl4wIh4
 pzh9vqWSE9k4mqwoECZzS/3c7FHgmg/bfIhpFhy3HfU/h0rh/HqJ8fc+fLVuZj4RVYf9FXK4O7O
 Kvu57twpi/BozDQnZsJLAqnP96NxD8xDf+OPnXAcnYkb4fGbD4B7TOb9I+ItNXx5KtgVY4qIy9B
 ToibwYkWwf6OQiYhoD0XlXKAcI4cVun+51w5TAVhEiePE4
X-Google-Smtp-Source: AGHT+IFkosOVbvMHbnGlur4QdHlvfXXCp/mIPMcklIrb/wLlxGX+kXbx4AZJVAebUGGlKxXuswKz/A==
X-Received: by 2002:a17:907:3f94:b0:b0b:6fe0:ed53 with SMTP id
 a640c23a62f3a-b6c798e4b05mr756712666b.7.1761226536280; 
 Thu, 23 Oct 2025 06:35:36 -0700 (PDT)
Received: from smtpclient.apple ([2001:a61:3a9a:e01:60dd:de02:4431:3803])
 by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-b6d5f9f2ca6sm35460066b.17.2025.10.23.06.35.35
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 23 Oct 2025 06:35:35 -0700 (PDT)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.100.1.1.5\))
Subject: Re: bug#79681: 30.2; Cannot build Emacs from release archive if
 source tree is read-only
From: Philipp Stephani <p.stephani2@HIDDEN>
In-Reply-To: <86a51iuqzx.fsf@HIDDEN>
Date: Thu, 23 Oct 2025 15:35:24 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <F8B74607-2007-408D-8AAE-E234888A4CB7@HIDDEN>
References: <m2qzuutds7.fsf@HIDDEN> <86a51iuqzx.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3864.100.1.1.5)
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 79681
Cc: Paul Eggert <eggert@HIDDEN>, 79681 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)



> Am 23.10.2025 um 07:27 schrieb Eli Zaretskii <eliz@HIDDEN>:
>=20
>> From: Philipp <p.stephani2@HIDDEN>
>> Date: Thu, 23 Oct 2025 06:58:32 +0200
>>=20
>>=20
>> Emacs should support out-of-tree builds without touching the source
>> tree, but currently the source tree needs to be writable.  For =
example,
>> if /tmp/emacs-30.2 is a read-only tree that contains the unpacked =
Emacs
>> 30.2 release archive, and /tmp/build is empty, configure will fail:
>>=20
>> /tmp/build$ ../emacs-30.2/configure
>> [...]
>> config.status: creating ../emacs-30.2/doc/man/emacs.1
>> mv: rename ./conf3FI96h/out to ../emacs-30.2/doc/man/emacs.1: =
Permission denied
>> config.status: error: could not create ../emacs-30.2/doc/man/emacs.1
>>=20
>> config.status shouldn't create files in the source tree, only in the
>> build tree.
>=20
> Thanks.  Does the patch below give good results?

Yes, it allows configure to succeed, thanks.  (I tested it with the =
Emacs 30.2 release archive, but it should work as well on master.)

>> After making emacs-30.2/doc/man writable, configure works.  Make also
>> works, at least when told to leave ja-dic.el alone (e.g. using
>> 'touch -t 200001010000 leim/small-ja-dic-option'), and (on macOS) =
when
>> the graphical app is disabled using the configure options
>> --without-ns --without-all --without-x --with-x-toolkit=3Dno.
>=20
> Does it mean there are other files in the source tree that we write
> to?  If so, please name them, or show the relevant error messages.

After running

../emacs-30.2/configure --without-ns --without-all --without-x  =
--with-x-toolkit=3Dno

with the configure.ac patch applied (and running autogen.sh to =
regenerate configure; ../emacs-30.2 is the source tree), I get this =
message:

  GEN      small-ja-dic-option
  GEN      ../../emacs-30.2/leim/../lisp/leim/ja-dic/ja-dic.el
  INFO     Processing OKURI-ARI entries
  INFO     Processing POSTFIX entries
  INFO     Processing PREFIX entries
  INFO     Collecting OKURI-NASI entries
  [...]
  INFO     Processing OKURI-NASI entries...done
File ja-dic.el is write-protected; try to save anyway? (yes or no) no

Error: error ("Attempt to save to a file that you aren=E2=80=99t allowed =
to write")
  signal(error ("Attempt to save to a file that you aren=E2=80=99t =
allowed to write"))
  error("Attempt to save to a file that you aren't allowed to write")
  basic-save-buffer-2()
  basic-save-buffer-1()
  basic-save-buffer(nil)
  save-buffer(0)
  skkdic-convert("/private/tmp/emacs-30.2/leim/SKK-DIC/SKK-JISYO.L" =
"/private/tmp/emacs-30.2/lisp/leim/ja-dic" t)
  batch-skkdic-convert()
  command-line-1(("-l" "ja-dic-cnv" "-f" "batch-skkdic-convert" "-dir" =
"../../emacs-30.2/leim/../lisp/leim/ja-dic" "--no-reduction" =
"../../emacs-30.2/leim/SKK-DIC/SKK-JISYO.L"))
  command-line()
  normal-top-level()
Attempt to save to a file that you aren=E2=80=99t allowed to write

Error (auto-save): Auto-saving ja-dic.el: Opening output file: =
Permission denied, /private/tmp/emacs-30.2/lisp/leim/ja-dic/#ja-dic.el#
make[3]: *** [../../emacs-30.2/leim/../lisp/leim/ja-dic/ja-dic.el] Error =
255
make[2]: *** [generate-ja-dic] Error 2
make[1]: *** [lisp] Error 2


My guess is that since leim/small-ja-dic-option in the build tree didn't =
exist, Make generates it, so it's too new and it'll try to regenerate =
ja-dic.el in the source tree.  One way to fix this could be to have =
configure run

cp -p $srcdir/leim/small-ja-dic-option $builddir/leim/

if srcdir !=3D builddir so that small-ja-dic-option exists and is old =
enough.  Manually running this command fixed the build for me.

(Maybe batch-skkdic-convert should rather call write-region instead of =
save-buffer in any case, since the latter is an interactive command =
that's prone to prompting the user.)

---

If I run configure on macOS/Darwin without any options, it'll try to =
build a graphical ("nextstep") app.  This fails in the following step:

/Library/Developer/CommandLineTools/usr/bin/make -C ../nextstep all
rm -rf /tmp/build/nextstep/Emacs.app
/opt/homebrew/bin/gmkdir -p /tmp/build/nextstep/Emacs.app
( cd ../../emacs-30.2/nextstep/Cocoa/Emacs.base ; tar cfh - . ) | \
  ( cd /tmp/build/nextstep/Emacs.app ; umask 022; tar xf - )
[ "`cd ../../emacs-30.2/nextstep && pwd -P`" =3D "`pwd -P`" ] || \
  ( cd Cocoa/Emacs.base ; tar cfh - . ) | \
    ( cd /tmp/build/nextstep/Emacs.app ; umask 022; tar xf - )
./Contents/Info.plist: Can't create 'Contents/Info.plist': Permission =
denied
./Contents/Resources/English.lproj/: Can't create =
'Contents/Resources/English.lproj': Permission denied
./Contents/Resources/English.lproj/InfoPlist.strings: Failed to create =
dir 'Contents/Resources/English.lproj': No such file or directory
tar: Error exit delayed from previous errors.
make[3]: *** [/tmp/build/nextstep/Emacs.app] Error 1
make[2]: *** [ns-app] Error 2
make[1]: *** [src] Error 2

I haven't figured out what this is trying to do, but it also fails with =
"permission denied".  I found that nextstep/Emacs.app/Contents in the =
build directory isn't writable; probably Make should create it as =
writable directory.  After

chmod -R u+w $builddir/nextstep/Emacs.app/Contents

Make succeeds.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.

Message received at 79681 <at> debbugs.gnu.org:


Received: (at 79681) by debbugs.gnu.org; 23 Oct 2025 05:44:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 23 01:44:26 2025
Received: from localhost ([127.0.0.1]:59361 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vBo7e-0006X4-GM
	for submit <at> debbugs.gnu.org; Thu, 23 Oct 2025 01:44:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51658)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vBo7c-0006Wb-0w
 for 79681 <at> debbugs.gnu.org; Thu, 23 Oct 2025 01:44:25 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vBo7W-0002hm-KJ; Thu, 23 Oct 2025 01:44:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=zGwn64Ah2Tp5VCSNus1cFM2Nx4gzLNzqFzQnJqF1YHs=; b=hVBgftVeARYV
 dEb0/lYeyeWdNUBbpD8kPFg7PbNv+ThfaLrQ9Oy8LZNzF4r+pZPg5fXZuTJCOzYauDeMxdYxA2spG
 pCsz63s2aD6TwpwMQnzswMCpuAOXkIe/p13x1Oynl7TlvFEPUq+e4WyBUGh31CCgN9IDsybCY0mct
 w+n88GopZpiMY4T82GsiNPHSY47JRkhIPMuRcAQAAC1JsGbeRHSCjtfqE2xSwQ3Yac2MQN0cKqWtI
 a705NGdS8C0AewzT2C7DIkyzZXOcb6+RMtyzitns4JBdsTgfHTLltC5vo2pP6AGmLqAVO14e60ZXp
 PAzfK/ZZnWC8Tz1Kya05GQ==;
Date: Thu, 23 Oct 2025 08:44:15 +0300
Message-Id: <868qh2uq8g.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: p.stephani2@HIDDEN
In-Reply-To: <86a51iuqzx.fsf@HIDDEN> (message from Eli Zaretskii on Thu, 23
 Oct 2025 08:27:46 +0300)
Subject: Re: bug#79681: 30.2;
 Cannot build Emacs from release archive if source tree is read-only
References: <m2qzuutds7.fsf@HIDDEN> <86a51iuqzx.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79681
Cc: eggert@HIDDEN, 79681 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 79681 <at> debbugs.gnu.org
> Date: Thu, 23 Oct 2025 08:27:46 +0300
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > /tmp/build$ ../emacs-30.2/configure
> > [...]
> > config.status: creating ../emacs-30.2/doc/man/emacs.1
> > mv: rename ./conf3FI96h/out to ../emacs-30.2/doc/man/emacs.1: Permission denied
> > config.status: error: could not create ../emacs-30.2/doc/man/emacs.1
> > 
> > config.status shouldn't create files in the source tree, only in the
> > build tree.
> 
> Thanks.  Does the patch below give good results?

If it does, we will also need a patch to the top-level Makefile.in, in
the install-man and uninstall targets' rules.  They currently assume
all the man pages are in the source tree.  Also, we will need to
update the value of top_bootclean.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.

Message received at 79681 <at> debbugs.gnu.org:


Received: (at 79681) by debbugs.gnu.org; 23 Oct 2025 05:28:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 23 01:28:10 2025
Received: from localhost ([127.0.0.1]:59336 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vBnrt-0005Fq-HQ
	for submit <at> debbugs.gnu.org; Thu, 23 Oct 2025 01:28:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47130)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1vBnrp-0005FA-9B
 for 79681 <at> debbugs.gnu.org; Thu, 23 Oct 2025 01:28:06 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1vBnrj-0008Cq-7R; Thu, 23 Oct 2025 01:27:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=YRw6xwAqu/YHnPcd0YqCjuenQVozskHgH38Z0qOrJv8=; b=N/BXC4jqX8Ez
 7I8U7FhOjTb22H77Hy154ipIzlU89jftrgGHlHn2hng0tdxnavsbk+w0YlvF19KJwVCgBweNFDNXM
 VnQ2r68kmf3s0FLsb1WrnckfaP6DkZPm8vlCiG28zz9v9B0FI9MwkrDbiaSS8gGuxjRUheXVjrDq/
 Fsr9Re9topJlUXjRuP/zH3mHjlZAX7Sxe7gVqv27X6i3M+i4DC+zOY77G4k+qLnFEXsWx6Lkd+11D
 ovjxxwOO0oHqL1DKMkPpB8VXB2RQOe5VixpVd96t0/IwSkmrhv/rtcdy2NEpTeqCkzUw82ZZSkVcP
 yaiYKqMUdbpA9SpU7rS6fQ==;
Date: Thu, 23 Oct 2025 08:27:46 +0300
Message-Id: <86a51iuqzx.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Philipp <p.stephani2@HIDDEN>, Paul Eggert <eggert@HIDDEN>
In-Reply-To: <m2qzuutds7.fsf@HIDDEN> (message from Philipp on
 Thu, 23 Oct 2025 06:58:32 +0200)
Subject: Re: bug#79681: 30.2;
 Cannot build Emacs from release archive if source tree is read-only
References: <m2qzuutds7.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79681
Cc: 79681 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Philipp <p.stephani2@HIDDEN>
> Date: Thu, 23 Oct 2025 06:58:32 +0200
> 
> 
> Emacs should support out-of-tree builds without touching the source
> tree, but currently the source tree needs to be writable.  For example,
> if /tmp/emacs-30.2 is a read-only tree that contains the unpacked Emacs
> 30.2 release archive, and /tmp/build is empty, configure will fail:
> 
> /tmp/build$ ../emacs-30.2/configure
> [...]
> config.status: creating ../emacs-30.2/doc/man/emacs.1
> mv: rename ./conf3FI96h/out to ../emacs-30.2/doc/man/emacs.1: Permission denied
> config.status: error: could not create ../emacs-30.2/doc/man/emacs.1
> 
> config.status shouldn't create files in the source tree, only in the
> build tree.

Thanks.  Does the patch below give good results?

Paul, do you see any reasons why we have $srcdir in that place?  I
don't understand the comment before this line, viz.:

  dnl config.status treats $srcdir specially, so I think this is ok...

What does it want to tell, and why?

> After making emacs-30.2/doc/man writable, configure works.  Make also
> works, at least when told to leave ja-dic.el alone (e.g. using
> 'touch -t 200001010000 leim/small-ja-dic-option'), and (on macOS) when
> the graphical app is disabled using the configure options
> --without-ns --without-all --without-x --with-x-toolkit=no.

Does it mean there are other files in the source tree that we write
to?  If so, please name them, or show the relevant error messages.

diff --git a/configure.ac b/configure.ac
index 6bec1ad..a44f87f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7722,7 +7722,7 @@ AC_DEFUN
 AC_CONFIG_FILES([Makefile lib/gnulib.mk])
 
 dnl config.status treats $srcdir specially, so I think this is ok...
-ARCH_INDEPENDENT_CONFIG_FILES([$srcdir/doc/man/emacs.1])
+ARCH_INDEPENDENT_CONFIG_FILES([doc/man/emacs.1])
 
 AC_CONFIG_FILES([lib/Makefile lib-src/Makefile oldXMenu/Makefile src/Makefile
                  lwlib/Makefile nextstep/Makefile nt/Makefile])




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Oct 2025 04:59:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 23 00:59:02 2025
Received: from localhost ([127.0.0.1]:59219 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vBnPh-0002eI-Tl
	for submit <at> debbugs.gnu.org; Thu, 23 Oct 2025 00:59:02 -0400
Received: from lists.gnu.org ([2001:470:142::17]:43262)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <p.stephani2@HIDDEN>)
 id 1vBnPg-0002dr-DM
 for submit <at> debbugs.gnu.org; Thu, 23 Oct 2025 00:59:00 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <p.stephani2@HIDDEN>)
 id 1vBnPa-0008AS-IF
 for bug-gnu-emacs@HIDDEN; Thu, 23 Oct 2025 00:58:54 -0400
Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <p.stephani2@HIDDEN>)
 id 1vBnPU-00041b-FH
 for bug-gnu-emacs@HIDDEN; Thu, 23 Oct 2025 00:58:50 -0400
Received: by mail-wr1-x42b.google.com with SMTP id
 ffacd0b85a97d-42855f80f01so63100f8f.2
 for <bug-gnu-emacs@HIDDEN>; Wed, 22 Oct 2025 21:58:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1761195514; x=1761800314; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=IilCXyrl2hocXbzT9ecB1n0tb+vunCspRVHISQzldOM=;
 b=JG03vVy0lmYj9V3J4rXoQeX0RZLPibjqh+ghEvbvQ/OgseNVN8m60E1eVZlGpe6kNv
 9QJ1/hJ1JmUMh7oonqQd0f8LAYGYdRfbNR0almsmJ0LwCLZ8t9lxI1hHDLWe1bXtei8z
 sOTtCCMOf/f1gtAZW1wtcf9dqkb/UgLFeSnI/KX+oTMtMcNiVlYVh5QTxlj9puLtfvAN
 BhbUhrqR86n0KlaK/B8PgkOUGG/gqt8nI50CbH+IHD9AJh77V+o+zJ24lKNzNitUTvHm
 S89JvKkek7K5ZqV2fsCCp7JVKofh4Ii3mzXHdPnlgO32Yg+gdynQRJyqFYOsEIoQHXG3
 cKPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1761195514; x=1761800314;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=IilCXyrl2hocXbzT9ecB1n0tb+vunCspRVHISQzldOM=;
 b=jIyCX+nofvSjYmFxzrizb3wOCTeIQ8H81IO8v9Q+aAqtErATDtjzeUApJnFJhnbrrE
 fsgm984m/kpQeJ1ECLTZKg8a0mL1oCBDy1jdts4lEXg+gxy0uIZWQRXuUorTwyyC+Qed
 q+K96G1mnLLULkEIELnYbcO4G3O65wNztKAfG6JwPTJb0MS4AooW5ZF9Y6KmQPdCl3vF
 jn4Tevg9XX154k/Ib/+g41fysQZHNKQ39oa2+RPvwJUrDhhgJMdyJ4/K4qYkDfQ1zY5e
 Y8n+Q+VsVFqhf60HxDnZapZKjdeT1r3e8jSuR5IMGa93wWAsHYSpbOBpm43NGvduXFYr
 Vg/w==
X-Gm-Message-State: AOJu0Yy4wx/2BtpmR2XQDmRDaynpOXr8Umm8IZYiD3LBk34nKEs2m3Yn
 7hjxoUoVWoK9VczLLZq8JJLKmSNiBx2h8B5Pu/oVxLsmYFuhtkdKlZxMcgPkCA==
X-Gm-Gg: ASbGncutQlHwr6CjSADdOaRZKseuWpgQCICrnqU4odIeG7dpoq8kFcjNVsYdqGJ2wEF
 853r5IQYB9fAgYki+sOJh6W9D+WeW71s+3cHlSU4kb3IlP2oHZDLl+XACXYqRce5V6Hohe0ddUw
 zOAFGFS+UXevArfeT1Sh4NpCuNtHpyfWlijBz7xV/F/9Mfd9iewbDAyocr0MdKJ3D4Nz9PqnCId
 u2aN7oJkbKsv/GXJ04reBvyDARynhQaT9sllkfW3AcYNQrwMBqnNzEcrBDtrOnVgh4/772vbD4w
 DG9geLU+a5UbFrtycHyaKINvX3jq+V26RwAzIt9Bz3E5fwfxl7GDZUwy3gPtY6U8YjaJe9VYz6S
 7pC56w+9O1iDdlC+REJKnzmj8QoVN0B1h29NRXbSBYxWz4fMlR9PSIVYmOTkLp9RnAkevDgSP2e
 3NQ9SGkhZGLyyKHzh04C7Xk+4O82LTriNinnkjsLTNZJe1TyhuYQ==
X-Google-Smtp-Source: AGHT+IFAbQyv0JowpyYme52CncPu8sbDo2u0p294+2Ek6pQCpqU9zUCU0fgLeoQiKIozfvE5MTN1+Q==
X-Received: by 2002:a05:600c:c171:b0:46f:ab96:58e9 with SMTP id
 5b1f17b1804b1-474e77e2007mr31628995e9.0.1761195513619; 
 Wed, 22 Oct 2025 21:58:33 -0700 (PDT)
Received: from MacBookPro.fritz.box ([2001:a61:3a9a:e01:60dd:de02:4431:3803])
 by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-429897f57b7sm1859376f8f.16.2025.10.22.21.58.32
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 22 Oct 2025 21:58:32 -0700 (PDT)
From: Philipp <p.stephani2@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.2; Cannot build Emacs from release archive if source tree is
 read-only
X-Debbugs-Cc: 
Date: Thu, 23 Oct 2025 06:58:32 +0200
Message-ID: <m2qzuutds7.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2a00:1450:4864:20::42b;
 envelope-from=p.stephani2@HIDDEN; helo=mail-wr1-x42b.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Emacs should support out-of-tree builds without touching the
 source tree, but currently the source tree needs to be writable. For example, 
 if /tmp/emacs-30.2 is a read-only tree that contains the unpa [...] 
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (p.stephani2[at]gmail.com)
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (p.stephani2[at]gmail.com)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)


Emacs should support out-of-tree builds without touching the source
tree, but currently the source tree needs to be writable.  For example,
if /tmp/emacs-30.2 is a read-only tree that contains the unpacked Emacs
30.2 release archive, and /tmp/build is empty, configure will fail:

/tmp/build$ ../emacs-30.2/configure
[...]
config.status: creating ../emacs-30.2/doc/man/emacs.1
mv: rename ./conf3FI96h/out to ../emacs-30.2/doc/man/emacs.1: Permission denied
config.status: error: could not create ../emacs-30.2/doc/man/emacs.1

config.status shouldn't create files in the source tree, only in the
build tree.

After making emacs-30.2/doc/man writable, configure works.  Make also
works, at least when told to leave ja-dic.el alone (e.g. using
'touch -t 200001010000 leim/small-ja-dic-option'), and (on macOS) when
the graphical app is disabled using the configure options
--without-ns --without-all --without-x --with-x-toolkit=no.


In GNU Emacs 30.2 (build 1, aarch64-apple-darwin24.6.0, NS
 appkit-2575.70 Version 15.6 (Build 24G84)) of 2025-08-17
Repository revision: 636f166cfc86aa90d63f592fd99f3fdd9ef95ebd
Repository branch: HEAD
Windowing system distributor 'Apple', version 10.3.2685
System Description:  macOS 26.0.1

Configured using:
 'configure --with-modules --with-xml2 --without-pop --with-mailutils
 'CFLAGS=-g -O2' LDFLAGS=-O2'

Configured features:
ACL GLIB GNUTLS LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG
SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB

Important settings:
  value of $LANG: de_DE.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug phst skeleton pcase ffap thingatpt url
url-proxy url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util url-parse auth-source cl-seq
eieio eieio-core cl-macs icons json map byte-opt gv bytecomp
byte-compile url-vars rx message sendmail mailcap yank-media dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev
mail-utils gmm-utils mailheader gnutls puny elp dbus xml compile
text-property-search comint subr-x ansi-osc ansi-color ring cl-loaddefs
cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads kqueue cocoa ns lcms2
multi-tty make-network-process emacs)

Memory information:
((conses 16 73834 13242) (symbols 48 8525 0) (strings 32 22032 2489)
 (string-bytes 1 578852) (vectors 16 15204)
 (vector-slots 8 161929 13190) (floats 8 31 5) (intervals 56 241 0)
 (buffers 992 10))




Acknowledgement sent to Philipp <p.stephani2@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#79681; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 26 Oct 2025 10:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.