Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40260 - When emerging proftpd-1.2.9 with USE flags mysql and postgresql set, only mysql support is compiled in
Summary: When emerging proftpd-1.2.9 with USE flags mysql and postgresql set, only mys...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stewart (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-03 04:02 UTC by Jens Hoffrichter
Modified: 2007-09-22 23:15 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 Jens Hoffrichter 2004-02-03 04:02:42 UTC
I have set the USE flags mysql and postgres. After emergeing proftpd, the proftpd binary is only linked against libmysqlclient:

12:59:40 jh@heisenberg:/usr/portage/net-ftp/proftpd$ ldd /usr/sbin/proftpd 
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x4002c000)
        libm.so.6 => /lib/libm.so.6 (0x4005a000)
        libz.so.1 => /lib/libz.so.1 (0x4007c000)
        libmysqlclient.so.12 => /usr/lib/libmysqlclient.so.12 (0x40091000)
        libssl.so.0.9.7 => /usr/lib/libssl.so.0.9.7 (0x400d3000)
        libcrypto.so.0.9.7 => /usr/lib/libcrypto.so.0.9.7 (0x40105000)
        libldap.so.2 => /usr/lib/libldap.so.2 (0x40216000)
        liblber.so.2 => /usr/lib/liblber.so.2 (0x4024c000)
        libwrap.so.0 => /lib/libwrap.so.0 (0x40259000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40261000)
        libpam.so.0 => /lib/libpam.so.0 (0x40276000)
        libc.so.6 => /lib/libc.so.6 (0x4027f000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libdl.so.2 => /lib/libdl.so.2 (0x403ab000)
        libresolv.so.2 => /lib/libresolv.so.2 (0x403af000)

This becomes clear when reading the ebuild:

--- snip ---
    if use mysql; then
        modules="${modules}:mod_sql:mod_sql_mysql"
        myconf="--with-includes=/usr/include/mysql"
    elif use postgres; then
        modules="${modules}:mod_sql:mod_sql_postgres"
        myconf="--with-includes=/usr/include/postgresql"
    fi
--- snip ---

This is correct, as proftpd supports only compiling in one of either mysql or postgresql support.

But etcat -u proftpd states that the postgres use flag has been used while compiling proftpd, and this is not correct!

Reproducible: Always
Steps to Reproduce:
1. USE="mysql postgres" emerge proftpd
2. ldd /usr/sbin/proftpd
3.



Expected Results:  
I think, the ebuild should issue at least a warning, if not an error, if both of
the use flags mysql and postgres are set at the same time, so the user has to
decide explicitely which sql-package to use.

Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0,
2.4.20-gentoo-r7)
=================================================================
System uname: 2.4.20-gentoo-r7 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.12
distcc 2.9 i486-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe"
CHOST="i486-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -mcpu=athlon-xp -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache cvs distcc sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at http://gentoo.oregonstate.edu"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/jh/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd apache2 apm arts autofs avi berkdb bonobo cdr crypt cups curl
doc dvd encode esd ethereal evo expat foomaticdb gb gd gdbm gif gnome gphoto2
gpm gtk gtk2 gtkhtml guile imap imlib java javascript jpeg kde ldap libg++
libwww mad maildir mbox mcal mikmod motif mozaccess mozcalendar mozctl mozilla
mozinterfaceinfo mozp3p mozsvg mozxmlterm mpeg mysql ncurses nls oggvorbis
opengl openssh oss pam pcap pdflib perl png postgres python qt quicktime
readline samba sdl slang spell ssl svga tcltk tcpd tetex transcode truetype usb
vim-with-x wxwindows x86 xml2 xmms xv zlib"
Comment 1 Stewart (RETIRED) gentoo-dev 2004-02-12 11:48:34 UTC
Added warning to ebuild. If, in future, ProFTPD supports both modules concurrently I'll update the module inclusion to allow the possibility for both.