Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 35018 - Fresh unixODBC install fails if "gtk" USE flag is set
Summary: Fresh unixODBC install fails if "gtk" USE flag is set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 34650
Blocks:
  Show dependency tree
 
Reported: 2003-12-03 16:04 UTC by Stuart Shelton
Modified: 2004-02-11 06: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 Stuart Shelton 2003-12-03 16:04:28 UTC
This is a continuation of bug 34650 - which I can't reopen:

After battling for a long time to compile unixODBC on a fresh Gentoo installation, I found the problem: gODBCConfig has a dependancy that unixODBC must already be installed.

The fix in 34650 will only work if unixODBC is already installed on the system (in which case the configure script for gODBCConfig reports "checking for ODBC files... found ODBC in /usr").

If this is the first install of unixODBC, however, you get "checking for ODBC files... no ODBC backend found" (or very similar) and the emerge fails.

I fixed it by installing unixODBC with USE="-gtk", then again with USE="gtk" :(

I'm new to gentoo and the portage system, but it looks as if the patch from 34650 either needs to be moved into src_install after "make install" (nasty), or gODBCConfig needs to be moved into a seperate ebuild.

Sorry to be the bearer of bad news...

    Stuart
Comment 1 francis.lalonde 2003-12-05 07:35:13 UTC
Workaround, part 2:

Once I got unixODBC installed using USE="-gtk" as previously described, I re-emerged unixODBC without specifying USE="-gtk" and this time everything compiled fine since the basic libs were there for gODBCconfig to compile.
Comment 2 Stuart Shelton 2003-12-05 12:57:48 UTC
That's true - I think that gtk may be a default USE flag, so that this method will allow unixODBC to be installed.  This wasn't my main problem, though.  Whilst gODBCConfig is "nice to have" rather than vital, having a USE flag set shouldn't make a build unbuildable - no package should have an unfulfillable dependancy on itself!

I reckon that either gODBCConfig should be split off into a seperate ebuild or (if possible with portage) unixODBC should be built in a two-stage process if gtk is specified as a USE flag.

Is the latter possible?

Cheers,

    Stuart
Comment 3 Olivier Castan 2003-12-19 06:16:19 UTC
I've made a new version of the ebuild to work around this bug, see bug #35691
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2003-12-19 14:30:33 UTC
Fixed with bug #35691
Comment 5 Robert Moss (RETIRED) gentoo-dev 2004-02-11 06:53:59 UTC
This is broken again, as noted in comment to bug #34650.