Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slotted MySQL Mess
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
ralphschindler
n00b
n00b


Joined: 03 Feb 2006
Posts: 2

PostPosted: Fri Feb 03, 2006 10:45 pm    Post subject: Slotted MySQL Mess Reply with quote

So far, not a fan. Ive emerged eselect-mysql 1.0.0-r1, using the ~x86 keyword installed 5.0.18-r30.

after installing (clean) ran this:

# eselect mysql list
Available MySQL versions:
[1] 5.0.x
# eselect mysql show
Current default MySQL version:
(unset)
# eselect mysql set 1
# eselect mysql show
Current default MySQL version:
(unset)
# mysql
-bash: mysql: command not found

# pwd; ls -l *mysql*
/usr/bin
-rwxr-xr-x 1 root root 1466 Feb 1 12:56 msql2mysql-500
-rwxr-xr-x 1 root root 74396 Feb 1 12:56 mysql-500
-rwxr-xr-x 1 root root 330472 Feb 1 12:56 mysql_client_test-500
.... etc ....

Eselect does not make links to the -500 binairies. Not only that, but I feel like this slotting technique dirtied up my file system.. Now I have a /etc/mysql link and a /etc/mysql-500... a /var/log/mysql-500 and a /var/lib/mysql-500

This is silly IMO. Can I have a non-slotted mysql? I dont compile things against the libs in /usr/lib so I have no interest in maintaining version compatibllity across dynamically linked libs.

How do I get my old ebuilds for mysql5 to compile to the standard non-500 locations?

-Ralph
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Sat Feb 04, 2006 8:25 pm    Post subject: Reply with quote

Check " man portage ' for details but yo should be able to useing /etc/portage/package.mask or maybe its package.provided block out all mysqls but the version you want. Heck "emerge unmerge mysql -p " and unmerge the versions you no longer use, its like the every other day kernel updates :lol:
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
blossa
Apprentice
Apprentice


Joined: 13 Jan 2005
Posts: 169

PostPosted: Sat Feb 04, 2006 9:25 pm    Post subject: Reply with quote

I just had the same issue (but using ~amd64) and I ended up unmerge mysql. Then I manually removed all remaining mysql-files and then emerged mysql again. I now only have *mysql-500* and no *mysql* directory names. I don't like it but atleast it works now. If I remember right I had a symlink like: '/etc/mysql/mysql-500 > /etc/mysql/mysql-500' (it pointed to itself) that totaly screwed up my mysql.
Back to top
View user's profile Send private message
ralphschindler
n00b
n00b


Joined: 03 Feb 2006
Posts: 2

PostPosted: Mon Feb 06, 2006 4:33 pm    Post subject: Reply with quote

So does anyone know if there is a keyword or a switch to turn off slotting? Has anyone seen this in any other slotted ebuild?

-Ralph
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Tue Feb 07, 2006 3:29 am    Post subject: Reply with quote

The abilty to slot is one of portages advantages. If you do an "emerge system -ep|grep make " you'll get 6 automake's listed. You need all six to handel old programs to new programs. In this instances, mysql, its problematic.Gentoo isnt a cookie cuter solution. The Devs try hard but when you runmning cutin edge ...... boo boo's happem.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
Narada
Guru
Guru


Joined: 12 Dec 2002
Posts: 300
Location: London, UK

PostPosted: Sun Feb 12, 2006 3:02 pm    Post subject: Reply with quote

I'm getting the same problem.

Code:
harry ~ # eselect mysql list
Available MySQL versions:
  [1]   5.0.x
harry ~ # eselect mysql set 1
harry ~ # eselect mysql show
Current default MySQL version:
  (unset)


I only have the *-500 commands and no symlinks are being created. Any tips would be much appreciated.
_________________
http://dhruba.name/
Back to top
View user's profile Send private message
djsmiley2k
Tux's lil' helper
Tux's lil' helper


Joined: 08 Apr 2005
Posts: 79
Location: Coventry

PostPosted: Sun Feb 12, 2006 3:16 pm    Post subject: Reply with quote

I also had this problem, in the end i've stopped running a unstable system after a friend on irc went mental at me about it.


So back to version 4. something for me i guess. Im only installing it so i can use cacti and amarok properly anyway. :-/
Back to top
View user's profile Send private message
boaglio
n00b
n00b


Joined: 14 May 2004
Posts: 60
Location: Sao Paulo - Brazil

PostPosted: Mon Feb 13, 2006 2:29 am    Post subject: Reply with quote

How I solved this mess today:

Code:

# echo "=dev-db/mysql-5.0.18-r30" >> /etc/portage/package.mask
# emerge -C mysql
# ... remove mysql info, log, config files manually ...
# emerge mysql
Back to top
View user's profile Send private message
Narada
Guru
Guru


Joined: 12 Dec 2002
Posts: 300
Location: London, UK

PostPosted: Mon Feb 13, 2006 8:12 am    Post subject: Reply with quote

Yeah. I did the same.

Code:
# take a snapshot of all installed mysql files
equery files mysql > ~/mysql.files

# remove the slotted mysql
emerge -C mysql-5.0.18-r30

# remove any remaining individual files in snapshot by hand
...

# install non-slotted mysql
emerge =dev-db/mysql-5.0.18


Now it's working nicely.
_________________
http://dhruba.name/
Back to top
View user's profile Send private message
XtAzY
n00b
n00b


Joined: 18 Jan 2005
Posts: 23

PostPosted: Mon Feb 13, 2006 8:47 pm    Post subject: Reply with quote

i hope this bug will be fixed asap =] .... now im using the non slotted version
Back to top
View user's profile Send private message
cobalt027
n00b
n00b


Joined: 11 Sep 2004
Posts: 3
Location: Columbus, OH

PostPosted: Tue Feb 14, 2006 9:01 pm    Post subject: Ive tried that Reply with quote

I've tried removing all referenes to the mysql installs. But everytime i the emerge =dev-db/mysql-5.0.18-r30. It still gives me the -500 stuff, and it doesnt work. I dont get the slotted message from portage, but it just doesnt work. Am i not removing something from the snapshot? What is a snapshot?

Im not that new to gentoo, just never wanted to have a bleeding edge server, and therefore never ran into these issues.
Back to top
View user's profile Send private message
hielvc
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2805
Location: Oceanside, Ca

PostPosted: Wed Feb 15, 2006 1:20 am    Post subject: Reply with quote

Have any of you filed a bug report about this? Heres 2 that sound like they are about this prob bug 122668 and bug 12858. the last bug will probably be marked as a duplicate.
_________________
An A-Z Index of the Linux BASH command line
Back to top
View user's profile Send private message
p_ansell
n00b
n00b


Joined: 12 May 2005
Posts: 33
Location: Brisbane, AU

PostPosted: Thu Mar 16, 2006 1:27 am    Post subject: Reply with quote

I filed a more specific bug than those two, IMHO, here,

https://bugs.gentoo.org/show_bug.cgi?id=126369
Back to top
View user's profile Send private message
p_ansell
n00b
n00b


Joined: 12 May 2005
Posts: 33
Location: Brisbane, AU

PostPosted: Thu Mar 16, 2006 6:47 am    Post subject: Reply with quote

Despite the misleading name of the following link, It is actually the "Highly Publicised" notice that mysql is no longer slotted, with instructions on how to upgrade from slotted to unslotted.

http://www.gentoo.org/doc/en/mysql-upgrade-slotted.xml
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