Bug 13500

Summary: Bad relationship definitions are ignored by opkg
Product: [Yocto Project Subprojects] opkg Reporter: Xander <xander.huff>
Component: opkgAssignee: Alejandro del Castillo <alejandro.delcastillo>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: Undecided    
Version: 0.4.1   
Target Milestone: ---   
Hardware: Other   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Xander 2019-09-03 15:45:46 UTC
We found after some packages had shipped that opkg apparently ignores malformed relationships in control files. For example, if you have the following:

Depends: a >= 2.0

opkg ignores the '>= 2.0' because the relationship omitted parentheses. opkg info just shows 'Depends: a'

Similarly, if you have:

Depends: a (>= 2.0), b (>= 3.0) c (>= 4.0)

opkg ignores the 'c' relationship because there is no comma. opkg info just shows 'Depends a (>= 2.0), b (>= 3.0)'

This issue applies to all forms of relationship (such as Recommends)
Comment 1 Alejandro del Castillo 2020-07-17 11:32:21 UTC
This functionality shouldn't be on opkg proper, since the opkg functionality is meant to be limited (save space, etc). A linter should catch this sort of errors. Reusing debian linters or extending them might provide the required functionality.