gnunet-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-developers] debian packages of 0.5.4


From: Glenn McGrath
Subject: [GNUnet-developers] debian packages of 0.5.4
Date: Wed, 28 May 2003 06:18:28 +1000

I have some debian packages available of 0.5.4 at
http://people.debian.org/~bug1/gnunet/

To get the packages lintian clean (no packaging errors) i dont install
the <library>.so symlink, just <library>.so.0 and <library>.so.0.0

To get this to work i had to change dso.c, im not 100% sure its the
right thing to do, but i think its better to load <library>.so.x so we
can preserve backwards compatability.


--- gnunet-0.5.4.orig/src/util/dso.c
+++ gnunet-0.5.4/src/util/dso.c
@@ -39,10 +39,9 @@
   char * libname;
  
   libname = MALLOC(strlen(dso) +
-                  strlen(prefix) + 1);
+                  strlen(prefix) + 6);
   libname[0] = '\0';
-  strcat(libname, prefix);
-  strcat(libname, dso);
+  sprintf(libname, "%s%s.so.0", prefix, dso);
   return libname;
 }
                                                                        
       
@@ -90,7 +89,7 @@
   /* finally, load the library */
   libname = buildLibName(libprefix,
                         dsoname);
-  libhandle = lt_dlopenext(libname);
+  libhandle = lt_dlopen(libname);
   if (libhandle == NULL)
     errexit("Could not open library %s (%s)!\n",
            libname,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]