diff options
| author | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-07-20 04:21:27 +0200 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-07-20 13:05:19 +0200 |
| commit | 60d8e77f38a8ca1e7607b765581855a439a1645a (patch) | |
| tree | 77a4774926d4d3726d2a096ce2b2228eb0c49baa /gnu/packages/dotnet.scm | |
| parent | e507899e66b5b274e583671b1bc00d7e6cf8f8c0 (diff) | |
gnu: mono@1.2.6: Fix build with gcc 14.
* gnu/packages/dotnet.scm (mono-1.2.6)[make-flags]: Adjust CFLAGS.
[arguments]<#:phases>[fix-includes]: New phase.
[set-env]: Adjust CFLAGS.
Change-Id: I21a01367e6e95c1de9c5cda69d5ffe00775fe253
Diffstat (limited to 'gnu/packages/dotnet.scm')
| -rw-r--r-- | gnu/packages/dotnet.scm | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gnu/packages/dotnet.scm b/gnu/packages/dotnet.scm index 45e8f851346..c361f7308f7 100644 --- a/gnu/packages/dotnet.scm +++ b/gnu/packages/dotnet.scm | |||
| @@ -366,15 +366,24 @@ for use with .NET-capable runtime engines and applications.") | |||
| 366 | (string-append "EXTERNAL_RUNTIME=" | 366 | (string-append "EXTERNAL_RUNTIME=" |
| 367 | #+(this-package-native-input "pnet-git") | 367 | #+(this-package-native-input "pnet-git") |
| 368 | "/bin/ilrun") | 368 | "/bin/ilrun") |
| 369 | "CFLAGS=-O2 -g -DARG_MAX=500" | 369 | "CFLAGS=-O2 -g -DARG_MAX=500 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=implicit-int -Wno-error=return-mismatch" |
| 370 | #$(string-append "CC=" (cc-for-target)) | 370 | #$(string-append "CC=" (cc-for-target)) |
| 371 | "V=1") | 371 | "V=1") |
| 372 | ;; build fails nondeterministically without this | 372 | ;; build fails nondeterministically without this |
| 373 | #:parallel-build? #f | 373 | #:parallel-build? #f |
| 374 | #:phases | 374 | #:phases |
| 375 | #~(modify-phases %standard-phases | 375 | #~(modify-phases %standard-phases |
| 376 | (add-after 'unpack 'fix-includes | ||
| 377 | (lambda _ | ||
| 378 | ;; Upstream forgot to #include that. | ||
| 379 | (substitute* "mono/metadata/security.c" | ||
| 380 | (("#include <mono/metadata/image.h>") | ||
| 381 | "#include <mono/metadata/image.h> | ||
| 382 | #include <mono/metadata/assembly.h>")))) | ||
| 376 | (add-after 'unpack 'set-env | 383 | (add-after 'unpack 'set-env |
| 377 | (lambda _ | 384 | (lambda _ |
| 385 | ;; Configure script for sock_un.sun_path uses exit() without importing it. | ||
| 386 | (setenv "CFLAGS" "-O2 -g -DARG_MAX=500 -Wno-error=implicit-function-declaration -Wno-error=incompatible-pointer-types -Wno-error=implicit-int -Wno-error=return-mismatch") | ||
| 378 | ;; All tests under mcs/class fail trying to access $HOME | 387 | ;; All tests under mcs/class fail trying to access $HOME |
| 379 | (setenv "HOME" "/tmp") | 388 | (setenv "HOME" "/tmp") |
| 380 | ;; ZIP files have "DOS time" which starts in Jan 1980. | 389 | ;; ZIP files have "DOS time" which starts in Jan 1980. |
