diff options
author | Sam James <sam@gentoo.org> | 2022-06-30 21:32:25 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-06-30 21:32:31 +0000 |
commit | 1cb089fd5ce61c66ead34b6fbd57e6d8f61336ea (patch) | |
tree | 5e45d8c7343227bcec108f927d3c522745ff65d4 /app-admin/passwordsafe | |
parent | dev-db/percona-server: fix build with GCC 12 (diff) | |
download | gentoo-1cb089fd5ce61c66ead34b6fbd57e6d8f61336ea.tar.gz gentoo-1cb089fd5ce61c66ead34b6fbd57e6d8f61336ea.tar.bz2 gentoo-1cb089fd5ce61c66ead34b6fbd57e6d8f61336ea.zip |
app-admin/passwordsafe: fix build with GCC 12
Closes: https://bugs.gentoo.org/854144
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin/passwordsafe')
-rw-r--r-- | app-admin/passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch | 13 | ||||
-rw-r--r-- | app-admin/passwordsafe/passwordsafe-1.15.0.ebuild | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/app-admin/passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch b/app-admin/passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch new file mode 100644 index 000000000000..0852e2888fdf --- /dev/null +++ b/app-admin/passwordsafe/files/passwordsafe-1.15.0-gcc12-time.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/854144 +--- a/src/os/unix/pws_time.h ++++ b/src/os/unix/pws_time.h +@@ -10,9 +10,7 @@ + + #include "../typedefs.h" + #include <stdint.h> +-#ifdef __FreeBSD__ + #include <time.h> +-#endif + + #ifndef __TIME64_T_TYPE + #define __TIME64_T_TYPE uint64_t diff --git a/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild b/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild index 209366001f8a..da104b993d4c 100644 --- a/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild +++ b/app-admin/passwordsafe/passwordsafe-1.15.0.ebuild @@ -37,6 +37,10 @@ BDEPEND=" S="${WORKDIR}/pwsafe-${MY_PV}" +PATCHES=( + "${FILESDIR}"/${PN}-1.15.0-gcc12-time.patch +) + pkg_pretend() { einfo "Checking for -std=c++11 support in compiler" test-flags-CXX -std=c++11 > /dev/null || die |