From owner-freebsd-stable@freebsd.org Sat Sep 10 14:24:15 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AC06EBD52B2 for ; Sat, 10 Sep 2016 14:24:15 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from homobox.opal.com (opalcom-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:113d::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "opal.com", Issuer "OpalCA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 60834A53 for ; Sat, 10 Sep 2016 14:24:15 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from shibato (shibato.opal.com [IPv6:2001:470:8cb8:3:21e:33ff:fe5f:cb65]) (authenticated bits=0) by homobox.opal.com (8.15.2/8.15.2) with ESMTPSA id u8AEOAlr037862 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128 verify=NO) for ; Sat, 10 Sep 2016 10:24:12 -0400 (EDT) (envelope-from fbsd@opal.com) Date: Sat, 10 Sep 2016 10:24:10 -0400 From: "J.R. Oldroyd" To: freebsd-stable@freebsd.org Subject: Path error, failure in "make installworld" 10.2p20 -> 10.3p7 Message-ID: <20160910102410.58ab6d35@shibato> X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (homobox.opal.com [IPv6:2001:470:8cb8:2::1]); Sat, 10 Sep 2016 10:24:12 -0400 (EDT) X-Spam-Status: No, score=-1.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_40, RP_MATCHES_RCVD shortcircuit=no autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on homobox.opal.com X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2016 14:24:15 -0000 Recently did a full source upgrade following the standard make buildworld/buildkernel/installkernel/installworld sequence. Went from running 10.2p20 to latest 10.3p7. Using source from svn releng/10.3 revision r304958. buildworld, buildkernel and installkernel all completed just fine. The "make installworld" bombed out like this: ===> kerberos5/lib/libasn1 (install) install -C -o root -g wheel -m 444 libasn1.a /usr/lib install -C -o root -g wheel -m 444 libasn1_p.a /usr/lib install -s -o root -g wheel -m 444 libasn1.so.11 /usr/lib install -l s libasn1.so.11 /usr/lib/libasn1.so cmp -s pkinit_asn1.hx pkinit_asn1.h 2> /dev/null || cp pkinit_asn1.hx pkinit_asn1.h cp: not found *** Error code 127 The same error occurred in these three dirs: kerberos5/lib/libasn1 kerberos5/lib/libhdb kerberos5/lib/libhx509 Looks like this was previously reported in 2014 and prior to that in 2011. See here: http://unix.derkeiler.com/Mailing-Lists/FreeBSD/hackers/2014-04/msg00194.html The patch below fixed it for me. I just added the "/bin/" path to the two calls of cp(1). That worked and the rest of the install finished successfully. Perhaps I should have used ${CP}, though, but I didn't test that. Similar patch in all three affected dirs. -jr # svn diff Makefile Index: Makefile =================================================================== --- Makefile (revision 304958) +++ Makefile (working copy) @@ -112,10 +112,10 @@ .SUFFIXES: .h .c .x .hx .x.c: - cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET} + cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || /bin/cp ${.IMPSRC} ${.TARGET} .hx.h: - cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || cp ${.IMPSRC} ${.TARGET} + cmp -s ${.IMPSRC} ${.TARGET} 2> /dev/null || /bin/cp ${.IMPSRC} ${.TARGET} .include