Package: anbox Version: 0.0~git20180821-1 Severity: wishlist Tags: patch Control: block -1 with 909156
https://bugs.debian.org/909156 is an RFP for packaging SwiftShader as an independent library in debian. If that was done, then i believe that something like the following patch would enable the use of the --software-rendering without the snap package: diff --git a/src/anbox/graphics/gl_renderer_server.cpp b/src/anbox/graphics/gl_renderer_server.cpp index beb2cbe..3e21596 100644 --- a/src/anbox/graphics/gl_renderer_server.cpp +++ b/src/anbox/graphics/gl_renderer_server.cpp @@ -80,11 +80,7 @@ GLRendererServer::GLRendererServer(const Config &config, const std::shared_ptr<w auto gl_libs = emugl::default_gl_libraries(); if (config.driver == Config::Driver::Software) { - const auto snap_path = utils::get_env_value("SNAP"); - if (snap_path.empty()) - throw std::runtime_error("Software rendering is not available outside of a snap build"); - - auto swiftshader_path = fs::path(snap_path) / "lib" / "anbox" / "swiftshader"; + auto swiftshader_path = fs::path("/usr/lib/swiftshader"); gl_libs = std::vector<emugl::GLLibrary>{ {emugl::GLLibrary::Type::EGL, (swiftshader_path / "libEGL.so").string()}, {emugl::GLLibrary::Type::GLESv1, (swiftshader_path / "libGLES_CM.so").string()}, I hope this is useful. Thanks very much for maintaining anbox in debian! Regards, --dkg

