Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235427 - dev-db/myodbc-3.51.12 builds with --disable-gui by default
Summary: dev-db/myodbc-3.51.12 builds with --disable-gui by default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-22 06:47 UTC by Igor Korot
Modified: 2010-01-31 06:22 UTC (History)
0 users

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 Igor Korot 2008-08-22 06:47:10 UTC
Issuing "emerge myodbc" produces "configure" which has a "--disable-gui" parameter. "configure --help" says:

--enable-gui  Enables additional GUI stuff (qt required)

Tried to build it on KDE with qt support (USE-flag).

Reproducible: Always

Steps to Reproduce:
1. emerge myodbc



Actual Results:  
Configure line will have "--disable-gui" parameter

Expected Results:  
configure should have --enable-gui parameter.

Bug was observed on x86 architecture running Gentoo stable.

emerge --info:
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r8 i686)
System uname: 2.6.20-gentoo-r8 i686 Celeron (Coppermine)
Timestamp of tree: Sun, 10 Aug 2008 01:15:02
app-shells/bash: 3.2_p17-r1
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9
sys-apps/sandbox: 1.2.18.1-r2
sys-devel/autoconf: 2.13, 2.61
sys-devel/automake: 1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils: 2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org"
LINGUAS="ru uk"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-life --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb clamav cli cracklib crypt cups dri gdbm gpm hal iconv ipv6 isdnlog kde midi mudflap ncurces nls nptl nptlonly odbc opengl opoenmp pam pcre perl pppd python qt3 qt4 readline reflection samba session spl ssl tcpd unicode win32codecs wxwindows x86 xorg xpm zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap-emul mulaw multi null plug rate route share shm softvol APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotioation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurces text" LINGUAS="ru uk" USERLAND="GNU" VIDEO_CARDS="i810"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-08-22 18:37:44 UTC
I don't see what the problem is that this bug report is supposed to fix. The Summary doesn't state a problem as such - only a bare fact - and should be changed to reflect exactly the nature of the bug report.
Comment 2 Igor Korot 2008-08-22 20:27:31 UTC
(In reply to comment #1)
> I don't see what the problem is that this bug report is supposed to fix. The
> Summary doesn't state a problem as such - only a bare fact - and should be
> changed to reflect exactly the nature of the bug report.

When you try to do "emerge myodbc" on the system that has qt, it should pickup this USE-flag and do --enable-gui.
This is not the case here. I have "qt" USE-flags, but configure runs with "--disable-gui".

Comment 3 Igor Korot 2008-08-24 21:01:05 UTC
2 additional points:

1. It looks like "--enable-gui" flag will enable to build ODBC setup dialog.
2. From /usr/portage/dev-db/myodbc/myodbc-3.51.12.ebuild:

src_compile() {
	local myconf="--enable-static"
	use static \
		&& myconf="${myconf} --disable-shared" \
		|| myconf="${myconf} --enable-shared"

	myconf="${myconf} $(use_with doc docs) $(use_with debug)"
	myconf="${myconf} --disable-gui"
	#TODO: the configure test against qt 4 enter in an endless loop
	#myconf="${myconf} $(use_enable qt gui)"

It is in the TODO section, but apparently it does not say what is the reason for the endless loop.

Thank you.
Comment 4 Igor Korot 2008-09-10 22:26:28 UTC
Does anybody looking into this?
qt4 should be stable and testable...

Thank you.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-11-01 08:56:53 UTC
uncomment it yourself and test to see if the loop still exists.
Comment 6 Igor Korot 2008-11-20 16:34:01 UTC
(In reply to comment #5)
> uncomment it yourself and test to see if the loop still exists.

Unfortunately, I don't have qt4 installed on my Gentoo box and I don't have an Internet access from it.
However running this with qt3 does not produce any errors or loops in configure.

I guess we can put it into the mainstream, maybe with the check for qt4, at least until somebody else will test it with this package?

Thank you.
Comment 7 Igor Korot 2009-10-27 19:15:16 UTC
Hi,
"qt4" is becoming a default one, especially with KDE 4.x development.
Moreover, with gtk and qt3 package compiles and installs fine and I am able to see nice myodbc setup dialog in ODBCConfig.

So, can somebody please verify what is wrong with qt4 detection and at least for now removes this if qt4 is installed and allow to build it for qt3/gtk?

Thank you.
Comment 8 Jean-Claude Repetto 2009-11-12 16:40:30 UTC
This is the result of "sh -x configure" :

+ for n in '$qt_found_dirs'
+ echo 'configure:22051: Checking dir /usr/qt/3/include'
+ echo 'configure: Checking dir /usr/qt/3/include'
configure: Checking dir /usr/qt/3/include
+ test -r /usr/qt/3/include/qglobal.h
++ grep -w '#define QT_VERSION' /usr/qt/3/include/qglobal.h
++ sed 's/#define QT_VERSION 0x//'
++ sed 's/#define QT_VERSION//'
+ qt_current_version=030308
+ expr 030308 '>=' 0
+ expr 030308 '<=' 99999
+ qt_includes=/usr/qt/3/include
+ qt_prev_version=030308
+ qt_found_version=030308
+ for n in '$qt_found_dirs'
+ echo 'configure:22051: Checking dir /usr/include/qt4'
+ echo 'configure: Checking dir /usr/include/qt4'
configure: Checking dir /usr/include/qt4
+ test -r /usr/include/qt4/qglobal.h
+ test -r /usr/include/qt4/Qt/qglobal.h
++ grep -w '#define QT_VERSION' /usr/include/qt4/Qt/qglobal.h
++ sed 's/#define QT_VERSION 0x//'
++ sed 's/#define QT_VERSION//'
+ qt_current_version=040503
+ expr 040503 '>=' 030308
+ expr 040503 '<=' 99999
+ qt_includes=/usr/include/qt4
+ qt_prev_version=040503
+ qt_found_version=040503
+ test x/usr/include/qt4 = x
+ test x040503 = x
+ test x040503 = x
+ QTVERSION=040503
+ echo 'configure:22108: result: /usr/include/qt4'
+ echo /usr/include/qt4
/usr/include/qt4
+ echo 'configure:22113: Found Qt version 040503'
+ echo 'configure: Found Qt version 040503'
configure: Found Qt version 040503
+ echo 'configure:22119: checking for Qt libraries'
+ echo -n 'checking for Qt libraries... '
checking for Qt libraries... + test x = x
+ qt_tree=/usr/include/qt4
+ test x/usr/include/qt4 '!=' x
+ expr 040503 '>=' 040000
+ ls '/usr/include/qt4/lib/libQt*'
++ dirname /usr/include/qt4
+ qt_tree=/usr/include
+ test x/usr/include '!=' x
+ expr 040503 '>=' 040000
+ ls '/usr/include/lib/libQt*'
++ dirname /usr/include
+ qt_tree=/usr
+ test x/usr '!=' x
+ expr 040503 '>=' 040000
+ ls '/usr/lib/libQt*'
++ dirname /usr
+ qt_tree=/
+ test x/ '!=' x
+ expr 040503 '>=' 040000
+ ls '//lib/libQt*'
++ dirname /
+ qt_tree=/
+ test x/ '!=' x
+ expr 040503 '>=' 040000
... (endless loop)
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-01-31 06:22:37 UTC
5.1.6 now with GUI support in the tree.