View previous topic :: View next topic |
Author |
Message |
Target Apprentice
Joined: 25 Apr 2002 Posts: 200
|
Posted: Sun Jul 13, 2003 1:42 am Post subject: Don't want apache2 or mysql4 |
|
|
I saw this after a sync:
Code: | [ebuild U ] dev-libs/openssl-0.9.6j [0.9.6i-r2]
[ebuild U ] net-mail/pine-4.56 [4.53-r4]
[ebuild U ] dev-db/mysql-4.0.13-r3 [3.23.56]
[ebuild U ] net-www/apache-2.0.47 [1.3.27-r3]
[ebuild U ] dev-libs/libmcrypt-2.5.7 [2.5.5]
[ebuild U ] dev-php/mod_php-4.3.2-r3 [4.3.2]
[ebuild U ] app-arch/unzip-5.50-r2 [5.50-r1] |
I don't want apache2 or mysql4, and I've got -apache2 and -mysql4 in my USE flags... How do I indefinitely stop portage from trying to install these versions? |
|
Back to top |
|
|
dma Guru
Joined: 31 Jan 2003 Posts: 437 Location: Charlotte, NC, USA
|
Posted: Sun Jul 13, 2003 2:23 am Post subject: |
|
|
edit /etc/make.profile/packages
add these lines:
Code: | <net-www/apache-2.0.0
<dev-db/mysql-4.0.0 |
The ebuilds will then be masked until this is removed! |
|
Back to top |
|
|
idiotprogrammer Apprentice
Joined: 29 Jul 2002 Posts: 179 Location: Texas
|
Posted: Sun Jul 13, 2003 2:39 am Post subject: so what is going on? apache2=safe? |
|
|
Hey, I'm ready to move onto apache2. Isn't there any issue with php/mysql though? I don't want to screw up my mysql database.
rj |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9528 Location: beyond the rim
|
Posted: Sun Jul 13, 2003 4:03 am Post subject: |
|
|
dma wrote: | edit /etc/make.profile/packages
add these lines:
Code: | <net-www/apache-2.0.0
<dev-db/mysql-4.0.0 |
The ebuilds will then be masked until this is removed! |
Don't do that !!!
1. this file will be overwritten on emerge sync (/etc/make.profile is a symlink to /usr/portage/profiles/<some-profile>)
2. This file is used to generate the system profile, don't mess around with it.
The proper solution is to add the following to /etc/portage/profiles/package.mask (you have to create the directory and the file if it does not exist):
Code: | >=net-www/apache-2
>=dev-db/mysql-4 |
Oh, and there is no mysql4 USE flag and USE flags are not for selecting a specific version of a package. |
|
Back to top |
|
|
Target Apprentice
Joined: 25 Apr 2002 Posts: 200
|
Posted: Sun Jul 13, 2003 11:25 am Post subject: |
|
|
I was pretty sure there was no mysql4 USE flag, but I figured it couldn't hurt.
package.mask was exactly what I was looking for.
Am I blind, is the main site lacking a nice, big, obvious doc on package masking for version management? |
|
Back to top |
|
|
superjaded l33t
Joined: 05 Jul 2002 Posts: 802
|
Posted: Sun Jul 13, 2003 11:47 am Post subject: Re: so what is going on? apache2=safe? |
|
|
idiotprogrammer wrote: | Hey, I'm ready to move onto apache2. Isn't there any issue with php/mysql though? I don't want to screw up my mysql database. |
AFAIK, there's nothing really changed from mysql3 to mysql4 that makes it non-backwards compatible; there has just been enough things added (subselects being the biggest thing, probably) to warrant a new major version.
At most, you'll have to recompile a few things because of the new libs (I had to recompile mysql-python, libwww and mod_php [I was already recompiling it for Apache2 to to begin with anyhow] because they weren't working otherwise -- they referenced "libmysqlclient.so.10" when mysql4 was actually "libmysqlclient.so.12").
EDIT: alternatively (as I just found out ;/), running "revdep-rebuild" from gentoolkit should automagically rebuild any broken dependencies for you.
Of course, if you have mission-critical things running on the Gentoo box you're thinking of upgrading.. I'd back up your db before doing anything. |
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Sun Jul 13, 2003 1:00 pm Post subject: Re: so what is going on? apache2=safe? |
|
|
superjaded wrote: | EDIT: alternatively (as I just found out ;/), running "revdep-rebuild" from gentoolkit should automagically rebuild any broken dependencies for you. |
Thank you, this utility saved me loads of tracking down broken stuff. That libmysqlclient.so.10 was really well loved on my system, its used by tonnes of stuff.
Cheers again.
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
dma Guru
Joined: 31 Jan 2003 Posts: 437 Location: Charlotte, NC, USA
|
Posted: Sun Jul 13, 2003 3:15 pm Post subject: |
|
|
Genone wrote: | dma wrote: | edit /etc/make.profile/packages
add these lines:
Code: | <net-www/apache-2.0.0
<dev-db/mysql-4.0.0 |
The ebuilds will then be masked until this is removed! |
Don't do that !!!
1. this file will be overwritten on emerge sync (/etc/make.profile is a symlink to /usr/portage/profiles/<some-profile>)
2. This file is used to generate the system profile, don't mess around with it.
|
On my system they are not symlinked!
Code: | root@laureate:/etc/make.profile# ls -la /usr/portage/profiles/package.mask /etc/make.profile/packages
-rw-r--r-- 1 root root 3453 Jul 12 22:31 /etc/make.profile/packages
-rw-r--r-- 1 root root 18185 Jul 11 16:17 /usr/portage/profiles/package.mask |
From /etc/make.profile/packages:
Code: | # So, what happens to /usr/portage/profiles/package.mask? It's still around,
# and still useful. But it should mainly be used for broken ebuilds only.
# package.mask continues to function as normal, masking out ebuilds from *all*
# system profiles. |
However, /etc/portage/profiles/package.mask seems to work as well. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9528 Location: beyond the rim
|
Posted: Sun Jul 13, 2003 3:34 pm Post subject: |
|
|
dma wrote: | On my system they are not symlinked!
Code: | root@laureate:/etc/make.profile# ls -la /usr/portage/profiles/package.mask /etc/make.profile/packages
-rw-r--r-- 1 root root 3453 Jul 12 22:31 /etc/make.profile/packages
-rw-r--r-- 1 root root 18185 Jul 11 16:17 /usr/portage/profiles/package.mask |
|
You are comparing two different files, do a "ls -ld /etc/make.profile" and you'll see what I mean. |
|
Back to top |
|
|
dma Guru
Joined: 31 Jan 2003 Posts: 437 Location: Charlotte, NC, USA
|
Posted: Sun Jul 13, 2003 5:32 pm Post subject: |
|
|
Oops..
I had already moved it into /etc/profile/ by then as I originally wanted that. |
|
Back to top |
|
|
lisa Retired Dev
Joined: 01 Jun 2003 Posts: 273 Location: York, UK again! Horray!
|
Posted: Sun Jul 13, 2003 6:20 pm Post subject: Re: so what is going on? apache2=safe? |
|
|
idiotprogrammer wrote: | Hey, I'm ready to move onto apache2. Isn't there any issue with php/mysql though? I don't want to screw up my mysql database.
rj |
The only problems I had was:
1) having to re-customize php.ini then restart apache
2) Having to etc-update the mysql init script (/etc/init.d/mysql from version 3 is out of date)
Don't forget that everything that is apache version 2 reliant (such as logs and configs) are now stored in /var/log/apache2/ and /etc/apache2 (respectivly).
Don't forget to stop apache version 1, and rc-update del apache default. _________________ Distcc guide
Visit my website
I maintain Distcc, Ccache, Memcached, and some others (i think) |
|
Back to top |
|
|
dma Guru
Joined: 31 Jan 2003 Posts: 437 Location: Charlotte, NC, USA
|
Posted: Sun Jul 13, 2003 6:33 pm Post subject: Re: so what is going on? apache2=safe? |
|
|
lisa wrote: | idiotprogrammer wrote: | Hey, I'm ready to move onto apache2. Isn't there any issue with php/mysql though? I don't want to screw up my mysql database.
rj |
The only problems I had was:
1) having to re-customize php.ini then restart apache
2) Having to etc-update the mysql init script (/etc/init.d/mysql from version 3 is out of date)
Don't forget that everything that is apache version 2 reliant (such as logs and configs) are now stored in /var/log/apache2/ and /etc/apache2 (respectivly).
Don't forget to stop apache version 1, and rc-update del apache default. |
I'm still on mod_php-4.3.1. I've made many changes to the ebuilds and I'd need to change the eclass file. (To add support for freetype2 without freetype1, ming without libswf, recode, etc.)
I've been putting it off for weeks...... |
|
Back to top |
|
|
tam Guru
Joined: 04 Mar 2003 Posts: 569
|
Posted: Fri Jul 18, 2003 6:55 am Post subject: Re: so what is going on? apache2=safe? |
|
|
superjaded wrote: | revdep-rebuild" |
Cool! Just had the same problem. Currently I'm running revdep-rebuild and it re-compiles a zillion packages.
Thanks |
|
Back to top |
|
|
|