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 ?
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.
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.
Download and extract package sources with apt-get source php5
Edit debian/rules
file and add --enable-roxen-zts
or --enable-maintainer-zts
to COMMON_CONFIG (confirm which one you need with ./configure --help
).
sudo apt-get build-dep php5
to install build dependencies.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With