28102
![]() |
|
|
|
|
|||||||
| Howtos & FAQs (Moderated) Would you like to share some of your solutions for certain problems? Tips or tricks? Post here. All new topics are automatically moderated. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
First, sysinstall is mostly dead. Avoid it if possible. It won't install the source distribution for you any more.
There are two ways to get the source. Okay, maybe a lot more, but only two will be covered here.
Last edited by wblock@; January 21st, 2013 at 18:10. Reason: remove csup method, update svn method |
| The Following 34 Users Say Thank You to wblock@ For This Useful Post: | ||
aragon (January 24th, 2012), asavah (June 21st, 2012), bartku (March 12th, 2012), bbzz (January 24th, 2012), big_girl (May 19th, 2012), blodan (September 5th, 2012), bthomson (March 16th, 2013), darkdevil (June 22nd, 2012), Demontager (January 2nd, 2013), drhowarddrfine (January 24th, 2012), efrat (February 26th, 2013), fdduran (April 10th, 2012), fegu (May 22nd, 2012), fonz (January 24th, 2012), gqgunhed (October 31st, 2012), hjj (October 30th, 2012), jmck (March 4th, 2013), kpa (January 24th, 2012), kriss (August 21st, 2012), lbc (October 9th, 2012), markfisher (June 29th, 2012), MindFiddler (February 25th, 2012), MNIHKLOM (November 22nd, 2012), nickednamed (September 23rd, 2012), Nukama (April 17th, 2013), paulfrottawa (April 16th, 2013), rajl (July 27th, 2012), Sabbasth (July 26th, 2012), scottro (January 13th, 2013), Sebulon (November 28th, 2012), surlyjake (February 16th, 2012), swa (April 15th, 2012), vask (June 15th, 2012), YZMSQ (February 5th, 2012) | ||
|
#3
|
|||
|
|||
|
Quote:
:p |
|
#4
|
|||
|
|||
|
If we're on the subject, I have a few follow-up questions:
|
|
#5
|
||||
|
||||
|
Currently it's method 2 but it might move to method 3 in the near future. CVS has been mostly deprecated in favor of SVN. Method 2 works on a clean base OS without any ports installed.
Quote:
Quote:
Quote:
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#6
|
||||
|
||||
|
Quote:
|
|
#7
|
|||
|
|||
|
Damn people if you have the DVD just
# mount_cd9660 /dev/acd0 /cdrom and then # tar -C / /cdrom/usr/freebsd-dist/src.txzSorry couldn't find the code button Last edited by phoenix; February 6th, 2012 at 02:41. Reason: Please format your posts! Type the tags manually! |
|
#8
|
|||
|
|||
|
Quote:
|
|
#9
|
||||
|
||||
|
Those who routinely check out src for several machines, or like to play around with different versions could consider keeping a local repository. Just set release=cvs in the supfile.
Code:
*default host=X.Y.FreeBSD.org *default base=/usr/local *default prefix=/CVS *default release=cvs *default delete use-rel-suffix compress src-all ports-all doc-all Code:
gnome:/usr# cvs -d /CVS co -r RELENG_9 src/UPDATING U src/UPDATING gnome:/usr# cvs -d /CVS co -D 1/1/2012 -r RELENG_8 src/etc/defaults/rc.conf U src/etc/defaults/rc.conf gnome:/usr#
__________________
Practical latin Amicule, deliciae, num is sum qui mentiar tibi? But dear, could I ever lie to you? Last edited by jalla; February 5th, 2012 at 14:36. Reason: fixed typo |
| The Following User Says Thank You to jalla For This Useful Post: | ||
MNIHKLOM (November 22nd, 2012) | ||
|
#10
|
|||
|
|||
|
Quote:
Generally X.0-RELENG releases of FreeBSD suck in terms of building the source system. I had to do this because I was building a fresh drive and don't want to play with it later when I need it. So no I have NO security patches because the patches to make RELENG-9.0 compile haven't somehow migrated to the csup servers. I don't think I should be making problem reports for release base system compilation failures. Perhaps STABLE will build somewhere around summertime. Last edited by DutchDaemon; February 6th, 2012 at 23:56. |
|
#12
|
|||
|
|||
|
Quote:
Code:
mount -t ufs -o union /dev/da0 /usr |
|
#13
|
|||
|
|||
|
Oh yes I threw many tarballs around for that reason alone. But back in 2001 I did a lot of builds because many of the dual-pentium machines were dodgy, so burn-ins were the stress test. No, even when I used clang exclusively this system didn't build. That's supposed to be the grail supposedly. I'm sure there are days when sup'ing the code would yield a clean build. Timing is everything. /usr/src gets a lot more buildable around subversion 2, historically.
Even worse I had an inconsistent build on a second machine. That blew my nvidia driver which was running perfectly fine on the prior machine for the last four years. As the machine is my firewall, I kept trying to DHCP a public IP from my 2wire. It was then I learned it had cloned my firewall machine identity. Now the entire LAN was down. Since there was no X11 there was no browser and hence no way to fixate the 2wire on the right identity. I browsed with other boxes and played musical clones with the 2wire for half an hour. It played wackamole that long. Finally lady luck came to my rescue and the right id gave me a public IP. Out of the matrix at last. Apparently the dumbed-down 2wire interface uses dumbed-down programming internally as well. Anyway the firewall will stay at 8.2 until -RELEASE, -STABLE or something in between ultimately builds. Must keep the faith. Last edited by DutchDaemon; February 8th, 2012 at 03:49. |
|
#14
|
|||
|
|||
|
Yo I got builds working. Turns out a sub mirror, cvsup10, has old obsolete files, likely mixed in, and was generally stale. I switched to another randomly, in my case cvsup5, and everything built nicely on STABLE9. Well, except for the wireless code, which I had to block in /etc/src.conf.
Also, I could not get the nvidia driver module working or even loading in 8.2 after I moved it to another Nvidia card. But typical for FreeBSD it came right up on STABLE9. Despite the driver from nvidia.com directly blocking FreeBSD 9 in its Makefile. Apparently the driver ONLY works on FreeBSD 9! Last edited by DutchDaemon; February 10th, 2012 at 05:34. |
|
#15
|
|||
|
|||
|
I installed src and ports from the
I tried with /usr as the default prefix in the supfile and it messed up everything. Just confused. Last edited by DutchDaemon; March 9th, 2012 at 17:57. Reason: AGAIN: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#16
|
|||
|
|||
|
You need the proper supfile for RELENG_9, /usr/share/examples/cvsup/stable-supfile. You can use it as it is if you give a hostname on the command line:
# csup -h cvsup.freebsd.org /usr/share/examples/cvsup/stable-supfileUse of the main cvsup site is not necessary of course, you can select a mirror site as well. Oh, and it's best to move the old 9.0-RELEASE sources out of the way before fetching 9-STABLE sources. Last edited by kpa; March 9th, 2012 at 13:20. |
|
#17
|
|||
|
|||
|
@kpa: Thanks.
Since I installed from the FreeBSD9-STABLE, how does it affect if I use /usr/share/examples/cvsup/stable-supfile with csup? I am asking this because the stable-supfile still defaults to RELENG_9 in the default line. Or did I miss something?Which one is the right statement in supfile for FreeBSD9-STABLE installation? Last edited by DutchDaemon; March 11th, 2012 at 01:20. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816 |
|
#18
|
|||
|
|||
|
|
|
#19
|
||||
|
||||
|
I've been using SVN since about Nov '11. SVN is so much faster than CVS. I would like to see GIT implemented for ports but that's a long way off (bringing ports into SVN structure is a greater priority). I had asked about ports on git here, but that's another issue.
My point: Recommend SVN for /src above anything else.
__________________
branch:head - root on zfs - amd64 BLUES, ELWOOD ILLINOIS LICENSE : B263-1655-2187 CURRENTLY UNDER SUSPENSION WARRANTS OUTSTANDING : PARKG. 116 MOVING VIOLATIONS : 56 ARREST DRIVER ... IMPOUND VEHICLE |
|
#20
|
|||
|
|||
|
Hi, I have a question in this context: is there any integrity checking done when I download the source with one of the above methods? Digital signatures, secure tunneling, checksums -- anything? I was told on IRC that this is not the case but I found this rather hard to believe. I mean, seriously, I am by far not one of the most paranoid people -- but mitm-attacks are nothing fancy nowadays at all. I also don't really understand the situation since I _was_ told that when I use ports with portsnap, THEN there is integrity checking done. Now, providing a more secure method for transferring ports than for the base system does not make much sense to me.
How do you guys work with this situation? Thanks a lot, mel Last edited by DutchDaemon; April 15th, 2012 at 02:15. |
|
#21
|
|||
|
|||
|
I need to cut a custom kernel.
I downloaded the source using method (3): # svn checkout svn://svn.freebsd.org/base/releng/9.0/ /usr/srcbut it downloaded everything except the bit I wanted... the process left /usr/src/sys empty. I've done something wrong obviously. Can anyone point me in the right direction? I believe it downloaded everything except "sys". |
|
#22
|
||||
|
||||
|
Try again. A fresh checkout I tried just now had sys.
|
|
#23
|
|||
|
|||
|
Same problem:
|
|
#24
|
||||
|
||||
|
Is it missing in -stable?
# svn checkout svn://svn.freebsd.org/base/stable/9 /usr/src
|
|
#25
|
|||
|
|||
|
I just downloaded stable and thankfully sys did get downloaded with it.
For my purpose I guess I can cut my kernel from stable. So that fixes my immediate issue, but it does leave the original mystery outstanding. Last edited by DutchDaemon; April 27th, 2012 at 22:59. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FreeBSD update: binary vs source | kriscom | Installing & Upgrading | 7 | January 14th, 2012 08:42 |
| How is the FreeBSD source code documented? | caesius | FreeBSD Development | 4 | October 2nd, 2010 14:57 |
| [Solved] Source for FreeBSD-9.0-CURRENT-201002-i386 | quakerdoomer | Installing & Upgrading | 4 | March 8th, 2010 16:54 |
| FreeBSD 8.0 built from source | Seeker | Installing & Upgrading | 4 | February 24th, 2010 12:25 |
| Installing programs from source to other folder | deluxwww | Installation and Maintenance of FreeBSD Ports or Packages | 4 | February 1st, 2009 13:16 |