diff options
author | Sergey Popov <pinkbyte@gentoo.org> | 2022-12-15 10:48:47 +0300 |
---|---|---|
committer | Sergey Popov <pinkbyte@gentoo.org> | 2022-12-15 10:48:54 +0300 |
commit | bfb379b65e263532855151e6fbe754c2c54bcfaf (patch) | |
tree | 4478d10943c4ed49044febe0910496cfc97df59f /net-proxy | |
parent | dev-ruby/test-unit: add 3.5.7 (diff) | |
download | gentoo-bfb379b65e263532855151e6fbe754c2c54bcfaf.tar.gz gentoo-bfb379b65e263532855151e6fbe754c2c54bcfaf.tar.bz2 gentoo-bfb379b65e263532855151e6fbe754c2c54bcfaf.zip |
net-proxy/squidguard: attemp to handle build failure
Bug: https://bugs.gentoo.org/871228
Signed-off-by: Sergey Popov <pinkbyte@gentoo.org>
Diffstat (limited to 'net-proxy')
-rw-r--r-- | net-proxy/squidguard/files/squidguard-1.6.0-stdlib.patch | 22 | ||||
-rw-r--r-- | net-proxy/squidguard/squidguard-1.6.0-r1.ebuild | 3 |
2 files changed, 24 insertions, 1 deletions
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 |