Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 389
superuser Avatar asked Jul 03 '13 08:07

superuser


People also ask

What does dpkg-reconfigure do?

dpkg-reconfigure reconfigures packages after they have already been installed. Pass it the names of a package or packages to reconfigure. It will ask configuration questions, much like when the package was first installed. If you just want to see the current configuration of a package, see debconf-show(1) instead.

Where is the config file in Debian?

conffiles are listed in /var/lib/dpkg/info/*. conffiles for each package. The recommended method to assemble -config packages is to divert and symlink in the postinst, and remove symlinks and diversions in the prerm script.


1 Answers

  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.

like image 90
Onlyjob Avatar answered Oct 22 '22 13:10

Onlyjob