[CentOS] PHP Extensions

Charles Lacroix clacroix at cegep-ste-foy.qc.ca
Thu Jun 8 17:31:45 UTC 2006


On Thursday 08 June 2006 12:48, Paul Heinlein wrote:
> On Thu, 8 Jun 2006, Charles Lacroix wrote:
> >>> Rebuild the php rpm with your changes and redo that operation on
> >>> every updates
> >>
> >> Is it too complicated? How do I rebuild the php rpm? I've installed
> >> php with yum..so no rpm is available.
> >
> > It's not hard to do.
> >
> > Just get the rpm source froma mirror and install it.
> >
> > - mkdir -p /usr/src/redhat/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
> > - rpm -ihv php-4.x.x-src.rpm
> > - cd /usr/src/redhat/SPECS
> > - edit php.spec to add the --with-informix or whatever compilation flag
> > you need.
>
> You might consider adding some flotsam to the end of the Release tag
> (typically defined near the top of the spec file) so rpm recognizes
> the new rpms as upgrades.
>
> The current release is, I believe,
>
>    Version : 4.3.9
>    Release : 3.12
>
> You might consider making your locally built to be Release
> "3.12.local" or something like that. If you use the same appendix for
> all locally rebuilt packages, it's easy to spot them in an "rpm -qa"
> list.

good idea, i always add a little something myself.



More information about the CentOS mailing list