View previous topic :: View next topic |
Author |
Message |
tobiasge n00b
Joined: 08 Dec 2003 Posts: 21
|
Posted: Tue Sep 27, 2011 1:13 pm Post subject: Package mask / unmask problem |
|
|
Hi,
on my system I have mariadb and want to mask mysql completely. I have made the following settings:
Code: | # cat package.mask/mariadb
dev-db/mysql
>virtual/mysql-5.2
|
Code: | # cat package.unmask/mariadb
=virtual/mysql-5.2
=dev-db/mariadb-5.2.9
|
When I try to upgrade a package I get the following error:
Code: | # emerge --verbose --newuse --deep --update --oneshot virtual/perl-Package-Constants
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild U ] virtual/perl-Package-Constants-0.20.0-r1 [0.02] 0 kB [0]
[ebuild N #] dev-db/mysql-5.5.16 USE="berkdb community perl ssl -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -profiling (-selinux) -static -test" 24,942 kB [1]
[ebuild U #] virtual/mysql-5.5 [5.2] USE="-embedded -minimal -static" 0 kB [1]
[blocks B ] dev-db/mariadb ("dev-db/mariadb" is blocking dev-db/mysql-5.5.16)
[blocks B ] dev-db/mysql ("dev-db/mysql" is blocking dev-db/mariadb-5.2.9)
Total: 3 packages (2 upgrades, 1 new), Size of downloads: 24,942 kB
Conflict: 2 blocks (2 unsatisfied)
Portage tree and overlays:
[0] /usr/portage
[1] /var/lib/layman/mysql
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(dev-db/mysql-5.5.16::mysql, ebuild scheduled for merge) pulled in by
=dev-db/mysql-5.5*[-embedded,-minimal,-static] required by (virtual/mysql-5.5::mysql, ebuild scheduled for merge)
(dev-db/mariadb-5.2.9::mysql, installed) pulled in by
dev-db/mariadb required by @selected
|
The mariadb ebuilds are pulled from the layman "mysql" overlay.
Has anybody an idea what I am doing wrong?
Greetings,
Tobias |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Tue Sep 27, 2011 2:20 pm Post subject: |
|
|
is most likely an entry in your world file. That would certainly cause it to be pulled in again. _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
tobiasge n00b
Joined: 08 Dec 2003 Posts: 21
|
Posted: Tue Sep 27, 2011 2:27 pm Post subject: |
|
|
dol-sen wrote: | is most likely an entry in your world file. That would certainly cause it to be pulled in again. |
A '# grep "mysql" /var/lib/portage/world' shows no results, so this seems not to be the problem. |
|
Back to top |
|
|
dol-sen Retired Dev
Joined: 30 Jun 2002 Posts: 2805 Location: Richmond, BC, Canada
|
Posted: Tue Sep 27, 2011 2:35 pm Post subject: |
|
|
Then add the -t, --tree parameter to your emerge line to see what is pulling it in. _________________ Brian
Porthole, the Portage GUI frontend irc@freenode: #gentoo-guis, #porthole, Blog
layman, gentoolkit, CoreBuilder, esearch... |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9523 Location: beyond the rim
|
Posted: Tue Sep 27, 2011 9:03 pm Post subject: |
|
|
Also check that you don't have any conflicting entries for mysql in other package.unmask files. |
|
Back to top |
|
|
chithanh Developer
Joined: 05 Aug 2006 Posts: 2158 Location: Berlin, Germany
|
Posted: Wed Sep 28, 2011 12:35 am Post subject: |
|
|
Try adding --autounmask=n to emerge parameters, this will make portage more informative regarding what still pulls in mysql. |
|
Back to top |
|
|
few Guru
Joined: 03 Mar 2008 Posts: 448
|
Posted: Wed Sep 28, 2011 4:36 am Post subject: Re: Package mask / unmask problem |
|
|
tobiasge wrote: | Hi,
Code: | # emerge --verbose --newuse --deep --update --oneshot virtual/perl-Package-Constants
[...]
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(dev-db/mysql-5.5.16::mysql, ebuild scheduled for merge) pulled in by
=dev-db/mysql-5.5*[-embedded,-minimal,-static] required by (virtual/mysql-5.5::mysql, ebuild scheduled for merge)
(dev-db/mariadb-5.2.9::mysql, installed) pulled in by
dev-db/mariadb required by @selected
|
|
Look at the deps of this virtual. Only version 5.1 and 5.2 have mariadb as alternative. You need to mask those higher versions of the virtual. |
|
Back to top |
|
|
tobiasge n00b
Joined: 08 Dec 2003 Posts: 21
|
Posted: Thu Sep 29, 2011 2:39 pm Post subject: Re: Package mask / unmask problem |
|
|
few wrote: |
Look at the deps of this virtual. Only version 5.1 and 5.2 have mariadb as alternative. You need to mask those higher versions of the virtual. |
Hi,
the higher versions should be masked. See the entries In have posted in the first entry of this thread.
With -t I get this output:
Code: | emerge --tree --verbose --newuse --deep --update --oneshot virtual/perl-Package-Constants
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[nomerge ] dev-db/mysql-5.5.16 USE="berkdb community perl ssl -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -profiling (-selinux) -static -test" [1]
[nomerge ] dev-util/cmake-2.8.5-r2 USE="ncurses vim-syntax -emacs -qt4 -test" [0]
[nomerge ] net-misc/curl-7.22.0 USE="gnutls idn ipv6 ssl threads -ares -kerberos -ldap -libssh2 -nss -static-libs -test" [0]
[nomerge ] net-dns/libidn-1.22 USE="java nls -doc -emacs -mono -static-libs" [0]
[nomerge ] virtual/jre-1.6.0 [0]
[nomerge ] virtual/jdk-1.6.0 [0]
[nomerge ] dev-java/sun-jdk-1.6.0.27 USE="-X -alsa -derby -doc -examples -jce -nsplugin -odbc" [0]
[nomerge ] sys-libs/glibc-2.13-r4 USE="gd nls -debug -glibc-omitfp (-hardened) (-multilib) -profile (-selinux) -vanilla" [0]
[nomerge ] sys-devel/gettext-0.18.1.1-r3 USE="acl git java nls openmp -doc -emacs -nocxx -static-libs" [0]
[nomerge ] dev-vcs/git-1.7.6.1 USE="bash-completion blksha1 cgi curl iconv perl python subversion threads webdav -cvs -doc -emacs -gtk (-ppcsha1) -tk -xinetd" [0]
[nomerge ] dev-vcs/subversion-1.6.17-r7 USE="bash-completion berkdb java nls perl python sasl vim-syntax webdav-neon -apache2 -ctypes-python -debug -doc -dso -emacs -extras -gnome-keyring -kde -ruby -webdav-serf" [0]
[nomerge ] dev-libs/cyrus-sasl-2.1.23-r5 USE="berkdb crypt gdbm java mysql pam ssl -authdaemond -kerberos -ntlm_unsupported_patch -openldap -postgres -sample -srp -urandom" [0]
[ebuild U #] virtual/mysql-5.5 [5.2] USE="-embedded -minimal -static" 0 kB [1]
[ebuild N #] dev-db/mysql-5.5.16 USE="berkdb community perl ssl -cluster -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -profiling (-selinux) -static -test" 24,942 kB [1]
[blocks B ] dev-db/mysql ("dev-db/mysql" is blocking dev-db/mariadb-5.2.9)
[blocks B ] dev-db/mariadb ("dev-db/mariadb" is blocking dev-db/mysql-5.5.16)
Total: 2 packages (1 upgrade, 1 new), Size of downloads: 24,942 kB
Conflict: 2 blocks (2 unsatisfied)
Portage tree and overlays:
[0] /usr/portage
[1] /var/lib/layman/mysql
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(dev-db/mysql-5.5.16::mysql, ebuild scheduled for merge) pulled in by
=dev-db/mysql-5.5*[-embedded,-minimal,-static] required by (virtual/mysql-5.5::mysql, ebuild scheduled for merge)
(dev-db/mariadb-5.2.9::mysql, installed) pulled in by
dev-db/mariadb required by @selected
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
|
With the entries in the package.mask the virtual/mysql-5.5 should not be pulled in. |
|
Back to top |
|
|
few Guru
Joined: 03 Mar 2008 Posts: 448
|
Posted: Thu Sep 29, 2011 2:48 pm Post subject: Re: Package mask / unmask problem |
|
|
tobiasge wrote: | With the entries in the package.mask the virtual/mysql-5.5 should not be pulled in. |
The most likely cause is that you have some additional entries in package.unmask that revert this mask. Did you try --autounmask=n? I doubt that this will make a difference, but lets exclude a bug there. |
|
Back to top |
|
|
tobiasge n00b
Joined: 08 Dec 2003 Posts: 21
|
Posted: Sat Oct 01, 2011 10:13 am Post subject: Re: Package mask / unmask problem |
|
|
few wrote: | The most likely cause is that you have some additional entries in package.unmask that revert this mask. Did you try --autounmask=n? I doubt that this will make a difference, but lets exclude a bug there. |
With --autounmask=n it is the same problem.
Here are the complete contents of my package.mask and package.unmask directory:
Code: | <ganymede:/etc/portage># cat package.unmask/*
=virtual/mysql-5.2
=dev-db/mariadb-5.2.9
[Sat 2011-10-01 12:11:31 CEST][pts/1][x86_64/linux-gnu/3.0.4-gentoo][4.3.12][root]
<ganymede:/etc/portage># cat package.mask/*
dev-db/mysql
=virtual/mysql-5.5
=net-p2p/mldonkey-3.1.0
|
|
|
Back to top |
|
|
few Guru
Joined: 03 Mar 2008 Posts: 448
|
Posted: Sun Oct 02, 2011 8:28 am Post subject: |
|
|
Ok, it turned out to be a bug / strange behavior in portage.
A workaround is
echo "-=virtual/mysql-5.5" >> /etc/portage/package.unmask
You might need to do that for the other atoms in /var/lib/layman/mysql/profile/package.unmask too. |
|
Back to top |
|
|
tobiasge n00b
Joined: 08 Dec 2003 Posts: 21
|
Posted: Sun Oct 02, 2011 10:50 am Post subject: |
|
|
few wrote: | Ok, it turned out to be a bug / strange behavior in portage.
A workaround is
echo "-=virtual/mysql-5.5" >> /etc/portage/package.unmask
You might need to do that for the other atoms in /var/lib/layman/mysql/profile/package.unmask too. |
Thanks, that solved the problem. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9523 Location: beyond the rim
|
Posted: Mon Oct 03, 2011 10:20 am Post subject: |
|
|
few wrote: | Ok, it turned out to be a bug / strange behavior in portage.
A workaround is
echo "-=virtual/mysql-5.5" >> /etc/portage/package.unmask
You might need to do that for the other atoms in /var/lib/layman/mysql/profile/package.unmask too. |
I was hoping that Zac would not have implemented profile package.unmask ... |
|
Back to top |
|
|
|