tcberner / kde5

FreeBSD ports for kde5 frameworks and plasma
5 stars 0 forks source link

help installing #1

Open smainand opened 9 years ago

smainand commented 9 years ago

Hello, could you add a quick note on how to install it on a fresh FreeBSD 10 install ? Thanks

tcberner commented 9 years ago

At the moment my github repo is a bit behind -- the plasma5 branch of area51 contains the current version. So I'll describe how to use that one :)

1) Clone the plasma5 branch of area51 to a directory of your chosing

svn co http://area51.pcbsd.org/branches/plasma5

2) Run kdemerge -a on it

plasma5/Tools/scripts/kdemerge -a /usr/ports

3) Edit /usr/ports/Mk/bsd.port.mk using the following command / by hand

sed -i .bak_kde\

          -e '/defined(USE_KDE4)/ s#$# || defined(USE_KDE5)#g'\
          -e '/defined(KDE4_BUILDENV)/ s#$# || defined(KDE5_BUILDENV)#g'\
          -e 's#bsd.kde4.mk#bsd.kde.mk#g'\
          /usr/ports/Mk/bsd.port.mk

[This should wire in the new KDE-bits, i.e. bsd.kde.mk should get sucked in instead of the old bsd.kde4.mk if either USE_KDE4 or USE_KDE5 is set].

4) Deinstall kde4 (this will give your build greater chances to succeed :) )

pkg delete kde attica

[This step might be a bit annoying. You may get around it, by updating kdelibs4 and attica after you merged the plasma5 ports. The problem is that there are header files that share the same name, and lead to compile errors, when the wrong one is picked up. In the plasma5-branch version of the ports, they do get installed into ${LOCALBASE}/include/kde4 instead of ${LOCALBASE}/include which fixes that issue. So you may get around by simply issuing

portmaster kdelibs attica

# portmaster -o x11-themes/kde-icons-oxygen x11-themes/kde4-icons-oxygen
# portmaster <probably something else>
Though I have never tried whether this works.
-- I would recommend a fresh start.]

5) Install x11/plasma5-plasma

cd /usr/ports/x11/plasma5-plasma && make install clean

An important note: Make sure, you have both DOCS and NLS enabled. Some of the ports will not build if either is not set (sorry -- I added them too soon).

If all goes well you should now have plasma5 \o/.

Simply start it using "startkde" in .xinitrc with something like: exec startkde > ~/startkde-date +"%Y-%m-%d_%H-%M-%S" 2>&1

You should also be able to build (most) of the kde-applications 15.04 release. Simply run portmaster/make on them as you see fit.

Note: There are most likely some conflicts/breakages I didn't notice here (i.e. forgot to merge something). So I would be glad if you could send me the fallouts :) (e.g. kdepim at the moment is broken in plasma5-branch as there is a conflict between akonadi and kf5-akonadi, which I have to fix).

mfg Tobias

smainand commented 9 years ago

I compiled it on both my laptop and desktop pc and it worked! I just had the following error (both times):

===> License GPLv2 accepted by the user ===> Found saved configuration for libgit2-0.22.1 ===> libgit2-0.22.1 depends on file: /usr/local/sbin/pkg - found => libgit2-libgit2-0.22.1-v0.22.1_GH0.tar.gz is not in /usr/ports/devel/libgit2/distinfo. => Either /usr/ports/devel/libgit2/distinfo is out of date, or => libgit2-libgit2-0.22.1-v0.22.1_GH0.tar.gz is spelled incorrectly. * Error code 1 Stop. make[1]: stopped in /usr/ports/devel/libgit2 * Error code 1 that I passed by installing libgit2 with pkg (# pkg install libgit2)

Where can I find the kde5-applications ? I couldn't find a "plasma5-baseapps"-like port.

Out of curiosity, what is the difference between all the plasma5-plasma* ports ?

Thanks for your help

2015-05-26 21:11 GMT+02:00 Tobias Berner notifications@github.com:

At the moment my github repo is a bit behind -- the plasma5 branch of area51 contains the current version. So I'll describe how to use that one :)

1) Clone the plasma5 branch of area51 to a directory of your chosing

svn co http://area51.pcbsd.org/branches/plasma5

2) Run kdemerge -a on it

plasma5/Tools/scripts/kdemerge -a /usr/ports

3) Edit /usr/ports/Mk/bsd.port.mk using the following command / by hand

sed -i .bak_kde\

-e '/defined(USE_KDE4)/ s#$# || defined(USE_KDE5)#g'\ -e '/defined(KDE4_BUILDENV)/ s#$# || defined(KDE5_BUILDENV)#g'\ -e 's#bsd.kde4.mk#bsd.kde.mk#g http://bsd.kde4.mk#bsd.kde.mk%23g'\ /usr/ports/Mk/bsd.port.mk [This should wire in the new KDE-bits, i.e. bsd.kde.mk should get sucked in instead of the old bsd.kde4.mk if either USE_KDE4 or USE_KDE5 is set].

4) Deinstall kde4 (this will give your build greater chances to succeed :) )

pkg delete kde* attica*

[This step might be a bit annoying. You may get around it, by updating kdelibs4 and attica after you merged the plasma5 ports. The problem is that there are header files that share the same name, and lead to compile errors, when the wrong one is picked up. In the plasma5-branch version of the ports, they do get installed into ${LOCALBASE}/include/kde4 instead of ${LOCALBASE}/include which fixes that issue. So you may get around by simply issuing

portmaster kdelibs attica

portmaster -o x11-themes/kde-icons-oxygen x11-themes/kde4-icons-oxygen

portmaster

Though I have never tried whether this works. -- I would recommend a fresh start.]

5) Install x11/plasma5-plasma

cd /usr/ports/x11/plasma5-plasma && make install clean

An important note: Make sure, you have both DOCS and NLS enabled. Some of the ports will not build if either is not set (sorry -- I added them too soon).

If all goes well you should now have plasma5 \o/.

Simply start it using "startkde" in .xinitrc with something like: exec startkde > ~/startkde-date +"%Y-%m-%d_%H-%M-%S" 2>&1

You should also be able to build (most) of the kde-applications 15.04 release. Simply run portmaster/make on them as you see fit.

Note: There are most likely some conflicts/breakages I didn't notice here (i.e. forgot to merge something). So I would be glad if you could send me the fallouts :) (e.g. kdepim at the moment is broken in plasma5-branch as there is a conflict between akonadi and kf5-akonadi, which I have to fix).

mfg Tobias

— Reply to this email directly or view it on GitHub https://github.com/tcberner/kde5/issues/1#issuecomment-105637697.

smainand commented 9 years ago

Hi

For libgit2, the one in the plasma5-branch can be removed, the ports have caught up with it (and have a newer version), so the one from ports should be chosen.

There is no plasma5-baseapps, but x11/kde-baseapps (note: not x11/kde4-baseapps), which contains the kde applications. They do still need kdelibs4 -- kate, konsole,gwenview and most of the games and edu/science stuff is frameworks on the other hand. [I will add entries to MOVED once I find time...] -- You can install x11/kde-baseapps and all should be well.

As for plasma5-plasma-* ... puh, no idea what the reasoning is for what goes in to which of them, sorry.

mfg Tobias

On Thursday 28. May 2015 09:28:26 Sébastien Mainand wrote:

I compiled it on both my laptop and desktop pc and it worked! I just had the following error (both times):

===> License GPLv2 accepted by the user ===> Found saved configuration for libgit2-0.22.1 ===> libgit2-0.22.1 depends on file: /usr/local/sbin/pkg - found => libgit2-libgit2-0.22.1-v0.22.1_GH0.tar.gz is not in /usr/ports/devel/libgit2/distinfo. => Either /usr/ports/devel/libgit2/distinfo is out of date, or => libgit2-libgit2-0.22.1-v0.22.1_GH0.tar.gz is spelled incorrectly. * Error code 1 Stop. make[1]: stopped in /usr/ports/devel/libgit2 * Error code 1 that I passed by installing libgit2 with pkg (# pkg install libgit2)

Where can I find the kde5-applications ? I couldn't find a "plasma5-baseapps"-like port.

Out of curiosity, what is the difference between all the plasma5-plasma* ports ?

Thanks for your help

2015-05-26 21:11 GMT+02:00 Tobias Berner notifications@github.com:

At the moment my github repo is a bit behind -- the plasma5 branch of area51 contains the current version. So I'll describe how to use that one :)

1) Clone the plasma5 branch of area51 to a directory of your chosing

svn co http://area51.pcbsd.org/branches/plasma5

2) Run kdemerge -a on it

plasma5/Tools/scripts/kdemerge -a /usr/ports

3) Edit /usr/ports/Mk/bsd.port.mk using the following command / by hand

sed -i .bak_kde\

-e '/defined(USE_KDE4)/ s#$# || defined(USE_KDE5)#g'\ -e '/defined(KDE4_BUILDENV)/ s#$# || defined(KDE5_BUILDENV)#g'\ -e 's#bsd.kde4.mk#bsd.kde.mk#g http://bsd.kde4.mk#bsd.kde.mk%23g'\ /usr/ports/Mk/bsd.port.mk [This should wire in the new KDE-bits, i.e. bsd.kde.mk should get sucked in instead of the old bsd.kde4.mk if either USE_KDE4 or USE_KDE5 is set].

4) Deinstall kde4 (this will give your build greater chances to succeed :) )

pkg delete kde* attica*

[This step might be a bit annoying. You may get around it, by updating kdelibs4 and attica after you merged the plasma5 ports. The problem is that there are header files that share the same name, and lead to compile errors, when the wrong one is picked up. In the plasma5-branch version of the ports, they do get installed into ${LOCALBASE}/include/kde4 instead of ${LOCALBASE}/include which fixes that issue. So you may get around by simply issuing

portmaster kdelibs attica

portmaster -o x11-themes/kde-icons-oxygen x11-themes/kde4-icons-oxygen

portmaster

Though I have never tried whether this works. -- I would recommend a fresh start.]

5) Install x11/plasma5-plasma

cd /usr/ports/x11/plasma5-plasma && make install clean

An important note: Make sure, you have both DOCS and NLS enabled. Some of the ports will not build if either is not set (sorry -- I added them too soon).

If all goes well you should now have plasma5 \o/.

Simply start it using "startkde" in .xinitrc with something like: exec startkde > ~/startkde-date +"%Y-%m-%d_%H-%M-%S" 2>&1

You should also be able to build (most) of the kde-applications 15.04 release. Simply run portmaster/make on them as you see fit.

Note: There are most likely some conflicts/breakages I didn't notice here (i.e. forgot to merge something). So I would be glad if you could send me the fallouts :) (e.g. kdepim at the moment is broken in plasma5-branch as there is a conflict between akonadi and kf5-akonadi, which I have to fix).

mfg Tobias

— Reply to this email directly or view it on GitHub https://github.com/tcberner/kde5/issues/1#issuecomment-105637697.

smainand commented 9 years ago

Hello,

I have some problems for compiling kde-baseapps; I installed: devel/qt4 -> went well devel/qt5 -> went well x11/kdelibs4 -> problem: "Could not find QtCore"

===> Configuring for soprano-2.9.4 ===> Performing out-of-source build /bin/mkdir -p /usr/ports/textproc/soprano/work/.build CMake Error at cmake/modules/FindQt4.cmake:747 (MESSAGE): Could NOT find QtCore. Check CMakeFiles/CMakeError.log for more details. Call Stack (most recent call first): CMakeLists.txt:46 (find_package)

port/x11/kde-baseapps:

===> Configuring for soprano-2.9.4 ===> Performing out-of-source build /bin/mkdir -p /usr/ports/textproc/soprano/work/.build CMake Error at cmake/modules/FindQt4.cmake:747 (MESSAGE): Could NOT find QtCore. Check CMakeFiles/CMakeError.log for more details. Call Stack (most recent call first): CMakeLists.txt:46 (find_package)

Another question, how should I manage updating the port tree (with portmaster) ? Should I first update the port tree (portsnap + portmaster) then reapply the plasma5 branch (via kdemerge, sed command... ?)

Thanks

2015-05-28 10:53 GMT+02:00 Tobias Berner tcberner@gmail.com:

Hi

For libgit2, the one in the plasma5-branch can be removed, the ports have caught up with it (and have a newer version), so the one from ports should be chosen.

There is no plasma5-baseapps, but x11/kde-baseapps (note: not x11/kde4-baseapps), which contains the kde applications. They do still need kdelibs4 -- kate, konsole,gwenview and most of the games and edu/science stuff is frameworks on the other hand. [I will add entries to MOVED once I find time...] -- You can install x11/kde-baseapps and all should be well.

As for plasma5-plasma-* ... puh, no idea what the reasoning is for what goes in to which of them, sorry.

mfg Tobias

On Thursday 28. May 2015 09:28:26 Sébastien Mainand wrote:

I compiled it on both my laptop and desktop pc and it worked! I just had the following error (both times):

===> License GPLv2 accepted by the user ===> Found saved configuration for libgit2-0.22.1 ===> libgit2-0.22.1 depends on file: /usr/local/sbin/pkg - found => libgit2-libgit2-0.22.1-v0.22.1_GH0.tar.gz is not in /usr/ports/devel/libgit2/distinfo. => Either /usr/ports/devel/libgit2/distinfo is out of date, or => libgit2-libgit2-0.22.1-v0.22.1_GH0.tar.gz is spelled incorrectly. * Error code 1 Stop. make[1]: stopped in /usr/ports/devel/libgit2 * Error code 1 that I passed by installing libgit2 with pkg (# pkg install libgit2)

Where can I find the kde5-applications ? I couldn't find a "plasma5-baseapps"-like port.

Out of curiosity, what is the difference between all the plasma5-plasma* ports ?

Thanks for your help

2015-05-26 21:11 GMT+02:00 Tobias Berner notifications@github.com:

At the moment my github repo is a bit behind -- the plasma5 branch of area51 contains the current version. So I'll describe how to use that one :)

1) Clone the plasma5 branch of area51 to a directory of your chosing

svn co http://area51.pcbsd.org/branches/plasma5

2) Run kdemerge -a on it

plasma5/Tools/scripts/kdemerge -a /usr/ports

3) Edit /usr/ports/Mk/bsd.port.mk using the following command / by hand

sed -i .bak_kde\

-e '/defined(USE_KDE4)/ s#$# || defined(USE_KDE5)#g'\ -e '/defined(KDE4_BUILDENV)/ s#$# || defined(KDE5_BUILDENV)#g'\ -e 's#bsd.kde4.mk#bsd.kde.mk#g http://bsd.kde4.mk#bsd.kde.mk%23g < http://bsd.kde4.mk#bsd.kde.mk%23g>'\ /usr/ports/Mk/bsd.port.mk [This should wire in the new KDE-bits, i.e. bsd.kde.mk should get sucked in instead of the old bsd.kde4.mk if either USE_KDE4 or USE_KDE5 is set].

4) Deinstall kde4 (this will give your build greater chances to succeed :) )

pkg delete kde* attica*

[This step might be a bit annoying. You may get around it, by updating kdelibs4 and attica after you merged the plasma5 ports. The problem is that there are header files that share the same name, and lead to compile errors, when the wrong one is picked up. In the plasma5-branch version of the ports, they do get installed into ${LOCALBASE}/include/kde4 instead of ${LOCALBASE}/include which fixes that issue. So you may get around by simply issuing

portmaster kdelibs attica

portmaster -o x11-themes/kde-icons-oxygen

x11-themes/kde4-icons-oxygen

portmaster

Though I have never tried whether this works. -- I would recommend a fresh start.]

5) Install x11/plasma5-plasma

cd /usr/ports/x11/plasma5-plasma && make install clean

An important note: Make sure, you have both DOCS and NLS enabled. Some of the ports will not build if either is not set (sorry -- I added them too soon).

If all goes well you should now have plasma5 \o/.

Simply start it using "startkde" in .xinitrc with something like: exec startkde > ~/startkde-date +"%Y-%m-%d_%H-%M-%S" 2>&1

You should also be able to build (most) of the kde-applications 15.04 release. Simply run portmaster/make on them as you see fit.

Note: There are most likely some conflicts/breakages I didn't notice here (i.e. forgot to merge something). So I would be glad if you could send me the fallouts :) (e.g. kdepim at the moment is broken in plasma5-branch as there is a conflict between akonadi and kf5-akonadi, which I have to fix).

mfg Tobias

— Reply to this email directly or view it on GitHub https://github.com/tcberner/kde5/issues/1#issuecomment-105637697.

strule commented 7 years ago

@tcberner I'm receiving this when I try to instal checking for gcc... cc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking whether cc understands -c and -o together... yes checking for style of include used by gmake... GNU checking dependency style of cc... gcc3 checking how to run the C preprocessor... cpp configure: error: in/usr/ports/print/texinfo/work/texinfo-6.1': configure: error: C preprocessor "cpp" fails sanity check See `config.log' for more details ===> Script "configure" failed unexpectedly. Please report the problem to johans@FreeBSD.org [maintainer] and attach the "/usr/ports/print/texinfo/work/texinfo-6.1/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *\ Error code 1

Stop. make[9]: stopped in /usr/ports/print/texinfo *\ Error code 1

Stop. make[8]: stopped in /usr/ports/print/texinfo *\ Error code 1

Stop. make[7]: stopped in /usr/ports/devel/m4 *\ Error code 1

Stop. make[6]: stopped in /usr/ports/devel/m4 *\ Error code 1

Stop. make[5]: stopped in /usr/ports/devel/scons *\ Error code 1

Stop. make[4]: stopped in /usr/ports/devel/jsoncpp *\ Error code 1

Stop. make[3]: stopped in /usr/ports/devel/cmake *\ Error code 1

Stop. make[2]: stopped in /usr/ports/devel/cmake *\ Error code 1

Stop. make[1]: stopped in /usr/ports/sysutils/plasma5-bluedevil *\ Error code 1 ` Some idea of how I can proceed?

tcberner commented 7 years ago

Hi Strule

First of all, you should use the repository here: http://src.mouf.net/area51/browse/branches/plasma5 I haven't been updating this github repo here :) [via svn co http://area51.pcbsd.org/branches/plasma5]

The port you have issues with print/texinfo is not touched by the kde5 / plasma5 changes. So I suspect your portstree is not up to date.

I'd try updating the ports tree and making sure your installed packages are up to date. If you still have issues, feel free to ask me on #kde-freebsd on freenode.

mfg Tobias