Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 618860

Summary: kde overlay should contain metadata/md5-cache
Product: Gentoo Linux Reporter: anonymous <gentoobugs>
Component: OverlaysAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: enhancement CC: jstein, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description anonymous 2017-05-18 17:47:46 UTC
kde overlay should contains metadata/md5-cache.

Because md5-cache is missing every eix-update or resolve dependencies very slow, especially on old PC or notebooks.

Proposal: add git-hook to every developer that will run
egencache --update --repo kde
before any push.

Reproducible: Always
Comment 1 Michael Palimaka (kensington) gentoo-dev 2017-05-20 07:36:35 UTC
While I agree metadata would be nice, there are two main problems I see:

1. It's generated data which doesn't need version control, so would unnecessarily bloat the repo

2. Because it is a child of gentoo.git, any eclass changes there (where there are instances of that eclass being inherited) would invalidate relevant parts of the overlay cache

To resolve #1, instead of including metadata in the main/source repo we could offer a separate "sync" repo (such as we already have for gentoo.git - https://gitweb.gentoo.org/repo/sync/gentoo.git/). I'll ask mgorny about the feasibility of this.
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-05-20 07:46:14 UTC
(In reply to Michael Palimaka (kensington) from comment #1)
> To resolve #1, instead of including metadata in the main/source repo we
> could offer a separate "sync" repo (such as we already have for gentoo.git -
> https://gitweb.gentoo.org/repo/sync/gentoo.git/). I'll ask mgorny about the
> feasibility of this.

I've been informed that this already exists! https://github.com/gentoo-mirror/kde
Comment 3 anonymous 2017-05-21 06:02:59 UTC
(In reply to Michael Palimaka (kensington) from comment #2)
> I've been informed that this already exists!
> https://github.com/gentoo-mirror/kde

Good! Can this be default repo when I'm adding overlay through layman?
Comment 4 Michael Palimaka (kensington) gentoo-dev 2017-05-21 12:32:43 UTC
I'm not sure if we could replace the existing repo - will it cause conflicts for users who already have it added using the old repo? We could add a new entry "kde-sync" or something.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2017-06-03 16:14:44 UTC
I added kde-sync:
https://gitweb.gentoo.org/data/api.git/commit/?id=c18e40daec14bc41c8c9fe4db31e49fb7f626a63
Comment 6 anonymous 2017-06-04 16:19:33 UTC
Now I get warning when use kde-sync overlay:

!!! Invalid PORTDIR_OVERLAY (not a dir): '/var/lib/layman/kde'
!!! Section 'kde-sync' in repos.conf has name different from repository name 'kde' set inside repository
Comment 7 Michael Palimaka (kensington) gentoo-dev 2017-06-05 13:34:18 UTC
OK, that's a shame. I've backed it out now:
https://gitweb.gentoo.org/data/api.git/commit/?id=b6a795886a91f14e7cdebbff5d42a4e9b26feac4

I was pointed to this doc about how it's recommended to use the sync repos instead:
https://wiki.gentoo.org/wiki/Project:Repository_mirror_and_CI
Comment 8 Andrii Pravorskyi 2017-06-09 13:58:39 UTC
(In reply to Michael Palimaka (kensington) from comment #7)
> OK, that's a shame. I've backed it out now:
> https://gitweb.gentoo.org/data/api.git/commit/
> ?id=b6a795886a91f14e7cdebbff5d42a4e9b26feac4
> 
> I was pointed to this doc about how it's recommended to use the sync repos
> instead:
> https://wiki.gentoo.org/wiki/Project:Repository_mirror_and_CI

This doc doesn't work for me, can you look that thread, please?

https://forums.gentoo.org/viewtopic-t-1064500.html
Comment 9 Michael Palimaka (kensington) gentoo-dev 2017-06-11 06:49:37 UTC
(In reply to Pravorskii Andrii from comment #8)
> (In reply to Michael Palimaka (kensington) from comment #7)
> > OK, that's a shame. I've backed it out now:
> > https://gitweb.gentoo.org/data/api.git/commit/
> > ?id=b6a795886a91f14e7cdebbff5d42a4e9b26feac4
> > 
> > I was pointed to this doc about how it's recommended to use the sync repos
> > instead:
> > https://wiki.gentoo.org/wiki/Project:Repository_mirror_and_CI
> 
> This doc doesn't work for me, can you look that thread, please?
> 
> https://forums.gentoo.org/viewtopic-t-1064500.html

The example config and the text contradict each other. Could you try reversing the order of the repositories.xml entries?
Comment 10 Michael Palimaka (kensington) gentoo-dev 2017-06-11 10:21:28 UTC
(In reply to Pravorskii Andrii from comment #8)
> (In reply to Michael Palimaka (kensington) from comment #7)
> > OK, that's a shame. I've backed it out now:
> > https://gitweb.gentoo.org/data/api.git/commit/
> > ?id=b6a795886a91f14e7cdebbff5d42a4e9b26feac4
> > 
> > I was pointed to this doc about how it's recommended to use the sync repos
> > instead:
> > https://wiki.gentoo.org/wiki/Project:Repository_mirror_and_CI
> 
> This doc doesn't work for me, can you look that thread, please?
> 
> https://forums.gentoo.org/viewtopic-t-1064500.html

Can you take a look at this mgorny? Apparently it's not working.
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-06-11 13:56:15 UTC
Well, I couldn't reproduce the issue but I've updated the wiki article nevertheless. There is really no reason to keep using the original api.g.o .xml if mirrors are used, so just removed it and put the mirror list alone.