Thanks Trevor! I'm sure this will be especially useful. -----Original Message----- From: Trevor Lauder [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 2:51 PM To: [EMAIL PROTECTED] Subject: RE: (clug-talk) Apache 2 and PHP
Here is that script I had written to help me manage a system using packages mostly marked as stable but with a few using "~x86". You enter the package and version into the array and it goes through it and sets each .ebuild to "x86" instead of "~x86". It will also tell you the current version you have installed, and the current version available that may be masked. You can just modify the version in the script to have it unmask that one instead. It will also tell you what will be updated on the system if you were to run a 'emerge -DUuv world' after that. I have 2 example packages in the file, apache-2.0.46 and wolk-sources-4.0 Cheers, -- Trevor Lauder Web: http://www.thelauders.net E-Mail: [EMAIL PROTECTED] Resume: http://www.thelauders.net/resume/ Gentoo Linux Powered "Any intelligent fool can make things bigger and more complex... It takes a touch of genius -- and a lot of courage to move in the opposite direction." -- Albert Einstein Trevor Lauder said: > Shawn Grover said: >> The only issue with this is that Apache2 is also considered unstable >> (it's >> masked). So, by removing the "~x86" from the ACCEPT_KEYWORDS, we will >> end >> up installing Apache 1.x. Not a big deal. There is no real reason I'm >> trying to run Apache2 (other than it's has newer features/patches >> applied). >> I'll go through this exercise tonight - It only takes about 30 minutes >> to >> emerge Apache / mod_php. > > You can use "~x86" on a per-package bases if you want. The command: > > ACCEPT_KEYWORDS="~x86" emerge apache -p > > should tell you it's going to emerge apache 2.0.46 as that is the latest > 2.0.x release. > > It can get a little annoying sometimes if you have lots of "~x86" packages > installed but you don't want the whole system that way because when you do > a 'emerge -Duv world' it will probably try to downgrade any packages that > were installed using "~x86". I created a script that takes a list of > packages that I have installed using "~x86", does an 'emerge sync' and > then uses sed to replace "~x86" with "x86" in those ebuilds. That way > portage will think those packages are really stable. An example for > apache would be in /usr/portage/net-www/apache/apache-2.0.46.ebuild, I > replaced the line: > > KEYWORDS="~x86 ~ppc ~alpha ~hppa ~mips ~sparc" > > with: > > KEYWORDS="x86 ~ppc ~alpha ~hppa ~mips ~sparc" > > That way, I don't have to worry about setting the "~x86" keyword when I > want to install it. That line needs to be modified every time you do a > 'emerge sync' because it will over-write that file, but my little script > does all the work for me. There might be a better way, but I found this > system I wrote out works for me. > > I'm really busy at the moment, but I will post that script as soon as I > can :) > > > Cheers, > > > -- > Trevor Lauder > Web: http://www.thelauders.net > E-Mail: [EMAIL PROTECTED] > Resume: http://www.thelauders.net/resume/ > Gentoo Linux Powered > > "Any intelligent fool can make things bigger and more complex... It takes > a touch of genius -- and a lot of courage to move in the opposite > direction." -- Albert Einstein > >
