I have two Debian Packages that were previously made on our internal repository. They both share the same source code but are compiled with a distinct option, creating two separate binaries with the same libs. They were ment to be installed in separate servers
Therefore these two packages can't be installed at the same time because they try to install the same libs, hence the dpkg error "trying to overwrite /my/lib".
The problem : I need to install them on the same server.
Question is : What modification should I add to make them compatible ?
A few leads :
Create a 3rd package from the same source, compiling the whole source instead of two separate ones (but I guess this is the dirty way)
Find an option to tell these two packages can go along each other (but I don't know if it exists)
Create a "package-common" package containing the libs, man pages etc. from which the other 2 packages would depend on. (but I have no clue about how to compile the upstream source that way)
I understand this question is quite complicated to explain especially in a bad english, but I hope you will give me a few leads :)
Thanks community !