mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-26 04:29:25 -05:00
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.
This commit is contained in:
parent
ebff346945
commit
3e605b6998
1 changed files with 7 additions and 1 deletions
|
@ -528,7 +528,13 @@ (define icecat-source
|
|||
"-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"))
|
||||
|
|
Loading…
Reference in a new issue