[PATCH 0/3] Drop popt dependency

Dan Nicholson dbn.lists at gmail.com
Mon May 14 09:58:00 PDT 2012


On 3/22/12, Dan Nicholson <dbn.lists at gmail.com> wrote:
> Dusting off and rebasing a patchset from a while ago.
>
> Now that pkg-config has a hard dependency on glib2, we can drop usage
> of popt since glib2 provides equivalent functionality. Essentially
> this is the same conversion GNOME did years ago when glib grew
> popt-like APIs.
>
> This also removes the wart of the internal popt that hasn't been
> updated in years and has at least one unfixed bug in it.
>
> The following changes since commit b93f7958488ba99e3e81ea97a81c474a5e90b570:
>
>   Fix typo in configure.ac which led to confusing error messages from
> configure (2011-09-20 08:50:51 +0200)
>
> are available in the git repository at:
>   git://people.freedesktop.org/~dbn/pkg-config no-popt
>
> Dan Nicholson (3):
>   Use glib to parse argv strings instead of popt
>   Convert to GOption for command line option parsing
>   Drop popt usage and remove unused popt sources
>
>  Makefile.am       |   17 +--
>  configure.ac      |   17 --
>  main.c            |  216 +++++++++-----------
>  parse.c           |   61 ++----
>  pkg.c             |    2 +-
>  popt/COPYING      |   22 --
>  popt/Makefile.am  |   12 -
>  popt/findme.c     |   90 --------
>  popt/findme.h     |   31 ---
>  popt/popt.c       |  588
> -----------------------------------------------------
>  popt/popt.h       |  131 ------------
>  popt/poptconfig.c |  188 -----------------
>  popt/popthelp.c   |  306 ----------------------------
>  popt/poptint.h    |   85 --------
>  popt/poptparse.c  |  126 ------------
>  15 files changed, 129 insertions(+), 1763 deletions(-)
>  delete mode 100644 popt/COPYING
>  delete mode 100644 popt/Makefile.am
>  delete mode 100644 popt/findme.c
>  delete mode 100644 popt/findme.h
>  delete mode 100644 popt/popt.c
>  delete mode 100644 popt/popt.h
>  delete mode 100644 popt/poptconfig.c
>  delete mode 100644 popt/popthelp.c
>  delete mode 100644 popt/poptint.h
>  delete mode 100644 popt/poptparse.c

I've rebased this again at
git://people.freedesktop.org/~dbn/pkg-config no-popt. It fixes at
least bugs #5326, #31700, #44843. Tollef, unless you have any
objections I'm going to push this to master.

--
Dan


More information about the pkg-config mailing list