~ruther/guix-local

13614fc500d7ef83e045a97a2df93b698ddc0d7a — Liliana Marie Prikler 11 months ago 4cb2e66
gnu: libgphoto2: Fix build with GCC 14.

* gnu/packages/video.scm (libgphoto2)[arguments]: Add
'relax-gcc-14-strictness phase to fix CFLAGS.

Change-Id: I1f9df6ff1fcb5868199e09127b5c03127a26201b
Signed-off-by: Andreas Enge <andreas@enge.fr>
1 files changed, 10 insertions(+), 0 deletions(-)

M gnu/packages/photo.scm
M gnu/packages/photo.scm => gnu/packages/photo.scm +10 -0
@@ 250,6 250,16 @@ data as produced by digital cameras.")
               (base32
                "1d0g3ixxfz3sfm5rzibydqd9ccflls86pq0ls48zfp5dqvda2qgf"))))
    (build-system gnu-build-system)
    (arguments
     (list #:phases
           #~(modify-phases %standard-phases
               (add-before 'configure 'relax-gcc-14-strictness
                 ;; Required on i686, but not x86_64.
                 (lambda _
                   (setenv "CFLAGS"
                           (string-append
                             "-g -O2 "
                             "-Wno-incompatible-pointer-types")))))))
    (native-inputs (list pkg-config))
    (inputs
     (list libjpeg-turbo libltdl libusb libxml2))