~ruther/guix-local

357a6a31cf548948644f2454e5f6d2f849dda523 — Janneke Nieuwenhuizen 1 year, 7 months ago 06539b1
gnu: 389-ds-base: Fix build with gcc-14.

* gnu/packages/openldap.scm (389-ds-base)[arguments]: Add CFLAGS to #:configure-flags
to relax gcc-14's strictness.

Change-Id: I54510c0d0d0f9032f4f5043053b0282e0a4ffb9e
Modified-by: Zheng Junjie <z572@z572.online>
1 files changed, 13 insertions(+), 9 deletions(-)

M gnu/packages/openldap.scm
M gnu/packages/openldap.scm => gnu/packages/openldap.scm +13 -9
@@ 244,15 244,19 @@ servers from Python programs.")
                           ,@%default-gnu-imported-modules)
      #:disallowed-references (list httpd)
      #:configure-flags
      #~(list "--enable-cmocka"
              (string-append "--with-db="
                             #$(this-package-input "bdb"))
              (string-append "--with-netsnmp="
                             #$(this-package-input "net-snmp"))
              (string-append "--with-selinux="
                             #$(this-package-input "libselinux"))
              "--localstatedir=/var"
              "--with-instconfigdir=/etc/dirsrv")
      #~(list
         ;; Relax gcc-14's strictness.
         (string-append "CFLAGS=-g -O2"
                        " -Wno-error=incompatible-pointer-types")
         "--enable-cmocka"
         (string-append "--with-db="
                        #$(this-package-input "bdb"))
         (string-append "--with-netsnmp="
                        #$(this-package-input "net-snmp"))
         (string-append "--with-selinux="
                        #$(this-package-input "libselinux"))
         "--localstatedir=/var"
         "--with-instconfigdir=/etc/dirsrv")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-references