gnu: perl-tk: Fix build with gcc-14.

* gnu/packages/tcl.scm (perl-tk)[inputs]: Remove labels.
[arguments]: Use G-Expressions.  Add CC to #:make-maker-flags to relax
gcc-14's strictness.

Change-Id: Id4d65d2e60bbb1e1e78a220b9e6c72277d24e799
This commit is contained in:
Janneke Nieuwenhuizen 2025-01-03 18:45:22 +01:00
parent 80cf217acf
commit a85225586b
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -278,15 +278,19 @@ (define-public perl-tk
"0pha40m97fzafjnq8vwkbi5sml6xv8jki6qi60rxrzmxlrqp5aij"))))
(build-system perl-build-system)
(native-inputs (list pkg-config))
(inputs `(("libx11" ,libx11)
("libpng" ,libpng)
("libjpeg" ,libjpeg-turbo)))
(inputs (list libx11 libpng libjpeg-turbo))
(arguments
`(#:make-maker-flags `(,(string-append
"X11=" (assoc-ref %build-inputs "libx11")))
;; Fails to build in parallel: <http://bugs.gnu.org/18262>.
#:parallel-build? #f))
(list
#:make-maker-flags
#~(list (string-append "X11=" #$libx11)
;; Using CFLAGS partly works but also creates a broken Makefile
#$(string-append "CC=gcc"
" -Wno-error=implicit-function-declaration"
" -Wno-error=implicit-int"
" -Wno-error=incompatible-pointer-types"
" -Wno-error=int-to-pointer-cast"))
;; Fails to build in parallel: <http://bugs.gnu.org/18262>.
#:parallel-build? #f))
(synopsis "Graphical user interface toolkit for Perl")
(description
"Tk is a Graphical User Interface ToolKit.")