~ruther/guix-local

ca32d92c3207b308b0f08e729b277192b9c225d8 — Guillaume Le Vaillant 7 months ago d8de918
gnu: gnucobol: Fix build with libxml2 >= 2.14.

* gnu/packages/cobol.scm (gnucobol)[arguments]: Add 'fix-build' phase.

Change-Id: I94d17e734b46e5c18fed33636e399afe48feb66e
1 files changed, 6 insertions(+), 0 deletions(-)

M gnu/packages/cobol.scm
M gnu/packages/cobol.scm => gnu/packages/cobol.scm +6 -0
@@ 65,6 65,12 @@
                              "/include/json-c")))
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'fix-build
             (lambda _
               ;; Fix build with libxml2 >= 2.14.
               (substitute* "libcob/common.c"
                 (("#include <libxml/xmlwriter.h>" all)
                  (string-append all "\n#include <libxml/parser.h>")))))
           (add-after 'unpack 'place-cobol85-test-suite
             (lambda* (#:key inputs #:allow-other-keys)
               (let ((newcob (assoc-ref inputs "newcob")))