[neon/qt6/qt6-webengine/Neon/unstable] debian: obviously wasn't as global as i thought

Carlos De Maine null at kde.org
Wed Sep 6 05:39:23 BST 2023


Git commit ea0c7951ba168e1aa264b8cd86e6db2d052ee89a by Carlos De Maine.
Committed on 06/09/2023 at 06:39.
Pushed by carlosdem into branch 'Neon/unstable'.

obviously wasn't as global as i thought

M  +13   -0    debian/rules

https://invent.kde.org/neon/qt6/qt6-webengine/-/commit/ea0c7951ba168e1aa264b8cd86e6db2d052ee89a

diff --git a/debian/rules b/debian/rules
index 8920f37..5972e28 100755
--- a/debian/rules
+++ b/debian/rules
@@ -57,6 +57,19 @@ override_dh_auto_clean:
 
 # Turn on system FFmpeg libraries for 6.3
 override_dh_auto_configure:
+# this oneshell bash snippet  init's nvm and installs the required node deps with npm. Makefile's sh doesn't
+# know bashism's and executes each line in a new shell thus losing all the env variables
+.ONESHELL:
+nvm_init_please:
+	@nvm_init_please=defined
+	source /etc/profile.d/nvm-profile.sh
+	npm install pako
+	npm install rollup-plugin-terser
+	npm install yargs
+	echo $${nvm_init_please:-undefined}
+
+.PHONY: nvm_init_please
+
 	dh_auto_configure -- \
 		--log-level=STATUS \
 		-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \


More information about the Neon-commits mailing list