Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 470060 - app-admin/syslog-ng: ebuild lets autotools autodetect libraries resulting in inconsistencies
Summary: app-admin/syslog-ng: ebuild lets autotools autodetect libraries resulting in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-16 11:34 UTC by Jason A. Donenfeld
Modified: 2013-05-19 05:42 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 Jason A. Donenfeld gentoo-dev 2013-05-16 11:34:48 UTC
syslog-ng supports geoip. The ebuild does not have a geoip USE flag that modifies --enable-geoip=yes/no/auto. As such, it will be built depending on the time that libGeoIP.so was built. This is problematic, especially in binary package situations.

This causes nasty error messages such as:

 * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
Error opening plugin module; module='tfgeoip', error='libGeoIP.so.1: cannot open shared object file: No such file or directory'
 [ ok ]
 * Starting syslog-ng ...
Error opening plugin module; module='tfgeoip', error='libGeoIP.so.1: cannot open shared object file: No such file or directory'


Please add a geoip USE flag that toggles --enable-geoip explicitly.

Reproducible: Always
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2013-05-16 15:02:52 UTC
in portage.  thanks for the bug report.
Comment 2 Yury Katuar 2013-05-18 00:38:11 UTC
Just failed to re-emerge with geoip flag enabled. Merging fails on configure:

checking for JSON_C... yes
checking for GEOIP... no
configure: error: Could not find libgeoip, and geoip support was explicitly enabled.


This is from /var/tmp/portage/app-admin/syslog-ng-3.4.1/work/syslog-ng-3.4.1/config.log:

configure:14346: checking for GEOIP
configure:14353: $PKG_CONFIG --exists --print-errors "geoip"
Variable 'exec_prefix' not defined in '/usr/lib/pkgconfig/geoip.pc'
configure:14356: $? = 1
configure:14370: $PKG_CONFIG --exists --print-errors "geoip"
Variable 'exec_prefix' not defined in '/usr/lib/pkgconfig/geoip.pc'
configure:14373: $? = 1
configure:14387: result: no
Variable 'exec_prefix' not defined in '/usr/lib/pkgconfig/geoip.pc'
configure:14418: error: Could not find libgeoip, and geoip support was explicitly enabled.


Installed lib:

dev-libs/geoip-1.5.0  USE="ipv6 -city -perl-geoipupdate -static-libs" 


Contents of /usr/lib/pkgconfig/geoip.pc:

prefix=/usr
libdir=${exec_prefix}/lib
includedir=${prefix}/include
datadir=${prefix}/share

Name: geoip
Description: A non-DNS IP-to-country resolver library.
Version: 1.5.0
Libs: -L${libdir} -lGeoIP
Cflags: -I${includedir}/
databasedir=${datadir}/GeoIP
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2013-05-19 05:28:36 UTC
use geoip-1.5.0
Comment 4 Yury Katuar 2013-05-19 05:39:34 UTC
(In reply to comment #3)
> use geoip-1.5.0

That's exactly the version I mentioned above.
Comment 5 Mr. Bones. (RETIRED) gentoo-dev 2013-05-19 05:42:26 UTC
builds fine for me on stable amd64.