mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-17 20:27:36 -05:00
gnu: network-manager: Patch dlopen call to libjansson.so.
* gnu/packages/gnome.scm (network-manager)[phases] {patch-dlopen-call-to-libjansson}: New phase. {pre-configure}: Reinstate an assertion in test-setting.c.
This commit is contained in:
parent
a02c1ce716
commit
b8a771d5a5
1 changed files with 8 additions and 6 deletions
|
@ -7841,6 +7841,13 @@ (define-public network-manager
|
||||||
(string-append "-Ddhclient=" dhclient)))
|
(string-append "-Ddhclient=" dhclient)))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch-dlopen-call-to-libjansson.so
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(substitute* "src/libnm-glib-aux/nm-json-aux.c"
|
||||||
|
(("(handle = dlopen\\()soname" _ head)
|
||||||
|
(string-append
|
||||||
|
head "\"" (search-input-file inputs
|
||||||
|
"lib/libjansson.so") "\"")))))
|
||||||
(add-before 'configure 'pre-configure
|
(add-before 'configure 'pre-configure
|
||||||
(lambda _
|
(lambda _
|
||||||
;; These tests try to test aspects of network-manager's
|
;; These tests try to test aspects of network-manager's
|
||||||
|
@ -7859,12 +7866,7 @@ (define-public network-manager
|
||||||
((".*test-link-linux.*") "")
|
((".*test-link-linux.*") "")
|
||||||
((".*test-lldp.*") "")
|
((".*test-lldp.*") "")
|
||||||
((".*test-route-linux.*") "")
|
((".*test-route-linux.*") "")
|
||||||
((".*test-tc-linux.*") ""))
|
((".*test-tc-linux.*") ""))))
|
||||||
;; FIXME: The jansson check fails (see:
|
|
||||||
;; https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/837
|
|
||||||
(substitute* "src/libnm-core-impl/tests/test-setting.c"
|
|
||||||
(("g_assert\\(nm_json_vt\\(\\)\\);")
|
|
||||||
"return TRUE;"))))
|
|
||||||
(add-after 'unpack 'patch-docbook-xml
|
(add-after 'unpack 'patch-docbook-xml
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
|
(let ((xmldoc (string-append (assoc-ref inputs "docbook-xml")
|
||||||
|
|
Loading…
Reference in a new issue