View previous topic :: View next topic |
Author |
Message |
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3624
|
Posted: Sat Apr 18, 2015 11:10 pm Post subject: Relocating /usr/portage/distfiles |
|
|
Hi,
I'm planning to give squashmount a try on /usr/portage
But I wish to exclude /usr/portage/distfiles
My guess is only to change Code: | PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/packages" |
Is that alright enough?
Any proposal for an 'obvious' location?
Thks for your attention. |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Sun Apr 19, 2015 12:52 am Post subject: |
|
|
PORTDIR is read-only and should be the same as in /etc/portage/repos.conf/gentoo.conf
DISTDIR and PKGDIR can be set to anywhere you like.
Side note, there are squashfs images as well as delta's being made and available on the mirrors. We are finishing up a new squashdelta module for portage and should be available soon.
Look for it in app-portage/ category. It will download a full image or delta's depending on how far behind your copy is if it exists already, rebuild and re-mount it. All from an emerge --sync or emaint sync operation. _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
steveL Watchman
Joined: 13 Sep 2006 Posts: 5153 Location: The Peanut Gallery
|
Posted: Sun Apr 19, 2015 2:38 am Post subject: Re: Relocating /usr/portage/distfiles |
|
|
CaptainBlood wrote: | My guess is only to change Code: | PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/packages" |
Is that alright enough? |
The latter looks bad, as it's the standard PKGDIR location. (Personally I use: PKGDIR="/var/packages" for that.)
Quote: | Any proposal for an 'obvious' location? |
I just mount a separate partition for distfiles, but /usr/src/distfiles would seem reasonable.
As dol-sen said, you can put it anywhere, so wherever you have space really. |
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3624
|
Posted: Sun Apr 19, 2015 11:13 am Post subject: |
|
|
According to my comments I have set those because of Code: | tail -n9 /etc/portage/make.conf
# Set PORTDIR for backward compatibility with various tools:
# gentoo-bashcomp - bug #478444
# euse - bug #474574
# euses and ufed - bug #478318
PORTDIR="/usr/portage"
PKGDIR="${PORTDIR}/packages"
#DISTDIR="${PORTDIR}/distfiles"
DISTDIR="/usr/distfiles" |
Besides, I understand variable dependant coded paths should be banned. ( AFAIR I was discovering variables in /etc/portage/make.conf at that time, )
Thks for your attention, interest & support. |
|
Back to top |
|
|
|