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

Bug 113462

Summary: net-analyzer/nagios-core-1.3.ebuild fails to find dev-db/mysql-5.0.16-r2 paths ('mysql' use flag)
Product: Gentoo Linux Reporter: Olivier Castan <castan.o>
Component: [OLD] ServerAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Olivier Castan 2005-11-24 06:03:33 UTC
Looks like mysql-4.1.15-r30, mysql-4.1.15, mysql-5.0.16-r2 and mysql-5.0.16-r30
use /usr/include/mysql as include dir and /usr/lib/mysql as lib dir.
nagios-core-1.3 configure script fails to guess these paths and the build fails
but they can be given as arguments.
I've modified the ebuild to get a successful build. It's just a mimic of pgsql
configuration logic:

--- /usr/portage/net-analyzer/nagios-core/nagios-core-1.3.ebuild.old   
2005-11-24 14:12:42.000000000 +0100
+++ /usr/portage/net-analyzer/nagios-core/nagios-core-1.3.ebuild       
2005-11-24 14:16:36.000000000 +0100
@@ -94,7 +94,8 @@
                fi
        fi

-       use mysql && myconf="${myconf} \
+       if use mysql ; then
+               myconf="${myconf} \
                --with-file-perfdata \
                --with-template-extinfo \
                --with-mysql-xdata \
@@ -103,6 +104,13 @@
                --with-mysql-retention \
                --with-mysql-downtime"

+               [ -r /usr/include/mysql/mysql.h ] && myconf="${myconf} \
+                       --with-mysql-inc=/usr/include/mysql"
+
+               [ -r /usr/lib/mysql/libmysqlclient.so ] && myconf="${myconf} \
+                   --with-mysql-lib=/usr/lib/mysql"
+       fi
+
        use perl && myconf="${myconf} \
                --enable-embedded-perl \
                --with-perlcache"


Reproducible: Always
Steps to Reproduce:
USE="mysql" emerge -uvD nagios




Portage 2.0.53_rc7 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r3,
2.6.11-gentoo-r6 ppc)
=================================================================
System uname: 2.6.11-gentoo-r6 ppc 7455, altivec supported
Gentoo Base System version 1.12.0_pre11
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.13
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/home/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://mir.zyrianes.net/gentoo/
ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://pandemonium.tiscali.de/pub/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
LINGUAS="en fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/home/portage/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="ppc X X509 a52 aac acl alsa altivec apache1 apache2 asf audiofile
bash-completion berkdb bitmap-fonts browserplugin bzip2 bzlib cairo cdio
cdparanoia cdr cdrom chroot clamav cnamefix crypt css cups curl dga dillo
dlloader dnd dts dv dvd dvdr dvdread edl eds emboss encode erandom esd exif
expat faad fam fame fb fbcon ffmpeg firefox flac fortran freetype gd gdbm gif
gimpprint glitz glut gmp gnome gpgme gphoto2 graphviz gs gstreamer gtk gtk2
gtkhtml h323 hal hardened hardenedphp howl iconv idea idn imagemagick imlib java
javascript jbig jce jit jpeg jpeg2k lcms libclamav libwww live lzo lzw lzw-tiff
mad mailwrapper md5sum mhash mime mimencode mjpeg mng motif moznocompose
moznoirc moznomail moznoxft mozp3p mozsvg mp3 mpeg mpeg4 mplayer mysql
nagios-dns nagios-game nagios-ntp nagios-ping nagios-ssh ncurses network nls
nptl nptlonly nsplugin ntlm odbc offensive ogg oggvorbis opengl openntpd pam
pcre pdf pdflib perl php physfs pic pie png ppds python quicktime quotas
readline rrdtool rtc samba session sftplogging skey smime spamassassin spell sql
ssl svg svgz sysfs tcpd tga theora threads tidy tiff transcode truetype
truetype-fonts type1-fonts udev unicode usb userlocales utf8 vcd vcdimager vidix
vim vim-with-x vorbis wmf xanim xine xml xml2 xpm xrandr xscreensaver xv xvid
yv12 zlib video_cards_radeon linguas_en linguas_fr userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-11-24 06:08:15 UTC
Not nagios fault... :)

*** This bug has been marked as a duplicate of 113352 ***