Comment 5 for bug 493727

Revision history for this message
Dennis (dvierkant-hotmail) wrote :

For what it's worth, I fixed the bug on my own PPC system by doing the following:

# install stuff needed to build PHP5:
apt-get install dpkg-dev build-essential
apt-get build-dep php5

# download the sources:
cd /usr/src
apt-get source php5

#Now apply the diff from: http://forums.matrix.squiz.net/index.php?showtopic=6607

# recompile PHP5:
cd php5-5.2.10.dfsg.1
dpkg-buildpackage -uc -b

# manually install the deb files onto your system, choose all the packages you had installed before:
cd ..
dpkg -i php5_5.2.10.dfsg.1-2ubuntu6.3_all.deb php5-common_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb libapache2-mod-php5_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb php5-cli_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb php5-curl_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb php5-dev_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb php5-gd_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb php5-mhash_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb php5-mysql_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb php5-recode_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb php5-sqlite_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb php5-xsl_5.2.10.dfsg.1-2ubuntu6.3_powerpc.deb

I'm not Ubuntu packaging expert so I'm probably not doing it "the right way". Also, because I didn't change the version number (I don't know how) the update mechanism might try to overwrite it with the old buggy version.