Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 553358 - net-analyzer/pmacct - Poor detection of mysql libs/includes
Summary: net-analyzer/pmacct - Poor detection of mysql libs/includes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-26 18:57 UTC by Brian Evans (RETIRED)
Modified: 2015-06-27 06:38 UTC (History)
0 users

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 Brian Evans (RETIRED) gentoo-dev 2015-06-26 18:57:15 UTC
net-analyzer/pmacct has configure output which is prone to random build failures with mysql support.

Current output:
checking whether to enable MySQL support... checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
yes
checking default locations for libmysqlclient... not found
checking for mysql_real_connect in -lmysqlclient... yes
checking for main in -lstdc++... yes
checking for clock_gettime in -lrt... yes
checking default locations for mysql.h... found in /usr/include/mysql

Adding the following will fix the detection:
--- pmacct-1.5.1.ebuild 27 May 2015 11:21:22 -0000      1.4
+++ pmacct-1.5.1.ebuild 26 Jun 2015 18:42:35 -0000
@@ -47,6 +47,8 @@
                $(use_enable ipv6) \
                $(use_enable mongodb) \
                $(use_enable mysql) \
+               $(usex mysql "--with-mysql-includes=$(mysql_config --variable=pkgincludedir)" '') \
+               $(usex mysql "--with-mysql-libs=$(mysql_config --variable=pkglibdir)" '') \
                $(use_enable postgres pgsql) \
                $(use_enable sqlite sqlite3) \
                $(use_enable threads) \



New Output:
checking whether to enable MySQL support... checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
yes
checking your own MySQL client library... ok
checking for main in -lstdc++... yes
checking for clock_gettime in -lrt... yes
checking your own MySQL headers... ok
Comment 1 Brian Evans (RETIRED) gentoo-dev 2015-06-26 20:55:43 UTC
Note that this will fail in the upcoming versions of mysql and friends
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-06-27 06:38:45 UTC
Fixed without revision bump.