On Fri, Mar 13, 2020 at 05:48:20PM +0530, Aniket Pradhan wrote: > Hello Devel > > I was trying to package vispy[0] for Fedora using pyside2 as the > backend. However, many of its tests work by drawing a window and so > on. > I was using Xvfb to create a buffer so that the graphical components > can be made and the tests can proceed. The spec is here[1]. > > However, when I use rpmbuild to do a build the RPM, it works fine on > my computer as it is able to detect the correct graphics library and > the extensions. However, when I try the same on mock, it fails to do > that. > Is there any option within mock to enable graphics (or something > similar) or is it currently impossible to test applications using GL > on mock? > > [0]: http://vispy.org/ > [1]: https://major.fedorapeople.org/vispy-pyside2/vispy-pyside2.spec I think the problem is not Xvfb. Xvfb creates an independent X server and the aplication should connect to it. Hence another running X server is irrelevant. I suspect the application rather cannot locate GL libraries in the mock enviroment than that there was something wrong in the Xvfb. Are you sure you build-require all the needed packages in the spec file? By the way shouldn't you add "-d" option the xvfb-run program? -- Petr
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx