From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 22 21:10:24 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DDDB16A4CE for ; Fri, 22 Oct 2004 21:10:24 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 108BA43D45 for ; Fri, 22 Oct 2004 21:10:24 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i9MLANKw091767 for ; Fri, 22 Oct 2004 21:10:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i9MLANN9091762; Fri, 22 Oct 2004 21:10:23 GMT (envelope-from gnats) Resent-Date: Fri, 22 Oct 2004 21:10:23 GMT Resent-Message-Id: <200410222110.i9MLANN9091762@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "John E. Hein" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A06516A4CE for ; Fri, 22 Oct 2004 21:05:31 +0000 (GMT) Received: from Daffy.timing.com (w.timing.com [206.168.13.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E2E843D53 for ; Fri, 22 Oct 2004 21:05:31 +0000 (GMT) (envelope-from jhein@timing.com) Received: from Speedy.timing.com (speedy.timing.com [206.168.13.185]) by Daffy.timing.com (8.12.8p2/8.12.8) with ESMTP id i9ML5UIm086274; Fri, 22 Oct 2004 15:05:30 -0600 (MDT) (envelope-from jhein@timing.com) Received: from Speedy.timing.com (localhost [127.0.0.1]) by Speedy.timing.com (8.13.1/8.13.1) with ESMTP id i9ML5UYD030823; Fri, 22 Oct 2004 15:05:30 -0600 (MDT) (envelope-from jhein@Speedy.timing.com) Received: (from jhein@localhost) by Speedy.timing.com (8.13.1/8.13.1/Submit) id i9ML5UmA030822; Fri, 22 Oct 2004 15:05:30 -0600 (MDT) (envelope-from jhein) Message-Id: <200410222105.i9ML5UmA030822@Speedy.timing.com> Date: Fri, 22 Oct 2004 15:05:30 -0600 (MDT) From: "John E. Hein" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: imp@timing.com Subject: misc/73016: chflags on wrong file in libexec/rtld-elf (if DESTDIR != "") X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "John E. Hein" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Oct 2004 21:10:24 -0000 >Number: 73016 >Category: misc >Synopsis: chflags on wrong file in libexec/rtld-elf (if DESTDIR != "") >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 22 21:10:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: John E. Hein >Release: FreeBSD 5.3-RC1 >Organization: Timing Solutions >Environment: System: FreeBSD Speedy.timing.com 5.3-BETA6 FreeBSD 5.3-BETA6 #1: Fri Oct 1 15:51:39 MDT 2004 root@Speedy.timing.com:/usr/obj/usr/src/sys/SPEEDY i386 >Description: During installworld to a non-empty DESTDIR, an error pops up doing a chflags on ld-elf.so.1. The error is ignored (prefix'd by - in the Makefile). But it's easy to make it go away (see patch). >How-To-Repeat: make installworld DESTDIR=/foo >Fix: chflags the link target, not the sym link. Index: libexec/rtld-elf/Makefile =================================================================== RCS file: /base/FreeBSD-CVS/src/libexec/rtld-elf/Makefile,v retrieving revision 1.31 diff -u -r1.31 Makefile --- libexec/rtld-elf/Makefile 17 Jun 2004 19:01:53 -0000 1.31 +++ libexec/rtld-elf/Makefile 22 Oct 2004 15:18:04 -0000 @@ -47,7 +47,7 @@ # 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: - -chflags noschg ${DESTDIR}/usr/libexec/${PROG} + -chflags noschg ${DESTDIR}/${BINDIR}/${PROG} .PATH: ${.CURDIR}/${MACHINE_ARCH} >Release-Note: >Audit-Trail: >Unformatted: