pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/44325 emulators/qemu doesn't build on netbsd-4



The following reply was made to PR pkg/44325; it has been noted by GNATS.

From: Michael van Elst <mlelstv%serpens.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: pkg/44325 emulators/qemu doesn't build on netbsd-4
Date: Tue, 4 Jan 2011 08:01:12 +0100

 Here is a patch that fixes the build.
 
 ----------------------------------------------------------------------------
 --- pc-bios/optionrom/signrom.sh.orig  2010-10-15 22:56:09.000000000 +0200
 +++ pc-bios/optionrom/signrom.sh       2011-01-04 03:20:10.000000000 +0100
 @@ -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/^[^ 
]*//'`
  #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/^[^ ]*//'`
  for i in ${nums}; do
      # add each byte's value to sum
      sum=`expr $sum + $i`
 ----------------------------------------------------------------------------
 
 
 Greetings,
 -- 
                                 Michael van Elst
 Internet: mlelstv%serpens.de@localhost
                                 "A potential Snark may lurk in every tree."
 


Home | Main Index | Thread Index | Old Index