all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: akater <nuclearspace@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: use-package, package.el, and system packages cooperation
Date: Sun, 02 Aug 2020 10:54:44 +0000	[thread overview]
Message-ID: <871rkpgvwr.fsf@gmail.com> (raw)
In-Reply-To: <931B677D-3813-435D-802C-E1207856CBBD@chaotikum.eu>

[-- Attachment #1: Type: text/plain, Size: 2709 bytes --]

Thomas Schneider <qsx@chaotikum.eu> writes:

> I’m struggling to combine use-package, package.el, and Emacs packages
> installed by the system package manager (e.g., apt).
> 
> I want:
> - to install packages via the system package manager as much as possible
>   This is especially important for packages such as pdf-tools, which
>   require development headers of several libraries, but are readily
>   installed via system packages

Me too.  I am convinced that public Emacs package archives should
provide packages for popular package managers, not only for package.el.
It is totally feasible to generate most of those automatically.

If a package manager installs a package that depends on a C library, it
must be able to provide that C library too.  Thus, as long as Emacs
packages depend on external software, they should be installed by a
package manager that is good enough to install (as well as fetch,
configure, build, of course) said external software.

> - not to install packages again as user, when they are already
>   installed system-wide
>   
> - especially as dependencies
>   For example, Gentoo provides AUCTeX, but not auctex-latexmk.  When I
>   install the latter via package.el, it installs AUCTeX again, even
>   though it’s already installed system-wide

I have an Emacs package available from my Gentoo repository:
https://gitlab.com/akater/elpa-to-ebuilds
README explains how to add the repository and install the package.

It is currently capable of producing, mostly correctly, working ebuilds
from non-built-in Emacs features that are currently loaded into Emacs
(together with their dependencies, which is what normally happens).

I migrated almost all Emacs packages I use to Portage.  I have not
published those 50-something ebuilds but if you are interested in
similar migration, I'll be able to help.

I don't have any testers besides myself and thus can't guarantee smooth
experience with elpa-to-ebuilds but I'd love to meet some testers and
potential collaborators who share the above views on Emacs package
management and dissatisfaction with package.el.  In fact, due to lack of
testers I'm not even sure elpa-to-ebuilds installs OK.

> - to continue using use-package, or something else that helps me
> structure my init.el

I'm using use-package almost exclusively.  I think it could be
integrated with system package managers but you'd need installation
rights (this likely means root, in my experience) anyway.

> - not to download half of MELPA the first time I start Emacs on a new
> host

This sounds impossible if “new host” implies “no Emacs packages
installed” --- could you clarify?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

      parent reply	other threads:[~2020-08-02 10:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-26 18:23 use-package, package.el, and system packages cooperation Thomas Schneider
2020-07-26 22:50 ` Dmitry Alexandrov
2020-07-27  8:18   ` tomas
2020-08-02 10:54 ` akater [this message]

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=871rkpgvwr.fsf@gmail.com \
    --to=nuclearspace@gmail.com \
    --cc=help-gnu-emacs@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.