Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 382009 - app-portage/gentoolkit-0.3.0.4: revdep-rebuild does not try to re-create /var/cache/revdep-rebuild
Summary: app-portage/gentoolkit-0.3.0.4: revdep-rebuild does not try to re-create /var...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor with 1 vote (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 381079 (view as bug list)
Depends on:
Blocks: 346443
  Show dependency tree
 
Reported: 2011-09-06 06:28 UTC by Pandu E Poluan
Modified: 2023-10-03 15:44 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for revdep-rebuild script (revdep-rebuild-patch.txt,575 bytes, patch)
2011-09-06 06:46 UTC, Pandu E Poluan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pandu E Poluan 2011-09-06 06:28:24 UTC
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)
Comment 1 Pandu E Poluan 2011-09-06 06:37:12 UTC
This misbehavior still exists in app-portage/gentoolkit-0.3.0.4-r3.
Comment 2 Pandu E Poluan 2011-09-06 06:46:08 UTC
Created attachment 285689 [details, diff]
Patch for revdep-rebuild script
Comment 3 James Broadhead 2011-09-16 22:58:08 UTC
This is a duplicate of bug #358073 

Since revdep-rebuild is getting an all-python rewrite, should test with release candidate.
Comment 4 Zac Medico gentoo-dev 2011-09-16 23:11:57 UTC
*** Bug 381079 has been marked as a duplicate of this bug. ***
Comment 5 Pandu E Poluan 2011-11-18 11:37:08 UTC
(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.
Comment 6 Paul Varner (RETIRED) gentoo-dev 2012-02-29 16:17:33 UTC
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.
Comment 7 Anton Bolshakov 2016-02-04 00:53:33 UTC
ping?
Comment 8 Paul Varner (RETIRED) gentoo-dev 2016-02-08 19:30:49 UTC
Still in progress
Comment 9 Larry the Git Cow gentoo-dev 2022-07-28 15:29:06 UTC
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(-)
Comment 10 Larry the Git Cow gentoo-dev 2023-10-03 15:44:49 UTC
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(+)