Re: Building in /usr/src copied to $HOME

2008-03-21 Thread Giorgos Keramidas
On Fri, 21 Mar 2008 14:32:24 -0600 (MDT), "M. Warner Losh" <[EMAIL PROTECTED]> 
wrote:
> In message: <[EMAIL PROTECTED]>
> Václav Haisman <[EMAIL PROTECTED]> writes:
> : > The problem is that MK_DYNAMICROOT is defined by bsd.own.mk.  This
> : > likely means that he's not building the same version of FreeBSD as
> : > the system is running, otherwise the system's bsd.own.mk file
> : > would cope.
> :
> : That was the problem as I stated in email from two days ago. I guess
> : nobody noticed the second email :)
>
> I noticed after I replied.  That should teach me to  read the whole
> thread before replying :-)

I replied offline, and then got the rest of the thread when I
reconnected.  My apologies for the noise.

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building in /usr/src copied to $HOME

2008-03-21 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]>
Václav Haisman <[EMAIL PROTECTED]> writes:
: M. Warner Losh wrote, On 21.3.2008 17:34:
: > In message: <[EMAIL PROTECTED]>
: > Giorgos Keramidas <[EMAIL PROTECTED]> writes:
: > : On 2008-03-18 21:28, V??clav Haisman <[EMAIL PROTECTED]> wrote:
: > : > Hi,
: > : > I am trying to use /usr/src copied to my $HOME but the build process
: > : > doesn't want to work. For example when I try build /bin/cp I get the
: > : > following:
: > : >
: > : > shell::wilx:~/freebsd/src/bin/cp> make
: > : > "/usr/home/users/wilx/freebsd/src/bin/cp/../Makefile.inc", line 9:
: > : > Malformed conditional (${MK_DYNAMICROOT} == "no")
: > : > "/usr/share/mk/bsd.init.mk", line 15: if-less endif
: > : > make: fatal errors encountered -- cannot continue
: > : >
: > : > Is there any sort of tutorial/prescription anywhere how to use /usr/src
: > : > tree that does not reside in /usr/src?
: > : 
: > : Hmmm, that should work.  I regularly build as a non-root user, at
: > : `/home/build/src'.
: > : 
: > : The error about ``Malformed conditional'' seems a bit odd too.  Are you
: > : using /usr/bin/make?  What version of FreeBSD is the build host running,
: > : and what version of the source tree have you checked out?
: > 
: > The problem is that MK_DYNAMICROOT is defined by bsd.own.mk.  This
: > likely means that he's not building the same version of FreeBSD as the
: > system is running, otherwise the system's bsd.own.mk file would cope.
: > 
: > Warner
: That was the problem as I stated in email from two days ago. I guess nobody 
: noticed the second email :)

I noticed after I replied.  That should teach me to  read the whole
thread before replying :-)

Warner
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building in /usr/src copied to $HOME

2008-03-21 Thread Václav Haisman

M. Warner Losh wrote, On 21.3.2008 17:34:

In message: <[EMAIL PROTECTED]>
Giorgos Keramidas <[EMAIL PROTECTED]> writes:
: On 2008-03-18 21:28, V??clav Haisman <[EMAIL PROTECTED]> wrote:
: > Hi,
: > I am trying to use /usr/src copied to my $HOME but the build process
: > doesn't want to work. For example when I try build /bin/cp I get the
: > following:
: >
: > shell::wilx:~/freebsd/src/bin/cp> make
: > "/usr/home/users/wilx/freebsd/src/bin/cp/../Makefile.inc", line 9:
: > Malformed conditional (${MK_DYNAMICROOT} == "no")
: > "/usr/share/mk/bsd.init.mk", line 15: if-less endif
: > make: fatal errors encountered -- cannot continue
: >
: > Is there any sort of tutorial/prescription anywhere how to use /usr/src
: > tree that does not reside in /usr/src?
: 
: Hmmm, that should work.  I regularly build as a non-root user, at

: `/home/build/src'.
: 
: The error about ``Malformed conditional'' seems a bit odd too.  Are you

: using /usr/bin/make?  What version of FreeBSD is the build host running,
: and what version of the source tree have you checked out?

The problem is that MK_DYNAMICROOT is defined by bsd.own.mk.  This
likely means that he's not building the same version of FreeBSD as the
system is running, otherwise the system's bsd.own.mk file would cope.

Warner
That was the problem as I stated in email from two days ago. I guess nobody 
noticed the second email :)


--
VH



signature.asc
Description: OpenPGP digital signature


Re: Building in /usr/src copied to $HOME

2008-03-21 Thread M. Warner Losh
In message: <[EMAIL PROTECTED]>
Giorgos Keramidas <[EMAIL PROTECTED]> writes:
: On 2008-03-18 21:28, V??clav Haisman <[EMAIL PROTECTED]> wrote:
: > Hi,
: > I am trying to use /usr/src copied to my $HOME but the build process
: > doesn't want to work. For example when I try build /bin/cp I get the
: > following:
: >
: > shell::wilx:~/freebsd/src/bin/cp> make
: > "/usr/home/users/wilx/freebsd/src/bin/cp/../Makefile.inc", line 9:
: > Malformed conditional (${MK_DYNAMICROOT} == "no")
: > "/usr/share/mk/bsd.init.mk", line 15: if-less endif
: > make: fatal errors encountered -- cannot continue
: >
: > Is there any sort of tutorial/prescription anywhere how to use /usr/src
: > tree that does not reside in /usr/src?
: 
: Hmmm, that should work.  I regularly build as a non-root user, at
: `/home/build/src'.
: 
: The error about ``Malformed conditional'' seems a bit odd too.  Are you
: using /usr/bin/make?  What version of FreeBSD is the build host running,
: and what version of the source tree have you checked out?

The problem is that MK_DYNAMICROOT is defined by bsd.own.mk.  This
likely means that he's not building the same version of FreeBSD as the
system is running, otherwise the system's bsd.own.mk file would cope.

Warner
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building in /usr/src copied to $HOME

2008-03-19 Thread Max Laier
On Wednesday 19 March 2008 05:36:47 Giorgos Keramidas wrote:
> On 2008-03-18 21:28, V??clav Haisman <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I am trying to use /usr/src copied to my $HOME but the build process
> > doesn't want to work. For example when I try build /bin/cp I get the
> > following:
> >
> > shell::wilx:~/freebsd/src/bin/cp> make
> > "/usr/home/users/wilx/freebsd/src/bin/cp/../Makefile.inc", line 9:
> > Malformed conditional (${MK_DYNAMICROOT} == "no")
> > "/usr/share/mk/bsd.init.mk", line 15: if-less endif
> > make: fatal errors encountered -- cannot continue

Looks like a problem with /usr/share/mk being out of date (not sure this 
should be an issue, though).  A simple fix should be to add "-m 
`pwd`/share/mk" to make ... or "-m `pwd`/../../share/mk" in your example 
above.  The buildworld target seems to pick this automatically.

> > Is there any sort of tutorial/prescription anywhere how to use
> > /usr/src tree that does not reside in /usr/src?
>
> Hmmm, that should work.  I regularly build as a non-root user, at
> `/home/build/src'.
>
> The error about ``Malformed conditional'' seems a bit odd too.  Are you
> using /usr/bin/make?  What version of FreeBSD is the build host
> running, and what version of the source tree have you checked out?


-- 
/"\  Best regards,  | [EMAIL PROTECTED]
\ /  Max Laier  | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | [EMAIL PROTECTED]
/ \  ASCII Ribbon Campaign  | Against HTML Mail and News
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building in /usr/src copied to $HOME

2008-03-18 Thread Giorgos Keramidas
On 2008-03-18 21:28, V??clav Haisman <[EMAIL PROTECTED]> wrote:
> Hi,
> I am trying to use /usr/src copied to my $HOME but the build process
> doesn't want to work. For example when I try build /bin/cp I get the
> following:
>
> shell::wilx:~/freebsd/src/bin/cp> make
> "/usr/home/users/wilx/freebsd/src/bin/cp/../Makefile.inc", line 9:
> Malformed conditional (${MK_DYNAMICROOT} == "no")
> "/usr/share/mk/bsd.init.mk", line 15: if-less endif
> make: fatal errors encountered -- cannot continue
>
> Is there any sort of tutorial/prescription anywhere how to use /usr/src
> tree that does not reside in /usr/src?

Hmmm, that should work.  I regularly build as a non-root user, at
`/home/build/src'.

The error about ``Malformed conditional'' seems a bit odd too.  Are you
using /usr/bin/make?  What version of FreeBSD is the build host running,
and what version of the source tree have you checked out?

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building in /usr/src copied to $HOME

2008-03-18 Thread Václav Haisman

Václav Haisman wrote, On 18.3.2008 21:28:

Hi,
I am trying to use /usr/src copied to my $HOME but the build process 
doesn't want to work. For example when I try build /bin/cp I get the 
following:


shell::wilx:~/freebsd/src/bin/cp> make
"/usr/home/users/wilx/freebsd/src/bin/cp/../Makefile.inc", line 9: 
Malformed conditional (${MK_DYNAMICROOT} == "no")

"/usr/share/mk/bsd.init.mk", line 15: if-less endif
make: fatal errors encountered -- cannot continue

Is there any sort of tutorial/prescription anywhere how to use /usr/src 
tree that does not reside in /usr/src?
Never mind, I have realised that I have copied the wrong tree. I have coped 
/usr/src for HEAD instead of 6.3 that the box uses. With the 6.3 /usr/src it 
works fine.


--
VH



signature.asc
Description: OpenPGP digital signature


Re: Building in /usr/src copied to $HOME

2008-03-18 Thread Marco Walraven
On Tue, Mar 18, 2008 at 09:28:50PM +0100, Vclav Haisman wrote:
> Hi,
> I am trying to use /usr/src copied to my $HOME but the build process 
> doesn't want to work. For example when I try build /bin/cp I get the 
> following:
> 
> shell::wilx:~/freebsd/src/bin/cp> make
> "/usr/home/users/wilx/freebsd/src/bin/cp/../Makefile.inc", line 9: 
> Malformed conditional (${MK_DYNAMICROOT} == "no")
> "/usr/share/mk/bsd.init.mk", line 15: if-less endif
> make: fatal errors encountered -- cannot continue
> 
> Is there any sort of tutorial/prescription anywhere how to use /usr/src 
> tree that does not reside in /usr/src?

You should link your /usr/src to ~/freebsd/src/ and that will make it work.

 M.

-- 
 Terantula - Industrial Strength Open Source
 phone:+31 64 3232 400 / www: http://www.terantula.com / pgpkey: E7EE7A46
 pgp fingerprint: F2EE 122D 964C DE68 7380 6F95 3710 7719 E7EE 7A46 
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Building in /usr/src copied to $HOME

2008-03-18 Thread Václav Haisman

Hi,
I am trying to use /usr/src copied to my $HOME but the build process doesn't 
want to work. For example when I try build /bin/cp I get the following:


shell::wilx:~/freebsd/src/bin/cp> make
"/usr/home/users/wilx/freebsd/src/bin/cp/../Makefile.inc", line 9: Malformed 
conditional (${MK_DYNAMICROOT} == "no")

"/usr/share/mk/bsd.init.mk", line 15: if-less endif
make: fatal errors encountered -- cannot continue

Is there any sort of tutorial/prescription anywhere how to use /usr/src tree 
that does not reside in /usr/src?


--
VH



signature.asc
Description: OpenPGP digital signature