Context: we have a custom build of ImageMagick using quantum depth 8, because it keeps memory usage down and speeds up some operations quite significantly as a result. We've been doing this on Debian 7 (Wheezy) by downloading the IM source with apt-get, making some changes to debian/rules and running debuild -uc -us, and then exporting the .deb files for installing in deployment-machine builds.
Google has recently stopped supporting Wheezy on Compute Engine, so I'm trying to get a similar pipeline working on Jessie.
However, Jessie's ImageMagick source package doesn't seem to build a Q8 without some fiddling; just changing the
Code: Select all
export QUANTUMDEPTH ?= Q16
Code: Select all
export QUANTUMDEPTH ?= Q8
Code: Select all
$ sed 's/Q16/Q8/g' -i debian/rules -i debian/imagemagick.manpages
$ cp ./debian/libmagickcore-6.q16-2-extra.install ./debian/libmagickcore-6.q8-2-extra.install
Code: Select all
update-alternatives: error: alternative path /usr/bin/compare-im6 doesn't exist
dpkg: error processing package imagemagick (--install):
subprocess installed post-installation script returned error exit status 2
I also tried setting the imagemagick "Architecture" to "any" in debian/control as suggested in 709856, but then I get this before the build even finishes:
Code: Select all
dh_install: imagemagick missing files (usr/bin/compare-*), aborting
debian/rules:355: recipe for target 'override_dh_install-indep' failed
I've posted this on StackOverflow as well in case any debian wizards come across it there; I haven't posted or reopened any debian bug yet though because I could easily be missing some way in which to tell the debian build system to use Q8. If anyone knows that, I'd love to hear about it!
Also, I've tried just building directly from the source using --with-quantum-depth=8, which builds fine - but our build process uses HHVM debian packages, and after several hours banging my head on this, getting the source-built version into HHVM-package-compatible .deb files is more than I can face if there's any alternative!
Thanks