aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2006-01-15 10:35:47 +0800
committerkris <kris@FreeBSD.org>2006-01-15 10:35:47 +0800
commita546fda29863b1b93517cde20c171827dc21d86e (patch)
treeb45f489e05eac13eecdca02bdbcd0cd44f7bb86b /Tools
parent5a56d6f2a948031fbe6f87e754cb420c56262a07 (diff)
downloadfreebsd-ports-gnome-a546fda29863b1b93517cde20c171827dc21d86e.tar.gz
freebsd-ports-gnome-a546fda29863b1b93517cde20c171827dc21d86e.tar.zst
freebsd-ports-gnome-a546fda29863b1b93517cde20c171827dc21d86e.zip
Exit with the correct error code when a make target fails
PR: ports/64930 Submitted by: Damir Kiramov <damirycha@damirycha.net.ru>
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/portbuild32
1 files changed, 17 insertions, 15 deletions
diff --git a/Tools/portbuild/scripts/portbuild b/Tools/portbuild/scripts/portbuild
index 72fa76618691..1e0203856881 100755
--- a/Tools/portbuild/scripts/portbuild
+++ b/Tools/portbuild/scripts/portbuild
@@ -11,7 +11,8 @@ mount_fs()
if [ ${disconnected} = 1 ]; then
mount -t nullfs -r ${fs} ${mntpt}
else
- mount -o nfsv3,intr -r ${master}:${fs} ${mntpt}
+ #mount -o nfsv3,intr -r ${master}:${fs} ${mntpt}
+ mount_nfs -3 -r 8192 -w 8192 -i ${master}:${fs} ${mntpt}
fi
}
@@ -84,7 +85,9 @@ cleanup()
cleanup_mount ${chroot} /a/ports
cleanup_mount ${chroot} /usr/opt/doc
cleanup_mount ${chroot} /usr/src
- cleanup_mount ${chroot} /dev
+ if [ "${arch}" != "i386" || "${branch}" != "4" ]; then
+ cleanup_mount ${chroot} /dev
+ fi
test -d ${chroot}/root/.ccache && cleanup_mount ${chroot} /root/.ccache
if [ $noclean = 0 -o $error = 0 ]; then
@@ -224,22 +227,19 @@ if [ -f ${chroot}/.notready ]; then
if [ "${branch}" = "4" -o "${branch}" = "4-exp" ]; then
mkdir -p ${chroot}/libexec
mkdir -p ${chroot}/lib
- if [ "${arch}" = "i386" ]; then
- cp -p /sbin/mount_linprocfs /sbin/mount /sbin/umount ${chroot}/sbin
- cp -p /lib/libufs.so.2 ${chroot}/lib
- fi
+ fi
+ if [ "${branch}" != "4foo" ]; then
+ cp -p /sbin/mount_linprocfs /sbin/mount /sbin/umount ${chroot}/sbin
+ cp -p /lib/libufs.so.3 ${chroot}/lib
+ cp -p /rescue/ps ${chroot}/bin
+ #cp -p /bin/ps ${chroot}/bin
+ cp -p /usr/bin/killall ${chroot}/usr/bin
cp -p /libexec/ld-elf.so.1 ${chroot}/libexec
- cp -p /lib/libkvm.so.2 /lib/libm.so.3 ${chroot}/lib
- if [ -f /lib/libc.so.6 ]; then
+ cp -p /lib/libkvm.so.3 /lib/libm.so.4 ${chroot}/lib
+ if [ "${branch}" != "6" -a "${branch}" != "7" ]; then
cp -p /lib/libc.so.6 ${chroot}/lib
- else
- cp -p /lib/libc.so.5 ${chroot}/lib
fi
- elif [ "${branch}" = "6" ]; then
- cp -p /lib/libc.so.5 ${chroot}/lib
fi
- cp -p /rescue/ps ${chroot}/bin
- cp -p /usr/bin/killall ${chroot}/usr/bin
rm ${chroot}/.notready
touch ${chroot}/.ready
fi
@@ -286,7 +286,9 @@ mkdir -p ${chroot}/usr/src ${chroot}/usr/opt/doc
mount_fs ${pb}/${arch}/${branch}/src ${chroot}/usr/src ${master}
mount_fs ${pb}/${arch}/${branch}/doc ${chroot}/usr/opt/doc ${master}
-mount -t devfs foo ${chroot}/dev
+if [ "${arch}" != "i386" -o "${branch}" != "4foo" ]; then
+ mount -t devfs foo ${chroot}/dev
+fi
umount -f ${chroot}/compat/linux/proc > /dev/null 2>&1