Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266441 - net-proxy/squidguard: fix cross-compilation
Summary: net-proxy/squidguard: fix cross-compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-16 21:59 UTC by Bertrand Jacquin
Modified: 2009-05-04 19:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
squidguard-1.4 cross compilation fix (squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-yes.diff,1.19 KB, patch)
2009-04-16 21:59 UTC, Bertrand Jacquin
Details | Diff
net-proxy/squidguard-1.4-r1.ebuild patch (squidguard-1.4-r1.diff,402 bytes, patch)
2009-04-16 22:01 UTC, Bertrand Jacquin
Details | Diff
fix ldap linking test when cross-compilating (squidguard-1.4-BJA-configure-AC_RUN_IFELSE-cross-ldap.diff,303 bytes, patch)
2009-04-18 15:17 UTC, Bertrand Jacquin
Details | Diff
net-proxy/squidguard-1.4-r1.ebuild.diff (squidguard-1.4-r1.diff,577 bytes, patch)
2009-04-18 15:23 UTC, Bertrand Jacquin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bertrand Jacquin 2009-04-16 21:59:02 UTC
squidguard configure.in check if berkdb lib are available by using AC_RUN_IFELSE by fixing third arg to db_ok_version=no. So AC_RUN_IFELSE return false everytime cause third arg is specific to cross-compil environnement.

Here is a fix to avoid it, and make build system report any real library missing.

Patch have been reported upstream.

Reproducible: Always

Steps to Reproduce:
1. crossdev -t i586-geode-linux-uclibc
2. emerge-wrapper --init
3. i586-geode-linux-uclibc -vat squidguard

Actual Results:  
checking for unistd.h... (cached) yes
checking for db.h... (cached) yes
checking suppress runtime logging... no
checking squid runtime user ... squid
checking for ldap support... no
checking for mysql support... no
checking for pthread_create in -lpthread... yes

** The Berkley DB library version 2.6.4 or newer
   is required. Get it from http://www.oracle.com
   use --with-db=DIR or --with-db-inc=DIR, 
   --with-db-lib=DIR to specify its location
   (default is /usr/local/BerkeleyDB)
Comment 1 Bertrand Jacquin 2009-04-16 21:59:49 UTC
Created attachment 188621 [details, diff]
squidguard-1.4 cross compilation fix
Comment 2 Bertrand Jacquin 2009-04-16 22:01:24 UTC
Created attachment 188623 [details, diff]
net-proxy/squidguard-1.4-r1.ebuild patch
Comment 3 Bertrand Jacquin 2009-04-18 15:17:53 UTC
Created attachment 188800 [details, diff]
fix ldap linking test when cross-compilating

here is another patch to configure.in to fix ldap suport
Comment 4 Bertrand Jacquin 2009-04-18 15:23:22 UTC
Created attachment 188801 [details, diff]
net-proxy/squidguard-1.4-r1.ebuild.diff
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2009-04-25 09:59:10 UTC
Fixed in 1.4-r2, thanks!
Comment 6 Bertrand Jacquin 2009-05-04 19:08:50 UTC
This have been reported upstream as : http://www2.squidguard.org/Bugs/show_bug.cgi?id=56