Hi, my squidgurd crashes with the following message: 2014-11-10 18:19:53 [4412] INFO: New setting: logdir: /media/daten/system/software/squidGurad/logs/ 2014-11-10 18:19:53 [4412] INFO: New setting: dbhome: /media/daten/system/software/squidGuard/db 2014-11-10 18:19:53 [4412] init domainlist /media/daten/system/software/squidGuard/db/BL/adv/domains BDB1565 DB->put: method not permitted before handle's open method 2014-11-10 18:19:53 [4412] FATAL: sgDbLoadTextFile: put: Invalid argument 2014-11-10 18:19:53 [4412] ERROR: Going into emergency mode I searched the Web and found the following Bug report: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185737 as it seems the ebuild is missing a view patches, which would fix the problem. I emerged the package and canceled it at installing process to view the sources. And it seems that even more patches as the mentioned are missing because the higest DB_VERSION_MAJOR == 4 in the current ebuild version the patch includes a tree with DB_VERSION_MAJOR == 6 I'am sorry that i can't provide more informaion but may be the maintainer of the ebuild could have a look over this situation. My installed package is: * net-proxy/squidguard Latest version available: 1.5_beta Latest version installed: 1.5_beta Size of files: 1.937 KiB Homepage: http://www.squidguard.org Description: Combined filter, redirector and access controller plugin for Squid License: GPL-2 Best regards Thomas
It seems to be enough to change this: File: src/sgDb.c Line: 115 From: #if DB_VERSION_MAJOR == 4 To: #if DB_VERSION_MAJOR >= 4 This worked for me
Said to see, that this working patch couldn't find its way to the Gentoo Repo :-( Today I had to patch the version again on my own :-(
This is because this package has no maintainer currently at all :/ Are you willing to proxy maintain it? https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers
still not patched ....
A very big problem ! I spent 3 hours to find why squidguard stopped working after emerge --depclean removing sys-libs/db-4.8.30-r2 Applying patch : --- src/sgDb.c.orig 2010-09-09 06:35:22.000000000 -0400 +++ src/sgDb.c 2017-01-25 16:07:26.671998197 -0400 @@ -112,7 +112,7 @@ } } #endif -#if DB_VERSION_MAJOR == 4 +#if DB_VERSION_MAJOR >= 4 if(globalUpdate || createdb || (dbfile != NULL && stat(dbfile,&st))){ flag = DB_CREATE; if(createdb) worked for me too. Please, patch it !
Created attachment 462046 [details] Ebuild containing epatch for db version check
Created attachment 462048 [details, diff] patch file for db version
Pull request addressing this bug @ https://github.com/gentoo/gentoo/pull/4481
commit e5d53d7d4b90920f3b30a88536a4fa65694aca62 Author: Sergey Popov <pinkbyte@gentoo.org> Date: Fri May 12 12:19:24 2017 +0300 net-proxy/squidguard: revision bump Bump EAPI to 6, restrict linking with unsupported versions of sys-libs/db Committing straight to stable Gentoo-Bug: 528858 Package-Manager: Portage-2.3.5, Repoman-2.3.1 RepoMan-Options: --force