Can we please have an updated and confirmed working "build KDE from source as separate user"?
Shaun Reich
shaun.reich at kdemail.net
Mon Jan 2 17:26:13 GMT 2012
On Mon, Jan 2, 2012 at 11:59 AM, Mark <markg85 at gmail.com> wrote:
> That is completely the opposite of what was suggested to me in the last few
> months of the kde svn days. Back then it was specifically suggested to use
> a separate user for kde developing stuff. Don't know who suggested it.
Yes, well...it's changed a bit ;-)
Mostly the reason why we had separate users, was for the KDE3->4 port.
That way it couldn't hose all of your files..techbase wasn't updated
since then :-D
> I personally like to have it all as a separate user since then everything is
> just at one place and i can test it as if i had the latest kde version.
> either way, having your script would probably help a lot. Can you put it on
> techbase?
You probably know the docs in question better than I, so I'll let you
(also, I'm exceptionally lazy this morning).
runmaster() {
# if [ -z "${KDE_ENV_SET}" ]; then
# (this script is from bcooksley)
export TRUNKINSTALLPATH="${HOME}/devel/kde/install"
# Change this to your kdedir setting in ~/.kdesvn-buildrc
export KDE_EXTRAS="${TRUNKINSTALLPATH}/extras"
export KDEDIR="${TRUNKINSTALLPATH}/kde"
export KDEDIRS="${KDEDIR}:${KDE_EXTRAS}:/usr/"
# Change this to your qtdir setting in ~/.kdesvn-buildrc
export QTDIR="${TRUNKINSTALLPATH}/qt"
export QT_PLUGIN_PATH="${KDE_EXTRAS}/lib64/kde4/plugins:${KDEDIR}/lib64/kde4/plugins:${KDEDIR}/lib/qt4/plugins"
export PATH="${HOME}/bin:${KDE_EXTRAS}/bin:${KDEDIR}/bin:${QTDIR}/bin:${PATH}"
export LD_LIBRARY_PATH="${KDE_EXTRAS}/lib64:${KDEDIR}/lib64:${QTDIR}/lib"
export CMAKE_PREFIX_PATH="${KDE_EXTRAS}:${KDEDIR}:${QTDIR}"
export CMAKE_MODULE_PATH="${CMAKE_PREFIX_PATH}"
export PKG_CONFIG_PATH="${KDE_EXTRAS}/share/pkgconfig:${KDE_EXTRAS}/lib64/pkgconfig:${KDEDIR}/lib64/pkgconfig:${KDEDIR}/share/pkgconfig:${QTDIR}/lib/pkgconfig"
export KDEHOME="${HOME}/.kde-master/"
unset XDG_DATA_DIRS
# Should be for kbuildsycoca
export KDEVARTMP="/var/tmp/kdecache-master-${USER}"
# Set the XDG data path, helps finding plugins, etc
export XDG_DATA_DIRS="${KDE_EXTRAS}/share:${KDEDIR}/share:${XDG_DATA_DIRS}"
export XDG_CONFIG_DIRS="${KDEDIR}/etc/xdg:${KDE_EXTRAS}/etc/xdg"
# Live Oxygen Gtk!
export GTK_PATH=$KDEDIR/lib/gtk-2.0/2.10.0
export GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:$HOME/.gtkrc-2.0::$KDEHOME/share/config/gtkrc-2.0
# Don't accidentally get sourced again.
# export KDE_ENV_SET=1
# fi
}
--
Shaun Reich,
KDE Software Developer (kde.org)
More information about the kde-core-devel
mailing list