diff options
author | Sam James <sam@gentoo.org> | 2022-06-13 13:09:55 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-13 13:10:16 +0100 |
commit | 3a8ddd083f460ba38a0950f1da70ff0ac2108bff (patch) | |
tree | 27ecaf3d62378b93f23f041043c311b9e2169535 /sci-biology | |
parent | net-libs/libnipper: fix build with GCC 12; fix -Werror=format-security (diff) | |
download | gentoo-3a8ddd083f460ba38a0950f1da70ff0ac2108bff.tar.gz gentoo-3a8ddd083f460ba38a0950f1da70ff0ac2108bff.tar.bz2 gentoo-3a8ddd083f460ba38a0950f1da70ff0ac2108bff.zip |
sci-biology/mosaik: fix build with GCC 12
Closes: https://bugs.gentoo.org/851669
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-biology')
-rw-r--r-- | sci-biology/mosaik/files/mosaik-2.2.30-gcc12-time.patch | 11 | ||||
-rw-r--r-- | sci-biology/mosaik/mosaik-2.2.30.ebuild | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/sci-biology/mosaik/files/mosaik-2.2.30-gcc12-time.patch b/sci-biology/mosaik/files/mosaik-2.2.30-gcc12-time.patch new file mode 100644 index 000000000000..1bc63bfd4776 --- /dev/null +++ b/sci-biology/mosaik/files/mosaik-2.2.30-gcc12-time.patch @@ -0,0 +1,11 @@ +https://bugs.gentoo.org/851669 +--- a/CommonSource/Utilities/SafeFunctions.h ++++ b/CommonSource/Utilities/SafeFunctions.h +@@ -17,6 +17,7 @@ + #include <cstdio> + #include <cstdarg> + #include <cstring> ++#include <ctime> + #include <stdio.h> + #include <stdlib.h> + #include <errno.h> diff --git a/sci-biology/mosaik/mosaik-2.2.30.ebuild b/sci-biology/mosaik/mosaik-2.2.30.ebuild index 0aee0a2cfbd9..a929f1160f67 100644 --- a/sci-biology/mosaik/mosaik-2.2.30.ebuild +++ b/sci-biology/mosaik/mosaik-2.2.30.ebuild @@ -20,6 +20,7 @@ PATCHES=( "${FILESDIR}"/${P}-Wformat-security.patch "${FILESDIR}"/${P}-gcc7.patch "${FILESDIR}"/${P}-gcc11.patch + "${FILESDIR}"/${P}-gcc12-time.patch ) src_configure() { |