[RFC] Use glib-2.0 exclusively

Dan Nicholson dbn.lists at gmail.com
Thu Jun 17 12:38:46 PDT 2010


I've been working on a branch to make pkg-config use glib2 exclusively.
I posted it on fd.o if anyone wants to have a go.

  git://anongit.freedesktop.org/~dbn/pkg-config glib2

There are two big features in this work:

 * Bundle glib2 instead of glib1 since glib1 is dead and we can make use
   of glib2 API.
 * Replace popt usage with glib2 and drop popt from pkg-config.

I decided to bundle glib2 slightly differently than glib1. There is now
a snapshot + patches directly in the pkg-config repo instead of
replaying that sequence each time during autogen.sh. It would be up to
the maintainer to update the snapshot when necessary. A script is
available to ease that work.

All the tests pass on the branch, although I haven't tried using it as
my system pkg-config yet. Below is the commit log, but I removed the
diffstat because it was too huge. The shortstat is a bit inflated since
it doesn't include the removal of the glib-1.2.10 tarball.

Let me know if you have any comments. I've cc'd Matthias since I can't
think of a person who knows glib and pkg-config more than him. :)

Dan Nicholson (16):
      Force generation of libtool script so it can be used reliably
      Add a script to take a snapshot of glib-2.0
      Bundle snapshot of glib-2.0
      glib2: Don't ignore tracked files
      glib2: Prevent docs from being created or distributed
      glib2: Prevent translations from being installed
      glib2: Don't build or distribute the tests
      glib2: Build only glib
      glib2: don't install anything from the bundled library
      glib2: Don't build GRegex or distribute pcre
      glib2: Save patches to be replayed on snapshots
      Use bundled glib-2 instead of glib-1.2
      Remove glib-1.2 sources
      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

 342 files changed, 210220 insertions(+), 5960 deletions(-)

--
Dan


More information about the pkg-config mailing list