I have three debian packages which will be installed with apt-get. Let's call them X, Y, and Z.
Both Y and Z depend on X, but do not depend on each other. If the user wants to install both Y and Z, they should be able to do so. What I would want to happen is: 1. User installs Y. The installation of Y installs X. 2. User installs Z. The installation of Z checks to make sure X is installed and since it is installed, Z is installed properly.
Instead Z fails with an error that says "trying to overwrite which is also in package Y." Then there are some other error messages and Z isn't installed.
Is there some other relationship I need to setup between these packages?
Right now I'm creating these with the program 'fpm' like this:
fpm -n Y --depends X -t deb -s dir <folder>
fpm -n Z --depends X -t deb -s dir <folder>