Bug 13500 - Bad relationship definitions are ignored by opkg
Summary: Bad relationship definitions are ignored by opkg
Status: RESOLVED WONTFIX
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.4.1
Hardware: Other Multiple
: Undecided minor
Target Milestone: ---
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2019-09-03 15:45 UTC by Xander
Modified: 2020-07-17 11:32 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.