Jump to content
funtoo forums
  • 0
Sign in to follow this  
biocyberman

Force reinstallation of all packages installed from ports-2012 (gentoo)?

Question

I asked about a problem with upgrade to meta repo here:

I got most of the things to work now, but the following issue of ebuild source conflicts keeps bugging me:

# emerge -av "=dev-qt/qtwebengine-5.9.2:5/5.9::kde-kit" "=dev-qt/qtgui-5.9.2:5/5.9::kde-kit" "=dev-qt/qtwidgets-5.9.2:5/5.9::kde-kit"                                                                                                                                                                           !3940
Password:
!!! Repository 'x-portage' is missing masters attribute in '/usr/local/portage/metadata/layout.conf'
!!! Set 'masters = core-kit' in this file for future compatibility

 * IMPORTANT: config file '/etc/portage/package.use' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

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

Calculating dependencies... done!
[ebuild     U  ] dev-qt/qtgui-5.9.2:5/5.9::kde-kit [5.7.1:5/5.7::gentoo] USE="dbus gif jpeg libinput* png udev xcb -accessibility -debug -egl -eglfs -evdev -gles2 -ibus {-test} -tslib -tuio -vnc% (-gtk%)" 0 KiB
[ebuild     U  ] dev-qt/qtwidgets-5.9.2:5/5.9::kde-kit [5.7.1:5/5.7::gentoo] USE="png xcb -debug -gles2 -gtk% {-test}" 0 KiB
[ebuild     U  ] dev-qt/qtdeclarative-5.9.2:5/5.9::kde-kit [5.7.1:5/5.7::gentoo] USE="widgets xml -debug -gles2 -jit -localstorage {-test}" 0 KiB
[ebuild     U  ] dev-qt/qtwebchannel-5.9.2:5/5.9::kde-kit [5.7.1:5/5.7::gentoo] USE="qml -debug {-test}" 0 KiB
[ebuild     U  ] dev-qt/qtwebengine-5.9.2:5/5.9::kde-kit [5.7.1-r2:5/5.7::kde-kit] USE="alsa pax_kernel pulseaudio system-ffmpeg system-icu widgets -bindist -debug -geolocation {-test}" 0 KiB

Total: 5 packages (5 upgrades), Size of downloads: 0 KiB

Oops! Conflicts have been encountered:

>>> =dev-qt/qtgui-5.9.2:5/5.9::kde-kit, wants =dev-qt/qtgui-5.9.2:5/5.9::kde-kit
>>> dev-qt/qtwidgets-5.9.2:5/5.9::kde-kit, ebuild scheduled for merge, wants ~dev-qt/qtgui-5.9.2[gles2=,png=,xcb?]
>>> dev-qt/qtwebengine-5.9.2:5/5.9::kde-kit, ebuild scheduled for merge, wants ~dev-qt/qtgui-5.9.2
>>> dev-qt/qtdeclarative-5.9.2:5/5.9::kde-kit, ebuild scheduled for merge, wants ~dev-qt/qtgui-5.9.2[gles2=]
>>> dev-qt/qtsvg-5.7.1:5/5.7::gentoo, installed, wants ~dev-qt/qtgui-5.7.1
>>> dev-qt/qtwebkit-5.7.1:5/5.7::gentoo, installed, wants ~dev-qt/qtgui-5.7.1
>>> dev-qt/qtopengl-5.7.1:5/5.7::gentoo, installed, wants ~dev-qt/qtgui-5.7.1[-gles2]
>>> dev-qt/qtwidgets-5.7.1:5/5.7::gentoo, installed, wants ~dev-qt/qtgui-5.7.1[-gles2,png,xcb]
>>> dev-qt/qtprintsupport-5.7.1:5/5.7::gentoo, installed, wants ~dev-qt/qtgui-5.7.1[-gles2]

My candidates are:

>>> dev-qt/qtgui-5.9.2:5/5.9::kde-kit, ebuild scheduled for merge has SLOT 5/5.9
>>> dev-qt/qtgui-5.7.1:5/5.7::gentoo, installed has SLOT 5/5.7
>>> dev-qt/qtdeclarative-5.9.2:5/5.9::kde-kit, ebuild scheduled for merge, wants ~dev-qt/qtwidgets-5.9.2[gles2=]
>>> =dev-qt/qtwidgets-5.9.2:5/5.9::kde-kit, wants =dev-qt/qtwidgets-5.9.2:5/5.9::kde-kit
>>> dev-qt/qtwebengine-5.9.2:5/5.9::kde-kit, ebuild scheduled for merge, wants ~dev-qt/qtwidgets-5.9.2
>>> dev-qt/qtsvg-5.7.1:5/5.7::gentoo, installed, wants ~dev-qt/qtwidgets-5.7.1
>>> dev-qt/qtprintsupport-5.7.1:5/5.7::gentoo, installed, wants ~dev-qt/qtwidgets-5.7.1[-gles2]
>>> dev-qt/qtopengl-5.7.1:5/5.7::gentoo, installed, wants ~dev-qt/qtwidgets-5.7.1[-gles2]
>>> dev-qt/qtwebkit-5.7.1:5/5.7::gentoo, installed, wants ~dev-qt/qtwidgets-5.7.1

My candidates are:

>>> dev-qt/qtwidgets-5.9.2:5/5.9::kde-kit, ebuild scheduled for merge has SLOT 5/5.9
>>> dev-qt/qtwidgets-5.7.1:5/5.7::gentoo, installed has SLOT 5/5.7


We hope this informational output has been useful in identifying the
problem. We are continually working to reduce conflicts. Do not
hesitate to report a bug at https://bugs.funtoo.org. Thank you! :)

 

How do I force reinstallation of all packages that were installed from the old repo?

 

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 1

Found it!

The trick is "# emerge -auDN --newrepo @world". The '--newrepo' option is crucial.

Update 19 Oct 2017:

The command above works for more than 1000 packages I have installed, except the qt* packages. For these stubborn qt* packages I had to do the following:

emerge -Cav "dev-qt/qt*" 
 * This action can remove important packages! In order to be safer, use        
 * `emerge -pv --depclean <atom>` to check for reverse dependencies before              
 * removing packages.                                                                 
                                                                                
>>> These are the packages that would be unmerged:                            
                                                                      
 dev-qt/qtsql                                                            
    selected: 5.9.2                                                        
   protected: none                                                             
     omitted: none                                                                               
                                                                                    
 dev-qt/qtx11extras                                                          
    selected: 5.7.1                                                     
   protected: none                                                         
     omitted: none                                                              
                                                                         
 ... truncated for clarity ...                                                                 
                                                                                              
 dev-qt/qtprintsupport                                                                  
    selected: 5.7.1                                                                                   
   protected: none                                                                                  
     omitted: none                                           
 All selected packages: =dev-qt/qtwidgets-5.7.1 =dev-qt/qtgui-4.8.7 =dev-qt/qtcore-5.9.2 =dev-qt/qtwebchannel-5.7.1 =dev-qt/qtpositioning-5.9.2 =dev-qt/qtopengl-4.8.7 =dev-qt/qtcore-4.8.7-r2 =dev-qt/qtwebengine-5.7.1-r2 =dev-qt/qtgui-5.7.1 =dev-qt/qtsql-5.9.2 =dev-qt/qtprintsupport-5.7.1 =dev-qt/qtdeclarative-5.7.1 =
dev-qt/qtxmlpatterns-5.9.2 =dev-qt/qtdbus-5.9.2 =dev-qt/qtsvg-4.8.7 =dev-qt/qtopengl-5.7.1 =dev-qt/qtxml-5.9.2 =dev-qt/qttranslations-4.8.7 =dev-qt/qtdbus-4.8.7 =dev-qt/qtchooser-0_p20170803 =dev-qt/qtwebkit-5.7.1 =dev-qt/qttest-5.9.2 =dev-qt/qtnetwork-5.9.2 =dev-qt/qtsvg-5.7.1 =dev-qt/qtscript-4.8.7 =dev-qt/qtconcu
rrent-5.9.2 =dev-qt/qtx11extras-5.7.1

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

Would you like to unmerge these packages? [Yes/No] Yes

Next, run this command:
 

# Here I have renamed the /usr/portage directory for backup
emerge -av @preserved-rebuild

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...