Date: Wed, 25 Dec 1996 16:55:49 -0200 (EDT) From: Joao Carlos Mendes Luis <jonny@mailhost.coppe.ufrj.br> To: davidn@sdev.usn.blaze.net.au (David Nugent) Cc: freebsd-questions@freebsd.org Subject: Re: make obj in 2.1.6 Message-ID: <199612251855.QAA28909@gaia.coppe.ufrj.br> In-Reply-To: <Mutt.19961224162644.davidn@sdev.blaze.net.au> from David Nugent at "Dec 24, 96 04:26:44 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
#define quoting(David Nugent)
// Joao Carlos Mendes Luis writes:
// > I'm starting to play with full system sources in 2.1.6.1 going to -stable.
// >
// > I got all sources into /usr/src-stable and started a "make world". It
// > did not work: there was a problem in make obj.
// >
// > "make obj" created all links to /usr/obj-stable, but did not create
// > the directories itself.
//
// If /usr/obj-stable is ever used, it is incorrect. /usr/obj is the
// *only* directory ever used for the object tree. It should be building
// all of the sources you have under /usr/src-stable under the
// directory /usr/obj/usr/src-stable/.
Ok. So how do you explain this ?
My src-stable/Makefile, at lines 143-148 is like this:
...
here=`pwd`; dest=/usr/obj`echo $$here | sed 's,^/usr/src,,'`; \
if test -d /usr/obj -a ! -d $$dest; then \
mkdir -p $$dest; \
else \
true; \
fi; \
...
Hence, if my current directory is /usr/src-stable, $dest will get the
value "/usr/obj-stable".
// > If I create a link from obj-stable to /usr/obj,
// > then it works. Probably, there's something wrong somewhere in the make
// > configuration. Some parts look for "obj*" ( as in "src*" ) and some
// > look for "/usr/obj" directly.
//
// If you can be more specific about the 'some parts' and locate
// problems with specific makefiles, then use send-pr. NONE of the
// source tree should be looking at /usr/obj-*anything*, and the
// macros that enable this are all common (in /usr/share/mk).
I don't fully compreend all that makefiles (yet). All that I know
for now is that when I do a make obj, the links are created pointing
to obj-stable, but the real directories are created in /usr/obj.
// Regards,
//
// David Nugent - Unique Computing Pty Ltd - Melbourne, Australia
// Voice +61-3-9791-9547 Data/BBS +61-3-9792-3507 3:632/348@fidonet
// davidn@freefall.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/
Jonny
--
Joao Carlos Mendes Luis jonny@gta.ufrj.br
+55 21 290-4698 ( Job ) jonny@cisi.coppe.ufrj.br
Network Manager UFRJ/COPPE/CISI
Universidade Federal do Rio de Janeiro
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199612251855.QAA28909>
