aboutsummaryrefslogtreecommitdiffstats
path: root/patches/fuel-plugin-qemu/0001-Fix-apt-cache-and-qemu-version-handling.patch
blob: 9a77c3a32028bf67510e1bdc2df5f9364be277d2 (plain)
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
From: Stanislaw Kardach <stanislaw.kardach@caviumnetworks.com>
Date: Fri, 4 Mar 2016 14:26:43 +0100
Subject: [PATCH] Fix apt cache and qemu version handling

---
 qemu/build-qemu.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/qemu/build-qemu.sh b/qemu/build-qemu.sh
index 652939e..f54f486 100755
--- a/qemu/build-qemu.sh
+++ b/qemu/build-qemu.sh
@@ -1,11 +1,12 @@
 #!/bin/bash
 wget http://wiki.qemu-project.org/download/qemu-2.2.1.tar.bz2
+sudo apt-get update -y
 sudo apt-get build-dep qemu -y
 sudo apt-get install devscripts -y
 sudo apt-get install dpkg-dev -y
-apt-get source qemu -y
-dpkg-source -x qemu_2.0.0+dfsg-2ubuntu1.21.dsc
-cd qemu-2.0.0+dfsg; uupdate -v 2.2.1 ../qemu-2.2.1.tar.bz2
+apt-get source qemu=2.0.0 -y
+dpkg-source -x qemu_2.0.0*.dsc
+cd qemu-2.0.0*; uupdate -v 2.2.1 ../qemu-2.2.1.tar.bz2
 cd ../qemu-2.2.1;echo "">> debian/patches/series
 sed -i 's/seccomp="yes"/seccomp="no"/' configure
 debian/rules build