gnu: libevdev: Fix FTBFS with GCC7.
* gnu/packages/xorg.scm (libevdev)[arguments]: Add phase to please "gcc -pedantic".
This commit is contained in:
parent
8771fc1715
commit
43d4c22981
|
@ -2402,6 +2402,18 @@ XC-APPGROUP, XTEST.")
|
||||||
(base32
|
(base32
|
||||||
"0xca343ff12wh6nsq76r0nbsfrm8dypjrzm4fqz9vv9v8i8kfrp1"))))
|
"0xca343ff12wh6nsq76r0nbsfrm8dypjrzm4fqz9vv9v8i8kfrp1"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases (modify-phases %standard-phases
|
||||||
|
(add-before 'configure 'pedantry
|
||||||
|
(lambda _
|
||||||
|
;; XXX: libevdev includes kernel headers, which causes this
|
||||||
|
;; compile test to fail with:
|
||||||
|
;; ...-headers-4.14.67/include/asm-generic/posix_types.h:88:14:
|
||||||
|
;;error: ISO C90 does not support ‘long long’ [-Werror=long-long]
|
||||||
|
(substitute* "test/Makefile.in"
|
||||||
|
(("-pedantic -Werror -std=c89")
|
||||||
|
"-pedantic -Werror -std=c99"))
|
||||||
|
#t)))))
|
||||||
(native-inputs `(("python" ,python)))
|
(native-inputs `(("python" ,python)))
|
||||||
(home-page "https://www.freedesktop.org/wiki/Software/libevdev/")
|
(home-page "https://www.freedesktop.org/wiki/Software/libevdev/")
|
||||||
(synopsis "Wrapper library for evdev devices")
|
(synopsis "Wrapper library for evdev devices")
|
||||||
|
|
Loading…
Reference in New Issue