Provide 80Ko of shell script instead of standard 64Ko allocation.

Thu, 02 Aug 2012 22:11:13 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 02 Aug 2012 22:11:13 +0200
changeset 450
061d2617f42f
parent 449
dec7ed8e8eaf
child 451
6fd77f414c36

Provide 80Ko of shell script instead of standard 64Ko allocation.
This is needed to accommodate recent script addtions involving smf(5).

openpkg/etc.wrapbin.sh file | annotate | diff | comparison | revisions
openpkg/etc.wrapsrc.sh file | annotate | diff | comparison | revisions
openpkg/openpkg.boot file | annotate | diff | comparison | revisions
     1.1 --- a/openpkg/etc.wrapbin.sh	Thu Aug 02 22:07:29 2012 +0200
     1.2 +++ b/openpkg/etc.wrapbin.sh	Thu Aug 02 22:11:13 2012 +0200
     1.3 @@ -95,7 +95,7 @@
     1.4  if [ ".$o_tar" = .yes ]; then
     1.5      tmpdir="${TMPDIR-/tmp}/openpkg.$$"
     1.6      ( umask 077 && mkdir $tmpdir) || exit 1
     1.7 -    dd if=$l_me bs=8192 skip=8 2>/dev/null |\
     1.8 +    dd if=$l_me bs=8192 skip=10 2>/dev/null |\
     1.9      ( cd $tmpdir || exit 1
    1.10        tar xf - 2>/dev/null || exit 1
    1.11        ./openpkg.bzip2 -d -c openpkg.tar.bz2
    1.12 @@ -166,7 +166,7 @@
    1.13  
    1.14  #   extract and install binary distribution files
    1.15  echo "++ extracting OpenPKG binary distribution"
    1.16 -dd if=$l_me bs=8192 skip=8 2>/dev/null |\
    1.17 +dd if=$l_me bs=8192 skip=10 2>/dev/null |\
    1.18      (cd $l_prefix; tar xf - 2>/dev/null)
    1.19  echo "++ installing OpenPKG binary distribution"
    1.20  ( cd $l_prefix || exit 1
    1.21 @@ -261,7 +261,7 @@
    1.22  
    1.23  #   the distribution tarball is appended in raw format directly to the
    1.24  #   end of this script, just leaded by padding whitespaces which make
    1.25 -#   sure that the tarball data starts at the predefined offset of 64KB.
    1.26 +#   sure that the tarball data starts at the predefined offset of 80KB.
    1.27  #   This allows us to unpack the tarball by just skipping the leading
    1.28 -#   64KB (= 8192*8, see above).
    1.29 +#   80KB (= 8192*10, see above).
    1.30  
     2.1 --- a/openpkg/etc.wrapsrc.sh	Thu Aug 02 22:07:29 2012 +0200
     2.2 +++ b/openpkg/etc.wrapsrc.sh	Thu Aug 02 22:11:13 2012 +0200
     2.3 @@ -93,7 +93,7 @@
     2.4  
     2.5  #   optionally extract the embedded tarball only
     2.6  if [ ".$o_tar" = .yes ]; then
     2.7 -    dd if=$l_me bs=8192 skip=8 2>/dev/null
     2.8 +    dd if=$l_me bs=8192 skip=10 2>/dev/null
     2.9      exit 0
    2.10  fi
    2.11  
    2.12 @@ -124,7 +124,7 @@
    2.13  echo "++ extracting OpenPKG source distribution"
    2.14  rm -rf $l_dir >/dev/null 2>&1
    2.15  mkdir $l_dir || exit 1
    2.16 -dd if=$l_me bs=8192 skip=8 2>/dev/null | (cd $l_dir; tar xf - 2>/dev/null)
    2.17 +dd if=$l_me bs=8192 skip=10 2>/dev/null | (cd $l_dir; tar xf - 2>/dev/null)
    2.18  if [ ".$cusr" = .root ]; then
    2.19      ( cd $l_dir || exit 1
    2.20        chown -R -h $cusr . >/dev/null 2>&1 || true
    2.21 @@ -151,7 +151,7 @@
    2.22  
    2.23  #   the distribution tarball is appended in raw format directly to the
    2.24  #   end of this script, just leaded by padding whitespaces which make
    2.25 -#   sure that the tarball data starts at the predefined offset of 64KB.
    2.26 +#   sure that the tarball data starts at the predefined offset of 80KB.
    2.27  #   This allows us to unpack the tarball by just skipping the leading
    2.28 -#   64KB (= 8192*8, see above).
    2.29 +#   80KB (= 8192*10, see above).
    2.30  
     3.1 --- a/openpkg/openpkg.boot	Thu Aug 02 22:07:29 2012 +0200
     3.2 +++ b/openpkg/openpkg.boot	Thu Aug 02 22:11:13 2012 +0200
     3.3 @@ -224,11 +224,11 @@
     3.4          -e "s;@l_release@;$l_release;" \
     3.5          -e "s;@l_version@;$l_version;"
     3.6      echo . | awk '{
     3.7 -        for (i = 0; i < 8192; i++) {
     3.8 +        for (i = 0; i < 8192*2; i++) {
     3.9              printf("        ");
    3.10          }
    3.11      }' >>$tmpdir/openpkg.boot.tmp
    3.12 -    dd if=$tmpdir/openpkg.boot.tmp bs=8192 count=8 \
    3.13 +    dd if=$tmpdir/openpkg.boot.tmp bs=8192 count=10 \
    3.14          of=$pkgdir/$name-$version-$release.src.sh 2>/dev/null
    3.15      rm -f $tmpdir/openpkg.boot.tmp
    3.16      (cd $tmpdir && tar cf - *) >>$pkgdir/$name-$version-$release.src.sh
    3.17 @@ -597,12 +597,12 @@
    3.18      -e "/^@POST@/r $tmpdir/rpm.post" |\
    3.19      sed -e '/^@PRE@/d' -e '/^@POST@/d' >$tmpdir/openpkg.boot.tmp
    3.20  echo . | awk '{
    3.21 -    for (i = 0; i < 8192; i++) {
    3.22 +    for (i = 0; i < 8192*2; i++) {
    3.23          printf("        ");
    3.24      }
    3.25  }' >>$tmpdir/openpkg.boot.tmp
    3.26  rm -f $pkgdir/openpkg-$v.$t.sh
    3.27 -dd if=$tmpdir/openpkg.boot.tmp bs=8192 count=8 \
    3.28 +dd if=$tmpdir/openpkg.boot.tmp bs=8192 count=10 \
    3.29     of=$pkgdir/openpkg-$v.$t.sh 2>/dev/null
    3.30  rm -f $tmpdir/openpkg.boot.tmp
    3.31  ( cd $RPM_BUILD_ROOT$prefix

mercurial