Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79827 - openoffice-ximian 1.3.8 doesn't find kde 3.4
Summary: openoffice-ximian 1.3.8 doesn't find kde 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-28 03:26 UTC by Prakash Punnoor
Modified: 2005-01-29 16:46 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 Prakash Punnoor 2005-01-28 03:26:52 UTC
Well, subject says it all. But xoo also says workaround: 

With KDEDIR=/usr/kde/3.4 emerge ...

it compiles.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Guillaume Castagnino 2005-01-28 04:23:36 UTC
Found the problem :
in /etc/env.d/99kde-env
the variable is KDEDIRS instead of KDEDIR (without 'S') and for me was baddly set to '/usr' instead of '/usr/kde/3.4'
Comment 2 Andreas Proschofsky (RETIRED) gentoo-dev 2005-01-28 04:30:58 UTC
So not our problem, closing ;)
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-28 05:50:15 UTC
Guillaume: Change it back. KDEDIRS=/usr is correct.
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2005-01-28 09:22:54 UTC
@kde-herd: Have there been some path changes to KDE in 3.4 which could result in that?
Comment 5 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-28 10:50:08 UTC
Yes, the idea is that ebuilds should not rely on KDEDIR being in the 
enviroment (see bug 33079)

the corrct way to fix is to do "inherit kde-functions", and then do something 
like:
    if use kde; then
        set-kdedir 3
        export MYCONF="${MYCONF} --enable-kde"
        ...

to set KDEDIR to the correct value.

Alternatively, set KDEDIR by doing:

    if use kde; then
        KDEDIR=$(kde-config --prefix)
        export MYCONF="${MYCONF} --enable-kde"
        ...
Comment 6 Andreas Proschofsky (RETIRED) gentoo-dev 2005-01-28 11:33:38 UTC
@Greg: Thanks, going to do that.

@Guillaume: Could you please try that, add kde-functions to the inherit line at the beginning of the ebuild and add the set-kdedir 3 line before the line where --enable-kde is set?

Can't test it myself as I don't have kde 3.4 installed here.
Comment 7 Max Powers 2005-01-28 22:24:08 UTC
The fix suggested by Gregorio Guidi doesnt work. The first one doesnt seem to be a valid call. The ebuild rejects that line completely. The alternate proposed change does no effect on compilation, still get the error.

Added the line "kde-functions" to inherit and tried both of the fixes, non worked for reasons above.
Comment 8 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-29 03:50:49 UTC
> The alternate proposed change does no effect on compilation

It should have been "export KDEDIR=$(kde-config --prefix)", sorry.

But please check again the first one, it should work (the function is there,
in /usr/portage/kde-functions.eclass)
Comment 9 Andreas Proschofsky (RETIRED) gentoo-dev 2005-01-29 04:07:38 UTC
set-kdedir has to be called in src_compile, this is where I put it now. Checked myself now and it works that way, fix commited to cvs. So, closing.

Thanks for reporting and helping
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-29 16:31:24 UTC
Andreas: The explanation is still missing. KDEDIR is deprecated for a while now and the ximian guys shouldn't use it in the first place.
Comment 11 Andreas Proschofsky (RETIRED) gentoo-dev 2005-01-29 16:46:48 UTC
It's actually Jan Holesovsky from SUSE/KDE-fame who is responsible for this, so he should know what he is doing ;) Will let him know.