[PATCH 0/5] rmpvercmp split + updates

Dan Nicholson dbn.lists at gmail.com
Sat Apr 20 09:41:53 PDT 2013


Here are some patches to make rpmvercmp easier to compare with upstream
and to catch up to recent changes. Moving the code to a separate file
makes sense so that it's not intertwined with pkg-config code and the
formatting can be made consistent with upstream. The diff to upstream is
quite small after these changes. The last patch might not want to be
applied right now since it represents a change to the pkg-config
metadata syntax.

Dan Nicholson (5):
  Split rpmvercmp code into separate file
  rpmvercmp: Formatting & comment updates to reduce upstream diff
  rpmvercmp: Return -1/0/1 as function says it will
  rpmvercmp: Use helper macros to match upstream code better
  Add support for ~ in versions from upstream rpmvercmp

 Makefile.am            |   2 +
 check/Makefile.am      |   3 +-
 check/check-version    |  13 +++++
 check/tilde-version.pc |   3 ++
 pkg.c                  | 104 +-----------------------------------
 rpmvercmp.c            | 140 +++++++++++++++++++++++++++++++++++++++++++++++++
 rpmvercmp.h            |  19 +++++++
 7 files changed, 180 insertions(+), 104 deletions(-)
 create mode 100644 check/tilde-version.pc
 create mode 100644 rpmvercmp.c
 create mode 100644 rpmvercmp.h

-- 
1.8.1.4



More information about the pkg-config mailing list