Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Relocating /usr/portage/distfiles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3624

PostPosted: Sat Apr 18, 2015 11:10 pm    Post subject: Relocating /usr/portage/distfiles Reply with quote

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
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Sun Apr 19, 2015 12:52 am    Post subject: Reply with quote

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
View user's profile Send private message
steveL
Watchman
Watchman


Joined: 13 Sep 2006
Posts: 5153
Location: The Peanut Gallery

PostPosted: Sun Apr 19, 2015 2:38 am    Post subject: Re: Relocating /usr/portage/distfiles Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3624

PostPosted: Sun Apr 19, 2015 11:13 am    Post subject: Reply with quote

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, :wink: )

Thks for your attention, interest & support.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum