Created attachment 563708 [details, diff] portage-prefix.patch Hi, I would like to commit the attached patch to prefixify etc-update. At present etc-update reads the host /etc/os-release and thus fails identify Gentoo. In addition, with the help of hprefixify() from prefix.eclass, other related Prefix `sed` clauses are simplified. Please review. If there is no objections in 1 week, I will commit it to the tree. Thank you! Yours, Benda
(In reply to Benda Xu from comment #0) > Created attachment 563708 [details, diff] [details, diff] > portage-prefix.patch I've tested this patch, and it doesn't apply the necessary changes. I checked EPREFIX in const.py, and 'location = /usr/portage' in conf/repos.conf, and neither one was patched.
(In reply to Zac Medico from comment #1) > (In reply to Benda Xu from comment #0) > > Created attachment 563708 [details, diff] [details, diff] [details, diff] > > portage-prefix.patch > > I've tested this patch, and it doesn't apply the necessary changes. I > checked EPREFIX in const.py, and 'location = /usr/portage' in > conf/repos.conf, and neither one was patched. Thank Zac. I find it otherwise. For cnf.repos.conf, I see 'location = /usr/portage' is prepended with EPREFIX. For const.py: 1. The revision has 1-1 feature correspondence to the previous one, the previous one only patched the "*_BINARY", no other PATHs. 2. DEPCACHE_PATH and GLOBAL_CONFIG_PATH should be the without-prefix version, as the comments says: # these variables get EPREFIX prepended automagically when they are # translated into their lowercase variants DEPCACHE_PATH = "/var/cache/edb/dep" GLOBAL_CONFIG_PATH = "/usr/share/portage/config" Therefore I think my patch is correct. Yours, Benda
Ping Portage Team.
Hi Benda, If it works for you then please go ahead and commit it. I probably just didn't test it correctly. Thanks!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4a709ce51b8ab874c355c7edae8a56ba34cb985 commit b4a709ce51b8ab874c355c7edae8a56ba34cb985 Author: Benda Xu <heroxbd@gentoo.org> AuthorDate: 2019-03-20 01:56:19 +0000 Commit: Benda Xu <heroxbd@gentoo.org> CommitDate: 2019-03-20 02:02:46 +0000 sys-apps/portage: prefixify etc-update and simplify Prefix logic. Closes: https://bugs.gentoo.org/677246 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Benda Xu <heroxbd@gentoo.org> sys-apps/portage/portage-2.3.62-r1.ebuild | 259 ++++++++++++++++++++++++++++++ 1 file changed, 259 insertions(+)
(In reply to Zac Medico from comment #1) > (In reply to Benda Xu from comment #0) > > Created attachment 563708 [details, diff] [details, diff] [details, diff] > > portage-prefix.patch > > I've tested this patch, and it doesn't apply the necessary changes. I > checked EPREFIX in const.py, and 'location = /usr/portage' in > conf/repos.conf, and neither one was patched. I probably just had the prefix USE flag masked, and that causes hprefixify to return early.