Re: Re : building from source after freebsd-update

2010-03-15 Thread Alexandre L.
> That handbook section is where I read:
> "The default is to update the source code, the entire base
> system, and the kernel."

First, freebsd-update tool sync the source.
 
> And in fact much of the /usr/src/ does contain source
> code.
> 
> /usr/src/sys/ subdirectories seem populated, and some
> directories under
> /usr/src/usr.bin/ and /usr/src/usr.sbin/ contain source,
> while others only
> contain the Makefile.
> 
> /usr/src/usr.sbin/sendmail/ contains only the Makefile.
> Which lead to the
> make depend error I experienced.
> 
> It seems like I could build the kernel, and parts of the
> non-kernel base,
> but not other parts.
> 
> After RTFMing, scroogling for days, and going through
> UPDATINGs and READMEs I'm
> still not clear on how to mix freebsd-update and building
> all or parts of the
> base source.
> 
> I'm interested in being able to build system apps in the
> base, custom kernel
> modules, and eventually the entire kernel.

Freebsd-update tool will update your base system and GENERIC kernel, using 
binary. If your are using a custom kernel, you must reboot on the GENERIC 
kernel (that have just been upgraded) and do your make buildkernel 
KERNCONF=yourkernel and make installkernel KERNCONF=mykernel

> freebsd-update is _extremely_ painless for tracking the
> security patches. It
> would be nice to be able to mix this with a certain amount
> of building source.

From the Handbook : 
This utility provides two separate functions. First, it allows for binary 
security and errata updates to be applied to the FreeBSD base system without 
the build and install requirements. Second, the utility supports minor and 
major release upgrades.

This tool is only available for RELEASE, not for STABLE or CURRENT.

I hope this have helped you.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Re : building from source after freebsd-update

2010-03-14 Thread johnea

On 2010-03-14 05:39, Alexandre L. wrote:

Please read the handbook section related to the FreeBSD update tool
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html

freebsd-update is a binary update tool, so you haven't got anything to rebuild, 
except your custom kernel (if you are using one).


That handbook section is where I read:
"The default is to update the source code, the entire base system, and the 
kernel."

And in fact much of the /usr/src/ does contain source code.

/usr/src/sys/ subdirectories seem populated, and some directories under
/usr/src/usr.bin/ and /usr/src/usr.sbin/ contain source, while others only
contain the Makefile.

/usr/src/usr.sbin/sendmail/ contains only the Makefile. Which lead to the
make depend error I experienced.

It seems like I could build the kernel, and parts of the non-kernel base,
but not other parts.

After RTFMing, scroogling for days, and going through UPDATINGs and READMEs I'm
still not clear on how to mix freebsd-update and building all or parts of the
base source.

I'm interested in being able to build system apps in the base, custom kernel
modules, and eventually the entire kernel.

freebsd-update is _extremely_ painless for tracking the security patches. It
would be nice to be able to mix this with a certain amount of building source.

Any insight is greatly appreciated...

johnea
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re : building from source after freebsd-update

2010-03-14 Thread Alexandre L.
Please read the handbook section related to the FreeBSD update tool
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html

freebsd-update is a binary update tool, so you haven't got anything to rebuild, 
except your custom kernel (if you are using one).

--- En date de : Dim 14.3.10, johnea  a écrit :

> De: johnea 
> Objet: building from source after freebsd-update
> À: "FreeBSD Questions" 
> Date: Dimanche 14 mars 2010, 3h37
> 
> Hello,
> 
> I have been using freebsd-update to update several 7.1
> systems.
> 
> The default freebsd-update.conf contains:
> 
> Components src world kernel
> 
> Recently while trying to build sendmail to enable SASL I
> ran into errors:
> 
> host# cd /usr/src/usr.sbin/sendmail
> host# make depend
> make: don't know how to make alias.c. Stop
> 
> How can I build the source updated by freebsd-update?
> 
> Thank You!
> 
> johnea
> 
> p.s. I have replaced sendmail with ssmtp and have the
> necessary SASL
>      authentication working. However I
> have always maintained these
>      servers via freebsd-update and I
> would like to learn the process
>      of building the system from
> source. Thanks for any help!
> 
> ___
> freebsd-questions@freebsd.org
> mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
> 




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: building from source after freebsd-update

2010-03-13 Thread Chuck Swiger
On Mar 13, 2010, at 8:10 PM, johnea wrote:
>  guess I was lead to believe that it updated the source from this entry in 
> the handbook:
> 
> "The default is to update the source code, the entire base system, and the 
> kernel."
> 
> http://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html
> 
> I've also seem other references indicate that the source downloaded by 
> freebsd-update
> could be patched and installed.

If you list src component, evidently freebsd-update claims to update /usr/src.  
I suspect that if you've updated src via one of the other methods, it won't 
figure out how to update everything correctly.

-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: building from source after freebsd-update

2010-03-13 Thread johnea

On 2010-03-13 19:58, Chuck Swiger wrote:


freebsd-update provides a binary update mechanism.

It doesn't do anything to update the source files; if you choose to rebuild 
from source, use cvsup/csup/svn; you will normally get a -STABLE system from 
the build cycle, and not a -RELEASE system, but that depends upon which branch 
you are tracking.


I guess I was lead to believe that it updated the source from this entry in the 
handbook:

"The default is to update the source code, the entire base system, and the 
kernel."

http://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html

I've also seem other references indicate that the source downloaded by 
freebsd-update
could be patched and installed.

Am I completely off?

Thanks for helping clear this up...

johnea
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: building from source after freebsd-update

2010-03-13 Thread Chuck Swiger
On Mar 13, 2010, at 7:37 PM, johnea wrote:
> I have been using freebsd-update to update several 7.1 systems.
> [ ... ]
> How can I build the source updated by freebsd-update?

freebsd-update provides a binary update mechanism.

It doesn't do anything to update the source files; if you choose to rebuild 
from source, use cvsup/csup/svn; you will normally get a -STABLE system from 
the build cycle, and not a -RELEASE system, but that depends upon which branch 
you are tracking.

Regards,
-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"