File: libmhash-so-version.patch

package info (click to toggle)
mbuffer 20230301%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,096 kB
  • sloc: ansic: 4,321; sh: 3,418; makefile: 160
file content (23 lines) | stat: -rw-r--r-- 839 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Look for libmhash.so.2, not libmhash.so.
 The libmhash.so file is usually just a symlink installed by
 the development package so that the build-time linker can find
 the proper shared object to look symbols up in and to record
 the SONAME into the executable file.  On most Linux distributions
 that make a distinction between development packages and shared
 library packages, it is very unlikely that a *.so file will exist
 at runtime.
Forwarded: no
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2018-07-22

--- a/hashing.c
+++ b/hashing.c
@@ -86,7 +86,7 @@
 	if (initialized)
 		return;
 	initialized = 1;
-	LibMhash = dlopen("libmhash.so",RTLD_NOW);
+	LibMhash = dlopen("libmhash.so.2",RTLD_NOW);
 	if (LibMhash) {
 		debugmsg("found libmhash\n");
 		mhash_init = (void *(*)(int)) dlsym(LibMhash,"mhash_init");