Re: freebsd-update & userland sources

2009-08-03 Thread Colin Percival

On Sunday 02 August 2009 16:10:37 Tom Mende wrote:

Is there a way to get freebsd-update to keep userland sources up to
date?


Yes.  If you have source code installed (for the right version of FreeBSD)
in /usr/src, then freebsd-update will keep it updated.

(Slight complication: Because freebsd-update builds are normally done before
patches are committed to SVN, you won't get the updated SVN revision numbers
or the new entries in UPDATING via freebsd-update -- but you will get all of
the security/errata fixes.)

--
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid
___
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: freebsd-update & userland sources

2009-08-03 Thread Mel Flynn
On Sunday 02 August 2009 16:10:37 Tom Mende wrote:
> Is there a way to get freebsd-update to keep userland sources up to
> date?

Since it is for binary upgrades, it doesn't make much sense, but ...

> By way of background, I am trying not to use csup / cvsup and like
> processes as their past, admittedly incorrect, usage by me, combined
> with my incompetent salvage operations, has hosed my systems to the
> point of needing to be reinstalled from scratch. I have been using a
> combination of portsnap and freebsd-update to keep my 7.2-RELEASE
> system up to date and commenced this at about 6.3-RELEASE and have
> managed to not hose the system since that time. It now however appears
> I need to have userland sources to keep fusefs-kmod up to date.
>
> /usr/ports/sysutils/fusefs-kmod>make install clean
> ===>  fusefs-kmod-0.3.9.p1.20080208_6 requires the userland sources to
> be installed. Set SRC_BASE if it is not in /usr/src.
> *** Error code 1

This is one case where one requires sources. You would still need csup/cvsup 
and if you're tracking a -RELEASE branch, it does not do very much. Also, 
because you're not actually going to build world/kernel, the risk of "hosing 
your system" is limited.

What freebsd-update could however do, is maintain a 'standard-supfile' that 
would have the correct tag at all times. For example:

Would you like to install a supfile for this release in /etc? [y/n] y
   Please choose a mirror [cvsup$random.FreeBSD.org]:



-- 
Mel
___
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: freebsd-update & userland sources

2009-08-02 Thread ill...@gmail.com
2009/8/2 Tom Mende :
> Is there a way to get freebsd-update to keep userland sources up to date?
>
> I had thought that having src, world and kernel as components in the
> freebsd-update.conf file would do this but it doesn't seem to. Do I just add
> usr.bin and usr.sbin to the components list in the conf file and run
> freebsd-update or is it more complex than this? I have read the man pages on
> this but there must be a gap between my english and how the man pages are
> written because I'm obviously missing the point somewhere.
>
> By way of background, I am trying not to use csup / cvsup and like processes
> as their past, admittedly incorrect, usage by me, combined with my
> incompetent salvage operations, has hosed my systems to the point of needing
> to be reinstalled from scratch. I have been using a combination of portsnap
> and freebsd-update to keep my 7.2-RELEASE system up to date and commenced
> this at about 6.3-RELEASE and have managed to not hose the system since that
> time. It now however appears I need to have userland sources to keep
> fusefs-kmod up to date.
>
> /usr/ports/sysutils/fusefs-kmod>make install clean
> ===>  fusefs-kmod-0.3.9.p1.20080208_6 requires the userland sources to be
> installed. Set SRC_BASE if it is not in /usr/src.
> *** Error code 1
>
> Stop in /usr/ports/sysutils/fusefs-kmod.
>
> 
> .if !exists(${SRC_BASE}/sbin/mount)
> IGNORE=         requires the userland sources to be installed. Set SRC_BASE
> if it is not in /usr/src
> .endif
> 
>
> I have got around this by manually downloading the
> fusefs-kmod-0.3.9.p1.20080208_6.tbz, pkg_adding it, and then forcing the
> packages that have this pkg as a dependency to portupgrade with the -f
> option. Now portupgrade hits this pkg warning message (IGNORE msg) everytime
> it runs.
>

It sounds like you could solve this by merely downloading
and untarring the sources.  Or untarring the sources from
your CD, if you have one.

Download everything in
http://mirror.pacific.net.au/FreeBSD/releases/i386/7.2-RELEASE/src/
into a directory and issue
./install.sh all

This should work fine, even if you are running some other architecture
as the sources are the same.

-- 
--
___
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-update & userland sources

2009-08-02 Thread Tom Mende
Is there a way to get freebsd-update to keep userland sources up to  
date?


I had thought that having src, world and kernel as components in the  
freebsd-update.conf file would do this but it doesn't seem to. Do I  
just add usr.bin and usr.sbin to the components list in the conf file  
and run freebsd-update or is it more complex than this? I have read  
the man pages on this but there must be a gap between my english and  
how the man pages are written because I'm obviously missing the point  
somewhere.


By way of background, I am trying not to use csup / cvsup and like  
processes as their past, admittedly incorrect, usage by me, combined  
with my incompetent salvage operations, has hosed my systems to the  
point of needing to be reinstalled from scratch. I have been using a  
combination of portsnap and freebsd-update to keep my 7.2-RELEASE  
system up to date and commenced this at about 6.3-RELEASE and have  
managed to not hose the system since that time. It now however appears  
I need to have userland sources to keep fusefs-kmod up to date.


/usr/ports/sysutils/fusefs-kmod>make install clean
===>  fusefs-kmod-0.3.9.p1.20080208_6 requires the userland sources to  
be installed. Set SRC_BASE if it is not in /usr/src.

*** Error code 1

Stop in /usr/ports/sysutils/fusefs-kmod.


.if !exists(${SRC_BASE}/sbin/mount)
IGNORE= requires the userland sources to be installed. Set  
SRC_BASE if it is not in /usr/src

.endif


I have got around this by manually downloading the fusefs- 
kmod-0.3.9.p1.20080208_6.tbz, pkg_adding it, and then forcing the  
packages that have this pkg as a dependency to portupgrade with the -f  
option. Now portupgrade hits this pkg warning message (IGNORE msg)  
everytime it runs.


Cheers,

Tom Mende





___
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"