From owner-freebsd-questions Wed Feb 10 17:40:58 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA26453 for freebsd-questions-outgoing; Wed, 10 Feb 1999 17:40:58 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dingo.cdrom.com (castles202.castles.com [208.214.165.202]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA26417; Wed, 10 Feb 1999 17:40:48 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id RAA01827; Wed, 10 Feb 1999 17:36:30 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199902110136.RAA01827@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Patrick Seal cc: freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: BUG: Re: Installing share/examples In-reply-to: Your message of "Wed, 10 Feb 1999 20:37:54 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 10 Feb 1999 17:36:30 -0800 From: Mike Smith Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I just did some exploring and I think I found the problem. The "problem" is that you've built examples directly in the examples directory, and not cleaned them up. Don't do that. 8) > 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-stable" in the body of the message > -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message