* [gentoo-dev] Multiple DISTDIR
@ 2003-05-17 22:07 Kurt V. Hindenburg
2003-05-17 22:48 ` Robin H.Johnson
2003-05-18 7:54 ` Amiel Martin
0 siblings, 2 replies; 5+ messages in thread
From: Kurt V. Hindenburg @ 2003-05-17 22:07 UTC (permalink / raw
To: gentoo-dev
I've patch portage.py (VERSION="2.0.47-r10") and ebuild.sh to use a
new variable in make.conf. The new variable is DISTDIRS="directory1
directory2 etc".
The purpose of this is to allow people to have distfiles in multiple
locations (ie. cdrom, nfs, etc).
What happens:
1. Look in DISTDIR for files (as normal)
2. If not found, traverse through all directories in DISTDIRS looking
for files.
3. Set a new environment variable (DDIR) pointing to correct directory
holding the files.
4. ebuild.sh will use DDIR if set instead of DISTDIR.
Notes:
1. I couldn't really figure out what the envirnoment variables A and
AA were meant for.
2. I thought it best to avoid messing with the envirnoment variable
DISTDIR to avoid confusion/problems (hence the new DDIR).
3. How can I get the latest cvs copy of portage as I would assume
people would want a diff against that.
This will need further testing/fixing as I've only spent a few hours
on it and I'm a non-python user.
Anyone doing something like this or anyone have any comments?
Kurt
---
There is no good and evil; there is only power.
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Multiple DISTDIR
2003-05-17 22:07 [gentoo-dev] Multiple DISTDIR Kurt V. Hindenburg
@ 2003-05-17 22:48 ` Robin H.Johnson
2003-05-18 5:08 ` Georgi Georgiev
2003-05-18 7:54 ` Amiel Martin
1 sibling, 1 reply; 5+ messages in thread
From: Robin H.Johnson @ 2003-05-17 22:48 UTC (permalink / raw
To: Kurt V. Hindenburg; +Cc: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1670 bytes --]
On Sat, May 17, 2003 at 05:07:44PM -0500, Kurt V. Hindenburg wrote:
> What happens:
> 1. Look in DISTDIR for files (as normal)
> 2. If not found, traverse through all directories in DISTDIRS looking
> for files.
> 3. Set a new environment variable (DDIR) pointing to correct directory
> holding the files.
> 4. ebuild.sh will use DDIR if set instead of DISTDIR.
This seems to be a kludge. What if a package requires multiple source
files that are in different DISTDIRs? Does that work?
One further this with this. Which DISTDIR is used for live CVS ebuilds
(that checkout to $DISTDIR/cvs-src)
> Notes:
> 1. I couldn't really figure out what the envirnoment variables A and
> AA were meant for.
I believe 'A' is a list of all new SRC_URIs, and AA is a list of ALL
SRC_URIs. I may be wrong tho, that was from quite a while ago that I dug
into portage.
> 3. How can I get the latest cvs copy of portage as I would assume
> people would want a diff against that.
http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-src/portage/
> This will need further testing/fixing as I've only spent a few hours
> on it and I'm a non-python user.
>
> Anyone doing something like this or anyone have any comments?
See this bug:
http://bugs.gentoo.org/show_bug.cgi?id=10803
I think being able to have multiple DISTDIRS is a very good move, I was
wanting previously in Portage, but I never got around to coding it up.
--
Robin Hugh Johnson
E-Mail : robbat2@orbis-terrarum.net
Home Page : http://www.orbis-terrarum.net/?l=people.robbat2
ICQ# : 30269588 or 41961639
GnuPG FP : 11AC BA4F 4778 E3F6 E4ED F38E B27B 944E 3488 4E85
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Multiple DISTDIR
2003-05-17 22:48 ` Robin H.Johnson
@ 2003-05-18 5:08 ` Georgi Georgiev
2003-05-18 5:18 ` Jon Portnoy
0 siblings, 1 reply; 5+ messages in thread
From: Georgi Georgiev @ 2003-05-18 5:08 UTC (permalink / raw
To: Kurt V. Hindenburg, gentoo-dev
On Sat, May 17, 2003 at 03:48:47PM -0700, Robin H. Johnson wrote:
> > 3. How can I get the latest cvs copy of portage as I would assume
> > people would want a diff against that.
> http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-src/portage/
The CVS web interface is not very nice to use. Isn't there anonymous cvs access
anymore? A few days ago I wanted to checkout "cd-tools", because I wanted to use
it as the base for a recovery CD I wanted to build myself but seems it wouldn't
be possible.
--
/^^^^^^^^^^^^^^^^^^^^^^^^^^^\/^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\
/ Georgi Georgiev (-< / A black cat crossing your path \
\ chutz@chubaka.net /\ .o)\ signifies that the animal is /
/ +81(90)6266-1163 V_/_ |(/)/ going somewhere. -- Groucho Marx \
\___________________________/\__________________________________/
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Multiple DISTDIR
2003-05-18 5:08 ` Georgi Georgiev
@ 2003-05-18 5:18 ` Jon Portnoy
0 siblings, 0 replies; 5+ messages in thread
From: Jon Portnoy @ 2003-05-18 5:18 UTC (permalink / raw
To: gentoo-dev
On Sun, May 18, 2003 at 02:08:57PM +0900, Georgi Georgiev wrote:
> On Sat, May 17, 2003 at 03:48:47PM -0700, Robin H. Johnson wrote:
> > > 3. How can I get the latest cvs copy of portage as I would assume
> > > people would want a diff against that.
> > http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-src/portage/
>
> The CVS web interface is not very nice to use. Isn't there anonymous cvs access
> anymore? A few days ago I wanted to checkout "cd-tools", because I wanted to use
> it as the base for a recovery CD I wanted to build myself but seems it wouldn't
> be possible.
>
We don't have the physical resources to be able to provide anon cvs,
unfortunately.
--
Jon Portnoy
avenj/irc.freenode.net
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-dev] Multiple DISTDIR
2003-05-17 22:07 [gentoo-dev] Multiple DISTDIR Kurt V. Hindenburg
2003-05-17 22:48 ` Robin H.Johnson
@ 2003-05-18 7:54 ` Amiel Martin
1 sibling, 0 replies; 5+ messages in thread
From: Amiel Martin @ 2003-05-18 7:54 UTC (permalink / raw
To: Kurt V. Hindenburg; +Cc: gentoo-dev
comments? great idea
-AMiel
On Sat, 17 May 2003, Kurt V. Hindenburg wrote:
I've patch portage.py (VERSION="2.0.47-r10") and ebuild.sh to use a
new variable in make.conf. The new variable is DISTDIRS="directory1
directory2 etc".
The purpose of this is to allow people to have distfiles in multiple
locations (ie. cdrom, nfs, etc).
What happens:
1. Look in DISTDIR for files (as normal)
2. If not found, traverse through all directories in DISTDIRS looking
for files.
3. Set a new environment variable (DDIR) pointing to correct directory
holding the files.
4. ebuild.sh will use DDIR if set instead of DISTDIR.
Notes:
1. I couldn't really figure out what the envirnoment variables A and
AA were meant for.
2. I thought it best to avoid messing with the envirnoment variable
DISTDIR to avoid confusion/problems (hence the new DDIR).
3. How can I get the latest cvs copy of portage as I would assume
people would want a diff against that.
This will need further testing/fixing as I've only spent a few hours
on it and I'm a non-python user.
Anyone doing something like this or anyone have any comments?
Kurt
---
There is no good and evil; there is only power.
--
gentoo-dev@gentoo.org mailing list
--
gentoo-dev@gentoo.org mailing list
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-05-18 7:54 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-17 22:07 [gentoo-dev] Multiple DISTDIR Kurt V. Hindenburg
2003-05-17 22:48 ` Robin H.Johnson
2003-05-18 5:08 ` Georgi Georgiev
2003-05-18 5:18 ` Jon Portnoy
2003-05-18 7:54 ` Amiel Martin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox