make installworld DESTDIR=/mnt fails
Matthias Apitz
guru at unixarea.de
Mon Mar 30 07:50:59 PDT 2009
El día Monday, March 30, 2009 a las 01:11:43PM +0200, Alexander Leidinger escribió:
> >I've enriched this USB key with the actual source tree and the compiled
> >objects:
> >
> ># cd /usr/src/
> ># tar -cf - myHEAD | ( cd /mnt ; tar -xpf - )
> >
...
>
> You need to
> mv /myHEAD /usr/src/myHEAD
> setenv MAKEOBJDIRPREFIX /usr/src/myHEAD/obj
> and it should work.
>
> The realpath of the src dir is used when creating the obj tree. If
> you look at myHEAD/obj/, you will see that there's an usr/src/myHEAD.
...
Thanks this really helped and the installation went forward; I did not
know that the realpath of the src was used some hard during 'make
install';
now I run into the next problem:
...
===> usr.bin/ncplist (install)
install -s -o root -g wheel -m 555 ncplist /test/usr/bin
install -o root -g wheel -m 444 ncplist.1.gz /test/usr/share/man/man1
===> usr.bin/ncplogin (install)
make: don't know how to make install. Stop
*** Error code 2
Stop in /usr/src/myHEAD/src/usr.bin.
*** Error code 1
it turned out that the ASCII data on the USB is damaged:
# file /usr/src/myHEAD/src/usr.bin/ncplogin/*
/usr/src/myHEAD/src/usr.bin/ncplogin/CVS: directory
/usr/src/myHEAD/src/usr.bin/ncplogin/Makefile: data
/usr/src/myHEAD/src/usr.bin/ncplogin/ncplogin.1: data
/usr/src/myHEAD/src/usr.bin/ncplogin/ncplogin.c: data
/usr/src/myHEAD/src/usr.bin/ncplogin/ncplogout.1: troff or preprocessor input text
on the originating system it is:
$ file /usr/src/myHEAD/src/usr.bin/ncplogin/*
/usr/src/myHEAD/src/usr.bin/ncplogin/CVS: directory
/usr/src/myHEAD/src/usr.bin/ncplogin/Makefile: ASCII text
/usr/src/myHEAD/src/usr.bin/ncplogin/ncplogin.1: troff or preprocessor input text
/usr/src/myHEAD/src/usr.bin/ncplogin/ncplogin.c: ASCII C program text
/usr/src/myHEAD/src/usr.bin/ncplogin/ncplogout.1: troff or preprocessor input text
i.e the data in the USB key produced by
# tar -cf - myHEAD | ( cd /mnt ; tar -xpf - )
is damaged :-((
maybe I should better use
# cp -Rp /usr/src/myHEAD /mnt/usr/src
and not tar(1) to copy the src/obj tree...
Thx
matthias
--
Matthias Apitz
Manager Technical Support - OCLC GmbH
Gruenwalder Weg 28g - 82041 Oberhaching - Germany
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e <matthias.apitz at oclc.org> - w http://www.oclc.org/ http://www.UnixArea.de/
More information about the freebsd-current
mailing list