Bug 941911 - debian.compat > 1 produces control files without any Depends
Summary: debian.compat > 1 produces control files without any Depends
Status: NEW
Alias: None
Product: openSUSE.org
Classification: openSUSE
Component: BuildService (show other bugs)
Version: unspecified
Hardware: Other Ubuntu
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Adrian Schröter
QA Contact: Adrian Schröter
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-17 08:31 UTC by Juergen Weigert
Modified: 2015-08-20 10:20 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Weigert 2015-08-17 08:31:04 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.