DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th September 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Thanked 2 Times in 2 Posts
Default userland sources

I'm installing Gnome on one of my laptops running FreeBSD 7. After some time it stops with an error Userland sources required in /usr/src.

there are 2 ways of doing it.
1 through csup
2. sysinstall

1. Do I need to modify /usr/share/examples/cvsup/standard-supfile to fetch some perticular port

2. If I use sysinstall I didn't saw userland sources any where under configuration => Distribution => src. Then which sources i should select?
Reply With Quote
  #2   (View Single Post)  
Old 6th September 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

what do you have in /usr/src directory?
when i was installing gnome last time, i had only kernel sources and had no problems....
anyway, if you going to install any/all sources, i would use sysinstall and then modified cvsup to update them (if you want to)

This is my supfile, i was using to update my sources just 3 days ago
Code:
*default host=cvsup3.lv.freebsd.org
*default tag=RELENG_7_0
*default prefix=/usr
*default base=/var/db
*default release=cvs delete use-rel-suffix compress
src-all
bold lines are the ones you might want to edit

http://www.freebsd.org/doc/en/books/handbook/cvsup.html

P.S.
and why i don't want to just fetch sources with csup????
A: it's dam slow
Reply With Quote
  #3   (View Single Post)  
Old 6th September 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Thanked 40 Times in 39 Posts
Default

Note that you will need the same sources that your kernel and world are built from. Therefore, you want to add the sources from the install CD. Using csup will get you the latest sources. This means that you would need to update your system as well - Not a big problem - cd /usr/src; make buildworld buildkernel installkernel installworld; reboot should take care of it, although such a shorthand update can cause problems at times.
Getting the sources from your cd: well using sysinstall is probably the easiest. Run sysinstall, then choose a post-install configuration, find the way to add packages, then install the system and kernel sources.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #4   (View Single Post)  
Old 6th September 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Quote:
Originally Posted by robbak View Post
Note that you will need the same sources that your kernel and world are built from. Therefore, you want to add the sources from the install CD. Using csup will get you the latest sources. This means that you would need to update your system as well - Not a big problem - cd /usr/src; make buildworld buildkernel installkernel installworld; reboot should take care of it, although such a shorthand update can cause problems at times.
Getting the sources from your cd: well using sysinstall is probably the easiest. Run sysinstall, then choose a post-install configuration, find the way to add packages, then install the system and kernel sources.
Or you can use
*default tag=RELENG_7
and you will get same sources with csup as on installcd
Reply With Quote
  #5   (View Single Post)  
Old 6th September 2008
ephemera's Avatar
ephemera ephemera is offline
Knuth's homeboy
 
Join Date: Apr 2008
Posts: 537
Thanked 49 Times in 43 Posts
Default

Quote:
Originally Posted by killasmurf86 View Post
Or you can use
*default tag=RELENG_7
and you will get same sources with csup as on installcd
RELENG_7 will get you STABLE.
RELENG_7_0_0_RELEASE will get you the same source as on the install cd.
Reply With Quote
  #6   (View Single Post)  
Old 6th September 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

pardon me
Reply With Quote
  #7   (View Single Post)  
Old 6th September 2008
rex rex is offline
Real Name: Nikhil Rathod
Shell Scout
 
Join Date: May 2008
Location: Chicago
Posts: 114
Thanked 2 Times in 2 Posts
Default

Thanks to you all, now the installation of gnome is done and I've custom compiled my kernel for sound support, now I wont be needing the source files for some time and would like to remove them as they are taking quiet some space on my 40 Gig HD .

So can I recursively delete entire contents of my /usr/src directory or should take care for some important configuration or makefiles. I've copied my custom kernel configuration to /root/ directory.
Reply With Quote
  #8   (View Single Post)  
Old 6th September 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

copy your kernel configuration.... rest is not important as far as i know
Reply With Quote
  #9   (View Single Post)  
Old 8th September 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Quote:
Originally Posted by rex View Post
Thanks to you all, now the installation of gnome is done and I've custom compiled my kernel for sound support, now I wont be needing the source files for some time and would like to remove them as they are taking quiet some space on my 40 Gig HD .
~0.5 GB is a lot? That's less than an 80th (or 0.125%) of your drive space.

Quote:
So can I recursively delete entire contents of my /usr/src directory or should take care for some important configuration or makefiles. I've copied my custom kernel configuration to /root/ directory.
Sure, but then you'll have to re-download them anytime you want to edit the kernel config, or update the system, or update GNOME, and so on. What's more important to you: half a gig of drive space, or X minutes of time redoing things everytime?
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
*BSDs command reference for updating sources, recompiling, installing packages etc. s0xxx Guides 18 7th May 2009 02:14 PM
fusefs-kmod: requires the userland sources to be installed? zelut FreeBSD Ports and Packages 2 7th October 2008 10:39 PM
building userland fails after upgrade to 7.0 padmanabh FreeBSD Installation and Upgrading 10 22nd July 2008 05:18 AM
a tour through UNIX sources Oliver_H Off-Topic 2 25th June 2008 08:37 PM
Apache administrative sources? spiderpig General software and network 3 20th May 2008 05:28 PM


All times are GMT. The time now is 12:35 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick