Date: Wed, 10 Feb 1999 20:37:54 -0500 (EST) From: Patrick Seal <patseal@hyperhost.net> To: freebsd-questions@FreeBSD.ORG Cc: freebsd-stable@FreeBSD.ORG Subject: BUG: Re: Installing share/examples Message-ID: <Pine.BSF.4.05.9902102030580.9893-100000@foobar.hyperhost.net> In-Reply-To: <Pine.BSF.4.05.9902102016050.9893-100000@foobar.hyperhost.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I just did some exploring and I think I found the problem.
Here's the Makefile for /usr/src/share/examples
DIRS!= for i in *; do if test -d $$i -a $$i != CVS; then echo $$i; fi;
done
DDIR= ${DESTDIR}/usr/share/examples
NOOBJ= noobj
# Define SHARED to indicate whether you want symbolic links to the system
# source (``symlinks''), or a separate copy (``copies''); (latter useful
# in environments where it's not possible to keep /sys publicly readable)
SHARED?= copies
all clean cleandir depend lint tags:
beforeinstall: ${SHARED}
.for dir in ${DIRS}
FILES!= find -L ${dir} \( -name CVS -prune \) -o -type f -print
.for file in ${FILES}
copies::
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${file}
${DDIR}/${file}
.endfor
.endfor
.for dir in ${DIRS}
symlinks::
rm -rf ${DDIR}/${dir}; ln -s ${.CURDIR}/${dir} ${DDIR}
.endfor
.include <bsd.prog.mk>
There are quite a few symlinks to /usr/include and /usr/include/machine
from this tree example:
patseal@foobar{312}# pwd
/usr/src/share/examples/lkm/misc/module
patseal@foobar{313}# ll
total 16
lrwxr-xr-x 1 root wheel 12 Feb 10 19:47 @ -> /usr/include
-rw-r--r-- 1 root wheel 1925 Feb 22 1997 Makefile
lrwxr-xr-x 1 root wheel 20 Feb 10 19:47 machine ->
/usr/include/machine
-rwxr-xr-x 1 root wheel 1538 Feb 10 19:47 misc_mod.o
-rw-r--r-- 1 root wheel 3064 Dec 30 1997 misccall.c
-rw-r--r-- 1 root wheel 425 Feb 10 19:47 misccall.o
-rw-r--r-- 1 root wheel 6008 Aug 8 1998 miscmod.c
-rw-r--r-- 1 root wheel 1146 Feb 10 19:47 miscmod.o
The Makefile isn't taking into accout about the symlinks, and instead of
copying the symlinks, install what they point to. (I could be wrong but
this is the only thing I can think of)
Anyone know how to fix this?
------------------------------------ _____________________________________
Patrick Seal |"Microsoft isn't evil, they just make
<patseal@hyperhost.net> | really crappy operating systems."
Hyperhost - http://www.hyperhost.net| -Linus Torvalds
hosting and Design
http://www.freebsd.org - http://www.linux.org
On Wed, 10 Feb 1999, Patrick Seal wrote:
> 3.0-stable
>
> When installing /usr/src/share/examples I keep getting errors such as:
>
> install -c -o root -g wheel -m 644 kld/cdev/module/@/arpa/ftp.h
> /usr/share/examp
> les/kld/cdev/module/@/arpa/ftp.h
> install: /usr/share/examples/kld/cdev/module/@/arpa/ftp.h: No such file or
> directory
>
> Which is true, so I have to create the directory manually. But there are
> SO many directories I have to create! And all it has in the source tree
> for @ is a symlink to /usr/include!
>
> Why isn't this directory crap in the mtree files!
>
> ------------------------------------ _____________________________________
> Patrick Seal |"Microsoft isn't evil, they just make
> <patseal@hyperhost.net> | really crappy operating systems."
> Hyperhost - http://www.hyperhost.net| -Linus Torvalds
> hosting and Design
>
> http://www.freebsd.org - http://www.linux.org
>
>
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9902102030580.9893-100000>
