I'm trying to use mozjpeg as a drop-in replacement library for jpeg-turbo. I'm perfectly able to fetch the sources and compile them as needed and even create a deb-file from it which I can use to install the package (e.g. apt-get install ./mozjpeg_3.2_amd64.deb
).
To be clear, note that these two packages are supposed to provide the exact same interface and hence be functionally equivalent. Accordingly, a dependency on jpeg-turbo should be satisfied by mozjpeg.
Ok, going on, when I then continue to install dependant packages (e.g. ghostscript development headers, libgs-dev
), I run into errors as these have declared a dependency on libjpeg62-turbo-dev
:
dpkg: error processing archive /tmp/apt-dpkg-install-HuzNRO/0-libjpeg62-turbo-dev_1%3a1.5.1-2_amd64.deb (--unpack):
trying to overwrite '/usr/include/jerror.h', which is also in package mozjpeg 3.2-20170219
Now, that a conflict arises at this point is of course logical. Is there a way to prevent this? Can I tell the dependency system that mozjpeg satisfies the dependency on jpeg-turbo so that any packages which depend on jpeg-turbo will install using the replacement?
Thanks in advance.