gnu: libcss: Fix building with gcc-10.

* gnu/packages/web.scm (libcss)[source]: Add snippet to initialize the
value of a variable.
This commit is contained in:
Efraim Flashner 2021-08-08 14:34:19 +03:00
parent 990704507b
commit d30130bcd6
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351

View File

@ -5387,7 +5387,13 @@ developed as part of the Netsurf project.")
"libcss-" version "-src.tar.gz"))
(sha256
(base32
"1p66sdiiqm7w4jkq23hsf08khsnmq93hshh9f9m8sbirjdpf3p6j"))))
"1p66sdiiqm7w4jkq23hsf08khsnmq93hshh9f9m8sbirjdpf3p6j"))
(modules '((guix build utils)))
(snippet
'(begin
;; This can be removed with the next release.
(substitute* "src/select/computed.c"
(("css_unit unit;") "css_unit unit = CSS_UNIT_PX;"))))))
(build-system gnu-build-system)
(native-inputs
`(("netsurf-buildsystem" ,netsurf-buildsystem)