[Pkg-javascript-devel] Bug#1058552: science.js: FTBFS: SyntaxError: Error parsing /<<PKGBUILDDIR>>/package.json: Unexpected end of JSON input
James Valleroy
jvalleroy at mailbox.org
Mon Feb 12 16:48:42 GMT 2024
tags 1058552 patch
thanks
Here is a patch that fixes the build:
From: James Valleroy <jvalleroy at mailbox.org>
Date: Sun, 11 Feb 2024 07:40:16 -0500
Subject: Use a temp file for package.json contents
---
Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index c9e03c2..4cbfec9 100644
--- a/Makefile
+++ b/Makefile
@@ -77,7 +77,9 @@ install:
package.json: src/package.js
@rm -f $@
- node src/package.js > $@
+ TEMPFILE=mktemp
+ node src/package.js > "$TEMPFILE"
+ mv "$TEMPFILE" $@
@chmod a-w $@
clean:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20240212/2ad0edf0/attachment.sig>
More information about the Pkg-javascript-devel
mailing list