openbsd-misc
[Top] [All Lists]

Patching PHP

To: OpenBSD misc <misc@openbsd.org>
Subject: Patching PHP
From: Marcus Bointon <marcus@synchromedia.co.uk>
Date: Thu, 28 Feb 2002 23:15:50 +0000
Sender: owner-misc@openbsd.org
User-agent: Microsoft-Entourage/9.0.1.3108
With the recent CERT advisory on PHP4, I was keen to update it. Info and
patches are available at:

http://www.cert.org/advisories/CA-2002-05.html

However, these patches are clearly set up for an "original" PHP version,
rather than an OpenBSD port, and they seem to be different enough to make
patching fail in most cases.

What doesn't help is that I have yet to figure out how to patch things
properly. All my attempts at applying anything other than the most trivial
patch have failed completely.

I can get things to work mostly by following the FAQ advice, but that's a
trivial patch example. Most significant ones are much more involved and
usually break, leaving me with a pile of source that I really don't feel
comfortable compiling.

Can anyone point me at a patching guide, or suggest how these patches might
be applied to the OBSD 3.0's port? In PHP's case, the makefile seems to
generate a whole new source tree using the make options specified, which I
can't see being easy to patch.

I'm also not quite comfortable with the relationship between an existing
port and a new non-port version, for example if I want to install a new PHP
4.1.2, what do I need to do with the existing PHP 4.0.6p1 in ports?

Marcus
-- 
Marcus Bointon
Synchromedia Limited: Putting you in the picture

marcus@synchromedia.co.uk | http://www.synchromedia.co.uk

<Prev in Thread] Current Thread [Next in Thread>