Package: release.debian.org
Severity: normal
Tags: bookworm
X-Debbugs-Cc: [email protected], [email protected]
Control: affects -1 + src:science.js
User: [email protected]
Usertags: pu

[ Reason ]
Fix FTBFS Bug #1058552.

[ Impact ]
Anybody trying to build the package may find that the package does not build.

[ Tests ]
I've checked that the package builds ok in bookworm again.

[ Risks ]
Low. The fix is the one that was already applied for trixie.

[ Checklist ]
  [X] *all* changes are documented in the d/changelog
  [X] I reviewed all changes and I approve them
  [X] attach debdiff against the package in (old)stable
  [X] the issue is verified as fixed in unstable

[ Changes ]
See changelog.

[ Other info ]
I've already uploaded the package.
diff -Nru science.js-1.9.3+dfsg/debian/changelog 
science.js-1.9.3+dfsg/debian/changelog
--- science.js-1.9.3+dfsg/debian/changelog      2022-01-02 09:50:31.000000000 
+0100
+++ science.js-1.9.3+dfsg/debian/changelog      2026-05-20 00:30:00.000000000 
+0200
@@ -1,3 +1,12 @@
+science.js (1.9.3+dfsg-3+deb12u1) bookworm; urgency=medium
+
+  * Team upload.
+
+  [ Petter Reinholdtsen ]
+  * Fixed build race condition problem. Closes: #1058552, #1078902.
+
+ -- Santiago Vila <[email protected]>  Wed, 20 May 2026 00:30:00 +0200
+
 science.js (1.9.3+dfsg-3) unstable; urgency=medium
 
   * Team upload
diff -Nru science.js-1.9.3+dfsg/debian/patches/1000-rebuild-package-json.patch 
science.js-1.9.3+dfsg/debian/patches/1000-rebuild-package-json.patch
--- science.js-1.9.3+dfsg/debian/patches/1000-rebuild-package-json.patch        
1970-01-01 01:00:00.000000000 +0100
+++ science.js-1.9.3+dfsg/debian/patches/1000-rebuild-package-json.patch        
2026-05-19 23:03:00.000000000 +0200
@@ -0,0 +1,23 @@
+Description: Fix build problem.
+ This change seem to avoid some race condition where node reads the file is is
+ also writing before it is completely writte.
+Author: James Valleroy
+Bug-Debian: https://bugs.debian.org/1058552
+Forwarded: no
+Reviewed-By: Petter Reinholdtsen
+Last-Update: 2024-04-13
+
+---
+Index: science.js-salsa/Makefile
+===================================================================
+--- science.js-salsa.orig/Makefile     2024-04-13 16:55:26.413339960 +0200
++++ science.js-salsa/Makefile  2024-04-13 16:55:40.657474594 +0200
+@@ -77,7 +77,7 @@
+ 
+ package.json: src/package.js
+       @rm -f $@
+-      node src/package.js > $@
++      node src/package.js > package.json.temp && mv package.json.temp $@
+       @chmod a-w $@
+ 
+ clean:
diff -Nru science.js-1.9.3+dfsg/debian/patches/series 
science.js-1.9.3+dfsg/debian/patches/series
--- science.js-1.9.3+dfsg/debian/patches/series 2020-01-21 22:41:27.000000000 
+0100
+++ science.js-1.9.3+dfsg/debian/patches/series 2026-05-19 23:00:00.000000000 
+0200
@@ -1,2 +1,3 @@
 fix_syntax_error.diff
 remove_makefile.diff
+1000-rebuild-package-json.patch
-- 
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to