On Thu, Aug 28, 2008 at 11:25:42AM -0600, macintoshzoom wrote:
> I got out of space running make update on /usr/ports/x11/kde .
>
> And I have partitioned 14.4G for /usr ( /dev/wd0g )!
>
> I found about 1,7GB packages in /usr/ports/packages/i386, and the same
> ones in the all, ftp, cdrom folders plus many ones at cache folder.
> Plus another copy at the PKG_CACHE specified below.
>
> What I'm doing wrong?
A lot of things.
First, you miscount packages (look at links).
> My /root/.profile has:
>
> PKG_CACHE=/home/xxxxx/xxxx/4.3/packages-snapshots
> export PKG_CACHE
>
> FETCH_PACKAGES=yes
> export FETCH_PACKAGES
>
> I thought that when setting FETCH_PACKAGES=yes was to the folder I
> specify above with PKG_CACHE, not in /usr/ports/packages/ where I didn't
> have enough space for them, worst if they duplicate-triplicate in a
> nosense behavior. A link should do the work.
Nope, PKG_CACHE is internal to pkg_add, and documented if you want to use
manually, but the ports system has its own consistency...
The way FETCH_PACKAGES works is documented in detail in bsd.port.mk(5),
you will learn it fetches stuff under
${PACKAGE_REPOSITORY}/${MACHINE_ARCH}/cache,
so you can tweak PACKAGE_REPOSITORY to get things where you want them...
> Besides this, do I really need at all FETCH_PACKAGES=yes?
If you use it properly, FETCH_PACKAGES will avoid a lot of builds.
You probably want to set BULK=Yes so that build directories do not stay around.
You're not saying at all what you have in /etc/mk.conf
And the fact you're quoting from your root profile means you might be doing
some things wrong...