Bugzilla – Bug 941911
debian.compat > 1 produces control files without any Depends
Last modified: 2015-08-20 10:20:48 UTC
Example: https://build.opensuse.org/package/show/isv:ownCloud:devel/php5-apcu The binary output shows two dependencies: php5-apcu_4.0.6-1+4+oc_amd64.deb as built for xUbuntu_14.04 shows two dependencies: libc6 (>= 2.14) provided by libc6 phpapi-20121212 provided by php5-common Both of these are important. I have branched the package to https://build.opensuse.org/package/show/home:jnweiger:branches:isv:ownCloud:devel/php5-apcu where the only linkdiff is changing the value of debian.compat from 1 to 5. This change appears to be recommended, it silences a warning in the build log. Now https://build.opensuse.org/package/binary/home:jnweiger:branches:isv:ownCloud:devel/php5-apcu?arch=x86_64&filename=php5-apcu_4.0.6-1%2B4%2Boc_amd64.deb&repository=xUbuntu_14.04 shows "no requires", which is wrong. It should list the same dependencies as above. This issue is critical with php modules, where a Depends: phpapi = 20121212 line (or similar) is used to assert that the package gets installed only on a matching environment. With any debian.compat value except 1, these Depends: get stripped, and users easily break their php installation, if it was not the original php, but an updated stack with an incompatible phpapi version pulled from e.g. ubuntu universe.