Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 144154

Summary: app-admin/ulogd-1.23 does not respect USE=-mysql if mysql is installed
Product: Gentoo Linux Reporter: Natanael Copa <natanael.copa>
Component: New packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: masterdriverz
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed patch for configure.in
Difference file for the ebuild to apply configure.in patch

Description Natanael Copa 2006-08-16 14:34:51 UTC
If mysql is installed, ulogd will compile with mysql support even if USE=-mysql.

hardened ~ # emerge -av ulogd
...
[ebuild   R   ] app-admin/ulogd-1.23  USE="-mysql -postgres" 0 kB
...
 * econf: updating ulogd-1.23/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i386-gentoo-linux-uclibc --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --without-mysql --without-pgsql --build=i386-gentoo-linux-uclibc
creating cache ./config.cache
...
checking for strerror... yes
checking for MySQL files... found mysql in /usr
checking for mysql_real_escape_string support... found new MySQL
...

Looks like the problem is in the autoconf/configure script.

hardened ~ # grep sql /var/db/pkg/app-admin/ulogd-1.23/NEEDED
/usr/lib/ulogd/ulogd_MYSQL.so libmysqlclient.so.14,libc.so.0

Workaround: uninstall mysql before emerging ulogd.

hardened ~ # emerge --info
Portage 2.1-r2 (uclibc/x86/hardened, gcc-3.4.6, uclibc-0.9.28-r0, 2.6.17-gentoo-r5 i686)
=================================================================
System uname: 2.6.17-gentoo-r5 i686 Intel(R) Pentium(R) D CPU 3.00GHz
Gentoo Base System version 1.12.4
distcc 2.18.3 i386-gentoo-linux-uclibc (protocols 1 and 2) (default port 3632) [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-gentoo-linux-uclibc"
CFLAGS="-march=i386 -Os -pipe -fomit-frame-pointer"
CHOST="i386-gentoo-linux-uclibc"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-Os -pipe"
DISTDIR="/var/cache/distfiles"
FEATURES="autoconfig buildpkg distlocks metadata-transfer nodoc noinfo noman sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/var/cache/packages/default"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/alpine-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X509 bitmap-fonts bri bzip2 cli cracklib dlloader dri encode expat extensions hardened iproute2 ipv6 jpeg mad minimal ncurses netboot ogg oss pci pcmcia pic png pppd readline reflection rrdtool sensord session snmp speex spl ssl tdb truetype truetype-fonts type1-fonts uclibc udev usb userlocales winbind wordexp xorg zlib elibc_uclibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2007-01-19 02:04:25 UTC
Confirmed, I need to patch the configure.in for this.
Comment 2 Steven De Bock 2007-01-22 20:35:40 UTC
Created attachment 107833 [details, diff]
Proposed patch for configure.in

As the Description says :)
Comment 3 Steven De Bock 2007-01-22 20:38:29 UTC
Created attachment 107834 [details, diff]
Difference file for the ebuild to apply configure.in patch
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2007-01-23 03:03:57 UTC
Thanks, I really didn't want to have to mess with the fugly configure.in :P

in cvs!