summaryrefslogtreecommitdiffstats
path: root/debian/source
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/lintian-overrides6
-rw-r--r--debian/source/options2
-rw-r--r--debian/source_qemu.py25
4 files changed, 34 insertions, 0 deletions
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 00000000..163aaf8d
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 00000000..3d74f174
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,6 @@
+# deliberate spacing to align Breaks:Replaces
+qemu source: debian-control-has-unusual-field-spacing Breaks *
+qemu source: debian-control-has-unusual-field-spacing Replaces *
+# we have a ton of files with long lines, just shut up this warning
+qemu source: very-long-line-length-in-source-file *
+qemu source: package-does-not-install-examples *roms/*/examples/*
diff --git a/debian/source/options b/debian/source/options
new file mode 100644
index 00000000..dcefc1b3
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1,2 @@
+# ignore sources which are in submodules in upstream git
+extend-diff-ignore ^capstone/|^dtc/|^meson/|^roms/.*/|^\.git-submodule-status$
diff --git a/debian/source_qemu.py b/debian/source_qemu.py
new file mode 100644
index 00000000..b86d6bd7
--- /dev/null
+++ b/debian/source_qemu.py
@@ -0,0 +1,25 @@
+'''apport package hook for qemu
+
+(c) 2009 Canonical Ltd.
+'''
+
+from apport.hookutils import *
+import subprocess
+
+def cmd_pipe(command1, command2, input = None, stderr = subprocess.STDOUT, stdin = None):
+ '''Try to pipe command1 into command2.'''
+ try:
+ sp1 = subprocess.Popen(command1, stdin=stdin, stdout=subprocess.PIPE, stderr=stderr, close_fds=True)
+ sp2 = subprocess.Popen(command2, stdin=sp1.stdout, stdout=subprocess.PIPE, stderr=stderr, close_fds=True)
+ except OSError as e:
+ return [127, str(e)]
+
+ out = sp2.communicate(input)[0]
+ return [sp2.returncode,out]
+
+def add_info(report):
+ attach_hardware(report)
+ attach_related_packages(report, ['kvm*', '*libvirt*', 'virt-manager', 'qemu*'])
+ rc,output = cmd_pipe(['ps', '-eo', 'comm,stat,euid,ruid,pid,ppid,pcpu,args'], ['egrep', '(^COMMAND|^qemu|^kvm)'])
+ if rc == 0:
+ report['KvmCmdLine'] = output