Bug 200855 - freebsd-update - update of non existing /usr/src
Summary: freebsd-update - update of non existing /usr/src
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.1-RELEASE
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-14 18:25 UTC by dmilith
Modified: 2015-07-18 16:57 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dmilith 2015-06-14 18:25:18 UTC
On many workstations /usr/src doesn't exists but freebsd-update probably can't create his dirs, which causes update to be "available" over and over again. I have no idea if patching /usr/src is desired behaviour at all (?).

Here's log on my machines: 


ng0b ~ # freebsd-update fetch install
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching metadata signature for 10.1-RELEASE from update4.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be added as part of updating to 10.1-RELEASE-p12:
/usr/src/contrib/file/magic/Magdir/kerberos
/usr/src/contrib/file/magic/Magdir/meteorological
/usr/src/contrib/file/magic/Magdir/qt
/usr/src/crypto/openssl/util/mkbuildinf.pl
Installing updates...install: ///usr/src/contrib/file/magic/Magdir/kerberos: No such file or directory
install: ///usr/src/contrib/file/magic/Magdir/meteorological: No such file or directory
install: ///usr/src/contrib/file/magic/Magdir/qt: No such file or directory
install: ///usr/src/crypto/openssl/util/mkbuildinf.pl: No such file or directory
 done.
Comment 1 dmilith 2015-06-14 18:27:30 UTC
Allright. I just discovered man freebsd-update.conf ;)
Comment 2 mark 2015-07-18 16:52:51 UTC
I am also getting this error. Why was the bug closed fixed? Did you change something? 

I uncommented AllowAdd yes and AllowDelete yes
in /etc/freebsd-update.conf and re-ran fetch ... install
but nothing changed.
Comment 3 mark 2015-07-18 16:57:07 UTC
TWIMC: the "fix" here seems to be remove src from the Components line in freebsd-update.conf

After doing so I get this result, running it on 10.1-RELEASE-p10 
mdf@dogma:~>sudo /usr/sbin/freebsd-update fetch
Looking up update.FreeBSD.org mirrors... none found.
Fetching metadata signature for 10.1-RELEASE from update.FreeBSD.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 10.1-RELEASE-p14.