Package: libg3d / 0.0.8-20

load-so-modules.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: Identify modules by the ending .so instead of .la
 .la files were stripped of the debs to fulfill the release goal
 http://wiki.debian.org/ReleaseGoals/LAFileRemoval but the plugin loader of
 libg3d tries to identify plugins by their libtool archive.
Author: Sven Eckelmann <sven@narfation.org>

---
diff --git a/src/plugins.c b/src/plugins.c
index 31624e31e50298a057aafde2f433e322187da951..f8d282ba28519e84cbcab97f38b94634d93c6a72 100644
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -89,7 +89,7 @@ static gboolean plugins_loaddirectory(G3DContext *context,
 #ifdef G_OS_WIN32
 		if(g_strcasecmp(filename + strlen(filename) - 4, ".dll") == 0) {
 #else
-		if(g_strcasecmp(filename + strlen(filename) - 3, ".la") == 0) {
+		if(g_strcasecmp(filename + strlen(filename) - 3, ".so") == 0) {
 #endif
 			plugin = g_new0(G3DPlugin, 1);
 
@@ -214,7 +214,7 @@ static G3DPlugin *plugins_magic_lookup(G3DContext *context,
 	if((type == NULL) || (strlen(type) == 0))
 		return NULL;
 
-	name = g_strdup_printf("imp_%s.la", type);
+	name = g_strdup_printf("imp_%s.so", type);
 	for(item = context->plugins; item != NULL; item = item->next) {
 		tp = (G3DPlugin *)item->data;
 		if(tp->type != G3D_PLUGIN_IMPORT)