Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge --sync mess
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
hmag
n00b
n00b


Joined: 30 Aug 2010
Posts: 19

PostPosted: Sat Mar 24, 2012 9:58 pm    Post subject: emerge --sync mess Reply with quote

Hello,

I made emerge --sync and I try to update, emerge -uD world. My last emerge --sync was 8 months ago.

For emerge -uD I get 720 (not less) packages to compile and it cant compile gnome-base/libbonoboui-2.24.5
/usr/lib/gcc/i686-pc-linux-gnu/4.4.5/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lpng14

I don't understand why it expects this bonobo from gnome since I am on kde.
Of course libpng14.so has been removed from my system due to the sync & recompile (now 1.5.9 is installed and 1.4.x ebuid is gone).
revdep-rebuild fails because of other messed up dependencies in kde.

The sync moved baselayout from v1 to v 2, I updated the /etc files but I am usure, I would like to reboot my computer only after some global emerge --update succeeds ....

Please , HELP , what can I do ?
[/gwn]
Thanks
Back to top
View user's profile Send private message
midnigther
n00b
n00b


Joined: 05 Mar 2010
Posts: 36
Location: Portugal, VC

PostPosted: Sat Mar 24, 2012 10:35 pm    Post subject: Reply with quote

Try this.

Code:

$sudo emerge -av1 $(for e in `qlist -I --nocolor | uniq`; do for f in `qlist -e $e`; do if test ! -e $f; then echo $e; echo $e: missing $f 1>&2; fi; done; done)

_________________
"Genius is one per cent inspiration, ninety-nine per cent perspiration" - Thomas Edison
"It is not the position you stand, but the direction in which you look"
Back to top
View user's profile Send private message
jburns
l33t
l33t


Joined: 18 Jan 2007
Posts: 733
Location: Massachusetts USA

PostPosted: Sat Mar 24, 2012 10:38 pm    Post subject: Reply with quote

For libpng see http://forums.gentoo.org/viewtopic-t-894950-highlight-libpng15.html
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4117
Location: Houston, Republic of Texas

PostPosted: Sat Mar 24, 2012 10:40 pm    Post subject: Reply with quote

lafilefixer, revdep-rebuild, and 'equery depends' in heavy doses.

the folks posting thus far have given you the details. Namely the libpng upgrade, that's going to be the painful one.
Then sorting what depends on what, getting everything upgraded, then revdep-rebuilding the remaindered broken bits.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29965
Location: 56N 3W

PostPosted: Sat Mar 24, 2012 10:47 pm    Post subject: Reply with quote

hmag,

gcc and glibc are interdependent. You need to update both in steps. You cannot do what wmwrgw world uDNav wants to do in one go.
Likewise udev and the kernel are interdependant. ... small steps are needed here.

Read the ebuilds to see exactly what versions .
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4117
Location: Houston, Republic of Texas

PostPosted: Sun Mar 25, 2012 3:21 am    Post subject: Reply with quote

NeddySeagoon wrote:
You cannot do what wmwrgw world uDNav wants to do in one go.


no wonder I've been having problems all these years. I've been using 'emerge' :lol:
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
Chiitoo
l33t
l33t


Joined: 28 Feb 2010
Posts: 616
Location: Finland

PostPosted: Sun Mar 25, 2012 3:38 am    Post subject: Reply with quote

cach0rr0 wrote:
NeddySeagoon wrote:
You cannot do what wmwrgw world uDNav wants to do in one go.


no wonder I've been having problems all these years. I've been using 'emerge' :lol:

/me had the same thoguhts. 8O
_________________
Kind Regards,
The Noob Unlimited

~sore wa sore kore wa kore~
Back to top
View user's profile Send private message
hmag
n00b
n00b


Joined: 30 Aug 2010
Posts: 19

PostPosted: Sun Mar 25, 2012 9:19 am    Post subject: Thanks to all for answers... and maybe opportunity for me to Reply with quote

NeddySeagoon wrote:
hmag,

gcc and glibc are interdependent. You need to update both in steps. You cannot do what wmwrgw world uDNav wants to do in one go.
Likewise udev and the kernel are interdependant. ... small steps are needed here.

Read the ebuilds to see exactly what versions .


Hi NeddySeagoon,

When expecting to upgrade my system, I proceed by emerge --sync and then emerge -uDN world beause this is what is recommended and promoted by the Gentoo Handbook. An every time, like for cach0rr0 this is painful.
I am surprised (and potentially happy) to discover that more careful and secure ways are available to upgrade the Gentoo system globally.
Can you be more explicit on your recommendation, and maybe provide links to the related docs ?

Thanks
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4117
Location: Houston, Republic of Texas

PostPosted: Sun Mar 25, 2012 10:11 am    Post subject: Re: Thanks to all for answers... and maybe opportunity for m Reply with quote

hmag wrote:


Hi NeddySeagoon,

When expecting to upgrade my system, I proceed by emerge --sync and then emerge -uDN world beause this is what is recommended and promoted by the Gentoo Handbook. An every time, like for cach0rr0 this is painful.
I am surprised (and potentially happy) to discover that more careful and secure ways are available to upgrade the Gentoo system globally.
Can you be more explicit on your recommendation, and maybe provide links to the related docs ?

Thanks


ive been drinking, so take this with a grain of salt -

basically, NeddySeagoon's point, is that you shouldnt expect to, after a long lapse of not having updated, expect any one command to be a cure-all. Doing an emerge -uDN world is good if done regularly, but in your case as it's been a while, expect to have to do a handful of things in a more manual fashion. In your case, it's going to be a bit of initial headache sorting out deps, plus some lafilefixer to fix broken linking bits, and so forth.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
hmag
n00b
n00b


Joined: 30 Aug 2010
Posts: 19

PostPosted: Sun Mar 25, 2012 5:18 pm    Post subject: Re: Thanks to all for answers... and maybe opportunity for m Reply with quote

cach0rr0 wrote:
hmag wrote:


Hi NeddySeagoon,

When expecting to upgrade my system, I proceed by emerge --sync and then emerge -uDN world beause this is what is recommended and promoted by the Gentoo Handbook. An every time, like for cach0rr0 this is painful.
I am surprised (and potentially happy) to discover that more careful and secure ways are available to upgrade the Gentoo system globally.
Can you be more explicit on your recommendation, and maybe provide links to the related docs ?

Thanks


ive been drinking, so take this with a grain of salt -

basically, NeddySeagoon's point, is that you shouldnt expect to, after a long lapse of not having updated, expect any one command to be a cure-all. Doing an emerge -uDN world is good if done regularly, but in your case as it's been a while, expect to have to do a handful of things in a more manual fashion. In your case, it's going to be a bit of initial headache sorting out deps, plus some lafilefixer to fix broken linking bits, and so forth.


Hi,

I understand, but what is the lower-pain alternative to 'emerge -uDN' ?
I would enjoy if I could mitigate the headache for the next time ... seems like pain superlinearly grows along times when I --sync and update |-O
hmag
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29965
Location: 56N 3W

PostPosted: Sun Mar 25, 2012 5:21 pm    Post subject: Reply with quote

cach0rr0,

cach0rr0 wrote:
ive been drinking, so take this with a grain of salt

Tequila? :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29965
Location: 56N 3W

PostPosted: Sun Mar 25, 2012 5:38 pm    Post subject: Reply with quote

hmag,

The process and packages it applies to are not documented. The problem arisies because since you last updated your system 8 months ago, glibc and gcc have both moved on.
The newest gcc needs a glibc later than the one you have, so you can't install that gcc. Further, the latest glibc woun't build with the gcc you have because its too old. These packages form a mutual block.

Had you updated more often (say monthly) this wouldn't have happened to you as the monthly update would have taken care of it. The only way forward is to run
Code:
emerge =gcc-<someversion>
followed by
Code:
gcc-config
emerge =glibc-<someveraion>

Rinse and repeat untill your glibc and gcc are current. emerge will protect you from yourself. If you try too recent a gcc, emerge will not permit it.

This can get very messy. The ebuilds for the intermediate version(s) of glibc and gcc you need may not be in the tree any more but they are still in the portage attic, so you can get them.

I'm using glibc and gcc as an example as its in the right time frame and the block is very clear. udev and the kernel are less clear because there is no hard block. Its quite OK to build the new udev against a kernel you have built but not rebooted into. Its not OK to then attenpt to use the new udev with the old kernel. That will end in tears, well, you will have to get into the new kernel with the aid of a liveCD, if its not already in /boot.

What???
You guys don't have wmwrgw aliased to emerge? :)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
hmag
n00b
n00b


Joined: 30 Aug 2010
Posts: 19

PostPosted: Sun Mar 25, 2012 5:58 pm    Post subject: Reply with quote

NeddySeagoon wrote:
hmag,

The process and packages it applies to are not documented. The problem arisies because since you last updated your system 8 months ago, glibc and gcc have both moved on.
The newest gcc needs a glibc later than the one you have, so you can't install that gcc. Further, the latest glibc woun't build with the gcc you have because its too old. These packages form a mutual block.

Had you updated more often (say monthly) this wouldn't have happened to you as the monthly update would have taken care of it. The only way forward is to run
Code:
emerge =gcc-<someversion>
followed by
Code:
gcc-config
emerge =glibc-<someveraion>

Rinse and repeat untill your glibc and gcc are current. emerge will protect you from yourself. If you try too recent a gcc, emerge will not permit it.

This can get very messy. The ebuilds for the intermediate version(s) of glibc and gcc you need may not be in the tree any more but they are still in the portage attic, so you can get them.

I'm using glibc and gcc as an example as its in the right time frame and the block is very clear. udev and the kernel are less clear because there is no hard block. Its quite OK to build the new udev against a kernel you have built but not rebooted into. Its not OK to then attenpt to use the new udev with the old kernel. That will end in tears, well, you will have to get into the new kernel with the aid of a liveCD, if its not already in /boot.

What???
You guys don't have wmwrgw aliased to emerge? :)


Hmm...yes why not

To me, Portage and emerge were built and designed to manage this. What I see, after 9 years updating Gentoo the same way, is that there is less and less care taken at managing updates and handling dependencies, thus letting this work done by 'the user' - this is not what software development processes should try to do ; this is just as stopping the work when alpha draft is Ok. I dont want to consider myself as a sysadmin but as an user. Most (not all of course - Linux is not M$) of the complexity should be hidden to users, or at least manageable with a minimal set of manual actions. It seems that progressively the distance between Gentoo is growing. 10 years ago, it was for "advanced users". Now, it is more and more for "advanced Linux sysadmins". I guess that in less than 5 years it will be a "lab for developers"... and Gentoo's customers will be ... developers of other distribs !
Just my thoughts...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 29965
Location: 56N 3W

PostPosted: Sun Mar 25, 2012 6:15 pm    Post subject: Reply with quote

hmag,

Its the price you pay for installing a 'rolling release' distro, then not rolling with it. The portage tree is updated on the public mirrors every 30 minutes.
After 6 months with no updates, there will be a lot to do and maybe a few breakages needing manual intervention.
After a year, updates are possible but not trivial. Reinstalls are often faster. Such updates are valuable educational experiences.
At 8 months without an update, you are somewhere beteen the two. Exactly where is down to luck - it depends on the developments you have missed.

If you want the learning experience, there are several people posting in this thread who can help. Your most valuable lesson from this is to update more often.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Deathwing00
Moderator
Moderator


Joined: 13 Jun 2003
Posts: 4074
Location: Barcelona, Spain

PostPosted: Wed Mar 28, 2012 3:20 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Portage & Programming.
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