First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 201511
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage Utilities Team <tools-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Guenther Brunthaler <gb_about_gnu@gmx.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
retain_mounted_filesystems.patch mirrorselect patch to retain mounted filesystems patch Mike Pagano 2007-12-21 00:16 0000 2.18 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 201511 depends on: Show dependency tree
Bug 201511 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-12-06 19:43 0000
$GENTOO_MIRRORS in /etc/make.conf is allowed to contain local filesystem paths.

Unfortunately, mirrorselect removes such paths, requiring the admin to manually
re-insert those paths into GENTOO_MIRRORS after mirrorselect has been run.

Reproducible: Always

Steps to Reproduce:
1. Prefix GENTOO_MIRRORS with something like "/usr/local/portage/distfiles "
2. Run "mirrorselect".


Actual Results:  
The prefix is lost.

Expected Results:  
All leading GENTOO_MIRRORS entries which do not look like some URI syntax
should be retained.

When writing private ebuilds in an overlay for the local host only, it is
common to add a directory like /usr/local/portage/distfiles before the first
mirror listed in $GENTOO_MIRRORS.

Unfortunately, mirrorselect removes such entries, and so the admin has to
manually re-insert them.

I would suggest parsing the old $GENTOO_MIRRORS value, split it into words and
remember all such leading words which start with a slash (and are therefore
local paths).

Then mirrorselect should do what it does now. But before writing back the newly
detected GENTOO_MIRRORS, the saved paths should be inserted before the first
actual mirror.

------- Comment #1 From Mike Pagano 2007-12-21 00:16:28 0000 -------
Created an attachment (id=139002) [edit]
mirrorselect patch to retain mounted filesystems

Here's a patch providing a potential fix. Comments and testing are welcome. You
can apply the patch via:

patch -p0 < /path/to/retain_mounted_filesystems.patch 

in a directory where mirrorselect is.

Please back up /etc/make.conf first!

------- Comment #2 From Guenther Brunthaler 2007-12-21 08:48:40 0000 -------
(In reply to comment #1)
> Here's a patch providing a potential fix. Comments and testing are welcome.

Well done - works like a charm! :-)

------- Comment #3 From Mike Pagano 2007-12-21 19:06:45 0000 -------
fixed in mirrorselect 1.3

------- Comment #4 From Mike Pagano 2007-12-21 19:09:32 0000 -------
closing

First Last Prev Next    No search results available      Search page      Enter new bug