Note: You are viewing an old version of this page. View the current version.

Differences between version 3 and previous revision of KnowledgeBase/FreeBSD/CentralSources.

Other diffs: Previous Major Revision, Previous Author

Newer page: version 3 Last edited on Sunday, 10 January 2010 12:50:34 by CyberLeo Revert
Older page: version 2 Last edited on Sunday, 10 January 2010 12:49:17 by CyberLeo Revert
@@ -1,29 +1,29 @@
 !!! NOTICE: 
 The FreeBSD world/kernel build process seems to dislike having its sources mounted via smbfs. If you witness strange errors or compiler crashes, and they're not due to the samba connection timing out, then you may have to copy the sources locally before building. A pain, I know. 
  
 Commands: 
-<verbatim
+<code
 mkdir /mnt/src 
 mount -t smbfs //guest@server/src /mnt/src 
 mount -t nullfs /mnt/src/FreeBSD/RELENG_8_0/src /usr/src 
 mount -t nullfs /mnt/src/FreeBSD/ports /usr/ports 
 mkdir -p /var/ports/distfiles 
-</verbatim
+</code
  
 fstab: 
-<verbatim
+<code
 //guest@alba/src /mnt/src smbfs ro 0 0 
 /mnt/src/FreeBSD/RELENG_8_0/src /usr/src nullfs ro 0 0 
 /mnt/src/FreeBSD/ports /usr/ports nullfs ro 0 0 
-</verbatim
+</code
  
 Ports really loves building things in-tree. Doesn't really work with a read-only ports tree. 
  
 make.conf: 
-<verbatim
+<code
 # Read-only ports tree 
 DISTDIR=/var/ports/distfiles 
 WRKDIRPREFIX=/usr/obj 
-</verbatim
+</code
  
 Workdir will be ${WRDKIRPREFIX}/${PWD}/work, so /usr/obj/usr/ports/sysutils/screen/work/ for sysutils/screen. Won't interfere with buildworld/buildkernel this way. 

version 3

NOTICE:

The FreeBSD world/kernel build process seems to dislike having its sources mounted via smbfs. If you witness strange errors or compiler crashes, and they're not due to the samba connection timing out, then you may have to copy the sources locally before building. A pain, I know.

Commands:

mkdir /mnt/src
mount -t smbfs //guest@server/src /mnt/src
mount -t nullfs /mnt/src/FreeBSD/RELENG_8_0/src /usr/src
mount -t nullfs /mnt/src/FreeBSD/ports /usr/ports
mkdir -p /var/ports/distfiles

fstab:

//guest@alba/src                /mnt/src        smbfs   ro      0 0
/mnt/src/FreeBSD/RELENG_8_0/src /usr/src        nullfs  ro      0 0
/mnt/src/FreeBSD/ports          /usr/ports      nullfs  ro      0 0

Ports really loves building things in-tree. Doesn't really work with a read-only ports tree.

make.conf:

# Read-only ports tree
DISTDIR=/var/ports/distfiles
WRKDIRPREFIX=/usr/obj

Workdir will be ${WRDKIRPREFIX}/${PWD}/work, so /usr/obj/usr/ports/sysutils/screen/work/ for sysutils/screen. Won't interfere with buildworld/buildkernel this way.