php.spec -> "configure" needs to be removed before "buildconf" is called?!

Tim Richert tim at richert.me
Fri Nov 27 12:06:40 UTC 2009


I've tried building current PHP (5.3.1) with suhosin-patch.
This fails with
> checking for libedit readline replacement... yes
> configure: error: Please reinstall libedit - I cannot find readline.h

I figured out that the php-5.3.0-libedit.patch patches config.m4 and changes
{/usr/local,/usr}/include/readline/readline.h
into
{/usr/local,/usr}/include/editline/readline.h

The suhosin-patch patches ./configure directly but seems to also patch 
the according m4-files.

If I've got i right
> ./buildconf --force
is called during the build to recreate ./configure to apply the patches 
made to the m4-files.

It seems as if ./configure is only being recreated for sure, if it 
doesn't exist when buildconf is called.

Can someone confirm that and if so wouldn't the spec-file then needed to 
be adjusted?

If you delete ./configure before calling ./buildconf PHP builds fine 
with the suhosin-patch.

I have changed the following
> # Regenerate configure scripts (patches change config.m4's)
> ./buildconf --force

into
> # Regenerate configure scripts (patches change config.m4's)
> rm configure
> ./buildconf --force

in the spec-file.

Can someone confirm that this wouldn't affect anything else and could so 
be applied to the current spec-file?

Thanks!

Greets,
Tim







More information about the buildsys mailing list