Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Autoclean Wipes Out Necessary Files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
ubu69
n00b
n00b


Joined: 07 Mar 2005
Posts: 5
Location: Brooklyn, NY

PostPosted: Mon Mar 07, 2005 9:47 pm    Post subject: Autoclean Wipes Out Necessary Files Reply with quote

Greetings!

I am very new to Gentoo and Linux in general. After about a week of failed attempts, I got a working kernel with an internet connection that works (you know: modify this .conf file, recompile with that built-in, not a module...). Here's the situation: whenever I emerge a package, autoclean says it's safely unmerging old packages but at the tail end of this process I get this:
Code:
>>> blah
---!empty dir /var/tmp
---!empty dir /var
---!empty dir /usr/share/man/man5
---!empty dir /usr/share/man/man1
---!empty dir /usr/share/man/
---!empty dir /usr/share/doc
---!empty dir /usr/share
---!empty dir /usr/sbin
---!empty dir /usr/lib/portage/pym
---!empty dir /usr/lib/portage
---!empty dir /usr/lib
---!empty dir /usr/bin
---!empty dir /usr
---!empty dir /lib
---!empty dir /etc
[portage-2.0.51-r2] bash: line 1: /usr/lib/portage/bin/ebuild.sh: no such file or directory
!!!Failed postrm:127


I can see why I get this message, but I don't understand why autoclean is deleting a file that portage needs. Of course, after this I can't emerge anything because /usr/lib/portage/pym is empty nor can I do too much of anything else.

My workaround to this has been to tar -xvjp my stage3 tarball. Also, after my last compile I added AUTOCLEAN="no" to my make.conf in an attempt to sidestep this problem.

A basic explanation and a shove in the right direction would be greatly appreciated.
Thank you.
Back to top
View user's profile Send private message
Z?
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jan 2003
Posts: 118
Location: Waterloo, Ontario, Canada

PostPosted: Mon Mar 07, 2005 10:00 pm    Post subject: Reply with quote

Code:
>>> blah
---!empty dir /var/tmp
---!empty dir /var
---!empty dir /usr/share/man/man5
---!empty dir /usr/share/man/man1
---!empty dir /usr/share/man/
---!empty dir /usr/share/doc
---!empty dir /usr/share
---!empty dir /usr/sbin
---!empty dir /usr/lib/portage/pym
---!empty dir /usr/lib/portage
---!empty dir /usr/lib
---!empty dir /usr/bin
---!empty dir /usr
---!empty dir /lib
---!empty dir /etc
[portage-2.0.51-r2] bash: line 1: /usr/lib/portage/bin/ebuild.sh: no such file or directory
!!!Failed postrm:127


This isn't saying that these things are being removed: it's saying that they're "not empty" (!empty), so nothing is happening to them.

I'm not sure why your /usr/lib/portage/pym folder is getting deleted, but I doubt that AUTOCLEAN is the culprit...
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9236
Location: beyond the rim

PostPosted: Mon Mar 07, 2005 10:44 pm    Post subject: Reply with quote

with autoclean turned off, what does
Code:
emerge -p clean world
say?
Back to top
View user's profile Send private message
ubu69
n00b
n00b


Joined: 07 Mar 2005
Posts: 5
Location: Brooklyn, NY

PostPosted: Tue Mar 08, 2005 3:54 am    Post subject: Reply with quote

Code:
emerge -p clean world


gives me

Code:

>>> These are the packages that I would unmerge:

 sys-apps/man-pages
    selected: 1.67
   protected: 2.01
     omitted: none

 sys-libs/cracklib
    selected: 2.7-r9
   protected: 2.7-r10
     omitted: none

 dev-libs/openssl
    selected: 0.9.7d-r1
   protected: 0.9.7e
     omitted: none

 sys-apps/psmisc
    selected: 21.4
   protected: 21.5
     omitted: none

 net-misc/openssh
    selected: 3.8.1_p1-r1
   protected: 3.9_p1-r1
     omitted: none

 sys-devel/binutils
    selected: 2.14.90.0.8-r1
   protected: 2.15.92.0.2-r1
     omitted: none

 sys-devel/libperl
    selected: 5.8.4-r1
   protected: 5.8.5
     omitted: none

 sys-devel/gcc
    selected: 3.3.4-r1
   protected: 3.3.5-r1
     omitted: none

 sys-libs/zlib
    selected: 1.2.1-r3
   protected: 1.2.2
     omitted: none

 sys-apps/gawk
    selected: 3.1.3-r1
   protected: 3.1.3-r2
     omitted: none

 sys-libs/pam
    selected: 0.77
   protected: 0.77-r6
     omitted: none

 sys-apps/util-linux
    selected: 2.12-r4
   protected: 2.12i-r1
     omitted: none

 dev-libs/expat
    selected: 1.95.7
   protected: 1.95.8
     omitted: none

 sys-apps/kbd
    selected: 1.12-r2
   protected: 1.12-r3
     omitted: none

 sys-apps/texinfo
    selected: 4.6
   protected: 4.7-r1
     omitted: none

 sys-devel/bin86
    selected: 0.16.0
   protected: 0.16.16
     omitted: none

 sys-apps/portage
    selected: 2.0.51-r2
   protected: 2.0.51-r15
     omitted: none

 sys-apps/shadow
    selected: 4.0.4.1-r4
   protected: 4.0.5-r3
     omitted: none

 sys-apps/man
    selected: 1.5p
   protected: 1.5m-r2
     omitted: none

 sys-apps/file
    selected: 4.10
   protected: 4.12
     omitted: none

 sys-apps/ed
    selected: 0.2-r4
   protected: 0.2-r6
     omitted: none

 sys-apps/procps
    selected: 3.2.3-r1
   protected: 3.2.4-r2
     omitted: none

 dev-lang/python
    selected: 2.3.4
   protected: 2.3.4-r1
     omitted: none

 sys-apps/coreutils
    selected: 5.2.1
   protected: 5.2.1-r4
     omitted: none

 sys-devel/bison
    selected: 1.875
   protected: 1.875d
     omitted: none

 sys-fs/e2fsprogs
    selected: 1.35
   protected: 1.35-r1
     omitted: none

 dev-lang/perl
    selected: 5.8.4-r1
   protected: 5.8.5-r4
     omitted: none

 sys-devel/autoconf
    selected: 2.59-r6
   protected: 2.13 2.59-r5
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9236
Location: beyond the rim

PostPosted: Tue Mar 08, 2005 4:01 am    Post subject: Reply with quote

hmm, looks sane so it's not that bug.
Back to top
View user's profile Send private message
ubu69
n00b
n00b


Joined: 07 Mar 2005
Posts: 5
Location: Brooklyn, NY

PostPosted: Tue Mar 08, 2005 4:26 am    Post subject: Reply with quote

Is there a setting or step that I'm missing along the way?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9236
Location: beyond the rim

PostPosted: Tue Mar 08, 2005 6:05 am    Post subject: Reply with quote

Well, first we'd need some actual logs what's happening:
- turn autoclean back on
- emerge portage &> /tmp/logfile
- post that logfile somewhere (NOT on the forums)
and probably make a backup first.
Back to top
View user's profile Send private message
ubu69
n00b
n00b


Joined: 07 Mar 2005
Posts: 5
Location: Brooklyn, NY

PostPosted: Wed Mar 09, 2005 5:07 am    Post subject: Reply with quote

Okay, I followed your command and created the logfile (<13,000 lines). What's the best way to post something like this?

Before I did this I emerged a few packages with AUTOCLEAN="no" and I didn't run into this problem. Since I set AUTOCLEAN="yes" and performed this particular task I'm getting the original problem. For example now when I type in ls or env or emerge, bash can't find the associated files.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9236
Location: beyond the rim

PostPosted: Wed Mar 09, 2005 6:34 am    Post subject: Reply with quote

if you have some webspace upload it there, another option would be to file a bug and attach it there or send it to me by email.
Back to top
View user's profile Send private message
ubu69
n00b
n00b


Joined: 07 Mar 2005
Posts: 5
Location: Brooklyn, NY

PostPosted: Wed Mar 09, 2005 7:20 am    Post subject: Reply with quote

I apologize for the delays. The last emerge hobbled my system and I had to unpack the stage 3 tarball again and rewrite the necessary .conf files and such to get my system back to where it was. Whew!

I will post that logfile as soon as I can.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9236
Location: beyond the rim

PostPosted: Wed Mar 09, 2005 8:22 am    Post subject: Reply with quote

Hmm, according to that logfile your portage installation should still be intact (but non-working, due to python being missing). The rest seems to be an mtime issue somehow, don't really know what kind of issue though. Funky filesystem or mount options? Weird kernel? Any portage modifications? Doing strange stuff with the clock?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum