Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How NOT TO upgrade to Apache2?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Mon May 03, 2004 4:13 pm    Post subject: How NOT TO upgrade to Apache2? Reply with quote

I wish to upgrade php_mod. I have -apache2 in my make.conf. But...
Quote:
# emerge -Upv mod_php
>>> --upgradeonly implies --update... adding --update to options.

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild U ] dev-libs/libxml2-2.6.7 [2.6.6] -ipv6 +python +readline 2,589 kB
[ebuild U ] dev-libs/libxslt-1.1.4 [1.1.2] +python 1,677 kB
[ebuild U ] dev-perl/XML-Parser-2.34 [2.31-r1] 224 kB
[ebuild U ] app-text/sablotron-1.0 [0.97] -doc +perl 472 kB
[ebuild U ] sys-apps/file-4.06 [4.02] 345 kB
[ebuild N ] dev-util/yacc-1.9.1-r2 63 kB
[ebuild N ] net-www/apache-2.0.49 +berkdb +gdbm +ldap 5,780 kB
[ebuild U ] dev-php/mod_php-4.3.6_rc2 [4.3.4-r4] -X -apache2 +berkdb +crypt -curl -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp +imap -informix -ipv6 -java +jpeg +ldap -mcal +memlimit -mysql +nls -oci8 -odbc +pam -pdflib +png -postgres -qt -snmp -spell +ssl -tiff -truetype +xml2 -yaz 3,866 kB

Total size of downloads: 15,020 kB

The only thing I could think of is that I once upgraded Apache2 but converting the existing website came at to much work, so I reverted back to Apache1.

But none of those packages seem to have any apache2 flags in the /var/db/pkg subsystem.

Darn USE flags :roll: . If there's one big flaw in Gentoo, it had to be how this has been implemented. :(
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
GhePeU
Guru
Guru


Joined: 12 Aug 2003
Posts: 549
Location: Mestre, Italy

PostPosted: Mon May 03, 2004 4:43 pm    Post subject: Reply with quote

if you tell emerge to upgrade (-U) emerge will upgrade...

you can
1) emerge -pv mod_php (without U)
2) mask apache2 (in /etc/portage/package.mask)
3) inject apache2
_________________
That is not dead which can eternal lie,
and with strange aeons even death may die.
Back to top
View user's profile Send private message
tecknojunky
Veteran
Veteran


Joined: 19 Oct 2002
Posts: 1937
Location: Montréal

PostPosted: Mon May 03, 2004 5:12 pm    Post subject: Reply with quote

GhePeU wrote:
if you tell emerge to upgrade (-U) emerge will upgrade...

you can
1) emerge -pv mod_php (without U)
2) mask apache2 (in /etc/portage/package.mask)
3) inject apache2
The problem without the -U is that emerge world will demote some packages. That's why I use U, and it picks up dependencies too.

At first, I tought you meant /usr/portage/profile/package.mask. I little search here showed me this feature existed and I was unaware of it.

So I did and it seem to do the trick pretty well
Quote:
# mkdir /etc/portage
# echo ">net-www/apache-2" >/etc/portage/package.mask
# emerge -Upv world
>>> --upgradeonly implies --update... adding --update to options.

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild U ] app-shells/sash-3.6 [3.4-r5] +readline 49 kB
[ebuild N ] app-crypt/gnupg-1.2.4 -X -caps -idea +ldap +nls -static 2,326 kB
[ebuild U ] dev-perl/DB_File-1.807 [1.803-r2] 79 kB
[ebuild U ] net-mail/squirrelmail-1.4.2-r4 [1.4.2-r1] +crypt +ldap +ssl -virus-scan 2,339 kB
[ebuild U ] dev-libs/libxml2-2.6.7 [2.6.6] -ipv6 +python +readline 2,589 kB
[ebuild U ] dev-libs/libxslt-1.1.4 [1.1.2] +python 1,677 kB
[ebuild U ] dev-perl/XML-Parser-2.34 [2.31-r1] 224 kB
[ebuild U ] app-text/sablotron-1.0 [0.97] -doc +perl 472 kB
[ebuild U ] sys-apps/file-4.06 [4.02] 345 kB
[ebuild U ] dev-php/mod_php-4.3.6_rc2 [4.3.4-r4] -X -apache2 +berkdb +crypt -curl -doc -fdftk -firebird -flash -freetds -gd -gd-external +gdbm -gmp +imap -informix -ipv6 -java +jpeg +ldap -mcal +memlimit -mysql +nls -oci8 -odbc +pam -pdflib +png -postgres -qt -snmp -spell +ssl -tiff -truetype +xml2 -yaz 3,866 kB

Total size of downloads: 13,971 kB
Apache2 is gone forever :D

Thanks
_________________
(7 of 9) Installing star-trek/species-8.4.7.2::talax.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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