gnu: gpm: Adjust for GCC 10.
* gnu/packages/linux.scm (gpm)[source](modules, snippet): New fields.
This commit is contained in:
parent
2b2ecbace4
commit
708fc4a2b0
1 changed files with 10 additions and 1 deletions
|
@ -5049,7 +5049,16 @@ Ridge, Joliet, and zisofs.")
|
||||||
(patches (search-patches "gpm-glibc-2.26.patch"))
|
(patches (search-patches "gpm-glibc-2.26.patch"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh"))))
|
"13d426a8h403ckpc8zyf7s2p5rql0lqbg2bv0454x0pvgbfbf4gh"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
;; Take a patch from upstream to fix building with -fno-common,
|
||||||
|
;; which is default in GCC 10:
|
||||||
|
;; https://github.com/telmich/gpm/pull/37
|
||||||
|
(substitute* "src/headers/daemon.h"
|
||||||
|
(("^time_t[[:blank:]]+last_selection_time;")
|
||||||
|
"extern time_t last_selection_time;"))))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases (modify-phases %standard-phases
|
'(#:phases (modify-phases %standard-phases
|
||||||
|
|
Reference in a new issue