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

* Re: [PATCH] Elpa's GNUmakefile: process_archive
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Serghei @ 2020-03-02 18:09 UTC (permalink / raw)
  To: GNU Emacs Developers

Anyone?

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Sunday, March 1, 2020 7:49 PM, Serghei Iakovlev <egrep@protonmail.ch> wrote:

> 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

--
Serghei



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

* Re: [PATCH] Elpa's GNUmakefile: process_archive
  2020-03-02 18:09 ` Serghei
@ 2020-03-02 19:50   ` Stefan Monnier
  0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2020-03-02 19:50 UTC (permalink / raw)
  To: Serghei; +Cc: GNU Emacs Developers

> Anyone?

I'll get to it.


        Stefan


> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Sunday, March 1, 2020 7:49 PM, Serghei Iakovlev <egrep@protonmail.ch> wrote:
>
>> 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
>
> --
> Serghei




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

* Re: [PATCH] Elpa's GNUmakefile: process_archive
  2020-03-01 17:49 [PATCH] Elpa's GNUmakefile: process_archive Serghei Iakovlev
  2020-03-02 18:09 ` Serghei
@ 2020-03-03 18:00 ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2020-03-03 18:00 UTC (permalink / raw)
  To: Serghei Iakovlev; +Cc: GNU Emacs Developers

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/x-markdown; coding=UTF-8, Size: 653 bytes --]

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

Hmm... not sure what happened, but I fixed this very problem apparently
on Oct 17 (IIRC it was in response to someone pointing out that his
package included files that should have been excluded), but for some
reason the commit never made it to elpa.git whereas the fix did make it
to the deployed copy that's running on elpa.gnu.org.

Anyway, should be fixed now, and thank you for the heads up,


        Stefan




^ permalink raw reply	[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).