From owner-freebsd-bugs@FreeBSD.ORG Wed Mar 4 15:59:01 2015 Return-Path: Delivered-To: freebsd-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 674D2653 for ; Wed, 4 Mar 2015 15:59:01 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3366382C for ; Wed, 4 Mar 2015 15:59:01 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t24Fx14C080518 for ; Wed, 4 Mar 2015 15:59:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 198279] Patch to stop world killing jails via failing install -fschg libc.so.7 Date: Wed, 04 Mar 2015 15:59:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jhs@berklix.com X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2015 15:59:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198279 Bug ID: 198279 Summary: Patch to stop world killing jails via failing install -fschg libc.so.7 Product: Base System Version: 10.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: jhs@berklix.com Created attachment 153787 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=153787&action=edit bsd.lib.mk.chflags.REL=ALL.diff to stop make world killing jails Jails are lethaly killed by make world, unless /etc/make.conf contains this: NO_FSCHG="yes" # Avoid bsd.lib.mk 'INSTALLFLAGS+= -fschg' killing FreeBSD jails, # deleting /lib/libc.so.7 via 'cd /usr/src/lib/csu/amd64 ; make install' Killing: uname -a FreeBSD land.berklix.org 10.1-RELEASE-p6 FreeBSD 10.1-RELEASE-p6 #0: Tue Feb 24 19:00:21 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 cd /usr/src; make install ===> lib/libc (install) install -s -o root -g wheel -m 444 -fschg -S libc.so.7 /lib install: /lib/libc.so.7: chflags: Operation not permitted *** Error code 71 Recovery: /rescue/cp /usr/obj/usr/src/lib/libc/libc.so.7 /lib/ man install falsely claims: -S Safe copy, But is broken by -fschg ! Solutions: - Disable chflags in bsd.lib.mk & bsd.lib.mk. Patches appended. - Or Extend bsd.lib.mk & bsd.lib.mk to be conditional on jail detection. (**) - Or Fix install to not break with chflags (**) (**) Last 2 should be done by those who want to keep Chflags in FreeBSD, not me, I've used Unix since 1978, but find chflags a Wart best removed. I discovered this on 8.2-RELEASE 18 Jun 2013, & just got bitten again on 10.1-RELEASE-p6, (as my jail's make.conf lost its NO_FSCHG="yes"). -- You are receiving this mail because: You are the assignee for the bug.