Ubuntu with Suhosin patch

I am currently moving many of our production servers to use Ragnaroek Midgard and Ubuntu rather than Thor Midgard and Debian. I ran up to problems with some components not working due to Suhosin. I Googled many answers on the problem and finally found one that was effortless.

I still cut some corners and wrote a more streamlined script:

#!/bin/bash
cd;
mkdir packages;
cd packages;
apt-get install devscripts gcc debhelper fakeroot;
apt-get source php5;
cd php5-5.2.4;
apt-get -y build-dep php5;
rm debian/patches/suhosin.patch;
mv debian/patches/series debian/patches/series.bu;
sed -e 's/suhosin.patch//g' debian/patches/series.bu > debian/patches/series;
debchange -v 5.2.4-2ubuntu5.4.1~custom -b -m SuhosinFree;
debuild;
dpkg -i ../*.deb;

This might be useful if you are installing Midgard on Ubuntu 8.04 and want to use org.routamc.photostream, which otherwise fails due to Suhosin patch.

Back