From 1309e3bab51ba812641509a623ab288235ea64f9 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 1 Jun 2022 20:16:45 +0100 Subject: dev-libs/nss: fix build with GCC 13 Closes: https://bugs.gentoo.org/849005 Signed-off-by: Sam James --- dev-libs/nss/files/nss-3.79-gcc-13.patch | 33 ++++++++++++++++++++++++++++++++ dev-libs/nss/nss-3.79-r1.ebuild | 1 + 2 files changed, 34 insertions(+) create mode 100644 dev-libs/nss/files/nss-3.79-gcc-13.patch (limited to 'dev-libs/nss') diff --git a/dev-libs/nss/files/nss-3.79-gcc-13.patch b/dev-libs/nss/files/nss-3.79-gcc-13.patch new file mode 100644 index 000000000000..04bd977f3020 --- /dev/null +++ b/dev-libs/nss/files/nss-3.79-gcc-13.patch @@ -0,0 +1,33 @@ +https://github.com/nss-dev/nss/commit/edf5cb12af8a4668997b7edb65c7add4a1390b09 +https://bugs.gentoo.org/849005 + +From: Sergei Trofimovich +Date: Thu, 26 May 2022 08:08:39 +0000 +Subject: [PATCH] Bug 1771273 - cpputil/databuffer.h: add missing + include r=nss-reviewers,mt + +Without the change build fails on this week's gcc-13 snapshot as: + + ../../cpputil/databuffer.h:20:20: error: 'uint8_t' does not name a type + 20 | DataBuffer(const uint8_t* d, size_t l) : data_(nullptr), len_(0) { + | ^~~~~~~ + ../../cpputil/databuffer.h:14:1: note: 'uint8_t' is defined in header ''; did you forget to '#include '? + 13 | #include + +++ |+#include + 14 | + +Differential Revision: https://phabricator.services.mozilla.com/D147404 + +--HG-- +extra : moz-landing-system : lando +--- a/cpputil/databuffer.h ++++ b/cpputil/databuffer.h +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + + namespace nss_test { + + diff --git a/dev-libs/nss/nss-3.79-r1.ebuild b/dev-libs/nss/nss-3.79-r1.ebuild index 0d91f55e8bd4..f0a86b80c6b6 100644 --- a/dev-libs/nss/nss-3.79-r1.ebuild +++ b/dev-libs/nss/nss-3.79-r1.ebuild @@ -40,6 +40,7 @@ PATCHES=( "${FILESDIR}/${PN}-3.53-gentoo-fixups.patch" "${FILESDIR}/${PN}-3.21-gentoo-fixup-warnings.patch" "${FILESDIR}/${PN}-3.23-hppa-byte_order.patch" + "${FILESDIR}/${PN}-3.79-gcc-13.patch" ) src_prepare() { -- cgit v1.2.3-65-gdbad