You are not logged in.

#1 2004-12-20 21:19:36

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

[Fixed] php-5.0.3 (by aethera)

The latest PHP-package seemed to break MySQL support so here's a fix, by aethera who is too lazy to register on the forums:

PKGBUILD

# $Id: PKGBUILD,v 1.51 2004/12/16 22:03:19 judd Exp $
# Maintainer: dorphell <dorphell@archlinux.org>
pkgname=php
pkgver=5.0.3
pkgrel=2
pkgdesc="A high-level scripting language"
url="http://www.php.net"
backup=(etc/php.ini)
depends=('openssl' 'libjpeg' 'freetype2' 'libpng' 'pam' 
         'gdbm' 'libxml2' 'openldap' 'ncurses' 'curl')
makedepends=('apache' 'mysql' 'bzip2')
source=(http://www.php.net/distributions/$pkgname-$pkgver.tar.gz php.ini)
md5sums=('bf89557056ce34d502e20e24071616c7' 'd5b9b37fbb746f0967d795763106735a')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --with-apxs2 --prefix=/usr --sysconfdir=/etc 
    --with-layout=PHP 
    --with-ttf --enable-mailparse --with-config-file-scan-dir=/etc 
    --enable-bcmath=shared --enable-calendar=shared --enable-ftp=shared 
    --enable-gd-native-ttf --enable-magic-quotes --enable-posix=shared 
    --enable-session --enable-shared --enable-shmop=shared 
    --with-ncurses --with-readline --with-mysqli=/usr/bin/mysql_config 
    --enable-sysvsem=shared --enable-sysvshm=shared --enable-track-vars 
    --enable-trans-sid --enable-safe-mode --enable-sockets=shared 
    --enable-xml --with-bz2=shared --with-curl --with-mime-magic 
    --enable-dba --without-db2 --without-db3 --with-inifile --with-flatfile 
    --with-gdbm --with-freetype-dir=/usr --enable-exif 
    --with-jpeg-dir=/usr --with-mysql=shared,/usr --with-ldap=shared 
    --with-mysql-sock=/tmp/mysql.sock --with-openssl --with-gettext 
    --with-pear=/usr/share/pear --with-dom --with-dom-xslt 
    --with-png-dir=/usr --with-regex=php --with-zlib
  # fixes a build error in sqlite support
  ln -s main/php_config.h ./config.h
  make || return 1
  mkdir -p $startdir/pkg/usr/lib/apache
#  cp config_vars.mk config_vars.old
#  sed "s|^INSTALL_IT.*$|INSTALL_IT = apxs -i -a -S LIBEXECDIR=$startdir/pkg/usr/lib/apache -n php4 libs/libphp4.so|" config_vars.old >config_vars.mk
  sed -i "s|-i -a -n php5|-i -n php5|g" Makefile
  make INSTALL_ROOT=$startdir/pkg EXTENSION_DIR=/usr/lib/php install
  cp ../php.ini $startdir/pkg/etc
}

Precompiled package

It fixed my borked setup! smile


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

Board footer

Powered by FluxBB