Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage borked (KDE 4.1)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
danvari
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2008
Posts: 131

PostPosted: Sun Aug 17, 2008 11:10 am    Post subject: Portage borked (KDE 4.1) Reply with quote

hey!

i wanted to emerge kde 4.1 and used the kdesvn-portage overlay (it was not listed by layman, but i could add it via layman -a kdesvn-portage). i symlinked the maskings:

Code:
gentoobox stephan # ls -l /etc/portage/
insgesamt 24
lrwxrwxrwx 1 root root   80 17. Aug 12:46 package.keywords -> /usr/portage/local/layman/kdesvn-portage/Documentation/portage/package.keywords/
-rw-r--r-- 1 root root  463 17. Aug 12:30 package.keywords.old
lrwxrwxrwx 1 root root   78 17. Aug 12:46 package.unmask -> /usr/portage/local/layman/kdesvn-portage/Documentation/portage/package.unmask/
-rw-r--r-- 1 root root   84 17. Aug 12:17 package.use
drwxr-xr-x 2 root root 4096 29. Jul 13:27 postsync.d
drwxr-xr-x 3 root root 4096 17. Aug 12:34 savedconfig


but now i get the following error when i try to emerge kde:

Code:
gentoobox / # emerge =kde-base/kde-meta-4.1.0
Calculating dependencies \
!!! Multiple versions within a single package slot have been
!!! pulled into the dependency graph:

media-sound/phonon:0

  ('ebuild', '/', 'media-sound/phonon-4.2.0', 'merge') pulled in by
    ('ebuild', '/', 'kde-base/libkcompactdisc-4.1.0', 'merge')

  ('ebuild', '/', 'media-sound/phonon-9999', 'merge') pulled in by
    ('ebuild', '/', 'kde-base/knotify-4.1.0', 'merge')
    ('ebuild', '/', 'kde-base/kdelibs-4.1.0-r1', 'merge')
    ('ebuild', '/', 'kde-base/kmix-4.1.0', 'merge')
    (and 4 more)


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously. If such a conflict exists in the
dependencies of two different packages, then those packages can not be
installed simultaneously.

For more information, see MASKED PACKAGES section in the emerge man page
or refer to the Gentoo Handbook.


strange, what should i do? i never got an error like this...
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6929
Location: Austria

PostPosted: Sun Aug 17, 2008 11:22 am    Post subject: Reply with quote

It would have been listed via 'layman -Lk' ;)

I suggest masking phonon-9999 by
echo '=media-libs/phonon-9999' >> /etc/portage/package.mask

Make sure it doesn't get unmasked again somewhere in /etc/portage/package.unmask.

Then specify which version you want to have (I'd suggest 4.2.0) in /etc/portage/package.keywords:
=media-sound/phonon-4.2.0

Check if portage wants to emerge the correct version, if so, proceed:
emerge -1va media-sound/phonon

Then proceed with installing kde-4.1.

PS: Imo it's a bad idea to directly symlink package.keywords and package.unmask. There's a way to both use such provided files as well as defining your own (as you most certainly want or need to do). Simply create them as directories:
Code:
mkdir /etc/portage/package.keywords
ln -snf /usr/portage/local/layman/kdesvn-portage/Documentation/portage /etc/portage/package.keywords/kde4svn
touch /etc/portage/package.keywords/my.keywords

_________________
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
danvari
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2008
Posts: 131

PostPosted: Sun Aug 17, 2008 11:49 am    Post subject: Reply with quote

hmm strange, that sounds right, but does not work for me:

Code:
gentoobox / # cat /etc/portage/package.unmask/kde4svn/kde-deps-4.1
# This file contains basic dependencies for KDE4

=dev-libs/soprano-2.1
=kde-base/automoc-0.9.84
=app-office/akonadi-server-1.0.0
kde-base/kdelibs:4.1
kde-base/kdepimlibs:4.1
=media-sound/phonon-4.2.0


--> only phonon-4.2.0 is unmasked, which is ok i think

Code:
gentoobox / # cat /etc/portage/package.keywords/my.keywords
=kde-base/kde-meta-4.1.0 ~amd64
=media-sound/phonon-4.2.0

Code:

gentoobox / # cat /etc/portage/package.mask
=media-libs/phonon-9999


Code:
gentoobox / # emerge -pv media-sound/phonon

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

Calculating dependencies... done!
[ebuild  N    ] dev-db/sqlite-3.5.9  USE="threadsafe -debug -doc -soundex -tcl" 2,150 kB
[ebuild  N    ] x11-libs/qt-core-4.4.1-r1  USE="qt3support ssl -debug -doc -glib -pch" 99,595 kB
[ebuild  N    ] x11-libs/qt-dbus-4.4.1  USE="-debug -pch" 0 kB
[ebuild  N    ] x11-libs/qt-script-4.4.1  USE="-debug -pch" 0 kB
[ebuild  N    ] x11-libs/qt-sql-4.4.1  USE="qt3support sqlite -debug (-firebird) -mysql -odbc -pch -postgres" 0 kB
[ebuild  N    ] x11-libs/qt-test-4.4.1  USE="-debug -pch" 0 kB
[ebuild  N    ] kde-base/automoc-9999  0 kB [1]
[ebuild  N    ] x11-libs/qt-gui-4.4.1  USE="accessibility cups dbus qt3support tiff -debug -glib -mng -nas -nis -pch -xinerama" INPUT_DEVICES="-wacom" 0 kB
[ebuild  N    ] x11-libs/qt-qt3support-4.4.1  USE="accessibility -debug -pch" 0 kB
[ebuild  N    ] x11-libs/qt-opengl-4.4.1  USE="qt3support -debug -pch" 0 kB
[ebuild  N    ] media-sound/phonon-9999  USE="gstreamer -debug" 0 kB [1]

Total: 11 packages (11 new), Size of downloads: 101,745 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/kdesvn-portage


sounds like it wants to install the live ebuild...
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6929
Location: Austria

PostPosted: Sun Aug 17, 2008 11:51 am    Post subject: Reply with quote

danvari wrote:
hmm strange, that sounds right, but does not work for me:

Code:
gentoobox / # cat /etc/portage/package.unmask/kde4svn/kde-deps-4.1
# This file contains basic dependencies for KDE4

=dev-libs/soprano-2.1
=kde-base/automoc-0.9.84
=app-office/akonadi-server-1.0.0
kde-base/kdelibs:4.1
kde-base/kdepimlibs:4.1
=media-sound/phonon-4.2.0


--> only phonon-4.2.0 is unmasked, which is ok i think

Hm, I'm not sure it works that way with another subdirectory in package.unmask, I never tried that though.

Portage couldn't possibly want to emerge phonon-9999 if it was properly masked. ;)

Do you still have symlinked those kde4svn-provided keywords?
_________________
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
danvari
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2008
Posts: 131

PostPosted: Sun Aug 17, 2008 11:59 am    Post subject: Reply with quote

hmm, yes ^^ but i created a directory as you said:

Code:
gentoobox / # ls -l /etc/portage/
insgesamt 28
drwxr-xr-x 2 root root 4096 17. Aug 13:38 package.keywords
-rw-r--r-- 1 root root  463 17. Aug 12:30 package.keywords.old
-rw-r--r-- 1 root root   24 17. Aug 13:29 package.mask
drwxr-xr-x 2 root root 4096 17. Aug 13:39 package.unmask
-rw-r--r-- 1 root root   84 17. Aug 12:17 package.use
drwxr-xr-x 2 root root 4096 29. Jul 13:27 postsync.d
drwxr-xr-x 3 root root 4096 17. Aug 12:34 savedconfig


Code:
gentoobox / # ls -l /etc/portage/package.keywords
insgesamt 8
lrwxrwxrwx 1 root root 80 17. Aug 13:38 kde4svn -> /usr/portage/local/layman/kdesvn-portage/Documentation/portage/package.keywords/
-rw-r--r-- 1 root root 59 17. Aug 13:42 my.keywords


Code:
gentoobox / # ls -l /etc/portage/package.unmask/
insgesamt 4
lrwxrwxrwx 1 root root 78 17. Aug 13:39 kde4svn -> /usr/portage/local/layman/kdesvn-portage/Documentation/portage/package.unmask/
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6929
Location: Austria

PostPosted: Sun Aug 17, 2008 12:09 pm    Post subject: Reply with quote

Ok, I'm sure phonon-9999 gets unmasked there. ;)

...yes, here it is:
Code:
cat /usr/local/portage/layman/kdesvn-portage/Documentation/portage/package.keywords/kde-deps-4.1.keywords | grep phonon
media-sound/phonon

_________________
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
danvari
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2008
Posts: 131

PostPosted: Sun Aug 17, 2008 12:16 pm    Post subject: Reply with quote

hmm lol ok and how can i fix that? i commented the line out:

Code:
gentoobox / # cat /etc/portage/package.keywords/kde4svn/kde-deps-4.1.keywords
# This file contains basic dependencies for KDE4

app-office/akonadi-server
dev-libs/soprano
app-misc/strigi
kde-base/automoc
kde-base/kdelibs:4.1
kde-base/kdepimlibs:4.1
#media-sound/phonon
dev-libs/rasqal
dev-cpp/clucene
dev-libs/redland
app-crypt/qca
app-crypt/qca-ossl
x11-apps/xinit
dev-util/cmake
sci-mathematics/gmm


but portage tries still to emerge phonon-9999:

Code:
gentoobox / # emerge -pv media-sound/phonon

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

Calculating dependencies... done!
[ebuild  N    ] dev-db/sqlite-3.5.9  USE="threadsafe -debug -doc -soundex -tcl" 2,150 kB
[ebuild  N    ] x11-libs/qt-core-4.4.1-r1  USE="qt3support ssl -debug -doc -glib -pch" 99,595 kB
[ebuild  N    ] x11-libs/qt-dbus-4.4.1  USE="-debug -pch" 0 kB
[ebuild  N    ] x11-libs/qt-script-4.4.1  USE="-debug -pch" 0 kB
[ebuild  N    ] x11-libs/qt-sql-4.4.1  USE="qt3support sqlite -debug (-firebird) -mysql -odbc -pch -postgres" 0 kB
[ebuild  N    ] x11-libs/qt-test-4.4.1  USE="-debug -pch" 0 kB
[ebuild  N    ] kde-base/automoc-9999  0 kB [1]
[ebuild  N    ] x11-libs/qt-gui-4.4.1  USE="accessibility cups dbus qt3support tiff -debug -glib -mng -nas -nis -pch -xinerama" INPUT_DEVICES="-wacom" 0 kB
[ebuild  N    ] x11-libs/qt-qt3support-4.4.1  USE="accessibility -debug -pch" 0 kB
[ebuild  N    ] x11-libs/qt-opengl-4.4.1  USE="qt3support -debug -pch" 0 kB
[ebuild  N    ] media-sound/phonon-9999  USE="gstreamer -debug" 0 kB [1]

Total: 11 packages (11 new), Size of downloads: 101,745 kB
Portage tree and overlays:
 [0] /usr/portage
 [1] /usr/portage/local/layman/kdesvn-portage


and the error while emerging kde 4 still occurs :roll:
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 6929
Location: Austria

PostPosted: Sun Aug 17, 2008 12:32 pm    Post subject: Reply with quote

That's why I don't like such things - you get lots of duplicated keyword entries and lose grip of it all. Portage isn't borked, it's those keyword files. ;) I only use such a symlink for enlightenment e17 because it's a clean, single file.

You could scrap those symlinks and create your own kde4.keywords. More work in the beginning, more hassle-free in the future.

For comparison, or copying, mine:
kde4 keywords: http://rafb.net/p/GorqBP63.html
qt4 keywords: http://rafb.net/p/rJu7hm89.html

You may have to manually add some entries, but you keep full control over your keywords.
_________________
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
danvari
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2008
Posts: 131

PostPosted: Mon Aug 18, 2008 7:12 am    Post subject: Reply with quote

uhh i had to add many many items, so it was no fun ^^ but i used autounmask to unmask the stuff and that worked now :)
Back to top
View user's profile Send private message
chris.c.hogan
Apprentice
Apprentice


Joined: 02 Oct 2005
Posts: 189

PostPosted: Sat Aug 23, 2008 10:08 am    Post subject: Reply with quote

genstorm wrote:

For comparison, or copying, mine:
kde4 keywords: http://rafb.net/p/GorqBP63.html
qt4 keywords: http://rafb.net/p/rJu7hm89.html


Can you upload those again? I get a 404 error.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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