gnu: libnice: Update to 0.1.21.

* gnu/packages/networking.scm (libnice): Update to 0.1.21.
[arguments]: Use gexps.
[native-inputs]: Remove labels.
This commit is contained in:
Maxim Cournoyer 2023-04-09 01:11:52 -04:00
parent cf34f40420
commit 523d66f183
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -26,7 +26,7 @@
;;; Copyright © 2018, 2020-2022 Marius Bakke <marius@gnu.org> ;;; Copyright © 2018, 2020-2022 Marius Bakke <marius@gnu.org>
;;; Copyright © 2018, 2020, 2021, 2022 Oleg Pykhalov <go.wigust@gmail.com> ;;; Copyright © 2018, 2020, 2021, 2022 Oleg Pykhalov <go.wigust@gmail.com>
;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz> ;;; Copyright © 2018 Pierre Neidhardt <mail@ambrevar.xyz>
;;; Copyright © 2019, 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2019, 2020, 2021, 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com> ;;; Copyright © 2019 Vasile Dumitrascu <va511e@yahoo.com>
;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu> ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si> ;;; Copyright © 2019 Timotej Lazar <timotej.lazar@araneo.si>
@ -413,79 +413,76 @@ (define-public libcamera
(license license:lgpl2.1+))) (license license:lgpl2.1+)))
(define-public libnice (define-public libnice
;; The latest release is old and randomly fails tests with GStreamer 1.18.5, (package
;; such as: "test-bind: ../libnice-0.1.18/stun/tests/test-bind.c:234: (name "libnice")
;; bad_responses: Assertion `len >= 20' failed" (version "0.1.21")
(let ((revision "0") (source
(commit "47a96334448838c43d7e72f4ef51b317befbfae1")) (origin
(package (method git-fetch)
(name "libnice") (uri (git-reference
(version (git-version "0.1.18" revision commit)) (url "https://gitlab.freedesktop.org/libnice/libnice")
(source (commit version)))
(origin (file-name (git-file-name name version))
(method git-fetch) (sha256
(uri (git-reference (base32
(url "https://gitlab.freedesktop.org/libnice/libnice") "0zxh1mdrl4p2vih8f4yqzm3pp4jsmc8aq7l43dlndaz4sj4c8j44"))))
(commit commit))) (build-system meson-build-system)
(file-name (git-file-name name version)) (outputs '("out" "doc"))
(sha256 (arguments
(base32 (list
"19ypjazslmsb9vqs2wyyzvi72h5jbn16dbng7pxh485djdrmgcg4")))) #:glib-or-gtk? #t ; To wrap binaries and/or compile schemas
(build-system meson-build-system) #:configure-flags
(outputs '("out" "doc")) #~(list"-Dgtk_doc=enabled")
(arguments #:phases
`(#:glib-or-gtk? #t ; To wrap binaries and/or compile schemas #~(modify-phases %standard-phases
#:configure-flags (add-after 'unpack 'disable-failing-tests
(list (lambda _
"-Dgtk_doc=enabled") (substitute* "tests/meson.build"
#:phases ;; test-set-port-range.c:66:main: assertion failed:
(modify-phases %standard-phases ;; (nice_agent_gather_candidates (agent, stream1))
(add-after 'unpack 'disable-failing-tests (("'test-set-port-range'" all)
(lambda _ (string-append "# " all))
(substitute* "tests/meson.build" ;; The following test is disabled as it fails in a
;; test-set-port-range.c:66:main: assertion failed: ;; nondeterministic fashion (see:
;; (nice_agent_gather_candidates (agent, stream1)) ;; https://gitlab.freedesktop.org/libnice/libnice/-/issues/151).
(("'test-set-port-range'" all) (("'test-bsd'" all)
(string-append "# " all)) (string-append "# " all)))
;; The following test is disabled as it fails in a (substitute* "stun/tests/meson.build"
;; nondeterministic fashion (see: ;; test-bind.c:234: bad_responses: Assertion `len >= 20'
;; https://gitlab.freedesktop.org/libnice/libnice/-/issues/151). ;; failed (see:
(("'test-bsd'" all) ;; https://gitlab.freedesktop.org/libnice/libnice/-/issues/150).
(string-append "# " all))) (("'bind', ")
(substitute* "stun/tests/meson.build" ""))))
;; test-bind.c:234: bad_responses: Assertion `len >= 20' (add-after 'install 'move-docs
;; failed (see: (lambda _
;; https://gitlab.freedesktop.org/libnice/libnice/-/issues/150). (mkdir-p (string-append #$output:doc "/share"))
(("'bind', ") (rename-file
"")))) (string-append #$output "/share/gtk-doc")
(add-after 'install 'move-docs (string-append #$output:doc "/share/gtk-doc")))))))
(lambda* (#:key outputs #:allow-other-keys) (native-inputs
(let* ((out (assoc-ref outputs "out")) (list `(,glib "bin")
(doc (assoc-ref outputs "doc"))) gobject-introspection
(mkdir-p (string-append doc "/share")) graphviz
(rename-file gtk-doc/stable
(string-append out "/share/gtk-doc") pkg-config))
(string-append doc "/share/gtk-doc")))))))) (inputs
(native-inputs (list gstreamer
`(("glib:bin" ,glib "bin") gst-plugins-base
("gobject-introspection" ,gobject-introspection) libnsl))
("graphviz" ,graphviz) (propagated-inputs
("gtk-doc" ,gtk-doc/stable) (list glib
("pkg-config" ,pkg-config))) glib-networking
(inputs gnutls))
(list gstreamer gst-plugins-base libnsl)) (synopsis "GLib ICE implementation")
(propagated-inputs (description "LibNice is a library that implements the Interactive
(list glib glib-networking gnutls))
(synopsis "GLib ICE implementation")
(description "LibNice is a library that implements the Interactive
Connectivity Establishment (ICE) standard (RFC 5245 & RFC 8445). It provides a Connectivity Establishment (ICE) standard (RFC 5245 & RFC 8445). It provides a
GLib-based library, libnice, as well as GStreamer elements to use it.") GLib-based library, libnice, as well as GStreamer elements to use it.")
(home-page "https://libnice.freedesktop.org/") (home-page "https://libnice.freedesktop.org/")
(license (license
;; This project is dual-licensed. ;; This project is dual-licensed.
(list (list
license:lgpl2.1+ license:lgpl2.1+
license:mpl1.1))))) license:mpl1.1))))
(define-public librecast (define-public librecast
(package (package