The code that validates/updates ${PKGDIR}/Packages can be slow on network filesystems, so it would be nice to have an option to trust ${PKGDIR}/Packages implicitly/
Quick patch: https://github.com/gentoo/portage/pull/447
Patch posted for wider review: https://archives.gentoo.org/gentoo-portage-dev/message/7a63032667eb836a65e10f271865602d
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=fbbe0cfe29020313ae44fb2a6afa87c2951ae028 commit fbbe0cfe29020313ae44fb2a6afa87c2951ae028 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-08-19 22:24:08 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-08-31 03:50:09 +0000 Add FEATURES=pkgdir-index-trusted Trust that the PKGDIR index file is valid, meaning that no packages have been manually added or removed since the last call to emaint --fix binhost. This feature eliminates overhead involved with detection of packages that have been manually added or removed, which significantly improves performance in some cases, such as when PKGDIR resides on a high-latency network file system. Bug: https://bugs.gentoo.org/688902 Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/const.py | 1 + lib/portage/dbapi/bintree.py | 36 ++++++++++++++++++++++++++---------- man/make.conf.5 | 8 ++++++++ 3 files changed, 35 insertions(+), 10 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05d4de36535c74df5e27784886a7de8d0d8afddb commit 05d4de36535c74df5e27784886a7de8d0d8afddb Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-08-31 06:13:47 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-08-31 06:21:36 +0000 sys-apps/portage: Bump to version 2.3.74 #587930 glsa-check: add exit code for affected GLSAs #688902 Add FEATURES=pkgdir-index-trusted #690758 Use RTNETLINK to configure the loopback interface #692872 glsa-check: forward port --quiet option from gentoolkit #693026 rsync: proxychains compatibility #693088 glsa-check: forward port remaining changes from gentoolkit #693096 emerge: deprecate --changelog option Bug: https://bugs.gentoo.org/691278 Bug: https://bugs.gentoo.org/587930 Bug: https://bugs.gentoo.org/688902 Bug: https://bugs.gentoo.org/690758 Bug: https://bugs.gentoo.org/692872 Bug: https://bugs.gentoo.org/693026 Bug: https://bugs.gentoo.org/693088 Bug: https://bugs.gentoo.org/693096 Package-Manager: Portage-2.3.74, Repoman-2.3.17 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-2.3.74.ebuild | 261 +++++++++++++++++++++++++++++++++ 2 files changed, 262 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=2565d3a60315df2edff080b49547ec98ce24b595 commit 2565d3a60315df2edff080b49547ec98ce24b595 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-09-01 23:50:14 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-09-01 23:56:20 +0000 emaint binhost: force reindex in case of pkgdir-index-trusted Bug: https://bugs.gentoo.org/688902 Fixes: fbbe0cfe2902 ("Add FEATURES=pkgdir-index-trusted") Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/emaint/modules/binhost/binhost.py | 6 ++++++ 1 file changed, 6 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2b1778c25157f4ab48237d25431ee5742261e6b2 commit 2b1778c25157f4ab48237d25431ee5742261e6b2 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2019-09-06 21:52:28 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2019-09-06 22:15:01 +0000 sys-apps/portage: Revbump to 2.3.75-r1 for bug 688902 Fix emaint --fix binhost with FEATURES=pkgdir-index-trusted. Bug: https://bugs.gentoo.org/688902 Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/{portage-2.3.75.ebuild => portage-2.3.75-r1.ebuild} | 4 ++++ 1 file changed, 4 insertions(+)