From 3e605b6998b6b5d748835bae6994a0ff01b0bd18 Mon Sep 17 00:00:00 2001 From: Mark H Weaver Date: Mon, 6 May 2019 10:20:32 -0400 Subject: gnu: icecat-source: Make sure 'makeicecat' is the right version. * gnu/packages/gnuzilla.scm (icecat-source): Check to make sure the value of FFMAJOR in the 'makeicecat' script matches the major version of IceCat being generated. --- gnu/packages/gnuzilla.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm index 87e51931c6..c9b14cfd16 100644 --- a/gnu/packages/gnuzilla.scm +++ b/gnu/packages/gnuzilla.scm @@ -528,7 +528,13 @@ from forcing GEXP-PROMISE." "-p1" "--input" #+makeicecat-patch) (patch-shebang "makeicecat") (substitute* "makeicecat" - (("^FFMAJOR=.*") + (("^FFMAJOR=(.*)" all ffmajor) + (unless (string=? #$major-version + (string-trim-both ffmajor)) + ;; The makeicecat script cannot be expected to work + ;; properly on a different version of Firefox, even if + ;; no errors occur during execution. + (error "makeicecat major version mismatch")) (string-append "FFMAJOR=" #$major-version "\n")) (("^FFMINOR=.*") (string-append "FFMINOR=" #$minor-version "\n")) -- cgit v1.2.3