[Pkg-gnutls-commits] r1710 - in /packages/p11-kit/branches/experimental/debian: changelog patches/noexport_constructor.diff

ametzler at users.alioth.debian.org ametzler at users.alioth.debian.org
Sat Mar 16 15:58:35 UTC 2013


Author: ametzler
Date: Sat Mar 16 15:58:35 2013
New Revision: 1710

URL: http://svn.debian.org/wsvn/pkg-gnutls/?sc=1&rev=1710
Log:
Make p11_kit_(init|fini) private symbols, it
does not seem to be necessary to export (de)constructors.
(__attribute__((constructor))).

Added:
    packages/p11-kit/branches/experimental/debian/patches/noexport_constructor.diff
Modified:
    packages/p11-kit/branches/experimental/debian/changelog

Modified: packages/p11-kit/branches/experimental/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/p11-kit/branches/experimental/debian/changelog?rev=1710&op=diff
==============================================================================
--- packages/p11-kit/branches/experimental/debian/changelog (original)
+++ packages/p11-kit/branches/experimental/debian/changelog Sat Mar 16 15:58:35 2013
@@ -3,6 +3,9 @@
   * NOT RELEASED YET
   * New upstream release. Closes: #702538
   * Drop relicense_buffer-code.diff.
+  * [noexport_constructor.diff] Make p11_kit_(init|fini) private symbols, it
+    does not seem to be necessary to export (de)constructors.
+    (__attribute__((constructor))).
 
  -- Andreas Metzler <ametzler at debian.org>  Sat, 16 Feb 2013 16:42:07 +0100
 

Added: packages/p11-kit/branches/experimental/debian/patches/noexport_constructor.diff
URL: http://svn.debian.org/wsvn/pkg-gnutls/packages/p11-kit/branches/experimental/debian/patches/noexport_constructor.diff?rev=1710&op=file
==============================================================================
--- packages/p11-kit/branches/experimental/debian/patches/noexport_constructor.diff (added)
+++ packages/p11-kit/branches/experimental/debian/patches/noexport_constructor.diff Sat Mar 16 15:58:35 2013
@@ -1,0 +1,38 @@
+Description: Do not export (de)constructor
+ Rename p11_kit_init and p11_kit_fini to _p11_kit_init and _p11_kit_fini
+ respectively to stop them from being exported in the ABI. It does not seem
+ to be necessary.
+Author: Andreas Metzler <ametzler at debian.org>
+Origin: vendor
+Forwarded: http://lists.freedesktop.org/archives/p11-glue/2013-March/000297.html
+
+--- p11-kit-0.16.3.orig/p11-kit/util.c
++++ p11-kit-0.16.3/p11-kit/util.c
+@@ -234,15 +234,15 @@ _p11_get_progname_unlocked (void)
+ 
+ #ifdef OS_UNIX
+ 
+-void p11_kit_init (void);
++void _p11_kit_init (void);
+ 
+-void p11_kit_fini (void);
++void _p11_kit_fini (void);
+ 
+ #ifdef __GNUC__
+ __attribute__((constructor))
+ #endif
+ void
+-p11_kit_init (void)
++_p11_kit_init (void)
+ {
+ 	p11_library_init_once ();
+ }
+@@ -251,7 +251,7 @@ p11_kit_init (void)
+ __attribute__((destructor))
+ #endif
+ void
+-p11_kit_fini (void)
++_p11_kit_fini (void)
+ {
+ 	p11_library_uninit ();
+ }




More information about the Pkg-gnutls-commits mailing list