{"action":"created","issue":{"url":"https://api.github.com/repos/cschwan/sage-on-gentoo/issues/370","labels_url":"https://api.github.com/repos/cschwan/sage-on-gentoo/issues/370/labels{/name}","comments_url":"https://api.github.com/repos/cschwan/sage-on-gentoo/issues/370/comments","events_url":"https://api.github.com/repos/cschwan/sage-on-gentoo/issues/370/events","html_url":"https://github.com/cschwan/sage-on-gentoo/issues/370","id":103034305,"number":370,"title":"undefined symbol: arith_dedekind_sum","user":{"login":"gagern","id":190759,"avatar_url":"https://avatars.githubusercontent.com/u/190759?v=3","gravatar_id":"","url":"https://api.github.com/users/gagern","html_url":"https://github.com/gagern","followers_url":"https://api.github.com/users/gagern/followers","following_url":"https://api.github.com/users/gagern/following{/other_user}","gists_url":"https://api.github.com/users/gagern/gists{/gist_id}","starred_url":"https://api.github.com/users/gagern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gagern/subscriptions","organizations_url":"https://api.github.com/users/gagern/orgs","repos_url":"https://api.github.com/users/gagern/repos","events_url":"https://api.github.com/users/gagern/events{/privacy}","received_events_url":"https://api.github.com/users/gagern/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-25T14:26:33Z","updated_at":"2015-08-25T19:45:06Z","closed_at":null,"body":"After upgrading flint to 2.5.2, sage 6.8-r1 fails to start:\r\n\r\n```\r\nImportError: /usr/lib64/python2.7/site-packages/sage/libs/flint/arith.so:\r\nundefined symbol: arith_dedekind_sum\r\n```\r\n\r\nJudging from f2474ed7c67a593a841a0e0f0a8ea7a93f25e4a7, https://github.com/sagemath/sage/commit/3aece2b80b95e76db63d7223d578fac240a775af and https://github.com/wbhart/flint2/commit/64f656fb8db591ea11db606c7905de9f47b05e84 I'd assume that this symbol got renamed to `fmpq_dedekind_sum`. Not sure how to deal with this.\r\n\r\n1. You could have the `sage` ebuild on older versions of `flint`.\r\n2. You could change the `flint` ebuild, to export one name as an alias of the other.\r\n3. You could mask flint 2.5 and rely on that mask. This seems like a temporary solution only, since one day the mask would be lifted and you'd have to have an explicit dependency nonetheless.\r\n4. You could conditionally apply a patch, based on which version of flint is installed. This would require rebuilds with no indication that they are needed, which is ugly.\r\n\r\nIt would also be interesting to figure out a way to link against not `libflint.so` but its `SONAME`, i.e. `libflint.so.13` and similar, so that upgrades to the library force a rebuild of the package via the preserved-rebuild feature of portage. Not sure what `SONAME` the library from flint 2.4 had, though."},"comment":{"url":"https://api.github.com/repos/cschwan/sage-on-gentoo/issues/comments/134715765","html_url":"https://github.com/cschwan/sage-on-gentoo/issues/370#issuecomment-134715765","issue_url":"https://api.github.com/repos/cschwan/sage-on-gentoo/issues/370","id":134715765,"user":{"login":"kiwifb","id":151475,"avatar_url":"https://avatars.githubusercontent.com/u/151475?v=3","gravatar_id":"","url":"https://api.github.com/users/kiwifb","html_url":"https://github.com/kiwifb","followers_url":"https://api.github.com/users/kiwifb/followers","following_url":"https://api.github.com/users/kiwifb/following{/other_user}","gists_url":"https://api.github.com/users/kiwifb/gists{/gist_id}","starred_url":"https://api.github.com/users/kiwifb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kiwifb/subscriptions","organizations_url":"https://api.github.com/users/kiwifb/orgs","repos_url":"https://api.github.com/users/kiwifb/repos","events_url":"https://api.github.com/users/kiwifb/events{/privacy}","received_events_url":"https://api.github.com/users/kiwifb/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T19:45:06Z","updated_at":"2015-08-25T19:45:06Z","body":"Oh yes that symbol, I think I had trouble with it with `arb`. I don't think the `flint` upgrade ticket had a patch for `sage` so a rebuild may be the only thing it needs. `flint-2.4` and earlier don't have `SONAME` and someone in Gentoo thought we shouldn't fix it in 2.4 in the Gentoo tree. I put a subslot in `flint-2.5` but that will only start to work with the next `sage` and so on."}}