* bug#53048: 28.0.90; [PATCH] GNU ELPA local build fails silently on macOS
@ 2022-01-06 10:35 Y. E. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-09 13:25 ` Stefan Kangas
0 siblings, 1 reply; 2+ messages in thread
From: Y. E. via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-01-06 10:35 UTC (permalink / raw)
To: 53048
[-- Attachment #1: Type: text/plain, Size: 1126 bytes --]
On macOS, with the default 'bsdtar', 'make build/<pkg>' fails to create
a tarball, but does not warn about it, outputting:
> ======== Building tarball archive-devel/<pkg-vers>.tar...
> ######## Built new package archive-devel/<pkg-vers>.tar!
> ======== Building tarball archive/<pkg-ver>.tar...
> ######## Built new package archive/<pkg-ver>.tar!
['bsdtar' does not expose '--transform' option. Though it provides a
similar '-s' option with a bit different syntax.]
This patch suggests asserting a tarball was generated. This would
result in a more helpful output on a failed generation:
> ======== Building tarball archive-devel/<pkg-vers>.tar...
> Build error for archive-devel/<pkg-vers>.tar: (cl-assertion-failed (file-readable-p tarball))
> ######## Build of package archive-devel/<pkg-vers>.tar FAILED!!
> ======== Building tarball archive/<pkg-ver>.tar...
> Build error for archive/<pkg-ver>.tar: (cl-assertion-failed (file-readable-p tarball))
> ######## Build of package archive/<pkg-ver>.tar FAILED!!
In GNU Emacs 28.0.90 (build 1, x86_64-apple-darwin21.1.0, NS appkit-2113.00 Version 12.0.1 (Build 21A559))
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Assert tarball exists --]
[-- Type: text/x-patch, Size: 803 bytes --]
From b8ce44d9f3da636a9236d7fc6a29dffb73d819ec Mon Sep 17 00:00:00 2001
From: YugaEgo <yet@ego.team>
Date: Thu, 6 Jan 2022 11:55:27 +0200
Subject: [PATCH] * admin/elpa-admin.el (elpaa--make-one-tarball-1): Assert
tarball exists
---
elpa-admin.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/elpa-admin.el b/elpa-admin.el
index b4ad318ef6..d94cc7fd73 100644
--- a/elpa-admin.el
+++ b/elpa-admin.el
@@ -612,6 +612,7 @@ auxillary files unless TARBALL-ONLY is non-nil ."
,(format "s|^packages/%s|%s-%s|" pkgname pkgname vers)
"-chf" ,tarball
,(concat "packages/" pkgname)))
+ (cl-assert (file-readable-p tarball))
(unless tarball-only
(let* ((pkgdesc
;; FIXME: `elpaa--write-pkg-file' wrote the metadata to
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#53048: 28.0.90; [PATCH] GNU ELPA local build fails silently on macOS
2022-01-06 10:35 bug#53048: 28.0.90; [PATCH] GNU ELPA local build fails silently on macOS Y. E. via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-01-09 13:25 ` Stefan Kangas
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Kangas @ 2022-01-09 13:25 UTC (permalink / raw)
To: Y. E.; +Cc: 53048-done
Y. E. <yet@ego.team> writes:
> From b8ce44d9f3da636a9236d7fc6a29dffb73d819ec Mon Sep 17 00:00:00 2001
> From: YugaEgo <yet@ego.team>
> Date: Thu, 6 Jan 2022 11:55:27 +0200
> Subject: [PATCH] * admin/elpa-admin.el (elpaa--make-one-tarball-1): Assert
> tarball exists
>
> ---
> elpa-admin.el | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/elpa-admin.el b/elpa-admin.el
> index b4ad318ef6..d94cc7fd73 100644
> --- a/elpa-admin.el
> +++ b/elpa-admin.el
> @@ -612,6 +612,7 @@ auxillary files unless TARBALL-ONLY is non-nil ."
> ,(format "s|^packages/%s|%s-%s|" pkgname pkgname vers)
> "-chf" ,tarball
> ,(concat "packages/" pkgname)))
> + (cl-assert (file-readable-p tarball))
> (unless tarball-only
> (let* ((pkgdesc
> ;; FIXME: `elpaa--write-pkg-file' wrote the metadata to
Makes sense, pushed as commit 102694997e.
Thanks for the patch!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-01-09 13:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06 10:35 bug#53048: 28.0.90; [PATCH] GNU ELPA local build fails silently on macOS Y. E. via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-09 13:25 ` Stefan Kangas
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).