gnu: libreoffice: Remove gcc-12 and its related fix.

* gnu/packages/libreoffice.scm (libreoffice)
  [arguments]{phases}: Remove fix introduced with gcc-12.
  [native-inputs]: Remove gcc-12.

Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Nicolas Graves 2025-06-26 12:43:53 +02:00 committed by Andreas Enge
parent 3dcd1307d1
commit 7b8c89e282
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -970,27 +970,6 @@ commonly called @code{ftoa} or @code{dtoa}.")
(("/usr/bin/xdg-open") (("/usr/bin/xdg-open")
(search-input-file inputs "/bin/xdg-open"))) (search-input-file inputs "/bin/xdg-open")))
;; https://issues.guix.gnu.org/43579
(substitute* '("sal/rtl/math.cxx"
"sc/source/core/tool/math.cxx")
(("std::(fe[gs]etround|feclearexcept|fetestexcept)" all suffix)
suffix))
(let ((gcc-11-dir (dirname
(dirname
(dirname
(search-input-directory
inputs "share/doc/gcc-11.4.0"))))))
(setenv
"CPLUS_INCLUDE_PATH"
(string-join
(remove
(cut member <>
(list
(string-append gcc-11-dir "/include/c++")
(string-append gcc-11-dir "/include")))
(string-split (getenv "CPLUS_INCLUDE_PATH") #\:))
":")))
(setenv "CPPFLAGS" "-std=c++20"))) (setenv "CPPFLAGS" "-std=c++20")))
(add-after 'install 'reset-zip-timestamps (add-after 'install 'reset-zip-timestamps
(lambda _ (lambda _
@ -1119,7 +1098,6 @@ commonly called @code{ftoa} or @code{dtoa}.")
cppunit cppunit
flex flex
frozen ;header-only library frozen ;header-only library
gcc-12
pkg-config pkg-config
python-wrapper python-wrapper
which which