openbsd-ports/shells/ksh93/patches/patch-bin_package
pascal 9cdbc3902c Import shells/ksh93.
KSH-93 is the most recent version of the KornShell Language described
in "The KornShell Command and Programming Language," by Morris
Bolsky and David Korn of AT&T Bell Laboratories.  The KornShell is
a shell programming language, which is upward compatible with "sh"
(the Bourne Shell), and is intended to conform to the IEEE P1003.2/ISO
9945.2 Shell and Utilities standard.  KSH-93 provides an enhanced
programming environment in addition to the major command-entry
features of the BSD shell "csh".  With KSH-93, medium-sized programming
tasks can be performed at shell-level without a significant loss
in performance.  In addition, "sh" scripts can be run on KSH-93
without modification.

Distfile mirrored by aja@ (thanks!); import requested by and ok rpe@.
2012-10-13 15:11:51 +00:00

22 lines
644 B
Plaintext

$OpenBSD: patch-bin_package,v 1.1.1.1 2012/10/13 15:11:51 pascal Exp $
--- bin/package.orig Fri Aug 10 21:22:28 2012
+++ bin/package Fri Aug 10 21:23:14 2012
@@ -2823,7 +2823,7 @@ cat $INITROOT/$i.sh
# check if $CC (full path $cc) is a cross compiler
(
- cd /tmp || exit 3
+ cd ${TMPDIR:-/tmp} || exit 3
cp $INITROOT/hello.c pkg$$.c || exit 3
$cc -o pkg$$.exe pkg$$.c > pkg$$.e 2>&1 || {
if $cc -Dnew=old -o pkg$$.exe pkg$$.c > /dev/null 2>&1
@@ -3193,7 +3193,7 @@ cygwin.*)
lose=ntsec
;;
*ntsec*);;
- *) exe=/tmp/pkg$$.exe
+ *) exe=${TMPDIR:-/tmp}/pkg$$.exe
rm -f $exe
: > $exe
if test -x $exe