Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575270 - dev-db/pgadmin3: Fix wxGTK bits
Summary: dev-db/pgadmin3: Fix wxGTK bits
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
: 582304 (view as bug list)
Depends on:
Blocks: wxwidgets-3.0
  Show dependency tree
 
Reported: 2016-02-21 09:10 UTC by Ryan Hill (RETIRED)
Modified: 2016-05-17 11:04 UTC (History)
3 users (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 Ryan Hill (RETIRED) gentoo-dev 2016-02-21 09:10:21 UTC
The pgadmin ebuild does this:

DEPEND="x11-libs/wxGTK:=[X,debug=]
[...]
WX_GTK_PV=$(best_version x11-libs/wxGTK[X,debug=])
WX_GTK_VER=$(get_version_component_range 1-2 ${WX_GTK_PV#x11-libs/wxGTK-})

There is no debug flag in wxGTK-3.0 (debugging features are always available in these releases).  This means setting USE=debug will cause a forced downgrade to 2.8.  And as we're trying to remove 2.8, soon it'll stop working at all.

You could fix the dependency part with USE dep defaults (ie. x11-libs/wxGTK:=[X,debug(+)=]), but unfortunately best_version doesn't understand that syntax.

Also we are planning on adding a gtk+ 3 variant of wxGTK in the near future which will have a SLOT (and thus WX_GTK_VER) of 3.0-gtk3 which will break the way you set WX_GTK_VER (if the gtk3 SLOT is the only installed it will satisfy the dep but WX_GTK_VER will be set to 3.0, which doesn't exist).

The best thing to do here is just drop all this and use something like:

WX_GTK_VER="3.0"
DEPEND="x11-libs/wxGTK:${WX_GTK_VER}=[X]
[...]
src_configure() {
    need-wxwidgets unicode

    econf --with-wx-version=${WX_GTK_VER} \
        $(use_enable debug) \
        $(use_enable databasedesigner)
}

Since your ebuild has a debug USE flag the eclass will handle the debug stuff automatically.
Comment 1 Andreas Oehler 2016-05-16 08:56:35 UTC
Hi,

is there some progress to this? 
We have been stumbling on the new gtk3-version of wkwidgets being around without this being solved...:
https://bugs.gentoo.org/show_bug.cgi?id=582304

Thanks and Cheers

Andreas
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2016-05-16 16:20:00 UTC
*** Bug 582304 has been marked as a duplicate of this bug. ***
Comment 3 Aaron W. Swenson gentoo-dev 2016-05-17 11:04:10 UTC
commit 5b269bde2f90f91549bf292abbea4843a95b6e94
Author: Aaron W. Swenson <titanofold@gentoo.org>
Date:   Tue May 17 07:01:38 2016 -0400

    dev-db/pgadmin3: Fix build issues with x11-libs/wxGTK
    
    Changed and fixed dependency to the 3.0 slot as older slots are going
    away soon, and PgAdmin is currently incompatible with GTK+3.
    
    Bug: 575270, 580090
    
    Package-Manager: portage-2.2.26