Bug 5129 - rpm2debpkg mishandles versions in Requires:
Summary: rpm2debpkg mishandles versions in Requires:
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.3.0
Assignee: Pierre Ossman
URL:
Keywords: prosaic, samuel_tester
Depends on:
Blocks:
 
Reported: 2014-05-07 16:11 CEST by Pierre Ossman
Modified: 2014-10-14 15:59 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2014-05-07 16:11:28 CEST
dpkg handles release numbers differently from RPM when computing Requires/Depends lines. If the number if missing, it is implicitly assumed to be 0. This breaks our current trivial conversion from RPM to deb.

"<" is also equivalent to RPM's "<=", so we are doing the wrong thing there as well. Debian recommends "<<" for new packages to avoid confusion.


Information about Debian's version comparisons here:

http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version

And the Depends syntax:

http://www.debian.org/doc/debian-policy/ch-relationships.html#s-binarydeps
Comment 2 Pierre Ossman cendio 2014-06-11 12:36:22 CEST
r29058.
Comment 3 Samuel Mannehed cendio 2014-10-14 14:41:21 CEST
Looks good

> $ cat thinlinc-client_4.3.0-4522_amd64/DEBIAN/control 
> Package: thinlinc-client
> Version: 4.3.0-4522
> ...
Comment 4 Samuel Mannehed cendio 2014-10-14 15:59:53 CEST
> $ cat thinlinc-tlmisc_4.3.0-4522_amd64/DEBIAN/control 
> ...
> Depends: thinlinc-rdesktop, thinlinc-tlmisc-libs (>= 4.3.0), thinlinc-tlmisc- libs (<< 4.3.0a), thinlinc-tlprinter

Note You need to log in before you can comment on or make changes to this bug.