summaryrefslogtreecommitdiff
path: root/emulators/qemu
diff options
context:
space:
mode:
authorshattered <shattered@pkgsrc.org>2011-04-03 09:56:39 +0000
committershattered <shattered@pkgsrc.org>2011-04-03 09:56:39 +0000
commitc783bbe08b7fad4dc39dcd42d66bf80724236b2a (patch)
tree033cabb698809866409fac8c7571963cefb2d7b1 /emulators/qemu
parentb734faf6f944fd5222978bbaa8b730f0e5f7a2fa (diff)
downloadpkgsrc-c783bbe08b7fad4dc39dcd42d66bf80724236b2a.tar.gz
PR/44325 PR/42899 -- fix build on netbsd-4
Diffstat (limited to 'emulators/qemu')
-rw-r--r--emulators/qemu/distinfo3
-rw-r--r--emulators/qemu/patches/patch-bb19
2 files changed, 21 insertions, 1 deletions
diff --git a/emulators/qemu/distinfo b/emulators/qemu/distinfo
index 7b47ab6d2bf..609f4cf6b2e 100644
--- a/emulators/qemu/distinfo
+++ b/emulators/qemu/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.64 2011/03/04 13:03:47 tsutsui Exp $
+$NetBSD: distinfo,v 1.65 2011/04/03 09:56:39 shattered Exp $
SHA1 (qemu-0.13.0.tar.gz) = 250bba1fdb505a787c48331b6b02f54282edfc76
RMD160 (qemu-0.13.0.tar.gz) = 4a6faaf38d5616fb7bedc1a6408de1dbb3ec360c
@@ -6,6 +6,7 @@ Size (qemu-0.13.0.tar.gz) = 5184531 bytes
SHA1 (patch-aa) = bc2f9ea4bd468b1c8bd5623b21ea7631fe5466c3
SHA1 (patch-ao) = e515093b6ea99f9cba665de022fd62f3be911569
SHA1 (patch-ba) = 217eb00a0cabd460981026a275d18b6c02914a1c
+SHA1 (patch-bb) = 5d3d034a9ac0f7f35cd5dc9a8f5814f5cb3e42dc
SHA1 (patch-dd) = bd8016bdeab043f2b2c12728b11e8b54e75dcce9
SHA1 (patch-de) = 225eaa996fccc02b17be0099d943c75302600ada
SHA1 (patch-ed) = c30e147005e41fbf6d08457634d94cd90545cbb5
diff --git a/emulators/qemu/patches/patch-bb b/emulators/qemu/patches/patch-bb
new file mode 100644
index 00000000000..de893688d3a
--- /dev/null
+++ b/emulators/qemu/patches/patch-bb
@@ -0,0 +1,19 @@
+$NetBSD: patch-bb,v 1.1 2011/04/03 09:56:39 shattered Exp $
+
+--- pc-bios/optionrom/signrom.sh.orig 2010-02-23 20:54:38.000000000 +0000
++++ pc-bios/optionrom/signrom.sh 2010-04-09 06:18:25.000000000 +0000
+@@ -26,12 +26,12 @@
+ sum=0
+
+ # find out the file size
+-x=`dd if="$1" bs=1 count=1 skip=2 2>/dev/null | od -t u1 -A n`
++x=`dd if="$1" bs=1 count=1 skip=2 2>/dev/null | od -t u1 | sed -e 's/^[0-9]* *//' -e 's/^00*\([0-9]\)/\1/'`
+ #size=`expr $x \* 512 - 1`
+ size=$(( $x * 512 - 1 ))
+
+ # now get the checksum
+-nums=`od -A n -t u1 -v "$1"`
++nums=`od -t u1 -v "$1" | sed -e 's/^[0-9]* *//' -e 's/^00*\([0-9]\)/\1/' -e 's/ 00*\([0-9]\)/ \1/g'`
+ for i in ${nums}; do
+ # add each byte's value to sum
+ sum=`expr $sum + $i`