
Code: Select all
sync-uri = git://anongit.gentoo.org/repo/gentoo.git
You should read the link provided above:Perfect Gentleman wrote:what is the right url,?Code: Select all
sync-uri = git://anongit.gentoo.org/repo/gentoo.git
https://www.gentoo.org/news/2015/08/12/git-migration.html wrote:For users of our package repository, nothing changes: Updates continue to be available via the established mechanisms (rsync, webrsync, snapshots). Options to fetch the package tree via Git are to be announced later.


Code: Select all
# emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
/usr/bin/git clone --depth 1 git://anongit.gentoo.org/repo/gentoo.git .
fatal: destination path '.' already exists and is not an empty directory.
!!! git clone error in /usr/portage
q: Updating ebuild cache ...
q: Finished 37171 entries in 0.113616 secondsCode: Select all
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /usr/portage
sync-type = git
sync-uri = git://anongit.gentoo.org/repo/gentoo.git
auto-sync = yes
sync-depth = 1
Code: Select all
git-clone(1)
Clone a repository into a new directory.
git-pull(1)
Fetch from and integrate with another repository or a local branch.

Code: Select all
cd /usr/portage && rm -rf * .gitignore
cd
emerge --syncedit: the .gitignore is what I missed the first time it seems. works fine now.xaviermiller wrote:genoobish,
To migrate from a rsync'ed repository to git, just remove it before the sync :Code: Select all
cd /usr/portage && rm -rf * .gitignore cd emerge --sync
Code: Select all
$ eix-update
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] 'gentoo' /usr/portage/ (cache: metadata-md5-or-flat)
Reading category 161|161 (100%) EMPTY!
CACHE_METHOD="/usr/portage/ parse|ebuild*" eix-updategenoobish wrote:
edit2: but now there's this:
it syncs ok, but the database turns out empty. too early maybe?Code: Select all
$ eix-update Reading Portage settings .. Building database (/var/cache/eix/portage.eix) .. [0] 'gentoo' /usr/portage/ (cache: metadata-md5-or-flat) Reading category 161|161 (100%) EMPTY!
Code: Select all
emerge --jobs 4 --regentrippels wrote:speeds up eix-update.Code: Select all
emerge --jobs 4 --regen
Like I wrote above you need to add something like:x17324 wrote:trippels wrote:speeds up eix-update.Code: Select all
emerge --jobs 4 --regen
I have ran this command ,and my eix can not include /usr/portage into it's database, so please tell me how to resume this operating?
and this is my error
eix-update
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] 'gentoo' /usr/portage/ (cache: metadata-md5-or-flat)
Reading category 170|170 (100%) EMPTY!
it says EMPTY! ,and I cant use eix anymore;
Code: Select all
CACHE_METHOD="/usr/portage/ parse|ebuild*" 
*groan* it took years to get that [post=3891968]turned off[/post] by default.Perfect Gentleman wrote:FEATURES="metadata-transfer" is much better

Unfortunately the usage of github you advise there does not work? I always gethasufell wrote:I'm cross-posting this here, because it is relevant to the git migration for users: https://forums.gentoo.org/viewtopic-p-7 ... ml#7797610
Code: Select all
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.usingYamakuzure wrote:Unfortunately the usage of github you advise there does not work? I always gethasufell wrote:I'm cross-posting this here, because it is relevant to the git migration for users: https://forums.gentoo.org/viewtopic-p-7 ... ml#7797610Code: Select all
Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
Code: Select all
sync-uri = https://anongit.gentoo.org/git/repo/gentoo.gityou can clone them directly into metadata, see https://gitweb.gentoo.org/data/glsa.git/freke wrote:Another thing though; GLSAs?