pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: What does the "WRKOBJDIR" variable do?



Thank you Klaus. :)

If that is not possible or undesirable (pkgsrc tree shared read-only over
NFS is the most common case) a directory where you can create work
directories is needed, so just define

  WRKOBJDIR=/somewhere/else/pkgsrc-obj

in your /etc/mk.conf and the directory where the source is extracted and
other files can be created will be

  /somewhere/else/pkgsrc-obj/mail/spamassassin/work


What happens if I define "WRKDIR=/somewhere/else/pkgsrc-obj"? I was
under the impression setting WRKDIR to "/somewhere/else/pkgsrc-obj" is
what will have the source extracted and other files created in
"/somewhere/else/pkgsrc-obj/mail/spamassassin/work". Turns out I might
have understood it wrong ...

If WRKOBJDIR is defined and your pkgsrc tree is writable you get a
symbolic link to the actual WRKDIR.

Assuming "WRKOBJDIR=/somewhere/else/pkgsrc-obj" and pkgsrc tree is
writeable, then "/somewhere/else/pkgsrc-obj/mail/spamassassin/work/"
will be a symbolic link to "/path/to/pkgsrc/mail/spamassassin/work/"
eh? So if pkgsrc is writeable, then there's no real advantage of
setting WRKOBJDIR ...

Rakhesh

--
        NetBSD/i386 3.0 | Bluewall GNU/ Linux 1.2.2 | Toshiba Satellite L10-102
        http://search.gmane.org/?query=&group=gmane.os.netbsd.* (netbsd 
archives)
        http://man.netbsd.org/ (netbsd manpages)



Home | Main Index | Thread Index | Old Index