gnu: libdbi-drivers: Fix build with gcc-14.

* gnu/packages/databases.scm (libdbi-drivers)[arguments]<#:phases>{'gcc14}:
New phase setting CFLAGS.

Change-Id: Ie22be2183476c75b9e26d53af232191e5e0b8f4c
This commit is contained in:
Andreas Enge 2025-07-22 11:26:08 +02:00
parent 84bc6d4d36
commit b219249717
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -5820,6 +5820,15 @@ simultaneous database connections by using this framework.")
#:tests? #f ; FIXME: Find why the tests get stuck forever. #:tests? #f ; FIXME: Find why the tests get stuck forever.
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'gcc14
(lambda _
(setenv "CFLAGS"
(string-append
"-g -O2 "
"-Wno-error=int-conversion "
"-Wno-error=incompatible-pointer-types "
"-Wno-error=implicit-function-declaration"))))
(add-after 'unpack 'fix-tests (add-after 'unpack 'fix-tests
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "tests/test_mysql.sh" (substitute* "tests/test_mysql.sh"