commit: bfb379b65e263532855151e6fbe754c2c54bcfaf Author: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> AuthorDate: Thu Dec 15 07:48:47 2022 +0000 Commit: Sergey Popov <pinkbyte <AT> gentoo <DOT> org> CommitDate: Thu Dec 15 07:48:54 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfb379b6
net-proxy/squidguard: attemp to handle build failure Bug: https://bugs.gentoo.org/871228 Signed-off-by: Sergey Popov <pinkbyte <AT> gentoo.org> .../squidguard/files/squidguard-1.6.0-stdlib.patch | 22 ++++++++++++++++++++++ net-proxy/squidguard/squidguard-1.6.0-r1.ebuild | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/net-proxy/squidguard/files/squidguard-1.6.0-stdlib.patch b/net-proxy/squidguard/files/squidguard-1.6.0-stdlib.patch new file mode 100644 index 000000000000..51489b32de5e --- /dev/null +++ b/net-proxy/squidguard/files/squidguard-1.6.0-stdlib.patch @@ -0,0 +1,22 @@ +--- a/configure.ac 2022-12-15 10:33:13.845801113 +0300 ++++ b/configure.ac 2022-12-15 10:33:39.828949903 +0300 +@@ -342,6 +342,9 @@ + LIBS="$LIBS -ldb" + AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include <db.h> ++ #ifdef HAVE_STDLIB_H ++ #include <stdlib.h> ++ #endif + int main() + { + int major, minor, patch; +@@ -377,6 +378,9 @@ + + AC_RUN_IFELSE([AC_LANG_SOURCE([[ + #include <db.h> ++ #ifdef HAVE_STDLIB_H ++ #include <stdlib.h> ++ #endif + int main() + { + int major, minor, patch; diff --git a/net-proxy/squidguard/squidguard-1.6.0-r1.ebuild b/net-proxy/squidguard/squidguard-1.6.0-r1.ebuild index 6d7d3b3886d4..0491a0e5c9de 100644 --- a/net-proxy/squidguard/squidguard-1.6.0-r1.ebuild +++ b/net-proxy/squidguard/squidguard-1.6.0-r1.ebuild @@ -45,7 +45,8 @@ suitable_db_version() { src_prepare() { eapply \ "${FILESDIR}/${P}-gentoo.patch" \ - "${FILESDIR}/${P}-gcc-10.patch" + "${FILESDIR}/${P}-gcc-10.patch" \ + "${FILESDIR}/${P}-stdlib.patch" # Link only with specific BerkDB versions # Do not inject default paths for library searching
