slow architectures might clean /tmp too eagerly, move the default

LOCKDIR to a local location that's less susceptible to surreptitious
cleanup, that is under WRKOBJDIR

after discussion with sthen@
This commit is contained in:
espie 2012-08-18 07:58:20 +00:00
parent b7eab0566c
commit a6da6e2d7f
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#-*- mode: Makefile; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
# $OpenBSD: bsd.port.mk,v 1.1184 2012/08/17 22:32:29 espie Exp $
# $OpenBSD: bsd.port.mk,v 1.1185 2012/08/18 07:58:20 espie Exp $
# $FreeBSD: bsd.port.mk,v 1.264 1996/12/25 02:27:44 imp Exp $
# $NetBSD: bsd.port.mk,v 1.62 1998/04/09 12:47:02 hubertf Exp $
#
@ -1497,6 +1497,7 @@ ECHO_REORDER ?= :
# Lock infrastructure:
# to remove locks handling, define LOCKDIR to an empty value
LOCKDIR ?= ${WRKOBJDIR}/locks
LOCK_CMD ?= ${_PERLSCRIPT}/dolock
UNLOCK_CMD ?= rm -f

View File

@ -1,4 +1,4 @@
# $OpenBSD: pkgpath.mk,v 1.48 2012/05/28 09:43:17 espie Exp $
# $OpenBSD: pkgpath.mk,v 1.49 2012/08/18 07:58:20 espie Exp $
# ex:ts=4 sw=4 filetype=make:
# pkgpath.mk - 2003 Marc Espie
# This file is in the public domain.
@ -9,7 +9,6 @@ PORTSDIR_PATH ?= ${PORTSDIR}:${PORTSDIR}/mystuff
TMPDIR ?= /tmp
READMES_TOP ?= ${PORTSDIR}
DANGEROUS ?= No
LOCKDIR ?= ${TMPDIR}/portslocks
_PERLSCRIPT = perl ${PORTSDIR}/infrastructure/bin