From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 6 10:10:09 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3821106566B for ; Sun, 6 Jun 2010 10:10:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B929E8FC16 for ; Sun, 6 Jun 2010 10:10:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o56AA9BI058041 for ; Sun, 6 Jun 2010 10:10:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o56AA9Sh058040; Sun, 6 Jun 2010 10:10:09 GMT (envelope-from gnats) Date: Sun, 6 Jun 2010 10:10:09 GMT Message-Id: <201006061010.o56AA9Sh058040@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Riccardo Torrini Cc: Subject: Re: conf/147244: ld-elf.so.1 not being updated on buildworld/installworld (potential fix) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Riccardo Torrini List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 10:10:10 -0000 The following reply was made to PR conf/147244; it has been noted by GNATS. From: Riccardo Torrini To: "mailto:bug-followup"@FreeBSD.org, jamie@bishopston.net Cc: Subject: Re: conf/147244: ld-elf.so.1 not being updated on buildworld/installworld (potential fix) Date: Sun, 6 Jun 2010 11:53:03 +0200 Yesterday I rebuilded an 8.0 machine (last installed on feb.28) and got the source (and the solution, I think): # ls -log /libexec/ total 424 -r-xr-xr-x 1 root wheel schg 220020 Feb 28 14:18 ld-elf.so.1 -r-xr-xr-x 1 root wheel - 188096 Feb 28 09:14 ld-elf.so.1.old # ls -log /usr/libexec/ld-elf* lrwxr-xr-x 1 root wheel - 20 Jun 6 10:20 \ /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf.so.1 I also checked the build dir and it was updated: # ls -log /usr/obj/usr/src/libexec/rtld-elf/ld-elf.so.1 -rwxr-xr-x 1 root wheel - 275642 Jun 5 20:01 \ /usr/obj/usr/src/libexec/rtld-elf/ld-elf.so.1 All others files in /*bin, /usr/*bin e /usr/lib* seems right. Here the installworld log (extract): ===> libexec/rtld-elf (install) chflags noschg /usr/libexec/ld-elf.so.1 install -s -o root -g wheel -m 555 -C -b -fschg -S ld-elf.so.1 /libexec install -o root -g wheel -m 444 rtld.1.gz /usr/share/man/man1 /usr/share/man/man1/ld-elf.so.1.1.gz -> /usr/share/man/man1/rtld.1.gz /usr/share/man/man1/ld.so.1.gz -> /usr/share/man/man1/rtld.1.gz /usr/libexec/ld-elf.so.1 -> /libexec/ld-elf.so.1 The problem is "chflags noschg" to a soft-link in /usr/libexec but then install over the protected one in /libexec. Potential fix (remove "/usr" on two lines): # diff -u4 Makefile.orig Makefile --- Makefile.orig 2009-08-03 10:13:06.000000000 +0200 +++ Makefile 2010-06-06 11:47:00.000000000 +0200 @@ -46,10 +46,10 @@ # 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}) - -chflags noschg ${DESTDIR}/usr/libexec/${PROG} +.if exists(${DESTDIR}/libexec/${PROG}) + -chflags noschg ${DESTDIR}/libexec/${PROG} .endif .PATH: ${.CURDIR}/${MACHINE_ARCH} -- Riccardo. ( http://www.GUFI.org/~vic/ )