revdep-rebuild gives up when it can't find /var/cache/revdep-rebuild. revdep-rebuild runs well after I manually re-create /var/cache/revdep-rebuild. Reproducible: Always Steps to Reproduce: 1. rm -rf /var/cache/revdep-rebuild 2. revdep-rebuild Actual Results: * Configuring search environment for revdep-rebuild * Unable to find a satisfactory location for temporary files (/var/cache/revdep-rebuild) Expected Results: * Configuring search environment for revdep-rebuild * Checking reverse dependencies ... and so on ... According to FHS, "The application must be able to regenerate or restore the data [in /var/cache]". So, IMO revdep-rebuild should first attempt to create /var/cache/revdep-rebuild before giving up (e.g., if for some reasons /var/cache becomes read-only)
This misbehavior still exists in app-portage/gentoolkit-0.3.0.4-r3.
Created attachment 285689 [details, diff] Patch for revdep-rebuild script
This is a duplicate of bug #358073 Since revdep-rebuild is getting an all-python rewrite, should test with release candidate.
*** Bug 381079 has been marked as a duplicate of this bug. ***
(In reply to comment #3) > This is a duplicate of bug #358073 > > Since revdep-rebuild is getting an all-python rewrite, should test with release > candidate. I'm now using app-portage/gentoolkit-0.3.0.4-r4, and still revdep-rebuild commits suicide when /var/cache/revdep-rebuild does not exist. * Configuring search environment for revdep-rebuild * Unable to find a satisfactory location for temporary files (/var/cache/revdep-rebuild) And a simple `mkdir -p /var/cache/revdep-rebuild` still fixes the problem.
This won't be fixed until we move to the python version of revdep-rebuild in gentoolkit-0.3.1. The current behavior is by design for the bash version of revdep-rebuild.
ping?
Still in progress
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3 commit 4a56a7feff4fe8ed427cddff6e6b2719f0fe58c3 Author: Brian Dolbec <dolsen@gentoo.org> AuthorDate: 2022-07-12 00:58:23 +0000 Commit: Brian Dolbec <dolsen@gentoo.org> CommitDate: 2022-07-12 00:58:23 +0000 revdep-rebuild.sh: Create its cache dir if it doesn't exist Bug: https://bugs.gentoo.org/382009 Signed-off-by: Brian Dolbec <dolsen@gentoo.org> bin/revdep-rebuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c162ce62447fec711a28ecf1434879256c8aea6a commit c162ce62447fec711a28ecf1434879256c8aea6a Author: Sam James <sam@gentoo.org> AuthorDate: 2023-10-03 15:43:51 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-10-03 15:44:35 +0000 app-portage/gentoolkit: add 0.6.2 Bug: https://bugs.gentoo.org/900224 Closes: https://bugs.gentoo.org/369581 Closes: https://bugs.gentoo.org/382009 Closes: https://bugs.gentoo.org/576224 Closes: https://bugs.gentoo.org/709816 Closes: https://bugs.gentoo.org/861116 Closes: https://bugs.gentoo.org/877519 Closes: https://bugs.gentoo.org/902551 Signed-off-by: Sam James <sam@gentoo.org> app-portage/gentoolkit/Manifest | 1 + app-portage/gentoolkit/gentoolkit-0.6.2.ebuild | 71 ++++++++++++++++++++++++++ 2 files changed, 72 insertions(+)