| @@ -1,14 +1,19 @@ | | | @@ -1,14 +1,19 @@ |
1 | $NetBSD: patch-aa,v 1.6 2013/02/26 23:39:18 joerg Exp $ | | 1 | $NetBSD: patch-aa,v 1.7 2013/04/14 02:00:15 dholland Exp $ |
| | | 2 | |
| | | 3 | - XXX: some unexplained/undocumented libtool fix |
| | | 4 | - fix printf formats |
| | | 5 | - explicitly ignore the variable "rc" in tme_module_close() as the |
| | | 6 | Sun compiler is objecting to it being assigned and not used. |
2 | | | 7 | |
3 | --- libtme/module.c.orig 2010-06-05 19:04:42.000000000 +0000 | | 8 | --- libtme/module.c.orig 2010-06-05 19:04:42.000000000 +0000 |
4 | +++ libtme/module.c | | 9 | +++ libtme/module.c |
5 | @@ -62,11 +62,13 @@ _TME_RCSID("$Id: module.c,v 1.10 2010/06 | | 10 | @@ -62,11 +62,13 @@ _TME_RCSID("$Id: module.c,v 1.10 2010/06 |
6 | #endif /* !lt_ptr_t */ | | 11 | #endif /* !lt_ptr_t */ |
7 | #endif /* !lt_ptr */ | | 12 | #endif /* !lt_ptr */ |
8 | | | 13 | |
9 | +#if 0 /* XXX: we always use pkgsrc/devel/libltdl */ | | 14 | +#if 0 /* XXX: we always use pkgsrc/devel/libltdl */ |
10 | /* similarly, the installed libltdl may be so recent that its ltdl.h | | 15 | /* similarly, the installed libltdl may be so recent that its ltdl.h |
11 | renames lt_preloaded_symbols with a macro, to a name different from | | 16 | renames lt_preloaded_symbols with a macro, to a name different from |
12 | what our libtool script makes. it's possible that the renaming | | 17 | what our libtool script makes. it's possible that the renaming |
13 | macro is meant to be undefined to handle this problem: */ | | 18 | macro is meant to be undefined to handle this problem: */ |
14 | #undef lt_preloaded_symbols | | 19 | #undef lt_preloaded_symbols |
| @@ -42,13 +47,20 @@ $NetBSD: patch-aa,v 1.6 2013/02/26 23:39 | | | @@ -42,13 +47,20 @@ $NetBSD: patch-aa,v 1.6 2013/02/26 23:39 |
42 | + tme_output_append_error(_output, "%s", module_fake_pathname); | | 47 | + tme_output_append_error(_output, "%s", module_fake_pathname); |
43 | tme_free(modules_dir); | | 48 | tme_free(modules_dir); |
44 | return (ENOENT); | | 49 | return (ENOENT); |
45 | } | | 50 | } |
46 | @@ -325,7 +327,7 @@ tme_module_open(const char *module_fake_ | | 51 | @@ -325,7 +327,7 @@ tme_module_open(const char *module_fake_ |
47 | tme_mutex_unlock(&_tme_module_mutex); | | 52 | tme_mutex_unlock(&_tme_module_mutex); |
48 | tme_free(module_pathname); | | 53 | tme_free(module_pathname); |
49 | if (handle == NULL) { | | 54 | if (handle == NULL) { |
50 | - tme_output_append_error(_output, module_fake_pathname); | | 55 | - tme_output_append_error(_output, module_fake_pathname); |
51 | + tme_output_append_error(_output, "%s", module_fake_pathname); | | 56 | + tme_output_append_error(_output, "%s", module_fake_pathname); |
52 | tme_free_string_array(tokens, -1); | | 57 | tme_free_string_array(tokens, -1); |
53 | return (ENOENT); | | 58 | return (ENOENT); |
54 | } | | 59 | } |
| | | 60 | @@ -400,5 +402,6 @@ tme_module_close(void *_module) |
| | | 61 | tme_free(module); |
| | | 62 | |
| | | 63 | /* XXX assume success: */ |
| | | 64 | + (void)rc; |
| | | 65 | return (TME_OK); |
| | | 66 | } |