diff options
author | Sam James <sam@gentoo.org> | 2021-06-14 18:46:42 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-06-14 22:11:12 +0000 |
commit | d836910165befa9b9cf98d3258784711176d96b3 (patch) | |
tree | ad0c77ba33b3f87930ccf6cfaa4e27d7cd470b25 /dev-libs/xapian | |
parent | media-gfx/prusaslicer: fix build with GCC 11 (diff) | |
download | gentoo-d836910165befa9b9cf98d3258784711176d96b3.tar.gz gentoo-d836910165befa9b9cf98d3258784711176d96b3.tar.bz2 gentoo-d836910165befa9b9cf98d3258784711176d96b3.zip |
dev-libs/xapian: fix build with GCC 11 in 1.4.17
Note that 1.4.18 already seems to work but we may as well include the patch
given somebody posted it.
Closes: https://bugs.gentoo.org/788046
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/xapian')
-rw-r--r-- | dev-libs/xapian/files/xapian-1.4.17-gcc11-missing-include.patch | 11 | ||||
-rw-r--r-- | dev-libs/xapian/xapian-1.4.17.ebuild | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/dev-libs/xapian/files/xapian-1.4.17-gcc11-missing-include.patch b/dev-libs/xapian/files/xapian-1.4.17-gcc11-missing-include.patch new file mode 100644 index 000000000000..67693e968dff --- /dev/null +++ b/dev-libs/xapian/files/xapian-1.4.17-gcc11-missing-include.patch @@ -0,0 +1,11 @@ +https://bugs.gentoo.org/788046 +--- a/api/omdocument.cc ++++ b/api/omdocument.cc +@@ -39,6 +39,7 @@ + + #include <algorithm> + #include <string> ++#include <limits> + + using namespace std; + diff --git a/dev-libs/xapian/xapian-1.4.17.ebuild b/dev-libs/xapian/xapian-1.4.17.ebuild index d78cc9126d08..28d37a143933 100644 --- a/dev-libs/xapian/xapian-1.4.17.ebuild +++ b/dev-libs/xapian/xapian-1.4.17.ebuild @@ -21,6 +21,10 @@ RDEPEND="${DEPEND}" S="${WORKDIR}/${MY_P}" +PATCHES=( + "${FILESDIR}"/${PN}-1.4.17-gcc11-missing-include.patch +) + multilib_src_configure() { local myconf="" |