]> git.pld-linux.org Git - packages/trousers.git/commitdiff
remove internal 'ht' symbol from global binding space to avoid binding with libmp3lam... auto/th/trousers-0.3.9-2 auto/ti/trousers-0.3.9-2
authorPaweł Sikora <pawel.sikora@agmk.net>
Sun, 2 Sep 2012 19:28:07 +0000 (21:28 +0200)
committerPaweł Sikora <pawel.sikora@agmk.net>
Sun, 2 Sep 2012 19:28:07 +0000 (21:28 +0200)
this fixes ugly crash during mplayer startup, release 2.

hide-internal-ht-symbol.patch [new file with mode: 0644]
trousers.spec

diff --git a/hide-internal-ht-symbol.patch b/hide-internal-ht-symbol.patch
new file mode 100644 (file)
index 0000000..ac3a3e2
--- /dev/null
@@ -0,0 +1,21 @@
+--- trousers-0.3.9/src/include/hosttable.h.orig        2011-05-04 16:33:11.000000000 +0200
++++ trousers-0.3.9/src/include/hosttable.h     2012-09-02 21:18:31.891307206 +0200
+@@ -33,7 +33,6 @@
+       MUTEX_DECLARE(lock);
+ };
+-extern struct host_table *ht;
+ struct host_table_entry *get_table_entry(TCS_CONTEXT_HANDLE);
+ void put_table_entry(struct host_table_entry *);
+ TSS_RESULT __tspi_add_table_entry(TSS_HCONTEXT, BYTE *, int, struct host_table_entry **);
+--- trousers-0.3.9/src/tspi/rpc/hosttable.c.orig       2011-05-04 16:33:11.000000000 +0200
++++ trousers-0.3.9/src/tspi/rpc/hosttable.c    2012-09-02 21:18:44.017974230 +0200
+@@ -19,7 +19,7 @@
+ #include "hosttable.h"
+ #include "obj.h"
+-struct host_table *ht = NULL;
++static struct host_table *ht = NULL;
+ TSS_RESULT
+ host_table_init()
index 1132184607799a3b365ffdbd47b3652767a2fa0c..b085f2b06fa79574ebfb3a8fc629c7961ab069e6 100644 (file)
@@ -7,12 +7,13 @@ Summary:      TrouSerS - The open-source TCG Software Stack
 Summary(pl.UTF-8):     TrouSerS - programowy stos TCG o otwartych źródłach
 Name:          trousers
 Version:       0.3.9
-Release:       1
+Release:       2
 License:       CPL v1.0
 Group:         Applications/System
 Source0:       http://downloads.sourceforge.net/trousers/%{name}-%{version}.tar.gz
 # Source0-md5: 1322030eb2540ea0640cfe471b077f32
 Patch0:                %{name}-nouser.patch
+Patch1:                hide-internal-ht-symbol.patch
 URL:           http://trousers.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake >= 1.6
@@ -85,6 +86,7 @@ Statyczna biblioteka TrouSerS.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 # there is some unused variable causing warning
 sed -i -e 's/-Werror //' configure.in
This page took 0.106769 seconds and 4 git commands to generate.