Releases/Firefox 4.0b1/BuildNotes: Difference between revisions

Line 427: Line 427:


To deal with the add-if instructions for TestPilot we're going to do a onetime repack of the mars (and fix the snippets).
To deal with the add-if instructions for TestPilot we're going to do a onetime repack of the mars (and fix the snippets).
<pre>
# mv-moz2-linux-ix-slave07
mkdir ~/mar-fix; cd $_
cp /builds/slave/linux_build/build/obj-firefox/dist/host/bin/mar .
export MAR=`pwd`/mar
export BASE=`pwd`
rsync -av stage.mozilla.org:/pub/mozilla.org/firefox/nightly/4.0b1-candidates/build2/update/ originals/
rsync -a --exclude '*.mar' originals/ tmp/
rsync -a --exclude '*.mar' originals/ fixed/
for p in linux-i686  linux-x86_64 mac mac64 win32; do
  for martype in partial complete; do
    if [[ $martype == 'partial' ]]; then
      marfile='firefox-3.7a5-4.0b1.partial.mar'
    else
      marfile='firefox-4.0b1.complete.mar'
    fi
    cd $BASE/tmp/$p/en-US/
    if [[ $? != 0 ]]; then
      echo failed to change dir to $BASE/tmp/$p/en-US, bailing out
      exit 1
    fi
    rm -rf *
    if [[ $? != 0 ]]; then
      echo failed to remove old files, bailing out
      exit 1
    fi
   
    $MAR -x $BASE/originals/$p/en-US/$marfile
    if [[ $? != 0 ]]; then
      echo failed to unpack original mar $BASE/originals/$p/en-US/$marfile, bailing out
      exit 1
    fi
    bzcat update.manifest | \
      sed -e 's!add-if "extensions/testpilot!add "extensions/testpilot!' | \
      bzip2 -9 -c > update.manifest.new
    if [[ $? == 0 ]]; then
      mv update.manifest{.new,}
    fi
    files=`find . -type f | cut -c3-`
    cd $BASE
    $MAR -C $BASE/tmp/$p/en-US/ -c $BASE/fixed/$p/en-US/$marfile $files
    if [[ $? == 0 ]]; then
      echo $marfile for $p created successfully
    fi
  done
done
# check
mkdir $BASE/unpack-check; cd $_
for ver in originals fixed; do
  for p in linux-i686 linux-x86_64 mac mac64 win32; do
    for martype in partial complete; do
      if [[ $martype == 'partial' ]]; then
          marfile='firefox-3.7a5-4.0b1.partial.mar'
      else
          marfile='firefox-4.0b1.complete.mar'
      fi
      mkdir -p $BASE/unpack-check/$ver/$p/$martype
      cd $BASE/unpack-check/$ver/$p/$martype
      $MAR -x $BASE/$ver/$p/en-US/$marfile
      bunzip2 -c update.manifest > update.manifest.plain
    done
  done
done
cd $BASE/unpack-check
diff -ru originals fixed
</pre>
The update.manifest.plain files differ by the s/add-if/add/ change.
<pre>
# gather hashes and file sizes
cd $BASE
for f in `find fixed -type f`; do
  printf "%-60s %10s %20s\n" $f \
    `ls -l $f | cut -f5 -d' '` \
    `openssl dgst -sha512 $f | cut -f2 -d' '`
done
# results
fixed/linux-i686/en-US/firefox-3.7a5-4.0b1.partial.mar          2598335 66ff1356fcbfdd8efe1997010f163dc1a15f479416097dcdc376dcd67ddbcb4956635ae50c1343df1c8c400bdc0bc7d583eeaaff1da7a01662695a6eb9f0147b
fixed/linux-i686/en-US/firefox-4.0b1.complete.mar              12097806 03046a11a460c91601f68ba09053ef74c14dacb980347755c750b37aff3b2629c0889893618d7db0ab3b431aa3fa29d2fbfd7c3330984631ab54a37d9c951aab
fixed/mac64/en-US/firefox-3.7a5-4.0b1.partial.mar              3211395 54225df25fa2f5a5c54278e3b718754bee5f790b5b4d8ca90d44db1423fdae3d667800e0e27a0ad8139e34fc6b88969c4d9b8be1664f01d9e4018fe7b234587c
fixed/mac64/en-US/firefox-4.0b1.complete.mar                  12896768 e3290d71c3d8578dbc9cf7a5fa3e293a60ed9d1833ee5cff0e8cd195cd6a1265e8974197bfbd8f62fd95f18092cd9153425c7ccd6a6017c9a7fc749961556e46
fixed/mac/en-US/firefox-3.7a5-4.0b1.partial.mar                4649106 c9d0bbf5fdd1c9b18c8f255b4793d833d4cc28e21c5d281bf241a11fb072d826ebb31223d5cde9e6deba66ffe1cca8836075c8bea3ce963b44c03de170a207c6
fixed/mac/en-US/firefox-4.0b1.complete.mar                    20786686 9559038c4d128a6c99ea47ef9e51a57d773b4e67d8411f45c0356510bac6e2802327f2602813c1c8348e61851c08850ba04ce8a36ff952121821bd244fd28428
fixed/win32/en-US/firefox-3.7a5-4.0b1.partial.mar              4952995 cd880aff7e4972b45e8172b79887d79dcc57c78d06ab8c0cb4929d0025c2ba1e990c1437fb568265b913930f05357f8080fb43d4621324d483f0c67690de3679
fixed/win32/en-US/firefox-4.0b1.complete.mar                  12639781 d44e4440a984bf7aaa55a8a5c369e34afbd682839aa06a3f1866f57b92d7835a311d1b5c0bc3c6eb8b6745e169112dd0080a1bb57169a607a55ab268782452b8
fixed/linux-x86_64/en-US/firefox-3.7a5-4.0b1.partial.mar        3655977 cd10d2c53bbd0aa40070afb7066c831b573402f1bcb4a3f2dc59c0630ca3c04c9e6009283206b6edc9abcda78205f808baeb3a5ba17bd206398b1aa9ffd75922
fixed/linux-x86_64/en-US/firefox-4.0b1.complete.mar            13613082 d17409d8460b47393c91b243163355cf187361198526d087649bb1853b6f1c5918efc7736da009b0637a901d0c965db825497b12bfd4f3ede2356e0caeece9d0
</pre>
Fix snippets:


==== L10N Verification ====
==== L10N Verification ====
Due to {{bug|571199}} we don't run L10N Verification for en-US only builds.
Due to {{bug|571199}} we don't run L10N Verification for en-US only builds.
Confirmed users
4,293

edits