Hello community, here is the log from the commit of package pkg-config for openSUSE:Factory checked in at Fri Apr 23 19:08:20 CEST 2010. -------- --- GNOME/pkg-config/pkg-config.changes 2008-02-01 23:25:25.000000000 +0100 +++ pkg-config/pkg-config.changes 2010-04-21 09:09:00.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Apr 12 11:30:15 CEST 2010 - mls@suse.de + +- Add pkg-config-reqprov.patch to support automatic pkgconfig + dependency creation, upstream fdo#2458. + +------------------------------------------------------------------- calling whatdependson for head-i586 New: ---- pkg-config-reqprov.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pkg-config.spec ++++++ --- /var/tmp/diff_new_pack.3eS2tY/_old 2010-04-23 19:07:48.000000000 +0200 +++ /var/tmp/diff_new_pack.3eS2tY/_new 2010-04-23 19:07:48.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package pkg-config (Version 0.23) # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,8 +21,8 @@ Name: pkg-config Url: http://pkgconfig.freedesktop.org/ Version: 0.23 -Release: 47 -License: GPL v2 or later +Release: 48 +License: GPLv2+ Group: System/Packages AutoReqProv: on # Old name for version <= 0.17 and SuSE Linux <= 10.2 & CODE10 @@ -31,6 +31,8 @@ Obsoletes: pkgconfig < 0.21 Summary: A library management system Source: %{name}-%{version}.tar.bz2 +# PATCH-FEATURE-UPSTREAM pkg-config-reqprov.patch mls@suse.de fdo#2458 -- Add print-requires/print-provides queries +Patch: pkg-config-reqprov.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -48,6 +50,7 @@ %prep %setup -q +%patch -p1 %build %{?suse_update_config:%{suse_update_config -f}} ++++++ pkg-config-reqprov.patch ++++++ diff -pur pkg-config-0.23.orig/main.c pkg-config-0.23/main.c --- pkg-config-0.23.orig/main.c 2008-01-16 14:06:48.000000000 -0800 +++ pkg-config-0.23/main.c 2008-10-24 14:18:51.000000000 -0700 @@ -189,6 +189,8 @@ main (int argc, char **argv) int want_uninstalled = 0; char *variable_name = NULL; int want_exists = 0; + int want_prov = 0; + int want_req = 0; char *required_atleast_version = NULL; char *required_exact_version = NULL; char *required_max_version = NULL; @@ -258,6 +260,10 @@ main (int argc, char **argv) "show verbose information about missing or conflicting packages" }, { "errors-to-stdout", 0, POPT_ARG_NONE, &want_stdout_errors, 0, "print errors from --print-errors to stdout not stderr" }, + { "print-provides", 0, POPT_ARG_NONE, &want_prov, 0, + "print which packages the package provides" }, + { "print-requires", 0, POPT_ARG_NONE, &want_req, 0, + "print which packages the package requires" }, #ifdef G_OS_WIN32 { "dont-define-prefix", 0, POPT_ARG_NONE, &dont_define_prefix, 0, "don't try to override the value of prefix for each .pc file found with " @@ -570,6 +576,66 @@ main (int argc, char **argv) } } + if (want_prov) + { + GSList *tmp; + tmp = packages; + while (tmp != NULL) + { + Package *pkg = tmp->data; + char *key; + key = pkg->key; + while (*key == '/') + key++; + if (strlen(key) > 0) + printf ("%s = %s\n", key, pkg->version); + tmp = g_slist_next (tmp); + } + } + + if (want_req) + { + GSList *pkgtmp = packages; + while (pkgtmp != NULL) + { + Package *pkg = pkgtmp->data; + + /* process Requires: */ + GSList *reqtmp = pkg->requires; + while (reqtmp != NULL) + { + Package *deppkg = reqtmp->data; + RequiredVersion *req; + req = g_hash_table_lookup(pkg->required_versions, deppkg->key); + if ((req == NULL) || (req->comparison == ALWAYS_MATCH)) + printf ("%s\n", deppkg->key); + else + printf ("%s %s %s\n", deppkg->key, + comparison_to_str(req->comparison), + req->version); + reqtmp = g_slist_next (reqtmp); + } + + /* process Requires.private: */ + reqtmp = pkg->requires_private; + while (reqtmp != NULL) + { + Package *deppkg = reqtmp->data; + RequiredVersion *req; + req = g_hash_table_lookup(pkg->required_versions, deppkg->key); + if ((req == NULL) || (req->comparison == ALWAYS_MATCH)) + printf ("%s\n", deppkg->key); + else + printf ("%s %s %s\n", deppkg->key, + comparison_to_str(req->comparison), + req->version); + reqtmp = g_slist_next (reqtmp); + } + + pkgtmp = g_slist_next (pkgtmp); + } + } + if (required_exact_version) { Package *pkg = packages->data; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org