Fixes for hashes not having intrinsic order

Dan Nicholson dbn.lists at
Sat Sep 27 15:56:10 PDT 2014

On Tue, Jun 17, 2014 at 9:40 PM, Daniel Macks <dmacks at> wrote:
> Two bugzilla items:
> involve user-visible output that is randomly ordered because pkg-config is dumping a hash-table in whatever order the GHash uses internally. Having the output sorted makes it easier to read or process...just a matter or sorting the list of keys before spewing the key/values to stdout. Each has a patch, but I'm not sure the right kind of sorting is being done. Please let me know if there's more work needed on them.

Sorry for such a slow reply. I got really busy and wasn't checking
this list. The patches look good, but I think they should use strcmp
or they'll again be non-deterministic because two variable that only
differ in case would be subject to the hash table ordering.


More information about the pkg-config mailing list