* build problem with git worktree linked to main worktree (repo) (was: strange build problem with missing -by.el and -wy.el files)
@ 2022-11-05 23:46 Gregor Zattler
2022-11-06 3:59 ` build problem with git worktree linked to main worktree (repo) Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 3+ messages in thread
From: Gregor Zattler @ 2022-11-05 23:46 UTC (permalink / raw)
To: Eli Zaretskii, help-gnu-emacs
Hi Eli, emacs users,
* Eli Zaretskii <eliz@gnu.org> [2022-11-01; 18:48 +02]:
>> From: Gregor Zattler <telegraph@gmx.net>
>> Date: Tue, 01 Nov 2022 16:38:53 +0100
>>
>> > You need to understand why c-by.el is not generated as part of the
>> > build. It's supposed to be generated by the rules in
>> > admin/grammars/Makefile.in, which run early on during the build. It
>> > is run via the rule in lisp/Makefile.in for the target "semantic",
>> > look around line 415 in that file. Why doesn't that happen in your
>> > case?
>>
>> Because I get "Args out of range: "master", 0, 7"
>> errors when building these files:
>
> So you need to understand why this happens.
I do not understand why this happens.
> Perhaps some stale files from previous builds, or some
> other problem?
This is from pristine sources.
But I found how to avoid it: Not using a git worktree linked
to a main worktree with .git directory:
The problem arises when the tree from which to build Emacs
is actually a linked git worktree as opposed to a fully
fletched git repo (main worktree in git parlance).
Building in a linked worktree linked to a bare repo works
without problems, though.
I described my findings in bug#59064.
I now will use git worktrees linked to a bare repo.
Thanks to Eli fro the hints, Gregor
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: build problem with git worktree linked to main worktree (repo)
2022-11-05 23:46 build problem with git worktree linked to main worktree (repo) (was: strange build problem with missing -by.el and -wy.el files) Gregor Zattler
@ 2022-11-06 3:59 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-06 21:30 ` Gregor Zattler
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2022-11-06 3:59 UTC (permalink / raw)
To: help-gnu-emacs
> The problem arises when the tree from which to build Emacs
> is actually a linked git worktree as opposed to a fully
> fletched git repo (main worktree in git parlance).
That's weird. Maybe you could `M-x report-emacs-bug` so someone else
can look into fixing it?
> I now will use git worktrees linked to a bare repo.
That's what I've been using for many years, so I can't vouch it'll work
for everyone, but at least it works well for me.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: build problem with git worktree linked to main worktree (repo)
2022-11-06 3:59 ` build problem with git worktree linked to main worktree (repo) Stefan Monnier via Users list for the GNU Emacs text editor
@ 2022-11-06 21:30 ` Gregor Zattler
0 siblings, 0 replies; 3+ messages in thread
From: Gregor Zattler @ 2022-11-06 21:30 UTC (permalink / raw)
To: Stefan Monnier, help-gnu-emacs
Hi Stefan, Emacs users,
* Stefan Monnier via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org> [2022-11-05; 23:59 -04]:
>> The problem arises when the tree from which to build Emacs
>> is actually a linked git worktree as opposed to a fully
>> fletched git repo (main worktree in git parlance).
>
> That's weird. Maybe you could `M-x report-emacs-bug` so someone else
> can look into fixing it?
I filed bug#59064. Actually the problem only exists with
*detached* linked worktrees, linked to a main worktree.
Matt Armstrong found commit 307ad210040 which introduces the
problem. The commit in question was part of Philip
Kaludercic's work to solve Bug#57400, a feature-request for
a vc- command to send patches. He changed
`vc-working-revision' to resolve a hex ID to a symbolic
revision if possible. This will likely be reverted.
As a side-note: I tried to find the offending commit via git
bisect but this hit on the wrong commit
(44ad42240069d8d82772b0c0ef5ec93c2566ca7e).
>> I now will use git worktrees linked to a bare repo.
>
> That's what I've been using for many years, so I can't vouch it'll work
> for everyone, but at least it works well for me.
Thanks for the info.
Ciao; Gregor
--
-... --- .-. . -.. ..--.. ...-.-
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-06 21:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-05 23:46 build problem with git worktree linked to main worktree (repo) (was: strange build problem with missing -by.el and -wy.el files) Gregor Zattler
2022-11-06 3:59 ` build problem with git worktree linked to main worktree (repo) Stefan Monnier via Users list for the GNU Emacs text editor
2022-11-06 21:30 ` Gregor Zattler
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.