aboutsummaryrefslogtreecommitdiffstats
path: root/devel/pkg-config
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-05-15 18:07:28 +0800
committersobomax <sobomax@FreeBSD.org>2001-05-15 18:07:28 +0800
commit1e7b84fe97ce405e01fda165718011b64458255b (patch)
tree977bf324574151739eb837360ddccaea302e46d2 /devel/pkg-config
parent55e6d78c5f7bca32548663a240d7c4bad2542bf2 (diff)
downloadfreebsd-ports-gnome-1e7b84fe97ce405e01fda165718011b64458255b.tar.gz
freebsd-ports-gnome-1e7b84fe97ce405e01fda165718011b64458255b.tar.zst
freebsd-ports-gnome-1e7b84fe97ce405e01fda165718011b64458255b.zip
Don't warn about non-existing {X11,LOCAL}BASE/libdata/pkgconfig.
Prompted by: olgeni, ade
Diffstat (limited to 'devel/pkg-config')
-rw-r--r--devel/pkg-config/files/patch-pkg.c35
1 files changed, 29 insertions, 6 deletions
diff --git a/devel/pkg-config/files/patch-pkg.c b/devel/pkg-config/files/patch-pkg.c
index 56a934c0b0b5..0286a5b739de 100644
--- a/devel/pkg-config/files/patch-pkg.c
+++ b/devel/pkg-config/files/patch-pkg.c
@@ -1,14 +1,37 @@
$FreeBSD$
---- pkg.c 2001/04/29 11:38:41 1.1
-+++ pkg.c 2001/04/29 11:39:06
-@@ -97,6 +97,8 @@
+--- pkg.c.orig Wed Jan 3 11:34:49 2001
++++ pkg.c Tue May 15 11:48:04 2001
+@@ -40,7 +40,7 @@
+ * locations, ignoring duplicates
+ */
+ static void
+-scan_dir (const char *dirname)
++scan_dir (const char *dirname, void *quiet)
+ {
+ DIR *dir = opendir (dirname);
+ struct dirent *dent;
+@@ -51,8 +51,9 @@
+
+ if (!dir)
+ {
+- fprintf (stderr, "Warning: cannot open directory '%s' in package search path: %s\n",
+- dirname, g_strerror (errno));
++ if (!quiet)
++ fprintf (stderr, "Warning: cannot open directory '%s' in package search path: %s\n",
++ dirname, g_strerror (errno));
+ return;
+ }
+
+@@ -96,7 +97,9 @@
+ locations = g_hash_table_new (g_str_hash, g_str_equal);
g_slist_foreach (search_dirs, (GFunc)scan_dir, NULL);
- scan_dir (PKGLIBDIR);
-+ scan_dir (XPKGLIBDIR);
-+ scan_dir (LPKGLIBDIR);
+- scan_dir (PKGLIBDIR);
++ scan_dir (PKGLIBDIR, (void *)0);
++ scan_dir (XPKGLIBDIR, (void *)1);
++ scan_dir (LPKGLIBDIR, (void *)1);
}
}