diff options
author | kris <kris@FreeBSD.org> | 2006-09-14 13:21:49 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2006-09-14 13:21:49 +0800 |
commit | f6e085a23367423070f292e27d6e0533f8952506 (patch) | |
tree | d868c63aa0086f56738d8ade03c99be43bcea36a | |
parent | 1daf05e1f3cf8da36bdde413119b0f1e09351f70 (diff) | |
download | freebsd-ports-gnome-f6e085a23367423070f292e27d6e0533f8952506.tar.gz freebsd-ports-gnome-f6e085a23367423070f292e27d6e0533f8952506.tar.zst freebsd-ports-gnome-f6e085a23367423070f292e27d6e0533f8952506.zip |
* Retire 4-exp builds and add support for 6-exp.
* Use a generation number for the bindist tarballs, with compatibility
symlink. Eventually we'll use this to avoid building in a "stale"
chroot (i.e. populated by old world).
* Don't bother running ldconfig on i386, it is evidently not needed since
the other arches work fine without it
-rwxr-xr-x | Tools/portbuild/scripts/mkbindist | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/Tools/portbuild/scripts/mkbindist b/Tools/portbuild/scripts/mkbindist index 249ce6ef401f..fb3dc49732ef 100755 --- a/Tools/portbuild/scripts/mkbindist +++ b/Tools/portbuild/scripts/mkbindist @@ -10,7 +10,7 @@ fi arch=$1 branch=$2 -if [ "x$branch" != x4 -a "x$branch" != x4-exp -a "x$branch" != x5 -a "x$branch" != x5-exp -a "x$branch" != x6 -a "x$branch" != x7 ]; then +if [ "x$branch" != x4 -a "x$branch" != x5 -a "x$branch" != x6-exp -a "x$branch" != x6 -a "x$branch" != x7 ]; then usage fi @@ -77,24 +77,25 @@ mkdir -p $(cat ${here}/bindist/dirlist) (cd ${here}/bindist/files; find -dx . | cpio -dump ${tmpdir}) # Post-processing of installed world - date '+%Y%m%d' > var/db/port.mkversion - rm -f kernel.GENERIC - mkdir ${tmpdir}/var/run -chroot ${tmpdir} /sbin/ldconfig /usr/lib -if [ "${arch}" = "i386" ]; then - chroot ${tmpdir} /sbin/ldconfig -aout /usr/lib/aout - rm -f /usr/lib/aout/lib*_p.a -fi - # Create the tarballs mkdir -p ${here}/tarballs + +if [ -f ${here}/tarballs/.gen ]; then + gen=$(cat ${here}/tarballs/.gen) +else + gen=0 +fi +newgen=$((${gen}+1)) + cd ${tmpdir} tar cf ${here}/tarballs/bindist.tar.new . -mv -f ${here}/tarballs/bindist.tar.new ${here}/tarballs/bindist.tar +rm -f ${here}/tarballs/bindist-${gen}.tar +mv -f ${here}/tarballs/bindist.tar.new ${here}/tarballs/bindist-${newgen}.tar +ln -sf ${here}/tarballs/bindist-${newgen}.tar ${here}/tarballs/bindist.tar # Clean up cd ${here} |