unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] Elpa's GNUmakefile: process_archive
@ 2020-03-01 17:49 Serghei Iakovlev
  2020-03-02 18:09 ` Serghei
  2020-03-03 18:00 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Serghei Iakovlev @ 2020-03-01 17:49 UTC (permalink / raw)
  To: GNU Emacs Developers

[-- 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-03 18:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-01 17:49 [PATCH] Elpa's GNUmakefile: process_archive Serghei Iakovlev
2020-03-02 18:09 ` Serghei
2020-03-02 19:50   ` Stefan Monnier
2020-03-03 18:00 ` Stefan Monnier

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).