Summary: | sci-visualization/mayavi-4.1.0-r1[doc]: Unable to access the X Display, is $DISPLAY set properly? | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andrey Grozin <grozin> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
full log
patch to disable automatic building of the documentation |
Description
Andrey Grozin
2012-12-03 11:56:38 UTC
needs to use virtualx.eclass Could you please attach the full buildlog? Created attachment 331550 [details]
full log
Probably, it's important that I did emerge on a remote computer via ssh.
(In reply to comment #3) > Created attachment 331550 [details] > full log > > Probably, it's important that I did emerge on a remote computer via ssh. Nope, I have it too and I am not logged remotely. I think this may be caused by recent changes in the virtualx eclass: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/virtualx.eclass?r1=1.42&r2=1.43 It does something for EAPI 2 and 3 but not 4 and over. I do not know if it is an oversight or not but mayavi is EAPI 4. So it could definitely be related - I will experiment. Adding EAPI 4 in virtualx did not solve the problem. Yet it is likiely to be caused by an eclass change and virtualx is the most likely candidate. Actually while it would be interesting to know what triggered the current behavior it looks like it happens during the building of the documentation which is controlled by a use flag and use virtualmake properly in the ebuild. So we have to patch mayavi's compilation to not build the documentation straight away. OK, in setup.py we have by default: 'build': MyBuild, that triggers the building of the documentation. Removing it will get us past the current problem but then the the line 'install_data': MyInstallData lead to a segfault because of wrong permissions: running install_scripts Installing tvtk_doc script to /scratch/portage/sci-visualization/mayavi-4.1.0-r1/image/usr/bin Installing mayavi2 script to /scratch/portage/sci-visualization/mayavi-4.1.0-r1/image/usr/bin [QCD-nzi3:19719] *** Process received signal *** [QCD-nzi3:19719] Signal: Segmentation fault (11) [QCD-nzi3:19719] Signal code: Invalid permissions (2) [QCD-nzi3:19719] Failing at address: 0x29457e0 [QCD-nzi3:19719] [ 0] /lib64/libpthread.so.0(+0x10bf0) [0x7fc279ca8bf0] [QCD-nzi3:19719] [ 1] [0x29457e0] [QCD-nzi3:19719] *** End of error message *** which I assume is because the MyInstallData function is trying to do something with documentation files that do not exists. Removing the line solve the problem and I am hoping that we don't miss anything if we remove it. I had a look at the MyInstallData function but I am not sure where it goes wrong yet. Created attachment 331574 [details, diff]
patch to disable automatic building of the documentation
Here is a patch that solves the current problem. Note that when generating the documentation with USE=doc there are complaints of files missing and of the TVTK library not being built properly because in the upstream process some zip file would be generated during MyBuild and again during MyInstallData just to make sure. I am not sure how to solve this problem at this stage.
+*mayavi-4.2.0 (06 Dec 2012) + + 06 Dec 2012; Justin Lecher <jlec@gentoo.org> -mayavi-4.1.0.ebuild, + mayavi-4.1.0-r1.ebuild, +mayavi-4.2.0.ebuild, +files/mayavi-4.2.0-doc.patch: + Drop old; restrict tests as they are broken, #422951; only build docs with + USE=doc and only once, #445782; Version Bump; Add missing Deps + |