Ignore errors from chflags. This makes it possible to make installworld

with DESTDIR set to an NFS-mounted file system.
This commit is contained in:
des 1999-02-14 13:56:15 +00:00
parent b8bc2271c6
commit 5e764fdd0e
11 changed files with 23 additions and 23 deletions

View File

@ -1,5 +1,5 @@
#
# $Id: Makefile.inc1,v 1.61 1999/01/23 08:44:17 markm Exp $
# $Id: Makefile.inc1,v 1.62 1999/01/27 15:08:05 jkh Exp $
#
# Make command line options:
# -DCLOBBER will remove /usr/include
@ -226,7 +226,7 @@ buildworld: check-objformat
@echo ">>> Cleaning up the temporary ${OBJFORMAT} build tree"
@echo "--------------------------------------------------------------"
mkdir -p ${WORLDTMP}
chflags -R noschg ${WORLDTMP}/
-chflags -R noschg ${WORLDTMP}/
rm -rf ${WORLDTMP}
.endif
.if !defined(NOTOOLS)

View File

@ -1,4 +1,4 @@
# $Id: Makefile,v 1.470 1999/02/10 01:57:38 msmith Exp $
# $Id: Makefile,v 1.471 1999/02/10 09:15:27 jkh Exp $
#
# make release CHROOTDIR=/some/dir BUILDNAME=somename [ RELEASETAG=tag ]
#
@ -516,7 +516,7 @@ cdrom.1:
@for i in ${DISTRIBUTIONS} ; \
do \
if [ -d ${RD}/trees/$${i} ] ; then \
chflags -R noschg ${RD}/trees/$${i} ; \
chflags -R noschg ${RD}/trees/$${i} || true ; \
( cd ${RD}/trees/$${i} && \
find . -depth -print | cpio -dumpl ${CD_DISC2} ) ; \
fi \

View File

@ -1,7 +1,7 @@
# Makefile.alpha -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.alpha 7.1 5/10/91
# $Id: Makefile.alpha,v 1.16 1999/01/09 21:50:59 jdp Exp $
# $Id: Makefile.alpha,v 1.17 1999/02/02 18:34:23 dfr Exp $
#
# Makefile for FreeBSD
#
@ -251,7 +251,7 @@ install:
exit 1 ; \
fi
.if exists(${DESTDIR}/kernel)
chflags noschg ${DESTDIR}/kernel
-chflags noschg ${DESTDIR}/kernel
mv ${DESTDIR}/kernel ${DESTDIR}/kernel.old
.endif
PATH=$${PATH}:/sbin:/usr/sbin; \

View File

@ -1,7 +1,7 @@
# Makefile.alpha -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.alpha 7.1 5/10/91
# $Id: Makefile.alpha,v 1.16 1999/01/09 21:50:59 jdp Exp $
# $Id: Makefile.alpha,v 1.17 1999/02/02 18:34:23 dfr Exp $
#
# Makefile for FreeBSD
#
@ -251,7 +251,7 @@ install:
exit 1 ; \
fi
.if exists(${DESTDIR}/kernel)
chflags noschg ${DESTDIR}/kernel
-chflags noschg ${DESTDIR}/kernel
mv ${DESTDIR}/kernel ${DESTDIR}/kernel.old
.endif
PATH=$${PATH}:/sbin:/usr/sbin; \

View File

@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.i386,v 1.137 1999/01/25 04:08:28 peter Exp $
# $Id: Makefile.i386,v 1.138 1999/01/26 02:49:51 julian Exp $
#
# Makefile for FreeBSD
#
@ -220,7 +220,7 @@ install:
fi
.endif
.if exists(${DESTDIR}/kernel)
chflags noschg ${DESTDIR}/kernel
-chflags noschg ${DESTDIR}/kernel
mv ${DESTDIR}/kernel ${DESTDIR}/kernel.old
.endif
PATH=$${PATH}:/sbin:/usr/sbin; \

View File

@ -3,7 +3,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.pc98,v 1.53 1999/01/25 12:12:01 kato Exp $
# $Id: Makefile.pc98,v 1.54 1999/01/27 08:25:19 kato Exp $
#
# Makefile for FreeBSD
#
@ -224,7 +224,7 @@ install:
fi
.endif
.if exists(${DESTDIR}/kernel)
chflags noschg ${DESTDIR}/kernel
-chflags noschg ${DESTDIR}/kernel
mv ${DESTDIR}/kernel ${DESTDIR}/kernel.old
.endif
PATH=$${PATH}:/sbin:/usr/sbin; \

View File

@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.i386,v 1.137 1999/01/25 04:08:28 peter Exp $
# $Id: Makefile.i386,v 1.138 1999/01/26 02:49:51 julian Exp $
#
# Makefile for FreeBSD
#
@ -220,7 +220,7 @@ install:
fi
.endif
.if exists(${DESTDIR}/kernel)
chflags noschg ${DESTDIR}/kernel
-chflags noschg ${DESTDIR}/kernel
mv ${DESTDIR}/kernel ${DESTDIR}/kernel.old
.endif
PATH=$${PATH}:/sbin:/usr/sbin; \

View File

@ -1,7 +1,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.i386,v 1.137 1999/01/25 04:08:28 peter Exp $
# $Id: Makefile.i386,v 1.138 1999/01/26 02:49:51 julian Exp $
#
# Makefile for FreeBSD
#
@ -220,7 +220,7 @@ install:
fi
.endif
.if exists(${DESTDIR}/kernel)
chflags noschg ${DESTDIR}/kernel
-chflags noschg ${DESTDIR}/kernel
mv ${DESTDIR}/kernel ${DESTDIR}/kernel.old
.endif
PATH=$${PATH}:/sbin:/usr/sbin; \

View File

@ -3,7 +3,7 @@
# Makefile.i386 -- with config changes.
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
# $Id: Makefile.pc98,v 1.53 1999/01/25 12:12:01 kato Exp $
# $Id: Makefile.pc98,v 1.54 1999/01/27 08:25:19 kato Exp $
#
# Makefile for FreeBSD
#
@ -224,7 +224,7 @@ install:
fi
.endif
.if exists(${DESTDIR}/kernel)
chflags noschg ${DESTDIR}/kernel
-chflags noschg ${DESTDIR}/kernel
mv ${DESTDIR}/kernel ${DESTDIR}/kernel.old
.endif
PATH=$${PATH}:/sbin:/usr/sbin; \

View File

@ -60,10 +60,10 @@ yppasswd_private_clnt.c: ${RPCSRC_PRIV}
beforeinstall:
.for i in chpass chfn chsh ypchpass ypchfn ypchsh
[ ! -e ${DESTDIR}${BINDIR}/$i ] || \
chflags noschg ${DESTDIR}${BINDIR}/$i
chflags noschg ${DESTDIR}${BINDIR}/$i || true
.endfor
afterinstall:
chflags schg ${DESTDIR}${BINDIR}/chpass
-chflags schg ${DESTDIR}${BINDIR}/chpass
.include <bsd.prog.mk>

View File

@ -1,5 +1,5 @@
# From: @(#)Makefile 8.3 (Berkeley) 4/2/94
# $Id: Makefile,v 1.29 1998/08/06 21:37:51 markm Exp $
# $Id: Makefile,v 1.30 1998/09/19 22:42:04 obrien Exp $
PROG= passwd
SRCS= local_passwd.c passwd.c pw_copy.c pw_util.c pw_yp.c \
@ -70,10 +70,10 @@ DISTRIBUTION= krb
beforeinstall:
.for i in passwd yppasswd
[ ! -e ${DESTDIR}${BINDIR}/$i ] || \
chflags noschg ${DESTDIR}${BINDIR}/$i
chflags noschg ${DESTDIR}${BINDIR}/$i || true
.endfor
afterinstall:
chflags schg ${DESTDIR}${BINDIR}/passwd
-chflags schg ${DESTDIR}${BINDIR}/passwd
.include <bsd.prog.mk>