diff options
author | rillig <rillig> | 2007-09-07 15:45:14 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-09-07 15:45:14 +0000 |
commit | ffbff90530b0e79501ee0d866ae5c764338dfe2e (patch) | |
tree | b8801f6e67619a0d13849290fe8038ababc8694a /bootstrap | |
parent | 4d066e3610d9d14d8e84704fb05fc02ee9befe76 (diff) | |
download | pkgsrc-ffbff90530b0e79501ee0d866ae5c764338dfe2e.tar.gz |
In unprivileged builds, the user running pkg_add and pkg_delete is
almost always an unprivileged user. So there's no point in printing a
warning in that case.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index dd7db148ef6..cb062f2c3a0 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.110 2007/09/06 20:13:44 joerg Exp $ +# $NetBSD: bootstrap,v 1.111 2007/09/07 15:45:14 rillig Exp $ # # # Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. @@ -790,6 +790,10 @@ if [ "$need_xargs" = "yes" ]; then need_extras=yes fi +if [ "$ignoreusercheck" = "yes" ]; then + echo "CPPFLAGS+= -DUNPRIVILEGED" >> ${BOOTSTRAP_MKCONF} +fi + echo_msg "Bootstrapping mk-files" run_cmd "(cd ${pkgsrcdir}/pkgtools/bootstrap-mk-files/files && env CP=${cpprog} \ OPSYS=${opsys} MK_DST=${wrkdir}/share/mk ROOT_GROUP=${root_group} \ |