diff options
author | obache <obache@pkgsrc.org> | 2010-08-16 10:03:44 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2010-08-16 10:03:44 +0000 |
commit | 29f197d0621c87486d6caf62c034365ce67b735f (patch) | |
tree | 675d49e62580aa818ad2b84ce35f03ff1c4cb411 /mk | |
parent | 9fac54c8450043c46706047adb50421680995f84 (diff) | |
download | pkgsrc-29f197d0621c87486d6caf62c034365ce67b735f.tar.gz |
Force to use symbolic link for wrapper if WRAPPER_USE_SYMLINK is defined.
Workaround for missing hard link support on Haiku, PR#43398.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/platform/Haiku.mk | 6 | ||||
-rw-r--r-- | mk/wrapper/bsd.wrapper.mk | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/mk/platform/Haiku.mk b/mk/platform/Haiku.mk index d7bbcb0c66f..acd32094550 100644 --- a/mk/platform/Haiku.mk +++ b/mk/platform/Haiku.mk @@ -1,4 +1,4 @@ -# $NetBSD: Haiku.mk,v 1.3 2010/07/08 04:57:36 dholland Exp $ +# $NetBSD: Haiku.mk,v 1.4 2010/08/16 10:03:44 obache Exp $ # # Variable definitions for the Haiku operating system. @@ -9,6 +9,10 @@ PS?= /bin/ps # and remove this comment. SU?= /bin/su TYPE?= type # Shell builtin + +# Use symlink for wrapper in mk/wrapper/bsd.wrapper.mk, +# due to lack of hard link support. +WRAPPER_USE_SYMLINK= # defined CPP_PRECOMP_FLAGS?= # unset DEF_UMASK?= 022 diff --git a/mk/wrapper/bsd.wrapper.mk b/mk/wrapper/bsd.wrapper.mk index 014e1c999d5..da8d23ff012 100644 --- a/mk/wrapper/bsd.wrapper.mk +++ b/mk/wrapper/bsd.wrapper.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.wrapper.mk,v 1.84 2009/11/23 00:25:13 tron Exp $ +# $NetBSD: bsd.wrapper.mk,v 1.85 2010/08/16 10:03:44 obache Exp $ # # Copyright (c) 2005 The NetBSD Foundation, Inc. # All rights reserved. @@ -495,7 +495,7 @@ ${_alias_}: ${_WRAP_COOKIE.${_wrappee_}} wrapper="${WRAPPER_${_wrappee_}:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}"; \ if [ ! -x ${.TARGET} -a -x $$wrapper ]; then \ ${ECHO_WRAPPER_MSG} "=> Linking ${_wrappee_} wrapper: ${.TARGET}"; \ - ${LN} -f $$wrapper ${.TARGET}; \ + ${LN} -f${WRAPPER_USE_SYMLINK:Ds} $$wrapper ${.TARGET}; \ fi . endif . endfor |