From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: Re: Local ELPA
Date: Tue, 24 Dec 2013 02:57:07 -0600 [thread overview]
Message-ID: <85iouevd7g.fsf@stephe-leake.org> (raw)
In-Reply-To: <jwvbo077dxj.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Mon, 23 Dec 2013 11:05:02 -0500")
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>> The default make target is all-in-place, which does not produce the
>> required index files.
>
> What index files?
packages/archive-contents
>
>> I found that this works for me:
>> cd /Projects/elpa
>> make archive-tmp process-archive
>
>> Together with:
>
>> (setq package-archives (list (cons "test" "/Projects/elpa/archive/packages")))
>
> You misunderstand: you shouldn't try to setup a local *archive*. You want
> to setup a local package *installation*.
>
> So you want to add the directory to package-directory-list (and use
> "make", tho you'll also additionally want to use "make externals").
- that target fails on multiple packages due to various errors.
- it doesn't specify -Q on the 'emacs -f batch-byte-compile' command, so
it gets confused by previously installed versions of things
- it doesn't add packages/* to the load path, so inter-package
dependencies fail.
- after ruthlessly deleting failing packages, and adding -Q, it
succeeds, but does not produce packages/archive-contents, so the
following fails:
(setq package-archives (list (cons "test" "/Projects/elpa/packages")))
M-x list-packages
Debugger entered--Lisp error: (file-error "Opening input file" "no such file or directory" "c:/Projects/elpa/packages/archive-contents")
insert-file-contents("c:/Projects/elpa/packages/archive-contents")
(a search for 'archive-contents' in any directory turns up no hits)
On the other hand, 'make archive-tmp process-archive' has none of the
above problems, so the following succeeds:
(setq package-archives (list (cons "test" "/Projects/elpa/archive/packages")))
M-x list-packages
The make targets 'archive-tmp process-archive' are part of the normal
ELPA production process, and are therefore maintained well. Apparently
the make target 'all-in-place' is not used much? which explains why it
is broken.
I suggest deleting all-in-place; process-archive takes longer, but since
it actually works, that's not a problem.
--
-- Stephe
next prev parent reply other threads:[~2013-12-24 8:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-23 4:37 Local ELPA Daniel Colascione
2013-12-23 13:45 ` Stefan Monnier
2013-12-23 13:59 ` Stephen Leake
2013-12-23 16:05 ` Stefan Monnier
2013-12-24 8:57 ` Stephen Leake [this message]
2013-12-24 9:22 ` Stephen Leake
2013-12-24 14:07 ` Stefan Monnier
2013-12-24 22:58 ` Stephen Leake
2013-12-24 14:05 ` Stefan Monnier
2013-12-24 22:58 ` Stephen Leake
2013-12-25 16:27 ` Stefan Monnier
2013-12-23 14:56 ` Ted Zlatanov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85iouevd7g.fsf@stephe-leake.org \
--to=stephen_leake@stephe-leake.org \
--cc=emacs-devel@gnu.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 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.