mothacehe pushed a commit to branch master
in repository guix.
commit a0a55309a7aaffecb1dcfadc5daba5e7c7d896e1
Author: Michael Rohleder <[email protected]>
AuthorDate: Fri Jul 31 10:15:08 2020 +0200
gnu: qtimageformats: Fix build.
Reported by <nefix> on IRC.
* gnu/packages/qt.scm (qtimageformats)[arguments]: Add a 'fix-build phase.
Signed-off-by: Mathieu Othacehe <[email protected]>
---
gnu/packages/qt.scm | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 4b3af75..17a2ad1 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -18,6 +18,7 @@
;;; Copyright © 2020 Kei Kebreau <[email protected]>
;;; Copyright © 2020 TomZ <[email protected]>
;;; Copyright © 2020 Jonathan Brielmaier <[email protected]>
+;;; Copyright © 2020 Michael Rohleder <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -712,6 +713,16 @@ HostData=lib/qt5
'(begin
(delete-file-recursively "src/3rdparty")
#t))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments qtsvg)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (add-after 'unpack 'fix-build
+ (lambda _
+ (substitute* "src/plugins/imageformats/jp2/qjp2handler.cpp"
+ (("^#include <jasper/jasper.h>")
+ "#include <jasper/jasper.h>\n#include <QtCore/qmath.h>"))
+ #t))))))
(native-inputs `())
(inputs
`(("jasper" ,jasper)