From 672082cf6ea3290e8734aaeed2e6ee32942522ec Mon Sep 17 00:00:00 2001 From: Thomas Quinot Date: Fri, 11 Sep 2015 23:56:56 +0200 Subject: [PATCH] Fix code blocks --- .../2015-09-05-building-kde-libraries.markdown | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/_posts/2015-09-05-building-kde-libraries.markdown b/source/_posts/2015-09-05-building-kde-libraries.markdown index 077c455..4bfd349 100644 --- a/source/_posts/2015-09-05-building-kde-libraries.markdown +++ b/source/_posts/2015-09-05-building-kde-libraries.markdown @@ -12,7 +12,7 @@ Context I have a very basic KDE environment, just enough to be able to run Digikam. Anytime I try to delete a photo, I get an error message: -``` +```plain Could not start process Unable to create io-slave: klauncher said: Unknown protocol 'trash'. ``` @@ -26,7 +26,7 @@ Building KDE workspace A little grep'ping in port plists hints that the missing dep might be x11/kde4-workspace. Alright, let's build that. -```Build log +```plain Build log [...] ===> Registering installation for kfilemetadata-4.14.3_2 as automatic pkg-static: Unable to access file /var/ports/work/usr/ports/sysutils/kfilemetadata/work/stage/usr/local/lib/libkfilemetadata.so.4.14.3: No such file or directory @@ -44,13 +44,13 @@ Answer: the library version is not set by the package itself, it comes from a default value from: o -```/usr/local/share/apps/cmake/modules/KDE4Defaults.cmake +```plain /usr/local/share/apps/cmake/modules/KDE4Defaults.cmake set(GENERIC_LIB_VERSION "4.14.2") ``` Where does this come from? -``` +```plain $ pkg which /usr/local/share/apps/cmake/modules/KDE4Defaults.cmake /usr/local/share/apps/cmake/modules/KDE4Defaults.cmake was installed by package kdelibs-4.14.2_5 ``` @@ -71,14 +71,14 @@ Upgrading kdelibs Let's instead upgrade kdelibs from binary package, and hope for the best: -``` +```plain # pkg install -f kdelibs ``` This breaks because the binary package depends on a newer libpng, so let's upgrade this one, keeping the old shared lib intact just in case. -``` +```plain $ digikam /usr/local/lib/libpng16.so.16: version PNG16_0 required by /usr/local/lib/libkhtml.so.5 not defined ```