summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2020-02-24 10:39:49 +0100
committerRicardo Wurmus <rekado@elephly.net>2020-02-24 10:44:00 +0100
commit0aa0e1f8f49263975095fa9b485f48d17ae0914d (patch)
tree882bfc8d108447f6400951ecfa9d748f8aeee629 /gnu
parent3d916a115b3e1d95918b38119ff1999e4953032c (diff)
downloadguix-0aa0e1f8f49263975095fa9b485f48d17ae0914d.tar.gz
gnu: wxwidgets-2: Fix build.
* gnu/packages/wxwidgets.scm (wxwidgets-2)[arguments]: Add phase
ignore-narrowing-errors to patch "configure" script.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/wxwidgets.scm11
1 files changed, 9 insertions, 2 deletions
diff --git a/gnu/packages/wxwidgets.scm b/gnu/packages/wxwidgets.scm
index 6010de781f..6d5c2b3921 100644
--- a/gnu/packages/wxwidgets.scm
+++ b/gnu/packages/wxwidgets.scm
@@ -1,6 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
-;;; Copyright © 2016, 2018 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2016, 2018, 2020 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2016 Theodoros Foradis <theodoros@foradis.org>
 ;;; Copyright © 2016 Danny Milosavljevic <dannym@scratchpost.org>
 ;;; Copyright © 2017 Rene Saavedra <rennes@openmailbox.org>
@@ -126,7 +126,14 @@ and many other languages.")
        (list (string-append "LDFLAGS=-Wl,-rpath="
                             (assoc-ref %outputs "out") "/lib"))
        ;; No 'check' target.
-       #:tests? #f))))
+       #:tests? #f
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'ignore-narrowing-errors
+           (lambda _
+             (substitute* "configure"
+               (("-Wall") "-Wall -Wno-narrowing"))
+             #t)))))))
 
 (define-public wxwidgets-gtk2
   (package (inherit wxwidgets)