econf \ --enable-fhs \ --docdir=/usr/share/doc/${PF} \ --with-workdir=/var/cfengine \ --with-pcre \ $(use_with acl libacl) \ $(use_with qdbm) \ $(use_with tokyocabinet) \ $(use_with postgres postgresql) \ $(use_with mysql mysql=check) \ ^^^^^^^^^^^^^^^^^^^^^^^ $(use_with libvirt) \ $(use_enable selinux) just in case: mysql=check is excessive. --with-mysql, this is exactly how configure handle --with-mysql=check: # Check whether --with-mysql was given. if test "${with_mysql+set}" = set; then : withval=$with_mysql; else with_mysql=check fi --- a 2014-02-28 12:47:48.335533092 +0400 +++ b 2014-02-28 13:07:03.638543573 +0400 @@ -62,7 +62,7 @@ src_configure() { $(use_with qdbm) \ $(use_with tokyocabinet) \ $(use_with postgres postgresql) \ - $(use_with mysql mysql=check) \ + $(use_with mysql mysql) \ $(use_with libvirt) \ $(use_enable selinux)
strabge that this gives an error for you. Your patch would revert my change that I just made to make mysql support actually work. If we just use "$(use_with mysql mysql)" (or better $(use_with mysql)) configure will not find libmysqlclient anymore because mysql_config will not be used anymore. Will have to look deeper into it.
(In reply to Marc Schiffbauer from comment #1) > strabge that this gives an error for you. Your patch would revert my change > that I just made to make mysql support actually work. > > If we just use "$(use_with mysql mysql)" (or better $(use_with mysql)) > configure will not find libmysqlclient anymore because mysql_config will not > be used anymore. > > Will have to look deeper into it. hmm.. really strange. What flags do you use whith this build? i'd like to try i mean. i just have tried mysql/-mysql and seems like both are ok: gentoo-build ~ # USE="mysql" emerge -pv cfengine These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ~] net-misc/cfengine-3.5.3:3 USE="examples mysql tokyocabinet vim-syntax xml -acl -libvirt -postgres -qdbm (-selinux)" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB * IMPORTANT: 14 news items need reading for repository 'gentoo'. * Use eselect news to read news items. gentoo-build ~ # cf-agent -K gentoo-build ~ # ldd /usr/sbin/cf-agent linux-vdso.so.1 (0x00007fff443d9000) libpromises.so.3 => /usr/lib64/cfengine/libpromises.so.3 (0x00007ffeb2f70000) libmysqlclient.so.16 => /usr/lib64/libmysqlclient.so.16 (0x00007ffeb2be1000) libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007ffeb281a000) librt.so.1 => /lib64/librt.so.1 (0x00007ffeb2612000) libm.so.6 => /lib64/libm.so.6 (0x00007ffeb2310000) libtokyocabinet.so.9 => /usr/lib64/libtokyocabinet.so.9 (0x00007ffeb2077000) libpcre.so.1 => /lib64/libpcre.so.1 (0x00007ffeb1e07000) libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00007ffeb1a1a000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007ffeb17fc000) libc.so.6 => /lib64/libc.so.6 (0x00007ffeb1455000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007ffeb121e000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00007ffeb1006000) libssl.so.1.0.0 => /usr/lib64/libssl.so.1.0.0 (0x00007ffeb0d9a000) libz.so.1 => /lib64/libz.so.1 (0x00007ffeb0b80000) libdl.so.2 => /lib64/libdl.so.2 (0x00007ffeb097c000) liblzma.so.5 => /lib64/liblzma.so.5 (0x00007ffeb0753000) libbz2.so.1 => /lib64/libbz2.so.1 (0x00007ffeb0541000) /lib64/ld-linux-x86-64.so.2 (0x00007ffeb3249000) and gentoo-build ~ # emerge -q cfengine * IMPORTANT: 14 news items need reading for repository 'gentoo'. * Use eselect news to read news items. >>> Verifying ebuild manifests >>> Emerging (1 of 1) net-misc/cfengine-3.5.3 >>> Installing (1 of 1) net-misc/cfengine-3.5.3 * Messages for package net-misc/cfengine-3.5.3: * NOTE: BDB (BerkelyDB) support has been removed as of cfengine-3.3.0 * If you run cfengine the very first time, you MUST generate the keys for cfengine by running: * emerge --config net-misc/cfengine * IMPORTANT: config file '/etc/init.d/iptables' needs updating. * See the CONFIGURATION FILES section of the emerge * man page to learn how to update config files. * IMPORTANT: 14 news items need reading for repository 'gentoo'. * Use eselect news to read news items. gentoo-build ~ # ldd /usr/sbin/cf-agent linux-vdso.so.1 (0x00007fffcbbab000) libpromises.so.3 => /usr/lib64/cfengine/libpromises.so.3 (0x00007f339bd24000) libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00007f339b95d000) librt.so.1 => /lib64/librt.so.1 (0x00007f339b755000) libm.so.6 => /lib64/libm.so.6 (0x00007f339b453000) libtokyocabinet.so.9 => /usr/lib64/libtokyocabinet.so.9 (0x00007f339b1ba000) libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f339af4a000) libcrypto.so.1.0.0 => /usr/lib64/libcrypto.so.1.0.0 (0x00007f339ab5d000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f339a93f000) libc.so.6 => /lib64/libc.so.6 (0x00007f339a598000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f339a394000) libz.so.1 => /lib64/libz.so.1 (0x00007f339a17a000) liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f3399f51000) libbz2.so.1 => /lib64/libbz2.so.1 (0x00007f3399d3f000) /lib64/ld-linux-x86-64.so.2 (0x00007f339bffd000) gentoo-build ~ # grep mysql /usr/portage/net-misc/cfengine/cfengine-3.5.3.ebuild IUSE="acl examples libvirt mysql postgres +qdbm selinux tokyocabinet vim-syntax xml" mysql? ( virtual/mysql ) $(use_with mysql mysql) \
just replace line: $(use_with mysql mysql=check) \ with: $(use_with mysql mysql check) \
Thanks tonich, hopefully that will fix it. I just commited the fix. Alexander can you confirm? If problem still persists, please reopen.
(In reply to Marc Schiffbauer from comment #4) > Thanks tonich, hopefully that will fix it. > I just commited the fix. > > Alexander can you confirm? > > If problem still persists, please reopen. yes, i confirm. all right.