You have been subscribed to a public bug: Background:
Like MANY server admins who use PHP and run some old code, I have two requirements that are not what the Ubuntu package team has deemed as they way they want to support out of the box: - PHP 5.2.X branch on a Lucid server - Compiled with PHP's original bundled GD library, so that I don't lose a pile of functions I need The solution would normally be to compile your own version, right? Wrong, can't do it, because a few critical *-dev packages have stupid dependencies! Compiling your own php5 to get around the insufficient decision the Ubuntu team made to replace PHP's bundled GD library with their own fails, unless you are compiling the version of PHP that came with your release of Ubuntu. Compiling your own replacement php5 package depends on apache2-prefork-dev depends on apache2.2-common and libaprutil1-dev, libaprutil1-dev in turn depends on libaprutil1, and libaprutil1 in turn depends on libdb4.7-dev, and libdb4.7-dev in turn depends on libdb4.7. There is no good reason a -dev package should depend on it's non-dev equivalent. The reason I say this is that it means that one who needed and thus installed the 5.2.X branch of PHP on their system that normally comes with the 5.3.X branch, cannot possibly recompile a 5.2.X branch of PHP on their server. My possible solutions appear to be as follows: - Set up a Karmic server (comes with PHP 5.2.10) just to compile the .deb file I want, then install it on my production server - Try to force installing the packages with the stupid dependencies and risk breaking my system just so I can compile a replacement package on the same server I am going to use it on (apt-get wont do this, and dpkg requires me to obtain the .deb files first, so after some browsing finally I can try with "dpkg --force-depends -i", so that is yet another annoyance!) - Try to convince the Ubuntu package team to release packages for the PHP 5.2.X branch on Lucid, since the PHP group still actively supported this branch, and many sysadmins still actively depend on it, yet also want or need an up-to-date server. Actual Problem: Compiling your own php5 to get around the insufficient decision the Ubuntu team made to replace PHP's bundled GD library with their own fails, unless you are compiling the version of PHP that came with your release of Ubuntu. I found out that the Ubuntu package team decided to replace PHP's GD library with the Ubuntu system library, yet alot of functions are missing from this version. I heard people discuss that another option would be if someone would compile an alternative version of GD we could have an alternative version of PHP that used this alternative version of GD. Apparently this never happened. I need a fully functioning installation of PHP 5.2.X, so apparently as the Ubuntu team has not provided it I have to provide it for myself, but again, this fails. Really, I only needed a version of the package php5_gd that uses PHP's bundled GD library instead of the system library, but that requires compiling all of PHP, which again, fails. Steps to Reproduce Issue: - Install Ubuntu LTS 10.04 (Lucid) fresh - Apply all updates - change /etc/apt/sources.list to Karmic, so you can install PHP 5.2.X since you maintain code that depends on features that were removed from the 5.3.X branch, but that Ubuntu apparently does not support - Install PHP 5.2.10 from Karmic - Change /etc/apt/sources.list back to Lucid, so nothing else is messed up - Realize that the Ubuntu package team did not bundle PHP's GD library when they compiled the php5 package, and that the only solution if you want a properly working PHP with all GD functions is to compile a replacement - Compile fails due to retarded dependencies in libaprutil1-dev and apache2-prefork-dev and such - Try to force installing a bunch of packages despite the stupid dependencies, hoping that they don't really need those dependencies anyway, potentially wrecking your live production webserver, just so you can have a chance at running a complete proper PHP package of the version that you need on the version of Ubuntu that you need ** Affects: php5 (Ubuntu) Importance: Undecided Status: New ** Tags: apache2-prefork-dev karmic lucid php5 -- Cannot compile any version of PHP I want on Lucid due to dependencies in apache2-prefork-dev https://bugs.launchpad.net/bugs/809400 You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs