Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

SLOTs and blocking

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
SDraconis
n00b
n00b
Posts: 53
Joined: Wed Apr 20, 2005 1:33 am

SLOTs and blocking

  • Quote

Post by SDraconis » Mon Mar 05, 2007 4:41 am

Is there any way to force a SLOTed package to just update the old package instead of creating a new SLOT? This most commonly happens to me with phpMyAdmin and phpPGAdmin. I understand the beauty of slotting and all, but usually I want to update these in-place rather than installing another side-by-side copy. Is umerging and remerging the only way, or is there a better solution?

On a similar note, I get worried when I have certain important packages blocking their newer versions. In this case, I'm afraid to unmerge an old version first. For example, what if the package in question was Python and the old version was blocking the new one (purely hypothetical)? Unmerging the old Python first would make Portage no longer work and leave me high and dry. Is there a standard way to deal with this?
Top
desultory
Bodhisattva
Bodhisattva
User avatar
Posts: 9410
Joined: Fri Nov 04, 2005 6:07 pm

Re: SLOTs and blocking

  • Quote

Post by desultory » Mon Mar 05, 2007 7:11 am

SDraconis wrote:Is there any way to force a SLOTed package to just update the old package instead of creating a new SLOT?
One approach would be: emerge =$package-$version.
SDraconis wrote:On a similar note, I get worried when I have certain important packages blocking their newer versions. In this case, I'm afraid to unmerge an old version first. For example, what if the package in question was Python and the old version was blocking the new one (purely hypothetical)? Unmerging the old Python first would make Portage no longer work and leave me high and dry. Is there a standard way to deal with this?
If for some reason an update to Python would be blocked by an earlier version the simplest approach would likely be to use a live CD with portage to install the new Python version into the installed system. In more mundane cases, you could simply make a backup of the package before removing it.
Top
SDraconis
n00b
n00b
Posts: 53
Joined: Wed Apr 20, 2005 1:33 am

Re: SLOTs and blocking

  • Quote

Post by SDraconis » Mon Mar 05, 2007 11:26 pm

desultory wrote:
SDraconis wrote:Is there any way to force a SLOTed package to just update the old package instead of creating a new SLOT?
One approach would be: emerge =$package-$version.

The packages in question still want to install as new slots:

Code: Select all

# emerge -av --update phpmyadmin phppgadmin

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ] dev-db/phpmyadmin-2.9.2_rc1  USE="-vhosts" 0 kB 
[ebuild  NS   ] dev-db/phppgadmin-4.0.1  USE="-vhosts" 0 kB

Code: Select all

# emerge -av =dev-db/phppgadmin-4.0.1 =phpmyadmin-2.9.2_rc1

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  NS   ] dev-db/phppgadmin-4.0.1  USE="-vhosts" 0 kB 
[ebuild  NS   ] dev-db/phpmyadmin-2.9.2_rc1  USE="-vhosts" 0 kB
desultory wrote:
SDraconis wrote:On a similar note, I get worried when I have certain important packages blocking their newer versions. In this case, I'm afraid to unmerge an old version first. For example, what if the package in question was Python and the old version was blocking the new one (purely hypothetical)? Unmerging the old Python first would make Portage no longer work and leave me high and dry. Is there a standard way to deal with this?
If for some reason an update to Python would be blocked by an earlier version the simplest approach would likely be to use a live CD with portage to install the new Python version into the installed system. In more mundane cases, you could simply make a backup of the package before removing it.
The Python case was just an example. I'm trying to see if there's a better way than unmerging and then emerging the new version. I'm guessing then that there is no better way.
Top
Genone
Retired Dev
Retired Dev
User avatar
Posts: 9656
Joined: Fri Mar 14, 2003 6:02 pm
Location: beyond the rim

  • Quote

Post by Genone » Tue Mar 06, 2007 12:01 am

http://bugs.gentoo.org/show_bug.cgi?id=121385
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy