superuser
superuser

Reputation: 519

install debian package with change configuration

I need to install php5 source debian package with zend thread safety enable (ZTS=1) but in default this config is disable. how can rebuild package with my configuration ?

Upvotes: 8

Views: 4159

Answers (2)

Eduardo Carvalho
Eduardo Carvalho

Reputation: 1

Dont worry, it really takes a long time for the package build, and it also looks like it is in loop, but it will come to an end, eventually.

Upvotes: -3

Onlyjob
Onlyjob

Reputation: 5868

  1. Download and extract package sources with apt-get source php5

  2. Edit debian/rules file and add --enable-roxen-zts or --enable-maintainer-zts to COMMON_CONFIG (confirm which one you need with ./configure --help).

  3. sudo apt-get build-dep php5 to install build dependencies.

  4. From directory where package source were extracted run dpkg-buildpackage -uc -b.

Optionally if you have devscripts package installed you may run debuild -uc -b instead of dpkg-buildpackage -uc -b.

Upvotes: 13

Related Questions