Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 447246 - media-libs/oyranos is incompatible with >=app-admin/elektra-0.8, consequently, kde-misc/kolor-manager crashes
Summary: media-libs/oyranos is incompatible with >=app-admin/elektra-0.8, consequently...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on:
Blocks:
 
Reported: 2012-12-14 15:21 UTC by Andreas Sturmlechner
Modified: 2013-04-25 11:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
elektra-0.7.1-r3.ebuild.diff (elektra-0.7.1-r3.ebuild.diff,1.24 KB, patch)
2013-03-23 21:33 UTC, Andreas Sturmlechner
Details | Diff
oyranos-0.9.4.ebuild.diff (oyranos-0.9.4.ebuild.diff,1.08 KB, patch)
2013-03-23 21:37 UTC, Andreas Sturmlechner
Details | Diff
oyranos-0.9.1-r2.ebuild.diff (oyranos-0.9.1-r2.ebuild.diff,633 bytes, patch)
2013-03-30 12:28 UTC, Andreas Sturmlechner
Details | Diff
oyranos-0.9.4-patches.tar.xz (oyranos-0.9.4-patches.tar.xz,11.32 KB, application/octet-stream)
2013-04-21 17:47 UTC, Andreas Sturmlechner
Details
oyranos-0.9.4-r1.ebuild.diff (oyranos-0.9.4-r1.ebuild.diff,2.69 KB, patch)
2013-04-21 17:51 UTC, Andreas Sturmlechner
Details | Diff
oyranos-9999.ebuild.diff (oyranos-9999.ebuild.diff,2.78 KB, patch)
2013-04-22 14:35 UTC, Andreas Sturmlechner
Details | Diff
oyranos-0.9.5-buildsystem.patch (oyranos-0.9.5-buildsystem.patch,5.87 KB, patch)
2013-04-24 20:19 UTC, Andreas Sturmlechner
Details | Diff
oyranos-9999.ebuild.diff (oyranos-9999.ebuild.diff,837 bytes, patch)
2013-04-24 20:21 UTC, Andreas Sturmlechner
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2012-12-14 15:21:01 UTC
As mentioned already in the oyranos-0.9 version bump bug, it currently does not work when built against elektra-0.8.3 - at least not using kolor-manager-0.99.

kolor-manager crashes at startup with the following message:

$ systemsettings: symbol lookup error: /usr/lib64/elektra/libelektra-resolver.so: undefined symbol: elektraPluginExport
Comment 1 Mario Kicherer 2013-01-26 14:53:09 UTC
I have the same problem.

The library is missing a required other library. Link additionally against one of those:

/usr/lib64/libelektra-full.so
/usr/lib64/libelektra.so

If I preload one of them the oyranos plugin works. E.g.:
LD_PRELOAD=/usr/lib64/libelektra.so systemsettings

I'm not familiar with cmake so I don't have a patch for elektra right now.
Comment 2 Andreas Sturmlechner gentoo-dev 2013-02-03 21:50:23 UTC
Indeed, that fixes the problem.
Comment 3 Benjamin Schindler 2013-02-10 22:11:54 UTC
I reported this at gentoo, and they told me that oyranos is not compatible with elektra-0.8, but 0.7 has to be used instead. 

See here: 

https://bugs.kde.org/show_bug.cgi?id=314827

And indeed, downgrading elektra (and rebuilding oyranos) fixes this
Comment 4 Andreas Sturmlechner gentoo-dev 2013-02-10 22:35:46 UTC
Yes, elektra-0.7 would be the correct dependency for oyranos-0.9 currently. It is plain old though. Some effort has been made already to port it over to elektra-0.8, but oyranos upstream seems to struggle getting it done. Having preloaded /usr/lib64/libelektra.so I see the same busy log as Kai-Uwe Behrmann in his quest for elektra-0.8.
Comment 5 Enrico Tagliavini 2013-03-20 12:13:59 UTC
I'm adding media-libs/oyranos maintainer. May be a blocker should be added to media-libs/oyranos until a patch / workaround / new release upstream (hopefully) will be ready
Comment 6 Andreas Sturmlechner gentoo-dev 2013-03-23 19:15:31 UTC
We now have the opposite situation that oyranos-0.9.4 depends on >=elektra-0.8.3-r1 which doesn't work at runtime.
Comment 7 Andreas Sturmlechner gentoo-dev 2013-03-23 21:33:24 UTC
Created attachment 343040 [details, diff]
elektra-0.7.1-r3.ebuild.diff

Don't rename include files but move them into 'elektra' subdirectory to make package more compatible.
Comment 8 Andreas Sturmlechner gentoo-dev 2013-03-23 21:37:05 UTC
Created attachment 343042 [details, diff]
oyranos-0.9.4.ebuild.diff

Depend on elektra-0.7.1-r3 and make use of FindElektra.cmake which is now able to find it. No sources modification for <elektra-0.8 needed anymore.
Comment 9 Alexander E. Patrakov 2013-03-26 04:46:58 UTC
I'd say please just stop unbundling elektra from oyranos. The relationship between these two libraries is too fragile, and I am not sure that it is a good idea to allow the user of oyranos to build elektra with arbitrary options.
Comment 10 Alexander E. Patrakov 2013-03-26 06:54:26 UTC
Andreas Sturmlechner: could you please confirm that oyranos works as it should (instead of just not crashing) with your patch? The test is to run:

oyranos-monitor -l

It should produce non-empty output. For me, it only does so if I undo the unbundling of elektra.
Comment 11 Andreas Sturmlechner gentoo-dev 2013-03-29 18:37:26 UTC
(In reply to comment #10)
> could you please confirm that oyranos works as it should (instead of just 
> not crashing) with your patch? The test is to run:
> 
> oyranos-monitor -l

Hmm, indeed, there's no output. So far I have only been looking at kolor-manager as I'd like to have that usable some point in the future, and just settled for no crash -> fine for me for now.
Comment 12 Andreas Sturmlechner gentoo-dev 2013-03-29 18:57:43 UTC
However, it works when I modify oyranos-0.9.1-r1 to use my attached elektra-0.7.1-r3 ebuild that is attached. So something needs to be done with oyranos-0.9.4 still.
Comment 13 Andreas Sturmlechner gentoo-dev 2013-03-30 12:28:37 UTC
Created attachment 343748 [details, diff]
oyranos-0.9.1-r2.ebuild.diff

Here's the ebuild, if you want to give it a try as well.

$ oyranos-monitor -l

WARNING 0.010000: oyOptions_s[0]="oyOptions_s" oyranos_monitor_x11.c:429 oyX1GetMonitorInfo_() found /var/log/Xorg.0.log in ":0.0": LEN 4433 1920x1200+0+0
WARNING 0,010000: oyOptions_s[0]="oyOptions_s" oyranos_monitor_x11.c:465 oyX1GetMonitorInfo_() 
  no EDID available from X properties:
  "XFree86_DDC_EDID1_RAWDATA"/"EDID_DATA"
  using Xorg log fallback.
0: ":0.0" 1920,00x1200,00+0,00+0,00  4433_xorg.icc


Also, kolor-manager-0.99 lets me configure lots of things without a crash.
Comment 14 Andreas Sturmlechner gentoo-dev 2013-03-30 14:51:38 UTC
Alexander: However, portage ebuilds work as well if you take care of the deps, so maybe you've got a different problem?

Got a positive test result using:
elektra-0.7.1-r2
oyranos-0.9.1-r1
Comment 15 Andreas Sturmlechner gentoo-dev 2013-04-01 13:18:17 UTC
Well... `oyranos-monitor -l` doesn't work with bundled elektra either (in oyranos-0.9.4). In case this is an upstream bug, it isn't yet fixed in -9999 either.
Comment 16 Michael Weber (RETIRED) gentoo-dev 2013-04-13 02:08:12 UTC
(In reply to comment #7)
> Created attachment 343040 [details, diff] [details, diff]
> elektra-0.7.1-r3.ebuild.diff
> 
> Don't rename include files but move them into 'elektra' subdirectory to make
> package more compatible.

This patch is kinda hidden, for an elektra fix. done.
+  13 Apr 2013; Michael Weber <xmw@gentoo.org> elektra-0.7.1-r3.ebuild:
+  Move elektra include file in subdir (bug 447246, Andreas Sturmlechner)
+
Comment 17 Michael Weber (RETIRED) gentoo-dev 2013-04-13 02:20:06 UTC
(In reply to comment #9)
> I'd say please just stop unbundling elektra from oyranos. 
not an option

(In reply to comment #12)
> However, it works when I modify oyranos-0.9.1-r1 to use my attached
> elektra-0.7.1-r3 ebuild that is attached. So something needs to be done with
> oyranos-0.9.4 still.

all suggested changes added as oyranos-0.9.1-r2.

(In reply to comment #12)
> However, it works when I modify oyranos-0.9.1-r1 to use my attached
> elektra-0.7.1-r3 ebuild that is attached. 
can you please confirm this in some hours after an fresh sync with elektra-0.7.1-r3 and oyranos-0.9.1-r2, would be great.

> So something needs to be done with oyranos-0.9.4 still.
Masked for now

Does not work with rdeps, mask for testing (bug #447246)
+  13 Apr 2013; Michael Weber <xmw@gentoo.org> package.mask:
+  Does not work with rdeps, mask for testing (bug #447246)
+
Comment 18 Andreas Sturmlechner gentoo-dev 2013-04-13 08:54:44 UTC
(In reply to comment #16)
> This patch is kinda hidden, for an elektra fix. done.

Sorry, I initially posted it here for oyranos-0.9.4 compatibleness.

(In reply to comment #17) 
> can you please confirm this in some hours after an fresh sync with
> elektra-0.7.1-r3 and oyranos-0.9.1-r2, would be great.

Confirmed working on a second box that contains a radeon gpu. Also, same observations with oyranos-0.9.4/git on that box as above which where made on an i915 system.
Comment 19 Alexander E. Patrakov 2013-04-20 11:04:26 UTC
I confirm that elektra-0.7.1-r3 and oyranos-0.9.1-r2, as found in the main portage tree, work together as they should. Also I have successfully tested them with compicc (which is unfortunately not in the portage tree).
Comment 20 Andreas Sturmlechner gentoo-dev 2013-04-21 08:05:06 UTC
oyranos-9999 works after removing the 0.9.4-buildsystem patch.
Comment 21 Andreas Sturmlechner gentoo-dev 2013-04-21 08:12:53 UTC
Same for oyranos-0.9.4
Comment 22 Andreas Sturmlechner gentoo-dev 2013-04-21 09:10:21 UTC
Wow, how did I miss that - easy fix for >=oyranos-0.9.4 in Gentoo:

--- a/files/oyranos-0.9.4-buildsystem.patch     2013-03-23 19:17:07.000000000 +0100
+++ b/files/oyranos-0.9.4-buildsystem.patch     2013-04-21 10:57:42.256932742 +0200
@@ -5,9 +5,9 @@
  LINK_DIRECTORIES( ${XCM_LIBRARY_DIRS} )
  
 -FIND_PACKAGE( X11 )
-+IF(X11_WANT)
++IF(WANT_X11)
 +FIND_PACKAGE( X11 REQUIRED )
-+ENDIF(X11_WANT)
++ENDIF(WANT_X11)
  IF(X11_FOUND)
    INCLUDE_DIRECTORIES( ${X11_INCLUDE_DIRS} )
    LINK_DIRECTORIES( ${X11_LIBRARY_DIRS} )
Comment 23 Andreas Sturmlechner gentoo-dev 2013-04-21 17:47:21 UTC
Created attachment 346224 [details]
oyranos-0.9.4-patches.tar.xz

Patches for:
- bug 464254
- this bug (part buildsystem patch, part xrandr handling)
- be on par with oyranos-0.9.1-r2
- many typos
Comment 24 Andreas Sturmlechner gentoo-dev 2013-04-21 17:51:13 UTC
Created attachment 346226 [details, diff]
oyranos-0.9.4-r1.ebuild.diff

- ebuild makes use of above patches
- changed rdep to =app-admin/elektra-0.7* (-r2 should be dropped anyway)
- bug 464094 fix for oyranos-0.9.4 as well
- also contains oyranos.git URL for added fun
Comment 25 Andreas Sturmlechner gentoo-dev 2013-04-21 17:52:38 UTC
Alexander, want to give it a try?
Comment 26 Michael Weber (RETIRED) gentoo-dev 2013-04-22 12:05:01 UTC
The -9999 version needs other (=none) keywords,
${PN}-0.9.4 instead of ${P} for epatch calls,
and the backported patches do not apply.

My current portage state, both version show errors detecting elektra

http://b-4.xmw.de/usr/portage/media-libs/oyranos/ 
http://b-4.xmw.de/var/log/portage/build/media-libs/oyranos-9999:20130422-114031.log
http://b-4.xmw.de/var/log/portage/build/media-libs/oyranos-0.9.4-r1:20130422-105214.log
Comment 27 Andreas Sturmlechner gentoo-dev 2013-04-22 12:10:03 UTC
True, the live version is only meant to be used with the buildsystem patch.

Strange, no elektra trouble on my system...
Comment 28 Michael Weber (RETIRED) gentoo-dev 2013-04-22 12:14:27 UTC
(In reply to comment #19)
> ... tested ... with compicc (which is unfortunately not in the portage tree).

Do you have an ebuild for inclusion? I couldn't find any trace on bugzie or gpo - besides upstream. 
http://sourceforge.net/apps/mediawiki/compicc/index.php?title=Main_Page
Comment 29 Andreas Sturmlechner gentoo-dev 2013-04-22 12:29:30 UTC
I just tried again, also using in-tree elektra-0.7.1-r3 and oyranos configured just fine:

-- checking for module 'elektra'
--   found elektra, version 0.7.1
-- Found ELEKTRA:  /usr/include/elektra
Comment 30 Michael Weber (RETIRED) gentoo-dev 2013-04-22 13:13:02 UTC
(In reply to comment #27)
> True, the live version is only meant to be used with the buildsystem patch.
> 
> Strange, no elektra trouble on my system...

nvm, it's the first run of the cmake-multilib fu that cannot detect the 32bit version of elektra on my multilib 64bit dev box.
Comment 31 Andreas Sturmlechner gentoo-dev 2013-04-22 14:34:02 UTC
ah yes, I haven't looked into that so far.
Comment 32 Andreas Sturmlechner gentoo-dev 2013-04-22 14:35:46 UTC
Created attachment 346294 [details, diff]
oyranos-9999.ebuild.diff

I guess that ebuild could work for both 0.9.4 and 9999 at the same time
Comment 33 Andreas Sturmlechner gentoo-dev 2013-04-22 14:38:45 UTC
Comment on attachment 346294 [details, diff]
oyranos-9999.ebuild.diff

...except for some whitespace mess I just noticed
Comment 34 Andreas Sturmlechner gentoo-dev 2013-04-24 19:39:17 UTC
I see ebuilds are in portage now. :)

Tested elektra-0.7.1-r4, oyranos-0.9.4-r1 successfully.
Comment 35 Andreas Sturmlechner gentoo-dev 2013-04-24 20:17:08 UTC
Just one more thing, oyranos-9999 already needs a change :)

- CUPS macro names were fixed upstream and break 0.9.4-buildsystem patch: http://www.oyranos.org/scm?p=oyranos.git;a=commit;h=00da0f1e30b24fba9f07980596a8b30467145172
- FindXcm.cmake was removed in git
- The s/Promt/Prompt sed can also be removed from the ebuild
Comment 36 Andreas Sturmlechner gentoo-dev 2013-04-24 20:19:27 UTC
Created attachment 346516 [details, diff]
oyranos-0.9.5-buildsystem.patch

new buildsystem patch
Comment 37 Andreas Sturmlechner gentoo-dev 2013-04-24 20:21:52 UTC
Created attachment 346518 [details, diff]
oyranos-9999.ebuild.diff

updated live ebuild
Comment 38 Michael Weber (RETIRED) gentoo-dev 2013-04-25 11:24:39 UTC
I think I said that before.
I do not rely on $PV dependencies just to spare some duplicated bits between ebuild. Besides - as long as our VCS of (current) choice - cvs does not support symlinking, making that argument mute.

I look into the fixes, but stop suggesting patches to merged -9999 and snapshots.
And do not put version tags of unreleased versions to files. There is no way of telling final 0.9.5 will apply agains the 0.9.5 build system patch.

This "if 9999" mess leads to toolchain.eclass and herds breaking stabilization rules arguing for convenience or even worst ... versioned eclasses.
Comment 39 Michael Weber (RETIRED) gentoo-dev 2013-04-25 11:34:59 UTC
+  25 Apr 2013; Michael Weber <xmw@gentoo.org> oyranos-9999.ebuild,
+  +files/oyranos-9999-buildsystem.patch:
+  Update live version buildsystem patch (thanks Andreas Sturmlechner, bug
+  447246)
+

This got too far off-topic, no need to annoy kde etc. Please report future issues as new bugs.