Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 403983 - app-admin/webalizer-xtended-2.01.10_p21 with dev-libs/geoip[-static-libs] - configure: checking for libGeoIP.a... no
Summary: app-admin/webalizer-xtended-2.01.10_p21 with dev-libs/geoip[-static-libs] - c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-02-16 00:29 UTC by Philippe Chaintreuil
Modified: 2012-02-16 12:01 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Chaintreuil 2012-02-16 00:29:12 UTC
app-admin/webalizer-xtended-2.01.10_p21 with use=geoip fails to build.

====================================================================
checking for gdImagePng in -lgd... yes
checking for gd.h... /usr/include
checking for GeoIP.h... /usr/include
checking for libGeoIP.a... no
configure: error: GeoIP library not found... please install GeoIP.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-admin/webalizer-xtended-2.01.10_p21/work/webalizer-2.01-10/config.log
 * ERROR: app-admin/webalizer-xtended-2.01.10_p21 failed (configure phase):
 *   econf failed
====================================================================


Oddly, I do have dev-libs/geoip-1.4.8 installed....

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-16 01:28:24 UTC
It's merely looking for the wrong library. It's never going to use the static library but still it wants to find it.

I'm looking at a tiny patch that might fix this.

Also, dev-libs/geoip lost its static libs a good while back:

*geoip-1.4.7 (19 Apr 2011)

  19 Apr 2011; Jeroen Roovers <jer@gentoo.org> +geoip-1.4.7.ebuild:
  Version bump thanks to euscan. Add USE=static-libs.


Patch:

--- webalizer-xtended-2.01.10_p21.ebuild        13 Oct 2010 12:11:32 -0000      1.2
+++ webalizer-xtended-2.01.10_p21.ebuild        16 Feb 2012 01:26:59 -0000
@@ -51,6 +51,8 @@
        epatch "${FILESDIR}"/${P}-etc-webalizer-xtended-conf.patch
        epatch "${FILESDIR}"/${P}-strip.patch
 
+       sed -i configure.in -e 's|\.a|.so|g' || die
+
        eautoreconf
 }


This should probably be converted to a real $FILESDIR/*.patch in case there's a version bump where \.a could be used differently.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-16 01:38:39 UTC
OK, I've committed -r1, which has a patch instead of that sed script. So sync and try, please.
Comment 3 Philippe Chaintreuil 2012-02-16 12:01:35 UTC
-r1 works great!  Thanks!