{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6883","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6883/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6883/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6883/events","html_url":"https://github.com/NixOS/nixpkgs/issues/6883","id":62781857,"number":6883,"title":"KDE4 libraries duplication/inconsistency","user":{"login":"ambrop72","id":2626481,"avatar_url":"https://avatars.githubusercontent.com/u/2626481?v=3","gravatar_id":"","url":"https://api.github.com/users/ambrop72","html_url":"https://github.com/ambrop72","followers_url":"https://api.github.com/users/ambrop72/followers","following_url":"https://api.github.com/users/ambrop72/following{/other_user}","gists_url":"https://api.github.com/users/ambrop72/gists{/gist_id}","starred_url":"https://api.github.com/users/ambrop72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambrop72/subscriptions","organizations_url":"https://api.github.com/users/ambrop72/orgs","repos_url":"https://api.github.com/users/ambrop72/repos","events_url":"https://api.github.com/users/ambrop72/events{/privacy}","received_events_url":"https://api.github.com/users/ambrop72/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/kde","name":"kde","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-03-18T19:44:24Z","updated_at":"2015-03-22T17:55:39Z","closed_at":"2015-03-22T14:09:16Z","body":"The recent \"KDE Applications\" (`pkgs.kdeApps_stable`) releases come with a release of KDE4 kdelibs. This kdelibs identifies itself as version 4.14.6, as can be seen in applications within this package set that end up linked to it (About dialog, ldd). However, we also have kdelibs and other kde4 libraries in the original KDE4 packages (`pkgs.kde4`). The latest kdelibs version there is 4.14.3.\r\n\r\nThis by itself is not too bad, but the problem is that the `kdeApps` expressions make use of certain packages from `pkgs.kde4` as dependencies. This is not good, because an application may then depend on both variants of kdelibs. Which one ends up being loaded at runtime may be a matter of chance more than anything else.\r\n\r\nThis can be checked using `ldd`. In my case, for example, Akregator (in `pkgs.kdeApps_stable.kdepim`) is linked to the new kdelibs, while Okular (`pkgs.kdeApps_stable.okular`) is linked to the old kdelibs.\r\n\r\n```\r\n$ ldd $(nix-build -A pkgs.kdeApps_stable.kdepim --no-out-link)/bin/akregator |grep kdecore\r\n        libkdecore.so.5 => /nix/store/safajj2kzs57bx6y4mc025882wm0sf88-kdelibs-4.14.6/lib/libkdecore.so.5 (0x00007f39d75a7000)\r\n$ ldd $(nix-build -A pkgs.kdeApps_stable.okular --no-out-link)/bin/okular |grep kdecore\r\n        libkdecore.so.5 => /nix/store/2rhs2i291j6bz4vrdpppvvhqr8v86laa-kdelibs-4.14.3/lib/libkdecore.so.5 (0x00007f3cd3acf000)\r\n```\r\n\r\nAny suggestions we could clean this up? I see two ways:\r\n1. Get rid of dependencies on `kde4` within the kdeApps expression. Instead, somehow build the KDE4 dependencies that are not part of kdeApps within the kdeApps expression, so they are built agains the kdeApps kdelibs.\r\n2. Do not build kdelibs as part of the kdeApps expression, but rely on the expressions in kde4. Preferably we modify those so that the updated kdelibs are used, and the older 4.14.3 would be gone.\r\n\r\nI have made a proof of concept of the first approach: https://github.com/ambrop72/nixpkgs/commit/8d057da664a0dd87cc4955c83a84dee96069bd75\r\n\r\nI have noticed that the of the `kdeApps` KDE4 applications, the ones that are linked to the new 4.14.6 kdelibs will have some problems with the application styles (the KDE5 style settings have no effect on them). But this seems like some simple integration that is done in kde4 kdelibs but not in kdeApps kdelibs."},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/84667118","html_url":"https://github.com/NixOS/nixpkgs/issues/6883#issuecomment-84667118","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6883","id":84667118,"user":{"login":"ambrop72","id":2626481,"avatar_url":"https://avatars.githubusercontent.com/u/2626481?v=3","gravatar_id":"","url":"https://api.github.com/users/ambrop72","html_url":"https://github.com/ambrop72","followers_url":"https://api.github.com/users/ambrop72/followers","following_url":"https://api.github.com/users/ambrop72/following{/other_user}","gists_url":"https://api.github.com/users/ambrop72/gists{/gist_id}","starred_url":"https://api.github.com/users/ambrop72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ambrop72/subscriptions","organizations_url":"https://api.github.com/users/ambrop72/orgs","repos_url":"https://api.github.com/users/ambrop72/repos","events_url":"https://api.github.com/users/ambrop72/events{/privacy}","received_events_url":"https://api.github.com/users/ambrop72/received_events","type":"User","site_admin":false},"created_at":"2015-03-22T17:55:39Z","updated_at":"2015-03-22T17:55:39Z","body":"Of course I consider it inappropriate to change the profile path for all KDE4 apps. People have settings in .kde and nobody expects it to be lost. So I would change the kdelibs expression to force the profile path to ~/.kde.\r\n\r\nNote: I can't reopen this issue since I didn't close it."}}