Forums

Skip to content

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

emerge bug with slots?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
R.I.P.
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 90
Joined: Tue May 02, 2006 5:41 pm
Location: Kiev, Ukraine

emerge bug with slots?

  • Quote

Post by R.I.P. » Fri Oct 14, 2011 11:21 pm

Background:
I had 3 python versions installed 2.6,2.7,3.1, the eselected one was 2.7
Both 2.6 and 2.7 had some newer versions in portage (didn't update system for several months).
portage version is 2.1.10.27

Scenario:
I wanted to install "media-sound/solfege"
"emerge solfege" told me to rebuild python 2.7.2 with sqlite enabled in use flags
I added "dev-lang/python sqlite" in package.use (so it affected all python versions).
Then I started emerging solfege package again.
Instead of actually installing required 2.7.2 with sqlite as solfege ebuild wanted, emerge rebuilt python 2.6 and then solfege build failed because 2.7.2 was still without sqlite.
Running "emerge solfege" again solved the problem (python 2.7.2 was rebuilt), but I'm confused why it happened.

Is it a bug or some expected nontrivial emerge behavior?
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Sat Oct 15, 2011 12:03 am

python 2.6 and python 2.7 share different slots, but use the same python2 wrapper.

you must :
eselect python set --python2 python2.7
eselect python set --python3 python3versionyoulike
eselect python set pythonversionyoulike (this time it define the default python version to use when someone just call python)
Top
R.I.P.
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 90
Joined: Tue May 02, 2006 5:41 pm
Location: Kiev, Ukraine

  • Quote

Post by R.I.P. » Sat Oct 15, 2011 1:37 am

krinn wrote:python 2.6 and python 2.7 share different slots, but use the same python2 wrapper.

you must :
eselect python set --python2 python2.7
eselect python set --python3 python3versionyoulike
eselect python set pythonversionyoulike (this time it define the default python version to use when someone just call python)
actually it was set already like this prior to all my actions - python2: 2.7, python3: 3.1, default python: 2.7
The problem is that emerge decided to rebuild wrong slot.

Actually took a look and solfege in ebuild says PYTHON_DEPEND="2:2.6"
I'm not sure how PYTHON_DEPEND is handled, but the strange thing is that 2 consequent emerges of solfege package were updating python (because of sqlite use flag added) of different versions (first 2.6, second 2.7) without any changes in between. First one failed, second one succeeded.
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Sat Oct 15, 2011 1:39 am

Even if it is a bug it probably caught nobody's attention because everybody removed 2.6 after upgrade to 2.7.
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
R.I.P.
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 90
Joined: Tue May 02, 2006 5:41 pm
Location: Kiev, Ukraine

  • Quote

Post by R.I.P. » Sat Oct 15, 2011 1:42 am

Jaglover wrote:Even if it is a bug it probably caught nobody's attention because everybody removed 2.6 after upgrade to 2.7.
I understand that, but that may mean that there is some bug in portage regarding slot deps.
So I'm trying to understand whether it is a bug (and if it is I'll report it to bugzilla) or some tricky intended behavior.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Sat Oct 15, 2011 1:46 am

Jaglover wrote:Even if it is a bug it probably caught nobody's attention because everybody removed 2.6 after upgrade to 2.7.
not everybody, i'm not a depclean fan :)

Code: Select all

 dev-lang/python
    selected: 2.6.7-r2 3.1.4-r2 
   protected: none 
     omitted: 2.7.2-r3 3.2.2 
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Sat Oct 15, 2011 1:52 am

Oh dear.
May I recommend depclean now? And maybe a beer while doing that? 8)
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Sat Oct 15, 2011 1:54 am

Number to remove: 21

bah, i will just keep them, i still have plenty space left
Top
Jaglover
Watchman
Watchman
User avatar
Posts: 8291
Joined: Sun May 29, 2005 1:57 am
Location: Saint Amant, Acadiana

  • Quote

Post by Jaglover » Sat Oct 15, 2011 2:05 am

Sure, I used to be a collector myself ... I was collecting stamps ... but methinks it's OK to collect just anything. :P
My Gentoo installation notes.
Please learn how to denote units correctly!
Top
Post Reply

9 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

 

 

magic