Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142625 - Problems with kdehissenvisibility USE detection in kde.eclass
Summary: Problems with kdehissenvisibility USE detection in kde.eclass
Status: RESOLVED DUPLICATE of bug 141781
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 02:20 UTC by Danny van Dyk (RETIRED)
Modified: 2006-08-03 04:33 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 Danny van Dyk (RETIRED) gentoo-dev 2006-08-03 02:20:56 UTC
[Disclaimer: I'm using paludis, not portage]

I have kdehiddenvisibility in my USE and the first package merged
after kdelibs shows this error:
==
*** Finished
    Don't forget to run ./configure
    If you haven't done so in a while, run ./configure --help
 * You asked to enable hidden visibility, but your kdelibs was
 * built without its support. Please rebuild kdelibs with the
 * kdehiddenvisibility useflag enabled.

!!! ERROR in kde-base/libkonq-3.5.3:
!!! In kde_src_compile at line 264
!!! kdelibs without hidden visibility
==

I tracked it down to this check in kde.eclass:
==
if [[ ${PN} != "kdelibs" && ${PN} != "arts" ]] && \
                            ! fgrep -q "#define __KDE_HAVE_GCC_VISIBILITY" "${KDEDIR}/include/kdemacros.h"; then

                            eerror "You asked to enable hidden visibility, but your kdelibs was"
                            eerror "built without its support. Please rebuild kdelibs with the"
                            eerror "kdehiddenvisibility useflag enabled."
                            die "kdelibs without hidden visibility"
                        else
==

I checked why the fgrep line doesn't successfully return, and it seem that
/usr/kde/3.5/include/kdemacros.h doesn't contain #define __KDE_HAVE_GCC_VISIBILITY. Much rather it contains a commented #undef line:
==
#ifndef _KDE_MACROS_H_
#define _KDE_MACROS_H_

/* Set by configure */
/* #undef __KDE_HAVE_GCC_VISIBILITY */
==

I guess the behaviour has changed for kde-3.5.3?
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-08-03 04:33:17 UTC
For the bloody hell, how come _developers_ seems to search bugzilla even less that _users_ ?!

*** This bug has been marked as a duplicate of 141781 ***