From: Phillip Lord <phillip.lord@russet.org.uk>
To: Stephen Leake <stephen_leake@stephe-leake.org>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: policy discussion on bundling ELPA packages in the emacs tarball
Date: Sun, 24 Jan 2021 22:09:53 +0000 [thread overview]
Message-ID: <87im7mgf66.fsf@russet.org.uk> (raw)
In-Reply-To: <86tur88izp.fsf@stephe-leake.org> (Stephen Leake's message of "Fri, 22 Jan 2021 18:50:02 -0800")
Stephen Leake <stephen_leake@stephe-leake.org> writes:
> Phillip Lord <phillip.lord@russet.org.uk> writes:
>
> which is 4 years old, but indicates that mixing worktrees and submodules
> was an issue then.
It's marked as a bug on the git worktrees manual (right at the end).
>
> I'll have to test some stuff. If the submodules cannot be worktrees,
> then I think we have to abandon this approach. Although maybe using
> --depth=1 (or some small number) would be acceptable.
>
>> My own abortive attempt to achieve ELPA bundled packages
>> (https://git.savannah.gnu.org/cgit/emacs.git/log/?h=feature/core-elpa-by-copy),
>> solved one of these two problems -- a single ELPA git repo, but still
>> duplicated bundled packages in each worktree.
>
> I'll look at that.
To caveat, I wouldn't necessarily put this forward as working
solution. It felt kludgey then and it feels so now. I stopped working on
it because of time, though not because it didn't work.
>> Two, I can live with the submodule update if I have to, but this will
>> have to be done on each Worktree I guess. Why not add `configure
>> --with-elpa`
>>
> https://git.savannah.gnu.org/cgit/emacs.git/log/?h=feature/core-elpa-by-copy
>
> I'll have to look at that.
>
> But "copy" implies that the git information is lost, so you can't edit
> the copy and push the changes. That won't do.
Yes, that's the flaw, and it's a fairly big one. If you wanted to edit,
and commit that would require checking out from the ELPA repo, updating
the pointer on the Emacs tree and then checking back in again. This
sounds clunky, although in practice, the number of times you need to
edit a package in tree would be small, I think. I mean, it's the
workflow you have at the moment for ELPA packages right? If you have a
test Emacs and install an ELPA package, you don't want to edit the
source of that ELPA package.
I solve this problem for my own packages by not installing them from
ELPA, but from their git repos. This means normal users and me as
developer have a different set up.
straight.el solves this problem in a more principled way; the package is
the git repo, but then the package manager is completely dependent on
git.
>> Three, out of source builds would I presume include the submodule in the
>> main git tree, not in the out of source location?
>
> Yes; with submodules, 'make build' (out of source or in source) doesn't use
> git to retrieve files, just the filesystem.
Yes. My system uses git archive to retrieve files during the build. I
seem to remember putting an option to have make clone ELPA also,
although that was configurable for exactly the reason we are discussing;
I wanted one copy of ELPA not lots. But, a full git repo build of Emacs
would require git on the build machine. I figured that wasn't a problem
because, well, if you have a git checkout on that machine, then you
probably have git.
> With the alternative "only in elpa" approach, 'make build' will have to
> know where the local elpa source directory is; it should still not use
> git to retrieve files. For building a tarball, step one is get emacs and
> elpa checked out to the right versions, then invoke 'make build'.
Yes. My version doesn't use a check out of ELPA, so it can take source
for different packages from different versions of the same branch.
Phil
next prev parent reply other threads:[~2021-01-24 22:09 UTC|newest]
Thread overview: 70+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-21 1:41 policy discussion on bundling ELPA packages in the emacs tarball Stephen Leake
2021-01-21 14:17 ` Eli Zaretskii
2021-01-22 10:56 ` [SPAM UNSURE] " Stephen Leake
2021-01-22 11:50 ` Eli Zaretskii
2021-01-22 14:05 ` Stefan Monnier
2021-01-21 21:54 ` Phillip Lord
2021-01-23 2:50 ` Stephen Leake
2021-01-23 8:17 ` Eli Zaretskii
2021-01-24 16:26 ` [SPAM UNSURE] " Stephen Leake
2021-01-24 21:49 ` Phillip Lord
2021-01-25 19:38 ` [SPAM UNSURE] " Stephen Leake
2021-01-25 19:54 ` Eli Zaretskii
2021-01-25 20:39 ` Stefan Monnier
2021-01-26 1:04 ` Andy Moreton
2021-01-26 2:38 ` Stefan Monnier
2021-01-26 14:44 ` Eli Zaretskii
2021-01-26 15:25 ` Stefan Monnier
2021-01-26 15:34 ` Eli Zaretskii
2021-01-26 16:14 ` Stefan Monnier
2021-01-26 16:30 ` Eli Zaretskii
2021-01-26 17:27 ` Stefan Monnier
2021-01-26 17:42 ` Eli Zaretskii
2021-01-26 17:57 ` Stefan Monnier
2021-01-26 19:12 ` Eli Zaretskii
2021-01-28 0:15 ` Stephen Leake
2021-01-28 2:05 ` Stefan Monnier
2021-01-28 13:47 ` Eli Zaretskii
2021-01-28 13:43 ` Eli Zaretskii
2021-01-27 14:52 ` Dmitry Gutov
2021-01-27 14:57 ` Stefan Monnier
2021-01-26 18:02 ` Stefan Monnier
2021-01-26 18:12 ` Stefan Monnier
2021-01-27 14:21 ` Stephen Leake
2021-01-27 14:35 ` Stefan Monnier
2021-01-27 14:48 ` Stephen Leake
2021-01-27 14:42 ` Stephen Leake
2021-01-27 16:22 ` Eli Zaretskii
2021-01-23 9:27 ` Stephen Leake
2021-01-23 9:57 ` Eli Zaretskii
2021-01-24 2:28 ` Dmitry Gutov
2021-01-24 16:27 ` Stephen Leake
2021-01-24 17:30 ` Stephen Leake
2021-01-24 18:10 ` Eli Zaretskii
2021-01-24 20:10 ` Stephen Leake
2021-01-24 20:15 ` Eli Zaretskii
2021-01-24 20:42 ` Dmitry Gutov
2021-01-25 22:00 ` Stephen Leake
2021-01-26 1:57 ` Dmitry Gutov
2021-01-26 14:48 ` Eli Zaretskii
2021-01-26 15:24 ` Andreas Schwab
2021-01-27 14:37 ` Stephen Leake
2021-01-27 16:22 ` Eli Zaretskii
2021-01-28 0:10 ` Stephen Leake
2021-01-28 13:38 ` Eli Zaretskii
2021-01-25 19:30 ` Stephen Leake
2021-01-25 19:53 ` Eli Zaretskii
2021-01-27 14:31 ` Stephen Leake
2021-01-27 14:44 ` Stefan Monnier
2021-01-28 3:34 ` Andy Moreton
2021-01-27 16:20 ` Eli Zaretskii
2021-01-29 17:47 ` Phillip Lord
2021-02-01 8:45 ` Robert Pluim
2021-02-01 15:09 ` Eli Zaretskii
2021-01-24 22:09 ` Phillip Lord [this message]
2021-01-25 19:14 ` Stephen Leake
2021-01-27 11:10 ` Phillip Lord
2021-01-27 14:31 ` Stefan Monnier
2021-01-28 0:05 ` Stephen Leake
2021-01-24 20:19 ` Stephen Leake
2021-01-24 2:59 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87im7mgf66.fsf@russet.org.uk \
--to=phillip.lord@russet.org.uk \
--cc=emacs-devel@gnu.org \
--cc=stephen_leake@stephe-leake.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).