[Pkg-javascript-devel] Bug#1109746: node-webfont: FTBFS with lto enabled [PATCH]
Gianfranco Costamagna
locutusofborg at debian.org
Wed Jul 23 08:01:03 BST 2025
Source: node-webfont
Version: 11.4.0+dfsg2+~cs35.7.26-13
tags: patch
Hello, looks like when lto is enabled by default your package FTBFS due to emscripted not understanding the lto flags. While probably emscripten is faulty here, I already found some hacks in the patch removing other flags, so I just adapted it to make sure lto is disabled unconditionally.
Please apply the patch when convenient.
Gianfranco
diff -Nru node-webfont-11.4.0+dfsg2+~cs35.7.26/debian/changelog node-webfont-11.4.0+dfsg2+~cs35.7.26/debian/changelog
--- node-webfont-11.4.0+dfsg2+~cs35.7.26/debian/changelog 2025-04-16 22:58:14.000000000 +0200
+++ node-webfont-11.4.0+dfsg2+~cs35.7.26/debian/changelog 2025-07-22 14:52:03.000000000 +0200
@@ -1,3 +1,10 @@
+node-webfont (11.4.0+dfsg2+~cs35.7.26-13.1) unstable; urgency=medium
+
+ * Non-maintainer upload
+ * Also Disable lto to fix build of wawoff2 (closes: #-1)
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org> Tue, 22 Jul 2025 14:52:03 +0200
+
node-webfont (11.4.0+dfsg2+~cs35.7.26-13) unstable; urgency=medium
* Disable svgicons2svgfont and wawoff2 build-time test except on amd64;
diff -Nru node-webfont-11.4.0+dfsg2+~cs35.7.26/debian/patches/build-wawoff2.patch node-webfont-11.4.0+dfsg2+~cs35.7.26/debian/patches/build-wawoff2.patch
--- node-webfont-11.4.0+dfsg2+~cs35.7.26/debian/patches/build-wawoff2.patch 2025-04-16 22:58:14.000000000 +0200
+++ node-webfont-11.4.0+dfsg2+~cs35.7.26/debian/patches/build-wawoff2.patch 2025-07-22 14:52:03.000000000 +0200
@@ -20,7 +20,7 @@
+# emcc cannot handle stack protection, see
+# https://github.com/emscripten-core/emscripten/issues/17030
+# so we have to disable it
-+EMOPTS = $(shell DEB_BUILD_MAINT_OPTIONS=hardening=-stackprotector,-branch dpkg-buildflags --export=sh)
++EMOPTS = $(shell DEB_BUILD_MAINT_OPTIONS="hardening=-stackprotector,-branch optimize=-lto" dpkg-buildflags --export=sh)
+
+CARGS = --bind -s NODEJS_CATCH_REJECTION=0 -s NODEJS_CATCH_EXIT=0 -s ALLOW_MEMORY_GROWTH=1 -s SINGLE_FILE=1 -O3
+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: application/octet-stream
Size: 1557 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20250723/ae31436f/attachment.obj>
More information about the Pkg-javascript-devel
mailing list