From: Serghei Iakovlev <egrep@protonmail.ch>
To: GNU Emacs Developers <emacs-devel@gnu.org>
Subject: [PATCH] Elpa's GNUmakefile: process_archive
Date: Sun, 01 Mar 2020 17:49:43 +0000 [thread overview]
Message-ID: <57f49954-976e-d4d9-786a-03945c6cc0c4@protonmail.ch> (raw)
[-- Attachment #1: Type: text/plain, Size: 925 bytes --]
Hello,
I've noticed a bug in Elpa's GNUmakefile file. `process_archive'
target contains incorrect code to exclude files from a package.
There are positional options (`--exclude-vcs' and `-X') which used
in an obviously erroneous way.
Let's me show you the problem:
% tar -chf bnf-mode.tar bnf-mode \
--exclude-vcs -X bnf-mode/.elpaignore
tar: The following options were used after any non-optional
arguments in archive create or update mode. These options are
positional and affect only arguments that follow them. Please,
rearrange them properly.
tar: --exclude-vcs has no effect
tar: --exclude-from ‘bnf-mode/.elpaignore’ has no effect
tar: Exiting with failure status due to previous errors
I've attached the patch that fixes this issue. For more see [1].
[1]:
https://www.gnu.org/software/tar/manual/html_node/Position_002dSensitive-Options.html
--
Serghei
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: GNUmakefile.patch --]
[-- Type: text/x-patch; name="GNUmakefile.patch", Size: 420 bytes --]
diff --git a/GNUmakefile b/GNUmakefile
index 2560ab95b..6fff547db 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -64,7 +64,7 @@ process-archive:
fi; \
if [ -d $$pt ]; then \
echo "Creating tarball $${pt}.tar" && \
- tar -chf $${pt}.tar $$pt --exclude-vcs -X "$$ignore"; \
+ tar -chf $${pt}.tar --exclude-vcs -X "$$ignore" $$pt ; \
rm -rf $${pt}; \
fi; \
done
next reply other threads:[~2020-03-01 17:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-01 17:49 Serghei Iakovlev [this message]
2020-03-02 18:09 ` [PATCH] Elpa's GNUmakefile: process_archive Serghei
2020-03-02 19:50 ` Stefan Monnier
2020-03-03 18:00 ` Stefan Monnier
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=57f49954-976e-d4d9-786a-03945c6cc0c4@protonmail.ch \
--to=egrep@protonmail.ch \
--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 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).