Quoting Kernow <[EMAIL PROTECTED]>:

Hello,

I want to use the mhash functions in PHP (as well as Freetype), but having difficulty finding out how to rebuild PHP with the "--with-mhash" option (for mhash which is the more important of the two that I want to use) from the PHP source rpm file.

How is this done using a source rpm?

* Install the source RPM
* Go to /usr/src/trustix/specs
* Edit the PHP spec file; look for the configure line and add your extra options
* Run rpmbuild -ba <spec name>
* Uninstall stock PHP RPM
* Find your new one in /usr/src/trustix/rpms/i586
* Install the newly built RPM
* Edit swup.conf such that PHP isn't upgraded automatically
+ This will keep your custom build in place, but you'll have to keep an eye
out for security updates, etc. and rebuild PHP yourself as needed
+ On the otherhand, if you don't do this then you'll be confused the first
time you run swup then all of your features from your custom build are
suddenly lost
* Enjoy your extra features ;-)


One box is running TSL 1.5 with PHP 4.0.6
Other box is running TSL 2.0 with PHP 4.3.10

Can't remember, but you may have to replace the rpmbuild -ba command with just
rpm -ba - can't remember which version of RPM is used in these earlier versions
of TSL.


Alternatively, you could open a bug in bugzilla asking the TSL team to add the
extra options for you.  They've been great at doing this in the past, as long
as the requested features don't break anything.  This has the added benefit of
not requiring self rebuilds of the RPMs on every update.

Is there any issues I should be aware of if I were to try to download the PHP 5 source rpm from TSL 2.2 on either the 2.0 or 1.5 box?

Should work, as long as you have all the dependencies to build PHP5 on these systems. Of course, with these older versions of TSL going out of service in just over a month, if you really need PHP5 then I'd probably just bite the bullet and do the OS upgrade now instead of on June 30. ;-)

HTH,

Derek
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to