From owner-freebsd-questions Wed Feb 10 17:37:31 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA25880 for freebsd-questions-outgoing; Wed, 10 Feb 1999 17:37:31 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from hyperhost.net (ether.lightrealm.com [207.159.132.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA25864; Wed, 10 Feb 1999 17:37:22 -0800 (PST) (envelope-from patseal@hyperhost.net) Received: from port12.annex8.radix.net (port12.annex8.radix.net [205.252.108.12]) by hyperhost.net (8.8.5/8.8.5) with ESMTP id UAA23620; Wed, 10 Feb 1999 20:37:16 -0500 (EST) Date: Wed, 10 Feb 1999 20:37:54 -0500 (EST) From: Patrick Seal To: freebsd-questions@FreeBSD.ORG cc: freebsd-stable@FreeBSD.ORG Subject: BUG: Re: Installing share/examples In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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 | 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 > | 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