Mon Jun 15 17:02:14 2009 UTC ()
Bail out before doing anything if PKG_PATH is set.


(joerg)
diff -r1.146 -r1.147 pkgsrc/bootstrap/bootstrap

cvs diff -r1.146 -r1.147 pkgsrc/bootstrap/bootstrap (expand / switch to unified diff)

--- pkgsrc/bootstrap/bootstrap 2009/05/29 15:58:37 1.146
+++ pkgsrc/bootstrap/bootstrap 2009/06/15 17:02:14 1.147
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1#! /bin/sh 1#! /bin/sh
2 2
3# $NetBSD: bootstrap,v 1.146 2009/05/29 15:58:37 rillig Exp $ 3# $NetBSD: bootstrap,v 1.147 2009/06/15 17:02:14 joerg Exp $
4# 4#
5# 5#
6# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved. 6# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
7# 7#
8# Redistribution and use in source and binary forms, with or without 8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions 9# modification, are permitted provided that the following conditions
10# are met: 10# are met:
11# 1. Redistributions of source code must retain the above copyright 11# 1. Redistributions of source code must retain the above copyright
12# notice, this list of conditions and the following disclaimer. 12# notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright 13# 2. Redistributions in binary form must reproduce the above copyright
14# notice, this list of conditions and the following disclaimer in the 14# notice, this list of conditions and the following disclaimer in the
15# documentation and/or other materials provided with the distribution. 15# documentation and/or other materials provided with the distribution.
16# 3. All advertising materials mentioning features or use of this software 16# 3. All advertising materials mentioning features or use of this software
@@ -331,26 +331,31 @@ bootstrap_sh=${SH-/bin/sh} @@ -331,26 +331,31 @@ bootstrap_sh=${SH-/bin/sh}
331bootstrap_sh_set=${SH+set} 331bootstrap_sh_set=${SH+set}
332 332
333# On some newer Ubuntu installations, /bin/sh is a symlink to /bin/dash, 333# On some newer Ubuntu installations, /bin/sh is a symlink to /bin/dash,
334# whose echo(1) is not BSD-compatible. 334# whose echo(1) is not BSD-compatible.
335dash_echo_test=`$bootstrap_sh -c 'echo "\\100"'` 335dash_echo_test=`$bootstrap_sh -c 'echo "\\100"'`
336if [ "$dash_echo_test" = "@" ]; then 336if [ "$dash_echo_test" = "@" ]; then
337 { echo "ERROR: Your shell's echo command is not BSD-compatible." 337 { echo "ERROR: Your shell's echo command is not BSD-compatible."
338 echo "ERROR: Please select another shell by setting the environment" 338 echo "ERROR: Please select another shell by setting the environment"
339 echo "ERROR: variable SH." 339 echo "ERROR: variable SH."
340 } 1>&2 340 } 1>&2
341 exit 1; 341 exit 1;
342fi 342fi
343 343
 344if [ -n "$PKG_PATH" ]; then
 345 echo "ERROR: Please unset PKG_PATH before running bootstrap." 1>&2
 346 exit 1;
 347fi
 348
344build_start=`date` 349build_start=`date`
345echo_msg "bootstrap command: $0 $@" 350echo_msg "bootstrap command: $0 $@"
346echo_msg "bootstrap started: $build_start" 351echo_msg "bootstrap started: $build_start"
347 352
348# ensure system locations are empty; we will set them later when we know 353# ensure system locations are empty; we will set them later when we know
349# whether they will be system wide or user specific 354# whether they will be system wide or user specific
350prefix= 355prefix=
351pkgdbdir= 356pkgdbdir=
352pkgmandir= 357pkgmandir=
353sysconfdir= 358sysconfdir=
354varbase= 359varbase=
355 360
356full=no 361full=no