[packages/gjs] - stabilize CPP for dtrace

qboosh qboosh at pld-linux.org
Sat Apr 26 13:18:28 CEST 2025


commit 84b6ee2a578b2bf003f8494645eb2922248a0b39
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Apr 26 12:26:18 2025 +0200

    - stabilize CPP for dtrace

 gjs.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/gjs.spec b/gjs.spec
index 2bbaa74..58f2690 100644
--- a/gjs.spec
+++ b/gjs.spec
@@ -36,6 +36,10 @@ BuildRequires:	xz
 Requires:	glib2 >= 1:2.68.0
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# dtrace script expects CPP to be cpp, not "gcc -E", so force it regardless of rpm version
+# (autotools-based rpm<4.19 used to have "gcc -E", cmake builds for 4.19+ switched to cpp)
+%define		__cpp	cpp
+
 %description
 Gjs allows using GNOME libraries from JavaScript. It is mainly based
 on Spidermonkey JavaScript engine and the GObject introspection
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gjs.git/commitdiff/84b6ee2a578b2bf003f8494645eb2922248a0b39



More information about the pld-cvs-commit mailing list