Hi,
Could someone tell me how I'd go about compiling php with mcrypt support from src.rpm?
ie. configure -with-mcrypt[=DIR]
Is it just a matter of calling rpmbuild --rebuild src.rpm --with=mcrypt ?
Cheers, MaZe.
Am Mo, den 06.06.2005 schrieb Maciej Żenczykowski um 15:35:
Could someone tell me how I'd go about compiling php with mcrypt support from src.rpm?
ie. configure -with-mcrypt[=DIR]
Is it just a matter of calling rpmbuild --rebuild src.rpm --with=mcrypt ?
MaZe.
First you need libmcrypt | libmcrypt-devel to be installed (available i.e. through Dag's repository). Then edit the php.spec file. Take the "mhash" configuration parts as examples which means that you can copy them and then exchange mhash with mcrypt. The rpmbuild prcess will then result in a php-mcrypt rpm (done that myself).
Alexander
Thanks I got both mhash and mcrypt to work (base from dag).
Maybe these (php-mhash/php-mcrypt) would be of some use in a repo? (extras?) they're roughly 70kb.
Cheers, MaZe.
On Mon, 6 Jun 2005, Alexander Dalloz wrote:
Am Mo, den 06.06.2005 schrieb Maciej Żenczykowski um 15:35:
Could someone tell me how I'd go about compiling php with mcrypt support from src.rpm?
ie. configure -with-mcrypt[=DIR]
Is it just a matter of calling rpmbuild --rebuild src.rpm --with=mcrypt ?
MaZe.
First you need libmcrypt | libmcrypt-devel to be installed (available i.e. through Dag's repository). Then edit the php.spec file. Take the "mhash" configuration parts as examples which means that you can copy them and then exchange mhash with mcrypt. The rpmbuild prcess will then result in a php-mcrypt rpm (done that myself).
Alexander
On Mon, 6 Jun 2005, Maciej ?enczykowski wrote:
Thanks I got both mhash and mcrypt to work (base from dag).
Maybe these (php-mhash/php-mcrypt) would be of some use in a repo? (extras?) they're roughly 70kb.
Send them to suggest@lists.rpmforge.net and specify if you want to maintain them or not. In the worst case they will provided on a best-effort basis.
-- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power]
Dag Wieers wrote:
On Mon, 6 Jun 2005, Maciej ?enczykowski wrote:
Thanks I got both mhash and mcrypt to work (base from dag).
Maybe these (php-mhash/php-mcrypt) would be of some use in a repo? (extras?) they're roughly 70kb.
Send them to suggest@lists.rpmforge.net and specify if you want to maintain them or not. In the worst case they will provided on a best-effort basis.
Make sure you do this mate, as we just went through the same thing you did, and it would be fantastic to get something in an rpm repository as we were thinking about building our own internal RPMs just for this purpose. ;-)
J
the problem is these are built as part of the php rpm, which is part of the base/updates centos installation, the only point where it makes sense to add this is within centos, at the same time this would deviate centos from upstream, which is bad...
not quite sure what the correct solution is (if you do build php with mhash and mcrypt you only need to install the php-mhash and php-mcrypt rpms - the rest can stay from centos updates) That's why I think, this should be going in extras (not centosplus since it doesn't actually need to change any base packages).
Cheers, MaZe
On Mon, 6 Jun 2005, Jonathan wrote:
Dag Wieers wrote:
On Mon, 6 Jun 2005, Maciej ?enczykowski wrote:
Thanks I got both mhash and mcrypt to work (base from dag).
Maybe these (php-mhash/php-mcrypt) would be of some use in a repo? (extras?) they're roughly 70kb.
Send them to suggest@lists.rpmforge.net and specify if you want to maintain them or not. In the worst case they will provided on a best-effort basis.
Make sure you do this mate, as we just went through the same thing you did, and it would be fantastic to get something in an rpm repository as we were thinking about building our own internal RPMs just for this purpose. ;-)
J _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Just in case someone needs it _now_ they're available (both depend on packages from dag) at http://tcs.ii.uj.edu.pl/~maze/centos/... php-4.3.9-3.6.src.rpm [normal centos updates php with patched spec] php-mcrypt-4.3.9-3.6.i386.rpm php-mhash-4.3.9-3.6.i386.rpm
Cheers, MaZe.
the effort to maintain them is to: a) patch the spec to support mcrypt b) when building php include --with mhash and --with mcrypt c) have the needed devel packages installed (mhash-devel and libmcrypt-devel) so that it builds.
afterwards everything should be automatic during rebuilds of php. (there's no src-rpm for them - they're part of the php.src.rpm).
??? MaZe.
On Mon, 6 Jun 2005, Dag Wieers wrote:
On Mon, 6 Jun 2005, Maciej ?enczykowski wrote:
Thanks I got both mhash and mcrypt to work (base from dag).
Maybe these (php-mhash/php-mcrypt) would be of some use in a repo? (extras?) they're roughly 70kb.
Send them to suggest@lists.rpmforge.net and specify if you want to maintain them or not. In the worst case they will provided on a best-effort basis.
-- dag wieers, dag@wieers.com, http://dag.wieers.com/ -- [all I want is a warm bed and a kind word and unlimited power] _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos