Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
python3.3 and preserved-rebuilds [SOLVED]
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
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 628

PostPosted: Mon Dec 05, 2016 5:00 pm    Post subject: python3.3 and preserved-rebuilds [SOLVED] Reply with quote

Hi,

I'm usually able to figure these things out on my own but I admit I am stumped.

After updating the system, I get the following
Code:
!!! existing preserved libs:
>>> package: sys-libs/ncurses-6.0-r1
 *  - /lib64/libncursesw.so.5
 *  - /lib64/libncursesw.so.5.9
 *      used by /usr/lib64/python3.3/lib-dynload/_curses.cpython-33.so (dev-lang/python-3.3.5-r3)
 *      used by /usr/lib64/python3.3/lib-dynload/readline.cpython-33.so (dev-lang/python-3.3.5-r3)
 *      used by /usr/lib64/ruby/1.9.1/x86_64-linux/curses.so (dev-lang/ruby-1.9.3_p551-r1)
 *      used by /usr/lib64/ruby/2.0.0/x86_64-linux/curses.so (dev-lang/ruby-2.0.0_p648)
 *  - /usr/lib32/libncurses.so.5
 *  - /usr/lib32/libncurses.so.5.9
 *      used by /usr/lib32/libreadline.so.6.3 (sys-libs/readline-6.3_p8-r2)
 *  - /usr/lib64/libpanel.so.5
 *  - /usr/lib64/libpanel.so.5.9
 *      used by /opt/android-ndk/prebuilt/linux-x86_64/lib/python2.7/lib-dynload/_curses_panel.so (dev-util/android-ndk-10b)
 *  - /lib64/libncurses.so.5
 *  - /lib64/libncurses.so.5.9
 *      used by /lib64/libreadline.so.6.3 (sys-libs/readline-6.3_p8-r2)
 *      used by /opt/android-ndk/prebuilt/linux-x86_64/lib/python2.7/lib-dynload/_curses.so (dev-util/android-ndk-10b)
 *      used by /opt/android-ndk/prebuilt/linux-x86_64/lib/python2.7/lib-dynload/_curses_panel.so (dev-util/android-ndk-10b)
 *      used by 23 other files
 *  - /usr/lib64/libpanelw.so.5
 *  - /usr/lib64/libpanelw.so.5.9
 *      used by /usr/lib64/python3.3/lib-dynload/_curses_panel.cpython-33.so (dev-lang/python-3.3.5-r3)
[...]
Code:
# emerge @preserved-rebuild
Code:
emerge: there are no ebuilds to satisfy "dev-lang/python:3.3".
(dependency required by "@preserved-rebuild" [argument])
But yet
Code:
# eselect python list
Code:

Available Python interpreters:
  [1]   python2.7
  [2]   python3.3 *
  [3]   python3.4

I've run python-updater, but the outcome is still the same.
It's not clear to me what the proper course of action is.

Anyone?
Thanks in advance

[Moderator edit: changed some [quote] tags to [code] tags to preserve output layout. -Hu]


Last edited by Progman3K on Tue Dec 06, 2016 2:47 am; edited 1 time in total
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 4976
Location: Austria

PostPosted: Mon Dec 05, 2016 6:01 pm    Post subject: Reply with quote

python3_3 is gone, switch to 3_4. 3_4 has been the default for well over a year...
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 628

PostPosted: Mon Dec 05, 2016 6:24 pm    Post subject: Reply with quote

Thanks for taking a look asturm,

Code:
# eselect python list
Available Python interpreters:
  [1]   python2.7
  [2]   python3.3 *
  [3]   python3.4
# eselect python set 3
# emerge @preserved-rebuild
emerge: there are no ebuilds to satisfy "dev-lang/ruby:1.9".

# eselect ruby list
Available Ruby profiles:
  [1]   ruby19
  [2]   ruby20 (with Rubygems) *
  [3]   ruby21 (with Rubygems)
# eselect ruby set 3
Successfully switched to profile:
  ruby21
# emerge @preserved-rebuild
emerge: there are no ebuilds to satisfy "dev-lang/python:3.3".

# eselect ruby set 1
!!! Warning: Could not set gem symlink
It appears you do not have RubyGems installed for this profile.
If you need RubyGems, emerge dev-ruby/rubygems with the appropriate RUBY_TARGETS setting.

Successfully switched to profile:
  ruby19
# emerge @preserved-rebuild
emerge: there are no ebuilds to satisfy "dev-lang/ruby:1.9".


As you can see, this has modified the problem but still won't allow the preserved-rebuild to proceed.

[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 10520

PostPosted: Tue Dec 06, 2016 2:03 am    Post subject: Reply with quote

asturm did not merely mean that you need to change your default implementation. He meant that you need to remove Python 3.3 from the system. Likewise, it looks like you need to remove the old Ruby 1.9 from your system.
Back to top
View user's profile Send private message
Progman3K
l33t
l33t


Joined: 03 Jan 2004
Posts: 628

PostPosted: Tue Dec 06, 2016 2:46 am    Post subject: Reply with quote

Thanks, Hu, asterm,

It's pretty much the road I've chosen:

Code:
# portageq list_preserved_libs /
Quote:
sys-libs/ncurses-6.0-r1 /lib64/libncurses.so.5.9 /lib64/libncursesw.so.5.9 /usr/lib64/libpanel.so.5.9 /usr/lib64/libpanelw.so.5.9 /usr/lib64/libpanelw.so.5 /usr/lib64/libpanel.so.5 /lib64/libncurses.so.5 /lib64/libncursesw.so.5
So I delete them
Code:
# rm /lib64/libncurses.so.5.9 /lib64/libncursesw.so.5.9 /usr/lib64/libpanel.so.5.9 /usr/lib64/libpanelw.so.5.9 /lib64/libncursesw.so.5 /usr/lib64/libpanelw.so.5 /usr/lib64/libpanel.so.5 /lib64/libncurses.so.5
But
Code:
# revdep-rebuild -i
Quote:
[ 3% ] * broken /usr/bin/ddd (requires libncurses.so.5)
[ 14% ] * broken /usr/bin/xemacs-21.4.24 (requires libncurses.so.5)
[ 81% ] * broken /usr/lib64/libvte2_90.so.9.3600.3 (requires libncurses.so.5)
[ 85% ] * broken /usr/lib64/python3.3/lib-dynload/_curses.cpython-33.so (requires libncursesw.so.5)
* broken /usr/lib64/python3.3/lib-dynload/_curses_panel.cpython-33.so (requires libpanelw.so.5)
* broken /usr/lib64/python3.3/lib-dynload/readline.cpython-33.so (requires libncursesw.so.5)
[ 88% ] * broken /usr/lib64/ruby/1.9.1/x86_64-linux/curses.so (requires libncursesw.so.5)
[ 100% ]
* Generated new 3_broken.rr
* Assigning files to packages
* /usr/bin/ddd -> dev-util/ddd
* /usr/bin/xemacs-21.4.24 -> app-editors/xemacs
* /usr/lib64/libvte2_90.so.9.3600.3 -> x11-libs/vte
* /usr/lib64/python3.3/lib-dynload/_curses.cpython-33.so -> dev-lang/python
* /usr/lib64/python3.3/lib-dynload/_curses_panel.cpython-33.so -> dev-lang/python
* /usr/lib64/python3.3/lib-dynload/readline.cpython-33.so -> dev-lang/python
* /usr/lib64/ruby/1.9.1/x86_64-linux/curses.so -> dev-lang/ruby
emerge --complete-graph=y --oneshot app-editors/xemacs:0 dev-util/ddd:0 x11-libs/vte:2.90

* Portage could not find any version of the following packages it could build:
* dev-lang/python:3.3 dev-lang/ruby:1.9

Perhaps manual deletion was NOT the correct action... Let's try the more proper action:

Code:
# emerge --unmerge -vDa =dev-lang/python-3.3.5-r3 =dev-lang/ruby-1.9.3_p551-r1
Quote:
>>> These are the packages that would be unmerged:

dev-lang/python
selected: 3.3.5-r3
protected: none
omitted: 2.7.12 3.4.5

dev-lang/ruby
selected: 1.9.3_p551-r1
protected: none
omitted: 2.0.0_p648 2.1.9

This seems to be the correct action.

As a result, there are still modules to be rebuilt by emerge @preserved-rebuild, but this time the package list is different:
Quote:
!!! existing preserved libs:
>>> package: dev-lang/python-3.3.5-r3
* - /usr/lib64/libpython3.3.so.1.0
* used by /usr/lib64/python3.3/site-packages/markupsafe/_speedups.cpython-33.so (dev-python/markupsafe-0.23)


But this time the rebuild completes sucessfully and revdep-rebuild -i detects nothing amiss, all seems well.

Thank you again asturm and Hu!
Back to top
View user's profile Send private message
amulet_linux
n00b
n00b


Joined: 26 Apr 2014
Posts: 65

PostPosted: Tue Dec 06, 2016 4:44 am    Post subject: Thank you Reply with quote

It worked for me too, I had this weird problem too and your right solution worked like a charm c:
Now I am rebuilding 38 packages (preserved modules)
:3
_________________
http://gentoo.host | http://gentoo.link
I post about Gentoo and Linux :3 (I love it)
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