Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
If an emerge requires a reinstall of those that depend on it
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
charlieg
Advocate
Advocate


Joined: 30 Jul 2002
Posts: 2149
Location: Manchester UK

PostPosted: Tue Apr 29, 2003 10:45 am    Post subject: If an emerge requires a reinstall of those that depend on it Reply with quote

GWN wrote:
Early addition of tcl/tk
------------------------

Earlier this week, tcl-8.4.2 was added to the testing tree ahead of schedule and before the supporting scripts to help users migrate from previous versions of tcl were in place. tcl-8.4.2 requires all applications using tcl to be recompiled before they will function with the new version. The development team is working on a migration strategy to help users migrate from previous versions. In the meantime, anyone using ACCEPT_KEYWORDS="~<arch>" should be aware of the recompilation requirements.

Here's an idea.

Why not have a 'dependencies' file in portage, listing which installed applications depend on other package versions.

Code:
# dependencies file

package=tcl
list
the
dependencies
one
yes
i
couldn't
think
of
a
tcl/tk
package

package=another
some
more
dependencies


Then you could do:

Code:
# emerge tcl
WARNING -- Programs compiled against an older version of this package will not work against the new version.

To force the emerge:
emerge --force tcl

To recompile dependencies:
emerge --update-dependencies emerge tcl

To keep the old version:
emerge --do-not-clean tcl


Just a ramble... :)
_________________
Want Free games?
Free Gamer - open source games list & commentary

Open source web-enabled rich UI platform: Vexi
Back to top
View user's profile Send private message
Jimbow
Guru
Guru


Joined: 18 Feb 2003
Posts: 597
Location: Silver City, NM

PostPosted: Tue Apr 29, 2003 11:32 am    Post subject: Re: If an emerge requires a reinstall of those that depend o Reply with quote

charlieg wrote:
Here's an idea.

Why not have a 'dependencies' file in portage, listing which installed applications depend on other package versions.


qpkg -q $PACKAGE already gives you a list of what packages depend upon $PACKAGE. The qpkg program is part of the gentoolkit package.
_________________
After Perl everything else is just assembly language.
Back to top
View user's profile Send private message
noff
Guru
Guru


Joined: 11 Nov 2002
Posts: 388
Location: College Park, Maryland

PostPosted: Wed Apr 30, 2003 1:35 am    Post subject: Reply with quote

If a packages has forward dependencies such as tcl/tk as was found portage should throw a flag and cause portage to search all packages and cause those to recompile. I say it should have an F for forward dependencies.

The dependencies are all there and his should be part of 2.1. This could later be expanded to move those files into a queue. That would be useful for some browsers and kernel modules. Automagically remember to recompile alsa-driver and xfree-drm.
_________________
What Larry was saying is that if you make it too easy for programmers, then poor programmers will be able to do things best left to good programmers, and will inevitably do them poorly. Everyone will suffer in the long term as a result." - Tom Chance
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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