]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
META_MODE: No need to fix the link in this case.
authorbdrewery <bdrewery@FreeBSD.org>
Fri, 18 Sep 2015 23:12:38 +0000 (23:12 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Fri, 18 Sep 2015 23:12:38 +0000 (23:12 +0000)
The exists(${DESTDIR}...) check runs with DESTDIR being blank.  When the
target runs it does have DESTDIR=${STAGE_OBJTOP} via bsd.sys.mk.  This
results in the first execution warning that the symlink is missing.  The
second run does run fine.  However, this chflags is not needed at all
for META_MODE/STAGING since we never had this path being a schg file
while using META_MODE.

Sponsored by: EMC / Isilon Storage Division

libexec/rtld-elf/Makefile

index 2bed4c781a8b11e6d597943844c6052fc8872796..8758c8d828b7a5c7eecfd9373388efc47254e4be 100644 (file)
@@ -77,7 +77,7 @@ SYMBOL_MAPS+= ${.CURDIR}/${RTLD_ARCH}/Symbol.map
 # Since moving rtld-elf to /libexec, we need to create a symlink.
 # Fixup the existing binary that's there so we can symlink over it.
 beforeinstall:
-.if exists(${DESTDIR}/usr/libexec/${PROG})
+.if exists(${DESTDIR}/usr/libexec/${PROG}) && ${MK_STAGING} == "no"
        -chflags -h noschg ${DESTDIR}/usr/libexec/${PROG}
 .endif