List Info

Thread: Sharing ports tree, possible?




Sharing ports tree, possible?
user name
2006-12-29 22:20:58
Is it possible to share ports tree directory? If so, what's
the procedure?

Simon Gao
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Sharing ports tree, possible?
user name
2006-12-29 22:55:36
In response to Simon Gao <gaoschrodinger.com>:

> Is it possible to share ports tree directory? If so,
what's the procedure?

Yes.  You generally want to set WRKDIRPREFIX to something
like /var/ports
or /usr/obj to ward off conflicts.  Otherwise, just put it
on an NFS server
an NFS mount it.

-- 
Bill Moran
Collaborative Fusion Inc.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Sharing ports tree, possible?
user name
2006-12-30 02:39:23
Bill Moran wrote:
> In response to Simon Gao <gaoschrodinger.com>:
> 
>> Is it possible to share ports tree directory? If
so, what's the procedure?
> 
> Yes.  You generally want to set WRKDIRPREFIX to
something like /var/ports
> or /usr/obj to ward off conflicts.  Otherwise, just put
it on an NFS server
> an NFS mount it.
> 
  using mount_nfs -L ?


Chris

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Sharing ports tree, possible?
user name
2006-12-30 07:13:19
Chris Whitehouse <chrischilderic.freeserve.co.uk> wrote:
>
> Bill Moran wrote:
> > In response to Simon Gao <gaoschrodinger.com>:
> > 
> >> Is it possible to share ports tree directory?
If so, what's the procedure?
> > 
> > Yes.  You generally want to set WRKDIRPREFIX to
something like /var/ports
> > or /usr/obj to ward off conflicts.  Otherwise,
just put it on an NFS server
> > an NFS mount it.
> > 
>   using mount_nfs -L ?

I'm not 100% sure if -L is required, since there shouldn't
be any locking
when you use WRKDIRPREFIX.

If you see locking problems, add it.  Actually, you can
mount /usr/ports
ro if you set WRKDIRPREFIX.  Unless you want to fetch
distfiles on the
client machines, but you can work around that as well with a
different
environment variable (name escapes me at the moment).

-Bill
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
Sharing ports tree, possible?
user name
2006-12-31 17:16:57
On Fri, Dec 29, 2006 at 02:20:58PM -0800, Simon Gao wrote:
> Is it possible to share ports tree directory? If so,
what's the procedure?

As Bill said, you need to set WRKDIRPREFIX in
/etc/make.conf; I
generally use /var/tmp/port-builds.  I also have a writeable
share that
consists of the port distfiles which is mounted at
/usr/ports/distfiles
by clients (well, it isn't really, but this will do for the
purposes of
explanation).

I also have the following symlinks in /usr/ports:

-rw-r--r--     1 root  wheel  10508970 Dec 30 13:22 INDEX
-rw-r--r--     1 root  wheel   9714237 Dec 30 13:22 INDEX-5
lrwxr-xr-x     1 root  wheel        18 Jul 18 22:22
INDEX-5.db -> /var/db/INDEX-5.db
-rw-r--r--     1 root  wheel   9715000 Dec 30 13:23 INDEX-6
lrwxr-xr-x     1 root  wheel        18 Jul 18 22:22
INDEX-6.db -> /var/db/INDEX-6.db
lrwxr-xr-x     1 root  wheel         7 Jul 18 22:20 INDEX-7
-> INDEX-6
-rw-r--r--     1 root  wheel  23674880 Nov  5 13:22
INDEX-7.db
lrwxr-xr-x     1 root  wheel        16 Jul 18 22:23 INDEX.db
-> /var/db/INDEX.db

I'm not really sure what they're for; they're definitely
there because
clients running sysutils/portupgrade expect to be able to
create them,
but there may also have been some endian issues that I ran
into when
sharing them across different architectures.  I honestly
can't remember.

Ceri
-- 
That must be wonderful!  I don't understand it at all.
                                                  --
Moliere
[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )