unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: guix-devel <guix-devel@gnu.org>
Subject: emacs-build-system installs too many files
Date: Fri, 14 Apr 2017 14:33:35 +0530	[thread overview]
Message-ID: <dd435ec4.AEAAJCRN4gEAAAAAAAAAAAOtZhgAAAACwQwAAAAAAAW9WABY8JBz@mailjet.com> (raw)


The install phase of the emacs-build-system simply copies all files to
the output directory. This ends up copying many unnecessary files such
as README, Makefile, tests, hidden files such as .gitignore,
.travis.yml, etc. MELPA package recipes, on the other hand, copy only a
subset of the files. This is provided by the :files property in their
recipe format (https://github.com/melpa/melpa#recipe-format). Quoting
from their github page:

#+BEGIN_QUOTE

:files is an optional property specifying the elisp and info files used
to build the package. Please do not override this if the default value
(below) is adequate, which it should usually be:

  ("*.el" "*.el.in" "dir"
   "*.info" "*.texi" "*.texinfo"
   "doc/dir" "doc/*.info" "doc/*.texi" "doc/*.texinfo"
   (:exclude ".dir-locals.el" "test.el" "tests.el" "*-test.el" "*-tests.el"))

This option is necessary when there are multiple packages in the
repository and thus the package should only be built from a subset of
.el files. For example, elisp test files should not normally be
packaged. Any file specified at any path in the repository is copied to
the root of the package.

...

Note that elisp in subdirectories is never included by default, so you
might find it convenient to separate auxiliiary files such as tests into
subdirectories to keep packaging simple.

#+END_QUOTE

I suggest we modify the emacs-build-system to include a #:files argument
similar to MELPA's :files property. If others are fine with this, I will
start working on a patch.

Regards,
Arun Isaac.

             reply	other threads:[~2017-04-14  9:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-14  9:03 Arun Isaac [this message]
2017-04-14 17:16 ` emacs-build-system installs too many files Alex Kost
2017-04-19  7:51   ` Arun Isaac
2017-04-19  7:51   ` Arun Isaac
     [not found]   ` <cu7mvbcq1gy.fsf@systemreboot.net>
2017-05-14 13:45     ` Arun Isaac
2017-05-15 17:19       ` myglc2
2017-05-15 18:46         ` Arun Isaac

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://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dd435ec4.AEAAJCRN4gEAAAAAAAAAAAOtZhgAAAACwQwAAAAAAAW9WABY8JBz@mailjet.com \
    --to=arunisaac@systemreboot.net \
    --cc=guix-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 public inbox

	https://git.savannah.gnu.org/cgit/guix.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).