Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] /etc/portage/repos.conf/gentoo.conf is missing

244 views
Skip to first unread message

Mick

unread,
Apr 25, 2015, 6:00:04 AM4/25/15
to
Are we meant to create the above file manually?

This box is running sys-apps/portage-2.2.18 but I was surprised to see that it
doesn't have a gentoo.conf file.

--
Regards,
Mick
signature.asc

Dale

unread,
Apr 25, 2015, 6:10:03 AM4/25/15
to
Mick wrote:
> Are we meant to create the above file manually?
>
> This box is running sys-apps/portage-2.2.18 but I was surprised to see that it
> doesn't have a gentoo.conf file.
>


I use the latest, excluding 9999 version, of portage and I have it here.  I didn't create it so I assume it was installed during a upgrade.  This is the contents of the file if you need it.


[DEFAULT]
main-repo = gentoo

[gentoo]
location = /var/cache/portage/tree
sync-type = rsync
sync-uri = rsync://rsync.us.gentoo.org/gentoo-portage


Hope that helps.

Dale

:-)  :-)

Mick

unread,
Apr 25, 2015, 6:30:03 AM4/25/15
to
Thanks Dale, I just upgraded two boxen to sys-apps/portage-2.2.18 and both are
complaining thus:
====================================
!!! 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
====================================

I recall reading "New portage plug-in sync system" in eselect news, but it
doesn't mention creating such files manually:

"Migration:
Edit /etc/portage/repos.conf/*.conf files, add the auto-sync option
to each repository definition."

--
Regards,
Mick
signature.asc

Alexander Kapshuk

unread,
Apr 25, 2015, 8:00:04 AM4/25/15
to
The setting referred to in the message above is the SYNC variable defined in /etc/portage/make.conf.

With the sync url now defined in /etc/portage/repos.conf/gentoo.conf, you either want to comment out the line in /etc/portage/make.conf where SYNC is defined, or get rid of it all together. For the time being, I chose the former.

grep uri /etc/portage/repos.conf/gentoo.conf
sync-uri = rsync://rsync.uk.gentoo.org/gentoo-portage
% grep SYNC /etc/portage/make.conf
#SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"

Mick

unread,
Apr 25, 2015, 8:50:04 AM4/25/15
to
Thanks Alexander, I will be adding the sync-uri line in
/etc/portage/repos.conf/gentoo.conf once I know for sure if I should be
creating this file myself, or if portage ought to have created and for some
reason hasn't.

On another box of mine the file exists, but I can't recall if I created it
myself or portage did it for me. :-/

--
Regards,
Mick
signature.asc

Alexander Kapshuk

unread,
Apr 25, 2015, 9:10:03 AM4/25/15
to
The portage news item makes a reference to the wiki article on the subject matter:
eselect news read 21 | grep wiki
        Please see the wiki page url [1] for detailed instructions.
examples see the wiki page listed below [1].
[1] https://wiki.gentoo.org/wiki/Project:Portage/Sync

The 'Migration' section states that:
If /etc/portage/repos.conf does not exist:
root # mkdir /etc/portage/repos.conf
root # cp /usr/share/portage/config/repos.conf /etc/portage/repos.conf/gentoo.conf

Which is what I did on one of my systems, while on the other, '/etc/portage/repos.conf/gentoo.conf' seems to have come into being without any interference on my part, so to speak.



Mick

unread,
Apr 25, 2015, 12:00:03 PM4/25/15
to
Ahh! Well spotted. Thank you Alexander. The mystery as to why some systems
were converted and others require manual intervention remains ...

--
Regards,
Mick
signature.asc

Alexander Kapshuk

unread,
Apr 25, 2015, 12:30:03 PM4/25/15
to
No worries. There is bound to be some one on this list who will shed light on this mystery.

»Q«

unread,
Apr 25, 2015, 1:20:03 PM4/25/15
to
I made the transition manually the other day. I guess I might as well
toss into this thread a couple of minor roadbumps I hit.

The filename gentoo doesn't matter to portage AFAICT, but it
does matter to other tools, e.g. mirrorselect, so use gentoo.conf.

<https://wiki.gentoo.org/wiki/Layman#Using_.27repos.conf.27_method_.28default_method_for_app-portage.2Flayman-2.1.0_or_later_.29>
says `layman-updater -R` will update repos.conf/layman.conf as long as
you have >=layman-2.1.0, but with layman-2.1.0-r3, I couldn't get it to
work. I moved to layman-2.3.0 and it created the file fine.

Alan McKinnon

unread,
Apr 26, 2015, 4:00:03 AM4/26/15
to
On 25/04/2015 11:51, Mick wrote:
> Are we meant to create the above file manually?
>
> This box is running sys-apps/portage-2.2.18 but I was surprised to see that it
> doesn't have a gentoo.conf file.
>



Read the latest news item



--
Alan McKinnon
alan.m...@gmail.com

Mick

unread,
Apr 26, 2015, 4:20:03 AM4/26/15
to
On Sunday 26 Apr 2015 08:50:34 Alan McKinnon wrote:
> On 25/04/2015 11:51, Mick wrote:
> > Are we meant to create the above file manually?
> >
> > This box is running sys-apps/portage-2.2.18 but I was surprised to see
> > that it doesn't have a gentoo.conf file.
>
> Read the latest news item

I did read the news item, but my surprise is that on some systems of mine the
file was created on its own (it seems) and on others it wasn't. My memory is
not what it used to be, so I couldn't be certain that where present I hadn't
created the file myself and then duly forgot about it. So, I thought of
asking here.

--
Regards,
Mick
signature.asc
0 new messages