Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Package mask / unmask problem
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
tobiasge
n00b
n00b


Joined: 08 Dec 2003
Posts: 21

PostPosted: Tue Sep 27, 2011 1:13 pm    Post subject: Package mask / unmask problem Reply with quote

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
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Sep 27, 2011 2:20 pm    Post subject: Reply with quote

Code:
=dev-db/mysql-5.5*
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
View user's profile Send private message
tobiasge
n00b
n00b


Joined: 08 Dec 2003
Posts: 21

PostPosted: Tue Sep 27, 2011 2:27 pm    Post subject: Reply with quote

dol-sen wrote:
Code:
=dev-db/mysql-5.5*
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
View user's profile Send private message
dol-sen
Retired Dev
Retired Dev


Joined: 30 Jun 2002
Posts: 2805
Location: Richmond, BC, Canada

PostPosted: Tue Sep 27, 2011 2:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9523
Location: beyond the rim

PostPosted: Tue Sep 27, 2011 9:03 pm    Post subject: Reply with quote

Also check that you don't have any conflicting entries for mysql in other package.unmask files.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Wed Sep 28, 2011 12:35 am    Post subject: Reply with quote

Try adding --autounmask=n to emerge parameters, this will make portage more informative regarding what still pulls in mysql.
Back to top
View user's profile Send private message
few
Guru
Guru


Joined: 03 Mar 2008
Posts: 448

PostPosted: Wed Sep 28, 2011 4:36 am    Post subject: Re: Package mask / unmask problem Reply with quote

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
View user's profile Send private message
tobiasge
n00b
n00b


Joined: 08 Dec 2003
Posts: 21

PostPosted: Thu Sep 29, 2011 2:39 pm    Post subject: Re: Package mask / unmask problem Reply with quote

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
View user's profile Send private message
few
Guru
Guru


Joined: 03 Mar 2008
Posts: 448

PostPosted: Thu Sep 29, 2011 2:48 pm    Post subject: Re: Package mask / unmask problem Reply with quote

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
View user's profile Send private message
tobiasge
n00b
n00b


Joined: 08 Dec 2003
Posts: 21

PostPosted: Sat Oct 01, 2011 10:13 am    Post subject: Re: Package mask / unmask problem Reply with quote

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
View user's profile Send private message
few
Guru
Guru


Joined: 03 Mar 2008
Posts: 448

PostPosted: Sun Oct 02, 2011 8:28 am    Post subject: Reply with quote

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
View user's profile Send private message
tobiasge
n00b
n00b


Joined: 08 Dec 2003
Posts: 21

PostPosted: Sun Oct 02, 2011 10:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9523
Location: beyond the rim

PostPosted: Mon Oct 03, 2011 10:20 am    Post subject: Reply with quote

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
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