Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560518 - dev-util/catalyst: Create /etc/portage/repos.conf/gentoo.conf in stages
Summary: dev-util/catalyst: Create /etc/portage/repos.conf/gentoo.conf in stages
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Stages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Catalyst Developers
: 572192 (view as bug list)
Depends on:
Reported: 2015-09-15 08:48 UTC by Neil
Modified: 2019-11-04 03:55 UTC (History)
5 users (show)

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

catalyst-repos.conf.patch (catalyst-repos.conf.patch,2.86 KB, patch)
2015-12-09 06:36 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff
patch review (catalyst-repos.conf.patch,3.51 KB, patch)
2015-12-26 01:10 UTC, Brian Dolbec
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Neil 2015-09-15 08:48:54 UTC
Doing a fresh install and /etc/portage/repos.conf/gentoo.conf is missing.

This means that someone following the handbook (as per Wiki will perform...

mirrorselect -i -r -o >> /mnt/gentoo/etc/portage/make.conf

...but portage then reports...

!!! SYNC setting found in make.conf.
    This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf

Reproducible: Always

Steps to Reproduce:
1. Perform a fresh install as per AMD64 Handbook
2. After (optionally) setting an rsync mirror try emerging any package

Actual Results:  
!!! SYNC setting found in make.conf.
    This setting is Deprecated and no longer used.  Please ensure your 'sync-type' and 'sync-uri' are set correctly in /etc/portage/repos.conf/gentoo.conf

Expected Results:  
Sync server should be specified in /etc/portage/repos.conf/gentoo.conf

Documentation/handbook should reflect this too.

Current solution is (in a chroot'd environment)...

mkdir /etc/portage/repos.conf && touch /etc/portage/repos.conf/gentoo.conf

Then edit /etc/portage/repos.conf/gentoo.conf with a minimum...

main-repo = gentoo

location = /usr/portage
sync-type = rsync
sync-uri = rsync://

...users could be advised to modify 'sync-uri' to a local mirror.
Comment 1 charles17 2015-09-17 06:43:56 UTC
Comment 2 Arfrever Frehtes Taifersar Arahesis 2015-12-09 06:36:11 UTC
Created attachment 418818 [details, diff]

I attach untested patch for master branch of Catalyst.
Comment 3 Brian Dolbec gentoo-dev 2015-12-26 01:10:27 UTC
Created attachment 420854 [details, diff]
patch review

I've gotten this one reviewed.   Mostly good, just a couple things to fix.

Thank you
Comment 4 Jorge Manuel B. S. Vicetto Gentoo Infrastructure gentoo-dev 2017-02-06 21:56:34 UTC
*** Bug 572192 has been marked as a duplicate of this bug. ***
Comment 5 charles17 2019-11-03 15:37:55 UTC
This bug should be closed.  
For wrong behavior of mirrorselect --rsync there is bug 699232.  

Also, the recommendation for changing the rsync mirror could be changed to using "eselect repository" instead of "mirrorselect --rsync":

touch /etc/portage/repos.conf
eselect repository add gentoo rsync <rsync-uri>
Comment 6 Arfrever Frehtes Taifersar Arahesis 2019-11-04 03:55:01 UTC
Problem is still present in newest stages (e.g. stage3-amd64-20191103T214502Z.tar.xz):
  etc/portage/make.conf contains deprecated PORTDIR=... assignment.
  etc/portage/repos.conf is missing.