Commit graph

152494 commits

Author SHA1 Message Date
Leo Nikkilä
556a8cd6f9
gnu: gcc-4.7: Fix slash in startfile prefix.
These prefixes must have a trailing slash.[0] When this slash is
omitted, gcc fails to find ?crt*.o files when LIBRARY_PATH is not set:

    $ uname -a
    Linux guix 6.10.14-gnu #1 SMP PREEMPT_DYNAMIC 1 aarch64 GNU/Linux
    $ guix shell --pure gcc-toolchain -- /bin/sh -c 'LIBRARY_PATH= gcc hello.c'
    ld: cannot find crt1.o: No such file or directory
    ld: cannot find crti.o: No such file or directory
    collect2: error: ld returned 1 exit status

I ran into this when building Yocto images in Guix containers, where
bitbake resets the environment and expects an FHS system.

Looking at `-print-search-dirs', the prefix is definitely present at the
end of the startfiles prefixes list[1]:

    $ guix shell --pure gcc-toolchain -- /bin/sh -c 'LIBRARY_PATH= gcc -print-search-dirs'
    <...>
    libraries: <...>:/gnu/store/3gvs8sw95ldfypr1n688svl5brwdmdi9-glibc-2.39/lib

However, looking closer with strace, gcc is trying to find crt1.o at
`/lib../lib/crt1.o' and `/libcrt1.o', which are paths that have been
mangled due to the missing slash:

    $ guix shell --pure gcc-toolchain strace -- /bin/sh -c 'LIBRARY_PATH= strace -e trace=file gcc hello.c' 2>&1 | grep /gnu/store/3gvs8sw95ldfypr1n688svl5brwdmdi9-glibc-2.39/lib
    <...>
    faccessat(AT_FDCWD, "/gnu/store/3gvs8sw95ldfypr1n688svl5brwdmdi9-glibc-2.39/lib../lib/crt1.o", R_OK) = -1 ENOENT (No such file or directory)
    faccessat(AT_FDCWD, "/gnu/store/3gvs8sw95ldfypr1n688svl5brwdmdi9-glibc-2.39/libcrt1.o", R_OK) = -1 ENOENT (No such file or directory)
    <...>

[0]: <https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/gcc.cc;h=92c92996401005a9ad17fecd1af4385833785cec;hb=HEAD#l1610>
[1]: <https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/gcc.cc;h=92c92996401005a9ad17fecd1af4385833785cec;hb=HEAD#l8604>

* gnu/packages/gcc.scm (gcc-4.7): Fix replaced startfile prefix.
[arguments]: <#:phases>: Fix it.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-01-16 23:32:14 +01:00
Janneke Nieuwenhuizen
5e7c01875c
gnu: gettext: Update to 0.23.1.
* gnu/packages/gettext.scm (gettext-minimal): Update to 0.23.1.

Change-Id: If40e64e0498e953373eda53ed0bf96a5ed273870
2025-01-13 08:56:24 +01:00
Janneke Nieuwenhuizen
6474c2a713
gnu: clang-runtime-19: Build with gcc-14.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Leave
unaltered for version >= 19.

Change-Id: I85e7aa39918b545eca43478cffa626e533183238
2025-01-13 08:56:24 +01:00
Janneke Nieuwenhuizen
d2b41f0722
gnu: clang-runtime-17: Build with gcc-13.
Avoid

    /tmp/guix-build-clang-runtime-17.0.6.drv-0/source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__filesystem/path.h:623:30: error: use of built-in trait '__remove_pointer(typename std::__Fuzzer::decay<_Tp>::type)' in function signature; use library traits instead
      623 |   _EnableIfPathable<_Source> append(const _Source& __src) {
          |                              ^~~~~~

by using gcc-13.

* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use gcc-13
for version 17.

Change-Id: I0f815e178ea2f936e680075b1153285cf920b26e
2025-01-13 08:56:24 +01:00
Janneke Nieuwenhuizen
b7a449fd00
gnu: clang-runtime-18: Build with gcc-13.
Avoid

    In file included from /tmp/guix-build-clang-runtime-18.1.8.drv-0/source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__exception/nested_exception.h:18,
                     from /tmp/guix-build-clang-runtime-18.1.8.drv-0/source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/exception:83,
                     from /tmp/guix-build-clang-runtime-18.1.8.drv-0/source/libcxxabi/src/cxa_aux_runtime.cpp:13:
    /tmp/guix-build-clang-runtime-18.1.8.drv-0/source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__type_traits/is_convertible.h:28:77: error: there are no arguments to ‘__is_convertible’ that depend on a template parameter, so a declaration of ‘__is_convertible’ must be available [-fpermissive]
       28 | struct _LIBCPP_TEMPLATE_VIS is_convertible : public integral_constant<bool, __is_convertible(_T1, _T2)> {};

by using gcc-13.

* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use gcc-13
for version 18.

Change-Id: Ib01403665af7a8014e6da612bc6f31257e498d88
2025-01-13 08:56:24 +01:00
Janneke Nieuwenhuizen
166d8fb84a
gnu: clang-runtime-18: Build with gcc-12.
Avoid

    source/build/lib/fuzzer/libcxx_fuzzer_x86_64/include/c++/v1/__filesystem/path.h:534:52: error: use of built-in trait ‘__remove_pointer(typename std::__Fuzzer::decay<_Tp>::type)’ in function signature; use library traits instead

by reverting back to gcc-12.

* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use gcc-12
for version 18.

Change-Id: Ib01403665af7a8014e6da612bc6f31257e498d88
2025-01-13 08:56:24 +01:00
Janneke Nieuwenhuizen
10b6c95e73
gnu: clang-runtime: Remove gcc-12,13,14 from native-inputs.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[native-inputs]: Use
llvm's native inputs unmodified.

Change-Id: Ib01403665af7a8014e6da612bc6f31257e498d88
2025-01-13 08:56:16 +01:00
Janneke Nieuwenhuizen
b5b2522947
gnu: gcc: Update gcc, gcc-toolchain, libgccjit to 14.
* gnu/packages/gcc.scm (gcc): Define as gcc-14 for all.
(libgccjit): Define as libgccjit-14.
* gnu/packages/commencement.scm (gcc-toolchain): Define as gcc-toolchain-14
for all.
* gnu/packages/gcc.scm

Change-Id: Iaac983da8acbbb2fd1088a0469d6115b7d424dbb
2025-01-12 16:19:06 +01:00
Tomas Volf
50927338dd
gexp: Improve support of Unicode characters.
Support for non-ASCII characters was mixed.  Some gexp forms did support them,
while others did not.  Combined with current value for
%default-port-conversion-strategy, that sometimes led to unpleasant surprises.
For example:

    (scheme-file "utf8" #~(with-output-to-file #$output
                            (λ _ (display "猫"))))

Was written to the store as:

    ((? _ (display "\u732b")))

No, that is not font issue on your part, that is an actual #\? instead of the
lambda character.  Which, surprisingly, does not do what it should when
executed.

The solution is to switch to C.UTF-8 locale where possible, since it is now
always available.  Or to explicitly set the port encoding.

No tests are provided, since majority of tests/gexp.scm use guile in version
2, and it tends to work under it.  The issues occur mostly with guile 3.

I did test it locally using:

      #!/bin/sh
      set -eu
      set -x

      [ -f guix.scm ] || { echo >&2 Run from root of Guix repo.; exit 1; }
      [ -f gnu.scm  ] || { echo >&2 Run from root of Guix repo.; exit 1; }

      cat >猫.scm <<'EOF'
      (define-module (猫)
        #:export (say))

      (define (say)
        "nyaaaa~~~~!")
      EOF

      mkdir -p dir-with-utf8-file
      cp 猫.scm dir-with-utf8-file/

      cat >repro.scm <<'EOF'
      (use-modules (guix build utils)
                   (guix derivations)
                   (guix gexp)
                   (guix store)
                   (ice-9 ftw)
                   (ice-9 textual-ports))

      (define cat "猫")

      (define (drv-content drv)
        (call-with-input-file (derivation->output-path drv)
          get-string-all))

      (define (out-content out)
        (call-with-input-file out
          get-string-all))

      (define (drv-listing drv)
        (scandir (derivation->output-path drv)))

      (define (dir-listing dir)
        (scandir dir))

      (define-macro (test exp lower? report)
        (let ((type (car exp)))
          `(false-if-exception
            (let ((drv (with-store %store
                         (run-with-store %store
                           (,(if lower? lower-object identity) ,exp)))))
              (format #t "~%~a:~%" ',type)
              (when (with-store %store
                      (build-derivations %store (list drv)))
                (format #t "~a~%" (,report drv)))))))

      (test (computed-file "utf8"
                           #~(with-output-to-file #$output
                               (λ _ (display #$cat))))
            #t drv-content)

      (test (program-file "utf8"
                          #~((λ _ (display #$cat))))
            #t drv-content)

      (test (scheme-file "utf8"
                         #~((λ _ (display #$cat))))
            #t drv-content)

      (test (text-file* "utf8" cat cat cat)
            #f drv-content)

      (test (compiled-modules '((猫)))
            #f drv-listing)

      (test (file-union "utf8" `((,cat ,(plain-file "utf8" cat))))
            #t drv-listing)

      ;;; No fix needed:
      (test (imported-modules '((猫)))
            #f dir-listing)

      (test (local-file "dir-with-utf8-file" #:recursive? #t)
            #t dir-listing)

      (test (plain-file "utf8" cat)
            #t out-content)

      (test (mixed-text-file "utf8" cat cat cat)
            #t drv-content)

      (test (directory-union "utf8" (list (local-file "dir-with-utf8-file"
                                                      #:recursive? #t)))
            #t dir-listing)
      EOF

      guix shell -CWN -D guix glibc-locales -- \
           env LANG=C.UTF-8 ./pre-inst-env guix repl -- ./repro.scm

Before this commit, the output is:

      + '[' -f guix.scm ']'
      + '[' -f gnu.scm ']'
      + cat
      + mkdir -p dir-with-utf8-file
      + cp 猫.scm dir-with-utf8-file/
      + cat
      + guix shell -CWN -D guix glibc-locales -- env LANG=C.UTF-8 ./pre-inst-env guix repl -- ./repro.scm

      computed-file:
      ?

      program-file:
      #!/gnu/store/mfkz7fvlfpv3ppwbkv0imb19nrf95akf-guile-3.0.9/bin/guile --no-auto-compile
      !#
      ((? _ (display "\u732b")))

      scheme-file:
      ((? _ (display "\u732b")))

      text-file*:
      ???

      compiled-modules:
      building path(s) `/gnu/store/ay3jifyvliigfgnz67jf0kgngzpya5a5-module-import-compiled'
      Backtrace:
                 5 (primitive-load "/gnu/store/rn7b0dq6iqfmmqyqzamix2mjmfy?")
      In ice-9/eval.scm:
          619:8  4 (_ #f)
      In srfi/srfi-1.scm:
         460:18  3 (fold #<procedure 7ffff79245e0 at ice-9/eval.scm:336:1?> ?)
      In ice-9/eval.scm:
         245:16  2 (_ #(#(#<directory (guix build utils) 7ffff779f320>) # ?))
      In ice-9/boot-9.scm:
        1982:24  1 (_ _)
      In unknown file:
                 0 (stat "./???.scm" #<undefined>)

      ERROR: In procedure stat:
      In procedure stat: No such file or directory: "./???.scm"
      builder for `/gnu/store/dxg87135zcd6a1c92dlrkyvxlbhfwfld-module-import-compiled.drv' failed with exit code 1

      file-union:
      (. .. ?)

      imported-modules:
      (. .. 猫.scm)

      local-file:
      (. .. 猫.scm)

      plain-file:
      猫

      mixed-text-file:
      猫猫猫

      directory-union:
      (. .. 猫.scm)

Which I think you will agree is far from optimal.  After my fix the output
changes to:

      + '[' -f guix.scm ']'
      + '[' -f gnu.scm ']'
      + cat
      + mkdir -p dir-with-utf8-file
      + cp 猫.scm dir-with-utf8-file/
      + cat
      + guix shell -CWN -D guix glibc-locales -- env LANG=C.UTF-8 ./pre-inst-env guix repl -- ./repro.scm

      computed-file:
      猫

      program-file:
      #!/gnu/store/8kbmn359jqkgsbqgqxnmiryvd9ynz8w7-guile-3.0.9/bin/guile --no-auto-compile
      !#
      ((λ _ (display "猫")))

      scheme-file:
      ((λ _ (display "猫")))

      text-file*:
      猫猫猫

      compiled-modules:
      (. .. 猫.go)

      file-union:
      (. .. 猫)

      imported-modules:
      (. .. 猫.scm)

      local-file:
      (. .. 猫.scm)

      plain-file:
      猫

      mixed-text-file:
      猫猫猫

      directory-union:
      (. .. 猫.scm)

Which is actually what the user would expect.

I also added missing arguments to the documentation.

* guix/gexp.scm (computed-file):  Set LANG to C.UTF-8 by default.
(compiled-modules): Try to `setlocale'.
(gexp->script), (gexp->file): New `locale' argument defaulting to C.UTF-8.
(text-file*): Set output port encoding to UTF-8.
* doc/guix.texi (G-Expressions)[computed-file]: Document the changes.  Use
@var.  Document #:guile.
[gexp->script]: Document #:locale.  Fix default value for #:target.
[gexp->file]: Document #:locale, #:system and #:target.

Change-Id: Ib323b51af88a588b780ff48ddd04db8be7c729fb
2025-01-12 16:19:02 +01:00
Dariqq
c731443ea2
gnu: ath9k-firmware: Remove CMAKE_SYSTEM_NAME override.
* gnu/packages/firmware.scm (ath9k-htc-ar7010-firmware)[arguments]: Remove
CMAKE_SYSTEM_NAME from #:configure-flag.
(ath9k-htc-ar9271-firmware)[arguments]: Same.

Signed-off-by: Janneke Nieuwenhuizen <janneke@gnu.org>

Change-Id: I87acb0aa781d104be511b1f368d9332c61d71627
2025-01-12 16:19:02 +01:00
Dariqq
235f8c1608
guix: build-system: cmake: Rework cross compilation.
Move the extra configure flags for cross building out from the build side code
and instead prepend them to the configure-flags.

Use new procedure cmake-system-name-for-target to add support for the Hurd and
bare-metal targets.

* guix/build/cmake-build-system.scm (configure): Move cross build flags from
here ...
* guix/build-system/cmake.scm (cmake-cross-build): ... to here.
(cmake-system-name-for-target): New procedure.

Signed-off-by: Janneke Nieuwenhuizen <janneke@gnu.org>

Change-Id: Ic68acc246e543491ed147e53d47cec5de46b82cb
2025-01-12 16:19:02 +01:00
Ricardo Wurmus
80b747f7f8
gnu: python-jose: Fix build.
* gnu/packages/python-web.scm (python-jose)[build-system]: Use
pyproject-build-system.
[arguments]: Disable some failing tests; remove custom 'check phase.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: I39831da68beb6e7e80cd97df04310676e2cdf92a
2025-01-12 16:19:02 +01:00
Ricardo Wurmus
a6b4d7e845
gnu: python-socks: Update to 2.6.1.
* gnu/packages/python-web.scm (python-socks): Update to 2.6.1.
[arguments]: Enable tests; remove custom 'check phase.
[build-system]: Use pyproject-build-system.
[propagated-inputs]: Remove python-async-timeout and python-curio.
[native-inputs]: Add python-anyio, python-async-timeout, python-flask,
python-pytest-asyncio, python-setuptools, python-tiny-proxy, python-trustme,
python-wheel, and python-yarl.

Change-Id: If1b10ed7a2a6ab7358c7e440224b5c406977ad68
2025-01-12 16:19:02 +01:00
Ricardo Wurmus
2b640be3e7
gnu: Add python-tiny-proxy.
* gnu/packages/python-web.scm (python-tiny-proxy): New variable.

Change-Id: Ia0493c910ea30922298350dd9f4145b4d1efe8f2
2025-01-12 16:19:02 +01:00
Ricardo Wurmus
c7c784f7e7
gnu: python-tables: Fix reference to library.
* gnu/packages/python-xyz.scm (python-tables)[arguments]: Add phase
'fix-reference-to-blosc2.

Change-Id: If1e5f9ccf8e6e6c37f9c6521a98b208e0fc1fd01
2025-01-12 16:19:01 +01:00
Ricardo Wurmus
efd448dce3
gnu: python-traittypes: Fix tests.
* gnu/packages/python-science.scm (python-traittypes)[arguments]: Add phase
'numpy-compatibility.

Change-Id: I41d55d65d0dafd44029de38b3044d9fad378db50
2025-01-12 16:19:01 +01:00
Sergey Trofimov
7e3930a966
gnu: beancount: Fix build.
* gnu/packages/finance.scm (beancount)
[native-inputs]: Add python-wheel and python-setuptools.

Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
2025-01-12 16:19:01 +01:00
Sharlatan Hellseher
83e12a5410
gnu: python-pydantic: Fix build.
As pyproject-build system now reads pytest config from pyproject.toml or
pytest.ini files it starts highlighting enabled "fail on warnings" which
were ignored before, this change silent it again.

* gnu/packages/python-xyz.scm (python-pydantic) [arguments]<test-flags>:
Skip 5 tests.
[phases]{pre-check}: Ignore all pytest warnings set in pyproject.toml.

Change-Id: I8551ba672d095b56f90955e4203c8a2aac270a4b
2025-01-12 16:19:01 +01:00
Ricardo Wurmus
98c62e1fb8
gnu: python-bokeh: Fix build.
* gnu/packages/python-xyz.scm (python-bokeh)[build-system]: Use
pyproject-build-system.
[arguments]: Use #:test-flags instead of a custom 'check phase; disable one
more test.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: I2aaa56ed578490de38685b10430535a819c2f5c5
2025-01-12 16:19:01 +01:00
Janneke Nieuwenhuizen
dbe249db1f
gnu: netcdf: Fix build with gcc-14.
* gnu/packages/maths.scm (netcdf): Add CFLAGS to #:configure-flags to relax
gcc-14's strictness.

Change-Id: Ic5059519414aeb644dd0bde084f569b954c17904
2025-01-12 16:19:01 +01:00
Janneke Nieuwenhuizen
2600337744
gnu: python-h5py: Fix build with gcc-14.
* gnu/packages/python-xyz.scm (python-h5py)[arguments]: Add phase
"relax-gcc-14-strictness".

Change-Id: Ib68eb41305d075069926323727fe35ca65fd2873
2025-01-12 16:19:01 +01:00
Janneke Nieuwenhuizen
82de420bd2
gnu: openmpi-4: Fix build with gcc-14.
* gnu/packages/mpi.scm (openmpi-4)[arguments]: Add CFLAGS to #:configure-flags
to relax gcc-14's strictness.

Change-Id: I4a19a473a729ce054d855ec2c4d6ea94dc94b849
2025-01-12 16:19:01 +01:00
Janneke Nieuwenhuizen
dab8827afb
gnu: freeipmi: Fix build with gcc-14.
* gnu/packages/freeipmi.scm (freeipmi)[arguments]: Add CFLAGS to #:configure-flags
to relax gcc-14's strictness.

Change-Id: Ie22de7f0a344bbc709878be3175fdd07cfde92bc
2025-01-12 16:19:01 +01:00
Janneke Nieuwenhuizen
96cc344f1f
gnu: freerdp: Fix build with gcc-14.
* gnu/packages/rdesktop.scm (freerdp)[arguments]: Add -DCMAKE_C_FLAGS to
relax gcc-14's strictness.

Change-Id: I7a655245820ab97aeafa21c6a8591b9a5a05fabc
2025-01-12 16:19:01 +01:00
Janneke Nieuwenhuizen
ec4a2494c6
gnu: libunwind: Fix build with gcc-14 for i686-linux.
* gnu/packages/libunwind.scm (libunwind)[arguments]: Extend CFLAGS to relax
gcc-14's strictness even further.

Change-Id: Idafb16976442b3452b16cd993fbaec0655a61af5
2025-01-12 16:19:01 +01:00
Janneke Nieuwenhuizen
d276930d8b
gnu: icedtea-8: Fix build with gcc-14.
* gnu/packages/java.scm (icedtea-8)[arguments]: Extend CFLAGS to relax
gcc-14's strictness.

Change-Id: Ia7a53bfd1649c54505d7d2d033f9e984c531da90
2025-01-12 16:19:01 +01:00
Janneke Nieuwenhuizen
829c3d608b
gnu: cheese: Fix build with gcc-14.
* gnu/packages/gnome.scm (cheese)[arguments]: Add stage
"relax-gcc-14-strictness".

Change-Id: Idaf34cfe9f91f055a1ab570c003bc15394f7021f
2025-01-12 16:19:01 +01:00
Janneke Nieuwenhuizen
5523bb9ef9
gnu: icedtea-7: Fix build with gcc-14.
* gnu/packages/java.scm (icedtea-7)[arguments]: Extend CFLAGS_COMMON in
"fix-openjdk" to relax gcc-14's strictness.

Change-Id: Icc2fec77390dfd052339184633c1c30915ebded2
2025-01-12 16:19:01 +01:00
Janneke Nieuwenhuizen
89a3961993
gnu: gnome-boxes: Fix build with gcc-14.
* gnu/packages/gnome.scm (gnome-boxes)[arguments]: Add phase
"relax-gcc-14-strictness".

Change-Id: I0d29ddcc368d56c572caea0fb55fa15618193bc1
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
262e8fbb66
gnu: guile-gi: Fix build with gcc-14.
* gnu/packages/guile-xyz.scm (guile-gi)[arguments]: Add CFLAGS
to #:configure-flags to relax gcc-14's strictness.

Change-Id: I1aa6b2118f09e12e3ce06833e56d624fd047a9ae
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
eaa460b230
gnu: midori: Fix build with gcc-14.
* gnu/packages/web-browsers.scm (midori)[arguments]: Add #:configure-flags to
relax gcc-14's strictness.

Change-Id: I5495e04836fb469db9d5c418cf53ef2e653c8751
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
823a8e4044
gnu: gnome-recipes: Fix build with gcc-14.
* gnu/packages/gnome.scm (gnome-recipes)[arguments]: Add phase
"relax-gcc-14-strictness".

Change-Id: I1d9bc4ee914a0b6ffdabced3fa8febee5feacc30
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
c931c0a71d
gnu: folks: Fix build with gcc-14.
* gnu/packages/gnome.scm (folks)[arguments]: Add phase "relax-gcc-14-strictness".

Change-Id: I1d9bc4ee914a0b6ffdabced3fa8febee5feacc30
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
8fafc9bc6e
gnu: gsequencer: Update to 7.4.12; fixes build with gcc-14.
* gnu/packages/music.scm (gsequencer): Update to 7.4.12.

Change-Id: I29530c18518787a0ac9922ebc23f255a5671186d
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
ab76ff2b3e
gnu: pidgin: Fix build with gcc-14.
* gnu/packages/messaging.scm (pidgin)[arguments]: Extend CFLAGS to relax
gcc-14's strictness.

Change-Id: Ic36a32d02d3051ea7639c2d47933b0293b72fb89
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
e330af4d9b
gnu: libbraille: Fix build with gcc-14.
* gnu/packages/accessibility.scm (libbraille)[arguments]: Add CFLAGS to #:configure-flags
to relax gcc-14's strictness.

Change-Id: Id16c1f46d2f613a2cc878c9be6b88b3e613091e1
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
f48fb750db
gnu: caribou: Fix build with gcc-14.
* gnu/packages/gnome.scm (caribou)[arguments]: Use G-Expressions.  Add CFLAGS
to #:configure-flags to relax gcc-14's strictness.

Change-Id: I78bf5b03029112aa17977b2947e5446e90150f11
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
314f3f309f
gnu: gucharmap: Fix build with gcc-14.
* gnu/packages/gnome.scm (gucharmap)[argument]: Add CFLAGS to #:configure-flags
to relax gcc-14's strictness.

Change-Id: I234d21da13a688029e306a793d5348e17c6c9042
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
3d72d54378
gnu: telepathy-logger: Fix build with gcc-14.
* gnu/packages/freedesktop.scm (telepathy-logger)[arguments]: Use
G-Expressions.  Add #:configure-flags to relax gcc-14's strictness.

Change-Id: I72e7a045cc29f704777f599933f9fceb25f3f6bb
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
cbc4f97988
Revert "gnu: openexr: Update to 3.3.2; fixes build with gcc-14."
Apparently 3.2.4 also builds with gcc-14, and 3.3.2 breaks for example libjxl.

This reverts commit d2fa9754c4542ea5cb2d4b261ad30de0ba65a303.

Change-Id: I1d0c2c6e1385e5d0311dcd416082d5f5b640e78f
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
19abdea625
gnu: libcdio: Fix build with gcc-14.
* gnu/packages/cdrom.scm (libcdio)[arguments]: New field to relax gcc-14's
strictness.

Change-Id: I7ae22b1017060015e980331f9943b33459926193
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
f17994fdd7
gnu: cogl: Fix build with gcc-14.
* gnu/packages/gnome.scm (cogl)[arguments]: Add CFLAGS to #:configure-flags to
relax gcc-14's strictness.

Change-Id: I05c4923c6e2ed60b892d3beef2967fff18cdeb56
2025-01-12 16:19:00 +01:00
Janneke Nieuwenhuizen
d28b67c708
gnu: python-cython-next: Build with gcc-13.
Using gcc-14 produces

    Compiler output for module e_switch_transform:
    e_switch_transform.c: In function ‘__pyx_pf_18e_switch_transform_is_not_one’:
    e_switch_transform.c:2283:5: error: duplicate case value
     2283 |     case 1+0:
          |     ^~~~
    e_switch_transform.c:2282:5: note: previously used here
     2282 |     case 1:
          |     ^~~~

* gnu/packages/python-xyz.scm (python-cython-3)[native-inputs]: Add gcc-13.

Change-Id: Iaed502e4c105bb1229345288ec2f203453f65acc
2025-01-12 16:18:59 +01:00
Janneke Nieuwenhuizen
7c5c7ac560
gnu: sdl-image-1.2.12: Fix build with gcc-14.
* gnu/packages/sdl.scm (sdl-image): Add CFLAGS to #:configure-flags to relax
gcc-14's strictness.

Change-Id: Ib589af2325488cc9e96333fd3046983714357508
2025-01-12 16:18:59 +01:00
Janneke Nieuwenhuizen
e4157a4adf
gnu: ffmpeg-3.4.13: Fix build with gcc-14.
* gnu/packages/video.scm (ffmpeg-3.4)[arguments]: Add stage
"relax-gcc-14-strictness".

Change-Id: Icdd483a459bfbf58b93e2cc22d5b1047120da7ad
2025-01-12 16:18:59 +01:00
Janneke Nieuwenhuizen
b3a050929a
gnu: mplayer: Fix build with gcc-14.
* gnu/packages/video.scm (mplayer)[arguments]: In stage "configure", fixup
"CFLAGS" in "config.mak" to relax gcc-14's strictness.

Change-Id: I21e66222770182bfdb09092ef04b372d12690710
2025-01-12 16:18:59 +01:00
Janneke Nieuwenhuizen
749501ed6f
gnu: gtksourceview-3.24.11: Fix build with gcc-14.
* gnu/packages/gtk.scm (gtksourceview-3)[arguments]: Add #:configure-flags to
relax-gcc-14-strictness.

Change-Id: I160f107334cc9a5817227dd5513231933184a032
2025-01-12 16:18:59 +01:00
Janneke Nieuwenhuizen
bdcd2dd93e
gnu: vorbis-tools: Fix build with gcc-14.
* gnu/packages/xiph.scm (vorbis-tools)[arguments]: New field to relax gcc-14's
strictness.

Change-Id: Ie72a0d1c09826d7d35e3d214af41fd0ad8455aa9
2025-01-12 16:18:59 +01:00
Janneke Nieuwenhuizen
9657cfaaea
gnu: mpg321: Fix build with gcc-14.
* gnu/packages/mp3.scm (mpg321)[arguments]: Use G-Expressions.  Add CFLAGS
to #:configure-flags to relax gcc-14's strictness.

Change-Id: I1911c96df438c0b65905468201d759904e11a08f
2025-01-12 16:18:59 +01:00
Janneke Nieuwenhuizen
4af85bae2b
gnu: telepathy-glib: Fix build with gcc-14.
* gnu/packages/glib.scm (telepathy-glib)[arguments]: Use G-Expressions.
Add CFLAGS to #:configure-flags to relax gcc-14's strictness.

Change-Id: I489e04eb8a6d1a29753f8c5fc61429f6292ae8cf
2025-01-12 16:18:59 +01:00