summary refs log tree commit diff stats
path: root/results/classifier/zero-shot/105/socket/1829945
blob: 7c190e2c71d56de242c6fbc701d33b3a90d40065 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
socket: 0.843
graphic: 0.790
device: 0.762
instruction: 0.744
KVM: 0.697
other: 0.686
network: 0.645
boot: 0.619
vnc: 0.594
assembly: 0.451
semantic: 0.445
mistranslation: 0.329

SDL support missing from qemu-1:3.1+dfsg-2ubuntu3.1

qemu support is missing from qemu-1:3.1+dfsg-2ubuntu3.1 on Disco. This is dispite qemu --help saying its available. SDL support is needed to use Packer(https://www.packer.io/) in graphical mode.

# qemu-system-x86_64 -cpu host -smp 2,sockets=2,cores=1,threads=1 -machine type=pc,accel=kvm -display sdl -cdrom ubuntu.iso
qemu-system-x86_64: Display 'sdl' is not available.

# qemu-system-x86_64 --help | grep sdl
-display sdl[,frame=on|off][,alt_grab=on|off][,ctrl_grab=on|off]
-sdl            shorthand for -display sdl

Hi Lee,
TL;DR: there will be no sdl support anymore for newer qemu's. (make it) Use "-display gtk" instead.

Details:
#1 SDL 1.2 vs SDL 2.0 vs working fine
1.2 was in main all the time and worked, but got unsupportable over time.
SDL2 was tried, but failed badly in quite some experiments for Debain and 
Ubuntu. That led to the choice of both distributions to go with the more
modern GTK backend instead.
Ubuntu (at Bionic staying at SDL1.2):
- sdl2 is yet too unstable for the LTS Ubuntu release given the reports
  we still see upstream and in Debian - furthermore sdl2 isn't in main yet,
  so we revert related changes to stick with the proven for now:
Debian then followed for #839695, #886671, #879536, #879534, #879532, #879193, #894852
That also matches upstream where GTK backend for graphics is the #1 thing.

#2 Supportability
The reason everyone wanted to get off SDL was maintainability as I mentioned. And as of today you'll find that none of the SDL libs is in main anymore (since Cosmic).
*sdl* is universe nowadays.
And we can't make a good case for it (to MIR it) as GTK solves it - at least from the qemu POV.

#3 About the man page, this isn't patched for features enabled/disabled by the upstream build system. For example it also contains "pvrdma" which is disabled for security reasons (and many other things).

I must conclude that as-is I won't enable sdl, but then why does it insist on `-display sdl` in the first place. `-display gtk` is just as good or better. Is that our package of packer.io that we'd want to adapt or a PR for upstream maybe?

Also misfiled against upstream's Qemu - this clearly was meant for Ubuntu's Qemu as technically upstream is still fine enabling sdl (if the package builder wants to).

Changing the bug tasks ...

Ha, Thomas beat me to re-target the bug while I was checking my inbox - thanks :-)

Thanks for the explanation. MAAS is starting to use Packer to create custom images so we may be packaging this soon. I will filed an upstream bug[1] and created a patch[2] to fix the issue.

[1] https://github.com/hashicorp/packer/issues/7675
[2] https://github.com/hashicorp/packer/pull/7676

Thanks, I subscribed there and already participate in the discussion