Hi Thomas,
Thanks for taking a look and testing! I'll send a v2 of the seriesaddressing your comments and Marius'.
Thomas Danckaert writes:
Toggle quote (11 lines)
> Hi,>> thanks for the patch, I'd like to use clementine on Guix!>> I managed to build and run the program, but experienced some > stability issues. Importing music into the library seemed to work > fine, but I couldn't really play back files:>> - The first few times, the program segfaulted when I tried to play > files (I tried mp3 and ogg).
Ah I see what's happening! I had gst-plugin-{good,bad,ugly} installed inmy profile, it crashes for me too if I remove them. However, we shouldhave gotten a pop-up complaining about missing plugins not a crash! Itturns out wrapping the clementine binary setting GST_PLUGIN_SYSTEM_PATHfixes the issue, as done an a few other packages.
We could also add the plugins as propagated inputs, but I'd say it'sbetter to let people install only the plugins they need. What do youthink?
Toggle quote (8 lines)
>> - Then I ran it in the debugger and it didn't segfault anymore.>> - Then I tried it again without the debugger, and it didn't > segfault,> but now my desktop (Gnome on GuixSD) froze (while the music kept> playing). I had switch to a tty and restart xorg-server.
Ouch, sorry! I've just tested it in Gnome with the changes I mentionabove and it seems to work.
Toggle quote (18 lines)
>> Are you not experiencing stability issues?>>> gnu: Add qjson.>>>> * gnu/packages/qt.scm (qjson): New variable.>> [...]>> + ;; The tests require a X server>> + ;; #:configure-flags '("-DQJSON_BUILD_TESTS=ON")>> + `(#:tests? #f))>> Have you tried (setenv "QT_QPA_PLATFORM" "offscreen") to try running > the tests anyway? Another approach that is sometimes used is > starting an X server with>> (system (format #f "~a/bin/Xvfb :1 &" xorg-server))> (setenv "DISPLAY" ":1")
Oh nice, I didn't realize you could do this. The X server approachworks but not the QPA one. I'm guessing this is because QPA_PLATFORM isa QT5 only feature (?). I'll follow Marius' suggestion and see if we canhave both QT5 and QT4 versions of qjson. Or maybe we can have the QT5version of clementine, I haven't tried to build it yet.
Thanks!Pierre