lustigerweise kam dies hier gerade rein. Upgrade von PHP4 betreffend,
was hier doch gerade Thema war, wenn ich mich recht entsinne.
---------- Forwarded message ----------
Date: Wed, 25 Jun 2003 14:41:24 +1000 (EST)
From: Daniel O'Callaghan
Subject: [VicFUG-general] archaeological hacking
Just FYI in case anyone else has to do this sort of stuff, or even just
likes reading about archaeological hacking.
I wanted to upgrade the php4 module for a FreeBSD 3.4 system I am running.
Of course, the ports collection and makefiles have changed a lot over the
years. I wanted to do as little as possible to the 3.4 system, as
stability is paramount for this box.
This is what I did.
I logged in to a "relatively clean" 3.5.1 system and did the following:
Firstly - update the ports tree:
* installed ports.tgz from 4.8.
Then update 'make' and friends:
* replaced /usr/share/mk/* from 4.8
* replaced /var/db/port.mkversion from 4.8
* fetched 4.8-RELEASE/src/subin.?? and unpacked them in /usr/src/4.8/
* cd /usr/src/4.8/usr.bin/make ; make ; make install
Note that it's not just the mk files which needed updating - make has some
new functionality in it now, and the 3.5.1 make couldn't understand the
new makefile at all.
sed also has a new switch, which was used in the mod_php4 port
configuration scripts somewhere.
* cd /usr/src/4.8/usr.bin/sed
( had to comment out line 39 of *.c because __FBSDID was not defined)
make ; make install
* cd /usr/ports/www/mod_php4 ; make ; make install
* scp /usr/local/libexec/apache/libphp4.so server34:
restarted apache, and *bingo*, it worked!
I was concerned that the module might rely on the apache version, etc, but
everything seemed to go fine.
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Wed 25 Jun 2003 - 06:47:07 CEST