Gentooでデフォルトの上書きを再生成します。

Gentooでデフォルトの上書きを再生成します。

しばらくPortageを同期できません。これは私がgitを同期方法として使用していたからであることに気づきました。このリポジトリはもうメンテナンスされません。sync-uri彼らはまた、新しいリンクを提供したので、オプションを更新しました。/etc/portage/repos.conf/gentoo.conf

[gentoo]
location = /var/db/repos/gentoo
sync-type = git
#sync-uri = https://github.com/gentoo/gentoo-portage-rsync-mirror  # old
sync-uri = https://github.com/gentoo-mirror/gentoo                 # new
auto-sync = true

ただし、これはランタイムには影響しませんemerge --sync

# emerge --sync
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
/usr/bin/git pull
Already up-to-date.
=== Sync completed for gentoo

今日、私はリポジトリのリモートURLを確認できることに気づきました。

# cd /var/db/repos/gentoo
# git remote -v
origin  https://github.com/gentoo/gentoo-portage-rsync-mirror (fetch)
origin  https://github.com/gentoo/gentoo-portage-rsync-mirror (push)

したがって、まだ古いバージョンに設定されています。

私は新しいものに変更しようとしましたが、最初にgit configについて文句を言い、その後も同期できませんでした。

# git remote set-url origin https://github.com/gentoo-mirror/gentoo
# git remote -v
origin  https://github.com/gentoo-mirror/gentoo (fetch)
origin  https://github.com/gentoo-mirror/gentoo (push)
# git config user.email "[email protected]"
# git config user.name "Root One"

# emerge --sync
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
/usr/bin/git clone --depth 1 https://github.com/gentoo-mirror/gentoo .
fatal: destination path '.' already exists and is not an empty directory.
!!! git clone error in /var/db/repos/gentoo
!!! Repository 'x-gentoo' is missing masters attribute in '/var/db/repos/gentoo/metadata/layout.conf'
!!! Set 'masters = gentoo' in this file for future compatibility

そのため、最終的にディレクトリ全体を削除することになりましたが、問題が解決し、ついに同期でき/var/db/repos/gentooましたdistfiles/ls -a | grep -v distfiles | xargs rm -r

問題は:gitを使用してGentooオーバーレイを再生成/再生するユーザーフレンドリーで正しい方法はありますか?

オーバーレイリポジトリが変更されると、より多くの人がこの問題に遭遇すると思います。

ベストアンサー1

おすすめ記事