Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27669 - Patches to allow multiple DISTDIRs
Summary: Patches to allow multiple DISTDIRs
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-31 15:19 UTC by Kurt Hindenburg
Modified: 2011-10-30 22:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to allow multiple DISTDIRs (portage.py-2.0.49-r2-01.diff,5.09 KB, patch)
2003-08-31 15:22 UTC, Kurt Hindenburg
Details | Diff
A complete patch for 2.0.49-r2 (portage.py-2.0.49-r2-02.diff,7.20 KB, patch)
2003-08-31 16:29 UTC, Kurt Hindenburg
Details | Diff
A correct diff for 2.0.49-r3 (portage.py-2.0.49-r3-02.diff,7.37 KB, patch)
2003-10-07 21:46 UTC, Kurt Hindenburg
Details | Diff
Diff for portage-2.0.49-r9 (portage.py-2.0.49-r9-01.diff,7.38 KB, patch)
2003-10-07 22:52 UTC, Kurt Hindenburg
Details | Diff
Diff for 2.0.49-r13 (portage.py-2.0.49-r13-01.diff,8.16 KB, patch)
2003-10-21 10:18 UTC, Kurt Hindenburg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kurt Hindenburg 2003-08-31 15:19:58 UTC
I've been working on this for sometime.  With the release of the new
portage-2.0.49-r2, I thought I would fill out a bug report to see what comments
there are about what I'm doing.
Basically, I added a new variable to /etc/make.conf called DISTDIRS (ie
DISTDIRS="/mnt/cdrw:/mnt/cdr")

It still needs work...

http://www.cherrynebula.net/projects/gentoo/gentoo.html
Comment 1 Kurt Hindenburg 2003-08-31 15:22:36 UTC
Created attachment 16870 [details, diff]
Patch to allow multiple DISTDIRs

My portage.py-2.0.48-r5-05.diff didn't apply cleanly, but this patch appears to
work with the new portage version 2.0.49-r2.
Comment 2 Kurt Hindenburg 2003-08-31 16:29:50 UTC
Created attachment 16875 [details, diff]
A complete patch for 2.0.49-r2

Whoa, I need to sharpen my CVS skills...this patch actually works.
Comment 3 Kurt Hindenburg 2003-09-27 15:04:51 UTC
If this is obsolete, how do you handle mulitple distdirs with portage-2.0.49-r3?
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2003-10-07 12:19:14 UTC
Who said it is obsolete ? Could you redo your patch for -r9 and make it non-reverse
(IMO reverse patches are hard to read) ?
Comment 5 Kurt Hindenburg 2003-10-07 21:45:29 UTC
Argh, I got an email from bugs.gentoo.org saying "this is obsolete"  I thought
it was for this bug...

Sorry about the reverse patch, the correct on is on my website :
www.cherrynebula.net

I just downloaded -r9. I'll give it a shot.

Comment 6 Kurt Hindenburg 2003-10-07 21:46:38 UTC
Created attachment 18929 [details, diff]
A correct diff for 2.0.49-r3
Comment 7 Kurt Hindenburg 2003-10-07 21:48:57 UTC
On another note, I've noticed some odd behavior at times when emerging things.
 I think the logic for resuming/check md5 in my patches need some looking
at.
Comment 8 Kurt Hindenburg 2003-10-07 22:52:08 UTC
Created attachment 18931 [details, diff]
Diff for portage-2.0.49-r9

This should apply cleanly.  It is basically the -r3 patch.  I did a few emerges
(vim, mplayer) to quickly check to verify it works.
Comment 9 Kurt Hindenburg 2003-10-21 10:18:14 UTC
Created attachment 19594 [details, diff]
Diff for 2.0.49-r13
Comment 10 Nicholas Jones (RETIRED) gentoo-dev 2003-12-24 18:14:37 UTC
Local file mirrors added... GENTOO_MIRRORS can be a path.
Comment 11 Kurt Hindenburg 2004-01-08 22:38:28 UTC
Great.  And how do you use GENTOO_MIRRORS?  Even a google didnt' find anything.

Putting a 'file://' returns a 'Unsupported scheme.'  

what would you use for a CD in /mnt/cdrw?

Comment 12 Kurt Hindenburg 2004-01-20 12:55:25 UTC
After some looking, it appears that GENTOO_MIRRORS can use http:// or ftp://.  This is fine if you want to setup a FTP or HTTP server.  I personally don't want to setup a server just to read a CD-ROM.  Anyway, go ahead and close this bug; I'm not going to hack on it anymore.

More info:
http://forums.gentoo.org/viewtopic.php?t=59134
Comment 13 SpanKY gentoo-dev 2004-01-20 14:50:38 UTC
GENTOO_MIRRORS doesnt 'support' anything ...

whatever your FETCHCOMMAND supports, GENTOO_MIRRORS 'supports'
Comment 14 Marius Mauch (RETIRED) gentoo-dev 2004-01-20 15:11:33 UTC
to use /mnt/cdrom as a "mirror":
GENTOO_MIRRORS="/mnt/cdrom"
it's a special case handled by portage
Comment 15 Kurt Hindenburg 2004-01-21 09:12:52 UTC
What version of portage do you need for this to work?

In /etc/make.conf:
GENTOO_MIRRORS="/mnt/cdrom"

% ls -l /mnt/cdrom/tcl8.3.4.tar.gz
-r--r--r--    1 root     root      2654756 May 11  2003 /mnt/cdrom/tcl8.3.4.tar.gz

% sudo emerge tk -f
Calculating dependencies ...done!
>>> emerge (1 of 2) dev-lang/tcl-8.3.4 to /
>>> Downloading /mnt/cdrom/distfiles/tcl8.3.4.tar.gz
/mnt/cdrom/distfiles/tcl8.3.4.tar.gz: Unsupported scheme.
>>> Downloading ftp://ftp.scriptics.com/pub/tcl/tcl8_3/tcl8.3.4.tar.gz
--12:07:57--  ftp://ftp.scriptics.com/pub/tcl/tcl8_3/tcl8.3.4.tar.gz
           => `/usr/portage/distfiles/tcl8.3.4.tar.gz'
Resolving ftp.scriptics.com... 209.17.179.230

% emerge --info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.6.1)

If this is documented somewhere point me in the direction.
Comment 16 Marius Mauch (RETIRED) gentoo-dev 2004-01-21 09:30:24 UTC
According to the Changelog it was included in 2.0.49-r17 and it works here with 2.0.50_pre16:

# GENTOO_MIRRORS=/usr/portage/distfiles DISTDIR=/tmp emerge -f gcc
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-devel/gcc-3.2.3-r3 to /
Local mirror has file: gcc-3.2.3.tar.bz2
Local mirror has file: protector-3.2.2-10.tar.gz
Local mirror has file: gcc-3.2.3-manpages.tar.bz2
Local mirror has file: gcc-3.2.3-tls-update.patch.bz2
Comment 17 Kurt Hindenburg 2004-01-21 09:48:19 UTC
It doesn't work with 2.0.49-r17 and 2.0.50_pre16 hosted my system with errors.

Recalculating the counter... FAILED to update counter.
!!! This is a problem.
>>> Clearing invalid entries in dependency cache...Traceback (most recent call last):
  File "<string>", line 1, in ?
  File "/usr/lib/portage/pym/portage.py", line 6264, in ?
    for y in db["/"]["porttree"].dbapi.xmatch("match-all", x):
  File "/usr/lib/portage/pym/portage.py", line 4592, in xmatch
    myval=match_from_list(mydep,self.cp_list(mykey))
  File "/usr/lib/portage/pym/portage.py", line 3258, in match_from_list
    raise KeyError, "Specific key requires an operator (%s)" % (mydep)
KeyError: Specific key requires an operator (kde-base/kdelibs-3.2.0_alpha1)
cat: /tmp/auxdbkl: No such file or directory



Even etc-update doesn't work now... time to downgrade if I can.