From owner-freebsd-hackers@freebsd.org Fri Jun 15 17:19:38 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6DDCC1014EB0 for ; Fri, 15 Jun 2018 17:19:38 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (unknown [IPv6:2a01:4f8:d12:604::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id E110D795BE for ; Fri, 15 Jun 2018 17:19:37 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (root@eg.sd.rdtc.ru [62.231.161.221] (may be forged)) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id w5FHJ3Kq068773 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 15 Jun 2018 19:19:04 +0200 (CEST) (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: jamie@catflap.org Received: from [10.58.0.4] ([10.58.0.4]) by eg.sd.rdtc.ru (8.15.2/8.15.2) with ESMTPS id w5FHIjKR012884 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sat, 16 Jun 2018 00:18:45 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: cpio regression (Re: Root partition and usrland on one slice, /usr/local ports and srcon another) To: Jamie Landeg-Jones , lankfordandrew@charter.net, freebsd-hackers@freebsd.org, Cy.Schubert@komquats.com References: <20171112034352.186A1866@spqr.komquats.com> <201806151614.w5FGE3A6057917@donotpassgo.dyslexicfish.net> From: Eugene Grosbein Message-ID: <5B23F4F0.7050502@grosbein.net> Date: Sat, 16 Jun 2018 00:18:40 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <201806151614.w5FGE3A6057917@donotpassgo.dyslexicfish.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00, LOCAL_FROM, RDNS_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.1 X-Spam-Report: * -0.0 SPF_PASS SPF: sender matches SPF record * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 2.6 LOCAL_FROM From my domains * 1.9 RDNS_NONE Delivered to internal network by a host with no rDNS X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on hz.grosbein.net X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2018 17:19:38 -0000 15.06.2018 23:14, Jamie Landeg-Jones wrote: >> I still don't get what specific problems did you have >> but I'm sure they were not due to symlinking as such links work just fine >> for me with gcc, and with clang too. > > Cy Schubert replied: > >> Neither do I. I've been using a combination of symlinks, ufs, nullfs, zfs legacy and straight zfs in various configurations over the years on various systems with no problems whatsoever. > > I just came across one with multimedia/ffmpeg4: > > Debugging the install stage gives this, though the cpio error messages are sent to null by default: > > | + /usr/bin/find -Ed Changelog CREDITS INSTALL.md LICENSE.md MAINTAINERS README.md RELEASE_NOTES > | + /usr/bin/cpio -dumpl /scratch/root/ports_base/usr/ports/multimedia/ffmpeg/work/stage/usr/local/share/doc/ffmpeg > | cpio: Cannot extract through symlink /scratch/root/ports_base/usr/ports/multimedia/ffmpeg/work/stage/usr/local/share/doc/ffmpeg/Changelog Well, I known this. Some time ago our cpio got "broken" in a way: it now demands "--insecure" option to work with symlinks same way it worked long before without this option. While I may understand motivation, this change still broke previously working scripts like /usr/src/tools/tools/nanobsd/nanobsd.sh (generates NanoBSD images) using cpio without "--insecure" when some parts of the building system are symlinked to other locations.