diff options
author | itohy <itohy> | 2005-01-06 09:07:06 +0000 |
---|---|---|
committer | itohy <itohy> | 2005-01-06 09:07:06 +0000 |
commit | cea0d18e8c71b6726a0c8f1b18888e9fdc658006 (patch) | |
tree | b9e90b54c1ad04ab2ea1ead827f5b9c1cb6ec4bb /devel | |
parent | 0f5b9dd88f85efc0c5d441a24cbb345c66a3b3c9 (diff) | |
download | pkgsrc-cea0d18e8c71b6726a0c8f1b18888e9fdc658006.tar.gz |
ld.so (a.out) doesn't treat "symbol not found" as an error
and dlerror() returns NULL.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/glib2/distinfo | 3 | ||||
-rw-r--r-- | devel/glib2/patches/patch-ag | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/devel/glib2/distinfo b/devel/glib2/distinfo index c99c63d0b28..519b4846745 100644 --- a/devel/glib2/distinfo +++ b/devel/glib2/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.40 2004/12/24 10:03:27 jmmv Exp $ +$NetBSD: distinfo,v 1.41 2005/01/06 09:07:06 itohy Exp $ SHA1 (glib-2.6.0.tar.bz2) = e0d769aeddb0610926f30ab4c62b9378a38e503e Size (glib-2.6.0.tar.bz2) = 2257529 bytes @@ -8,3 +8,4 @@ SHA1 (patch-ac) = 5f3d1446a41e71f1bf5556a1dd2a2a04e77d45da SHA1 (patch-ad) = c926d96bdc9ddf4f434fc57af0adbe11002cffc3 SHA1 (patch-ae) = 09f16e8e14bdea3ee0e478d335f65cb66939e5f5 SHA1 (patch-af) = c7f29961a832b65feef0e8f4cf218491a440f68c +SHA1 (patch-ag) = b4b554cc04fe4eda899a61f5521da9c0ec0ca524 diff --git a/devel/glib2/patches/patch-ag b/devel/glib2/patches/patch-ag new file mode 100644 index 00000000000..f118adb6bbf --- /dev/null +++ b/devel/glib2/patches/patch-ag @@ -0,0 +1,22 @@ +$NetBSD: patch-ag,v 1.5 2005/01/06 09:07:06 itohy Exp $ + +--- gmodule/gmodule-dl.c.orig Fri Feb 20 10:41:00 2004 ++++ gmodule/gmodule-dl.c Thu Jan 6 17:41:07 2005 +@@ -140,10 +140,16 @@ _g_module_symbol (gpointer handle, + const gchar *symbol_name) + { + gpointer p; ++ const gchar *errstr; + + p = dlsym (handle, symbol_name); + if (!p) +- g_module_set_error (fetch_dlerror (FALSE)); ++ { ++ errstr = fetch_dlerror (FALSE); ++ if (!errstr) ++ errstr = "symbol not found"; ++ g_module_set_error (errstr); ++ } + + return p; + } |