Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I broke portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Xithix
Apprentice
Apprentice


Joined: 31 Dec 2004
Posts: 228

PostPosted: Tue Jan 18, 2005 11:57 pm    Post subject: I broke portage Reply with quote

THE CAUSE:
I heard good things about XFCE4 so I emerged it, tried it, and didn't like it. The first time I tried it though, I started it from within KDE. Blah! It left it's calender bar (blank) on the top of my screen whenever I restarted KDE, and I didn't know the process name so that empty bar stuck around on my screen even after I unmerged everything with 'xfce' in its package name on my system. I figure remerging KDE will fix the problem so I emerge -et kde. It fails on recompiling gcc for some reason (not important to me now because it was a reinstall, but when there's a new version, I'll have to get that fixed). So I get the brilliant idea of doing emerge --depclean. I try it with --pretend first and see nothing important (in my noobish eyes). So I emerge --depclean. The bar atop KDE is gone, yay! But now portage is broke. Whenever I try to emerge anything, it fails because it cannot find libacl.so.1. Is there anywhere I can wget it?

Code:
root@darkblade xithix # emerge portage
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-apps/portage-2.0.51-r3 to /
>>> md5 src_uri ;-) portage-2.0.51-r3.tar.bz2
install: error while loading shared libraries: libacl.so.1: cannot open shared object file: No such file or directory

!!! ERROR: sys-apps/portage-2.0.51-r3 failed.
!!! Function dyn_unpack, Line 632, Exitcode 127
!!! Failed to create dir '/var/tmp/portage/portage-2.0.51-r3/work'
!!! If you need support, post the topmost build error, NOT this status message.

root@darkblade xithix #


Last edited by Xithix on Wed Jan 19, 2005 12:19 am; edited 1 time in total
Back to top
View user's profile Send private message
ba747heavy
Apprentice
Apprentice


Joined: 11 Aug 2003
Posts: 216
Location: New Mexico, USA

PostPosted: Wed Jan 19, 2005 12:08 am    Post subject: Reply with quote

I think that library is provided by either coreutils or sys-apps/acl. If you have acl installed, try reemerging that, otherwise try coreutils.
_________________
Fred Clausen
"leet [speak] is a cry for help from a shallow mind" - Doomwookie Jan 05
Back to top
View user's profile Send private message
Xithix
Apprentice
Apprentice


Joined: 31 Dec 2004
Posts: 228

PostPosted: Wed Jan 19, 2005 12:18 am    Post subject: Reply with quote

Code:
root@darkblade xithix # emerge -a acl

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-apps/attr-2.4.19 
[ebuild  N    ] sys-apps/acl-2.2.27 

Do you want me to merge these packages? [Yes/No] y
>>> emerge (1 of 2) sys-apps/attr-2.4.19 to /
>>> md5 src_uri ;-) attr-2.4.19.src.tar.gz
install: error while loading shared libraries: libacl.so.1: cannot open shared object file: No such file or directory

!!! ERROR: sys-apps/attr-2.4.19 failed.
!!! Function dyn_unpack, Line 632, Exitcode 127
!!! Failed to create dir '/var/tmp/portage/attr-2.4.19/work'
!!! If you need support, post the topmost build error, NOT this status message.

root@darkblade xithix #


Tonight I'm gonna boot off a liveCD and try to merge it from there
Back to top
View user's profile Send private message
chunderbunny
Veteran
Veteran


Joined: 31 May 2004
Posts: 1281
Location: 51°24'27" N, 0°57'15" W

PostPosted: Wed Jan 19, 2005 12:32 am    Post subject: Reply with quote

Aah, I've seen people complaining about this recently. It's due to the fact that attr on stage 2/3 systems is compiled with acl for ome reason. Your best bet is to copy all the acl and attr libraries from the liveCD, then remerge coreutils.

Check this thread for more details.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


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

PostPosted: Wed Jan 19, 2005 12:33 am    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=139908&highlight=libacl
https://forums.gentoo.org/viewtopic.php?t=281608&highlight=libacl
Back to top
View user's profile Send private message
Xithix
Apprentice
Apprentice


Joined: 31 Dec 2004
Posts: 228

PostPosted: Wed Jan 19, 2005 2:02 am    Post subject: Reply with quote

Excellent links! However, persuing the solotions chronicled within, I ran into a few issues. I downloaded the coreutils binary, untarred it into my /, and attempted to emerge coreutils. Got the same ol' libacl error. I booted onto my lxnay LiveCD and performed a find / | grep libacl which returned nothing (I was not chrooted into my hd install). Going to check my Official Gentoo LiveCD for the libs and retry the coreutils binary and remerge coreutils with "-acl" USE flag.

Edit: That didn't work. Reading the links more thoroughly.
Back to top
View user's profile Send private message
Xithix
Apprentice
Apprentice


Joined: 31 Dec 2004
Posts: 228

PostPosted: Wed Jan 19, 2005 2:51 am    Post subject: Reply with quote

Used binary tarballs (Used the coreutils bin directory as the links' acl/attr bin links were broken, thankfully acl and attr bins were there) I installed acl and attr, and the error is gone. Remerging coreutils --oneshot now and I'm gonna make sure everything is in order, but I believe the problem is fixed.

Thanks!

Here are the links I used.
coreutils binary: http://dev.gentoo.org/~avenj/bins/coreutils-5.2.0.tbz2
acl binary: http://dev.gentoo.org/~avenj/bins/acl-2.2.13-r2.tbz2
attr binary: http://dev.gentoo.org/~avenj/bins/attr-2.4.7-r1.tbz2

Short version of what I did that worked (No LiveCD required):
Code:
su -
cd /
wget http://dev.gentoo.org/~avenj/bins/coreutils-5.2.0.tbz2
tar -xvjf coreutils-5.2.0.tbz2
mkdir -p /usr/portage/packages/All
cd /usr/portage/packages/All
wget http://dev.gentoo.org/~avenj/bins/acl-2.2.13-r2.tbz2
wget http://dev.gentoo.org/~avenj/bins/attr-2.4.7-r1.tbz2
emerge -K acl attr
env-update
source /etc/profile
emerge -1 coreutils
emerge libtool
Let me know if I have to do anything else ^_^
Back to top
View user's profile Send private message
Eric R.
n00b
n00b


Joined: 03 May 2004
Posts: 34
Location: Santa Rosa, CA

PostPosted: Wed Jan 19, 2005 3:58 am    Post subject: Reply with quote

Okay, this is what has worked for me so far (taken just about verbatim from Genone's links):

after booting from the liveCD mount your partition to /mnt/gentoo
Code:
cp /lib/libacl.so.1 /mnt/gentoo/lib

from a good source (I had a backup of sorts handy, but it's supposed to be on the liveCD)
Code:
cp /lib/libattr.so.1 /mnt/gentoo/lib

from the same source then restart into broken system

Code:
USE="-acl" emerge coreutils
revdep-rebuild
rm -rf libacl.so.1
rm -rf libattr.so.1

restart again and all is well :)
Back to top
View user's profile Send private message
masseya
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 2602
Location: Baltimore, MD

PostPosted: Wed Jan 19, 2005 4:57 pm    Post subject: Reply with quote

Moving from Portage & Programming.

Please see emerge doesn't work after attr is unemerged! for more info.
_________________
if i never try anything, i never learn anything..
if i never take a risk, i stay where i am..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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