Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124954 - phpmyadmin cannot be installed my mysqli USE flag
Summary: phpmyadmin cannot be installed my mysqli USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-04 07:46 UTC by Alexander Skwar
Modified: 2006-03-15 08:53 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 Alexander Skwar 2006-03-04 07:46:52 UTC
I tried to install phpmyadmin, but it failed:

 * Checking for required PHP feature(s):
 *   Discovered missing USE flag mysql
 *
 * dev-lang/php-5.1.1 needs to be re-installed with all of the following
 * USE flags enabled:
 *
 *   pcre mysql session
 *

Well, I had PHP installed with the mysqli USE flag. But phpmyadmin works pretty fine with the mysqli flag. Indeed, even the setup script supports mysqli and will autodetect it.

So, the requirement for "mysql" is wrong - mysqli is fine as well.

Portage 2.1_pre5-r2 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-suspend2-r6.042.kernel-alsa i686)
=================================================================
System uname: 2.6.15-suspend2-r6.042.kernel-alsa i686 Intel(R) Celeron(R) M processor         1.50GHz
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.4-r1, 2.4.2-r1
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-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/Gentoo/Portage/distfiles"
FEATURES="autoconfig buildpkg ccache collision-protect distlocks sandbox sfperms strict"
GENTOO_MIRRORS="        http://server.bei.digitalprojects.com/gentoo/   http://stuff.alexander.skwar.name/gentoo/  http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/    http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/    ftp://ftp.tu-clausthal.de/pub/linux/gentoo/         http://distro.ibiblio.org/pub/linux/distributions/gentoo/       ftp://distro.ibiblio.org/pub/linux/distributions/gentoo     http://distfiles.gentoo.org/ "
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
PKGDIR="/Gentoo/Portage/packages"
PORTAGE_TMPDIR="/Gentoo/Portage/build"
PORTDIR="/Gentoo/Portage/tree"
PORTDIR_OVERLAY="/Gentoo/Portage/local-tree/misc /Gentoo/Portage/local-tree/overlays/gentoo-de"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 GAPING_SECURITY_HOLE X acpi alsa amd apache2 apm arts artswrappersuid async avi bdf berkdb bitmap-fonts bluetooth bootsplash cairo caps cardbus ccache cdda cddb cdio cdparanoia cdr cdrom cle266 crypt css curlwrappers dbus devmap dillo divx4linux dlloader dvd dvdread emoticon esd exif fam fbcon fbdev firefox fping freetype gdbm gif gnokii gnome gstreamer gtk gtk2 hal hpn icc id3 idn imap imlib imlib2 insecure-drivers insecure-savers javascript jikes jpeg kde kdeenablefinal libedit libwww linuxthreads-tls logrotate lynxkeymap mad madwifi maildir matroska mbox mmx mmxext mozilla moznoirc mozsvg mp3 mpeg mpeg2 mpeg4 mplayer multicall ncurses netboot network new-login nfs nis nls no-old-linux no-suexec noantlr nobcel nobeanutils nobsf nobsh nocd nocommonslogging nocommonsnet nodrm nogg nogulm nojsch nojython nolog4j nomac nooro nopri norhino noxalan noxerces nozaptel nptl nsplugin offensive ogg opengl openssh pam_console pam_timestamp passfile password patented pccts pcmcia pcre perl perlsuid pic player png pnp qt quicktime rar readline real recode reiserfs sdl sendfile sensord sftp sms spell spf sse sse2 ssl startup-notification stream subp subtitles suid symlink sysfs syslog tiff transcode truetype truetype-fonts trusted type1-fonts udev underscores unichrome unicode unsafe usb utf8 uudeview vim vim-pager vlm vorbis wifi win32codecs wma123 x11vnc xinetd xml xmms xpm xscreensaver xv xvid xvmc zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_via"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, MAKEOPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-04 08:25:11 UTC
(In reply to comment #0)
> Well, I had PHP installed with the mysqli USE flag. But phpmyadmin works pretty
> fine with the mysqli flag. Indeed, even the setup script supports mysqli and
> will autodetect it.

Except that mysqli doesn't exist at all w/ php-4. Try this (not tested)

pkg_setup() {
        webapp_pkg_setup
        require_php_with_use pcre session
	if ! built_with_use -o =${PHP_PKG} mysql mysqli ; then
	        eerror "${PHP_PKG} needs to be re-installed with one of the following"
        	eerror "USE flags enabled:"
        	eerror
        	eerror "mysql or mysqli if using dev-lang/php-5"
        	eerror "mysql if using dev-lang/php-4"
		die "Re-install ${PHP_PKG}"
	fi
}
Comment 2 Alexander Skwar 2006-03-04 09:48:58 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > Well, I had PHP installed with the mysqli USE flag. But phpmyadmin works pretty
> > fine with the mysqli flag. Indeed, even the setup script supports mysqli and
> > will autodetect it.
> 
> Except that mysqli doesn't exist at all w/ php-4.

True. 

> Try this (not tested)

Works - I was able to install phpmyadmin with my USE=mysqli enabled dev-lang/php
Comment 3 Renat Lumpau (RETIRED) gentoo-dev 2006-03-15 08:53:48 UTC
fixed in CVS.