gnu: glib: Update to 2.60.4.
* gnu/packages/glib.scm (glib): Update to 2.60.4. [source](snippet): New field. [arguments]: Remove obsolete DETERMINISTIC_BUILD variable. Disable two tests, and override the 'check' phase. Remove <#:parallel-build?>.
This commit is contained in:
parent
b3640e79f6
commit
6898f5b45b
1 changed files with 24 additions and 12 deletions
|
@ -161,7 +161,7 @@ shared NFS home directories.")
|
||||||
(define glib
|
(define glib
|
||||||
(package
|
(package
|
||||||
(name "glib")
|
(name "glib")
|
||||||
(version "2.58.1")
|
(version "2.60.4")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://gnome/sources/"
|
(uri (string-append "mirror://gnome/sources/"
|
||||||
|
@ -169,8 +169,14 @@ shared NFS home directories.")
|
||||||
name "-" version ".tar.xz"))
|
name "-" version ".tar.xz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1mnp4vankish8bqxymdl591p9v1ynk7pfc5dmpx3vamn4vcskmlp"))
|
"1p9k8z83272mkm4d4fhm5jhwhyw2basrwbz47yl5wbmrvk2ix51b"))
|
||||||
(patches (search-patches "glib-tests-timer.patch"))))
|
(patches (search-patches "glib-tests-timer.patch"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
(substitute* "tests/spawn-test.c"
|
||||||
|
(("/bin/sh") "sh"))
|
||||||
|
#t))))
|
||||||
(build-system meson-build-system)
|
(build-system meson-build-system)
|
||||||
(outputs '("out" ; everything
|
(outputs '("out" ; everything
|
||||||
"bin")) ; glib-mkenums, gtester, etc.; depends on Python
|
"bin")) ; glib-mkenums, gtester, etc.; depends on Python
|
||||||
|
@ -198,9 +204,6 @@ shared NFS home directories.")
|
||||||
(delete 'bootstrap)
|
(delete 'bootstrap)
|
||||||
(add-before 'build 'pre-build
|
(add-before 'build 'pre-build
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
;; For building deterministic pyc files
|
|
||||||
(setenv "DETERMINISTIC_BUILD" "1")
|
|
||||||
|
|
||||||
;; For tests/gdatetime.c.
|
;; For tests/gdatetime.c.
|
||||||
(setenv "TZDIR"
|
(setenv "TZDIR"
|
||||||
(string-append (assoc-ref inputs "tzdata")
|
(string-append (assoc-ref inputs "tzdata")
|
||||||
|
@ -281,9 +284,22 @@ shared NFS home directories.")
|
||||||
|
|
||||||
("gio/tests/gdbus-unix-addresses.c"
|
("gio/tests/gdbus-unix-addresses.c"
|
||||||
(;; Requires /etc/machine-id.
|
(;; Requires /etc/machine-id.
|
||||||
"/gdbus/x11-autolaunch")))))
|
"/gdbus/x11-autolaunch"))
|
||||||
|
|
||||||
|
("gio/tests/gsocketclient-slow.c"
|
||||||
|
(;; These tests tries to resolve "localhost", and fails.
|
||||||
|
"/socket-client/happy-eyeballs/slow"
|
||||||
|
"/socket-client/happy-eyeballs/cancellation/delayed"))
|
||||||
|
|
||||||
|
)))
|
||||||
(for-each (lambda (x) (apply disable x)) failing-tests)
|
(for-each (lambda (x) (apply disable x)) failing-tests)
|
||||||
#t)))
|
#t)))
|
||||||
|
(replace 'check
|
||||||
|
(lambda _
|
||||||
|
(setenv "MESON_TESTTHREADS"
|
||||||
|
(number->string (parallel-job-count)))
|
||||||
|
;; Do not run tests marked as "flaky".
|
||||||
|
(invoke "meson" "test" "--no-suite" "flaky")))
|
||||||
;; TODO: meson does not permit the bindir to be outside of prefix.
|
;; TODO: meson does not permit the bindir to be outside of prefix.
|
||||||
;; See https://github.com/mesonbuild/meson/issues/2561
|
;; See https://github.com/mesonbuild/meson/issues/2561
|
||||||
;; We can remove this once meson is patched.
|
;; We can remove this once meson is patched.
|
||||||
|
@ -302,16 +318,12 @@ shared NFS home directories.")
|
||||||
(string-append out "/lib/pkgconfig/glib-2.0.pc"))
|
(string-append out "/lib/pkgconfig/glib-2.0.pc"))
|
||||||
(("bindir=\\$\\{prefix\\}/bin") "")
|
(("bindir=\\$\\{prefix\\}/bin") "")
|
||||||
(("=\\$\\{bindir\\}/") "="))
|
(("=\\$\\{bindir\\}/") "="))
|
||||||
#t))))
|
#t))))))
|
||||||
;; TODO: see above for explanation.
|
;; TODO: see above for explanation.
|
||||||
;; #:configure-flags (list (string-append "--bindir="
|
;; #:configure-flags (list (string-append "--bindir="
|
||||||
;; (assoc-ref %outputs "bin")
|
;; (assoc-ref %outputs "bin")
|
||||||
;; "/bin"))
|
;; "/bin"))
|
||||||
|
|
||||||
;; In 'gio/tests', 'gdbus-test-codegen-generated.h' is #included in a
|
|
||||||
;; file that gets compiled possibly before it has been fully generated.
|
|
||||||
#:parallel-tests? #f))
|
|
||||||
|
|
||||||
(native-search-paths
|
(native-search-paths
|
||||||
;; This variable is not really "owned" by GLib, but several related
|
;; This variable is not really "owned" by GLib, but several related
|
||||||
;; packages refer to it: gobject-introspection's tools use it as a search
|
;; packages refer to it: gobject-introspection's tools use it as a search
|
||||||
|
|
Reference in a new issue