[SCM] liblrdf/master: Readd and adapt patch 1002 to rename badly named md5 symbols.

js at users.alioth.debian.org js at users.alioth.debian.org
Mon Jan 9 17:57:19 UTC 2017


The following commit has been merged in the master branch:
commit a57384cb8ff20fece97891e761204bc63939dc0c
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Mon Jan 9 18:14:55 2017 +0100

    Readd and adapt patch 1002 to rename badly named md5 symbols.

diff --git a/debian/patches/1002_rename_clashing_md5_symbols.patch b/debian/patches/1002_rename_clashing_md5_symbols.patch
new file mode 100644
index 0000000..dba09b3
--- /dev/null
+++ b/debian/patches/1002_rename_clashing_md5_symbols.patch
@@ -0,0 +1,26 @@
+Description: Fix symbol conflicts with other MD5 implementations.
+ Exporting symbols like MD5_Init() is not a good idea.
+ .
+ This avoids issues like with former lowercased functions, which caused
+ crashes when initializing the GStreamer when the LADSPA plugin is
+ installed (which should be the case in all installations).  Essentially
+ this made pidgin, empathy, totem and a lot of other applications
+ unusable.
+Author: Sebastian Dröge <slomo at debian.org>
+Bug-Debian: https://bugs.debian.org/521898
+Last-Updated: 2017-01-09
+
+--- a/src/md5.h
++++ b/src/md5.h
+@@ -28,6 +28,11 @@
+ #elif !defined(_MD5_H)
+ #define _MD5_H
+ 
++/* Change function names to prevent symbol conflicts */
++#define MD5_Init _lrdf_MD5_Init
++#define MD5_Update _lrdf_MD5_Update
++#define MD5_Final _lrdf_MD5_Final
++
+ /* Any 32-bit or wider unsigned integer data type will do */
+ typedef unsigned int MD5_u32plus;
+ 
diff --git a/debian/patches/series b/debian/patches/series
index bf7ea65..60f8a72 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 1001_disable_libtool_-version-info.patch
+1002_rename_clashing_md5_symbols.patch

-- 
liblrdf packaging



More information about the pkg-multimedia-commits mailing list