Path error, failure in "make installworld" 10.2p20 -> 10.3p7
J.R. Oldroyd
fbsd at opal.com
Sat Sep 10 14:24:15 UTC 2016
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 <bsd.lib.mk>
More information about the freebsd-stable
mailing list