From ed4ea07f2a7183ef460126da26e3a65602242b73 Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Thu, 12 May 2011 11:53:59 +0200 Subject: [PATCH] abort if ${WRKOBJDIR} contains symlinks otherwise building will fail in several places in non-obvious ways. FIXME: pwd -P is a rather new addition to POSIX and may not work everywhere. --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 405584b..f6714fe 100755 --- a/Makefile +++ b/Makefile @@ -29,6 +29,11 @@ DATADIR= ${DESTDIR}${PREFIX}/share/chromium .include "../../audio/alsa-lib/buildlink3.mk" .endif +_REAL_WRKOBJDIR!= cd ${WRKOBJDIR}; pwd -P +.if ${_REAL_WRKOBJDIR} != ${WRKOBJDIR} +PKG_FAIL_REASON+= "Your WRKOBJDIR path contains symbolic links, which does not work with Chromium." +.endif + GNU_CONFIGURE= yes CONFIGURE_DIRS= third_party/tcmalloc/vendor third_party/icu/source CONFIGURE_ENV+= GYP_DEFINES=${GYP_DEFINES:Q} -- 2.41.0