Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
From 05b6a7550756ffdced25a6c51cf2222bad9e59e7 Mon Sep 17 00:00:00 2001
|
||||
Message-Id: <05b6a7550756ffdced25a6c51cf2222bad9e59e7.1399285491.git.baruch@tkos.co.il>
|
||||
From: Baruch Siach <baruch@tkos.co.il>
|
||||
Date: Mon, 5 May 2014 09:32:23 +0300
|
||||
Subject: [PATCH] Fix build against older pthreads implementations
|
||||
|
||||
Older pthreads implementations like glibc NPTL prior to version 2.12, and
|
||||
uClibc linuxthreads (both), need _XOPEN_SOURCE to expose
|
||||
pthread_mutexattr_settype() and THREAD_MUTEX_DEFAULT. The value 600 (SuSv3,
|
||||
POSIX.1-2001) is equivalent to _POSIX_C_SOURCE 200112L.
|
||||
|
||||
Fixes the following build error:
|
||||
|
||||
CC compat.lo
|
||||
compat.c: In function 'p11_mutex_init':
|
||||
compat.c:164:2: warning: implicit declaration of function 'pthread_mutexattr_settype' [-Wimplicit-function-declaration]
|
||||
compat.c:164:2: warning: nested extern declaration of 'pthread_mutexattr_settype' [-Wnested-externs]
|
||||
compat.c:164:36: error: 'PTHREAD_MUTEX_DEFAULT' undeclared (first use in this function)
|
||||
|
||||
Patch status: sent upstream
|
||||
|
||||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||||
---
|
||||
common/compat.h | 6 ++++++
|
||||
common/message.c | 6 ------
|
||||
2 files changed, 6 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/common/compat.h b/common/compat.h
|
||||
index d7fe414a46bf..fbc1dc1d4f0f 100644
|
||||
--- a/common/compat.h
|
||||
+++ b/common/compat.h
|
||||
@@ -37,6 +37,12 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
+/*
|
||||
+ * Oh god. glibc is nasty. Changes behavior and definitions of POSIX
|
||||
+ * functions to completely different signatures depending on defines
|
||||
+ */
|
||||
+#define _XOPEN_SOURCE 600
|
||||
+
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
diff --git a/common/message.c b/common/message.c
|
||||
index 35f2764487a9..e68dfac561c8 100644
|
||||
--- a/common/message.c
|
||||
+++ b/common/message.c
|
||||
@@ -37,12 +37,6 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
-/*
|
||||
- * Oh god. glibc is nasty. Changes behavior and definitions of POSIX
|
||||
- * functions to completely different signatures depending on defines
|
||||
- */
|
||||
-#define _POSIX_C_SOURCE 200112L
|
||||
-
|
||||
#include "compat.h"
|
||||
#define P11_DEBUG_FLAG P11_DEBUG_LIB
|
||||
#include "debug.h"
|
||||
--
|
||||
2.0.0.rc0
|
||||
|
||||
17
deprecated/firmware/buildroot/package/p11-kit/Config.in
Normal file
17
deprecated/firmware/buildroot/package/p11-kit/Config.in
Normal file
@@ -0,0 +1,17 @@
|
||||
config BR2_PACKAGE_P11_KIT
|
||||
bool "p11-kit"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_MMU
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
select BR2_PACKAGE_LIBFFI
|
||||
select BR2_PACKAGE_LIBTASN1
|
||||
help
|
||||
Provides a way to load and enumerate PKCS#11 modules.
|
||||
Provides a standard configuration setup for installing PKCS#11
|
||||
modules in such a way that they're discoverable.
|
||||
|
||||
http://p11-glue.freedesktop.org/p11-kit.html
|
||||
|
||||
comment "p11-kit needs a toolchain w/ threads, dynamic library"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 ba726ea8303c97467a33fca50ee79b7b35212964be808ecf9b145e9042fdfaf0 p11-kit-0.23.2.tar.gz
|
||||
17
deprecated/firmware/buildroot/package/p11-kit/p11-kit.mk
Normal file
17
deprecated/firmware/buildroot/package/p11-kit/p11-kit.mk
Normal file
@@ -0,0 +1,17 @@
|
||||
################################################################################
|
||||
#
|
||||
# p11-kit
|
||||
#
|
||||
################################################################################
|
||||
|
||||
P11_KIT_VERSION = 0.23.2
|
||||
P11_KIT_SITE = http://p11-glue.freedesktop.org/releases
|
||||
P11_KIT_DEPENDENCIES = host-pkgconf libffi libtasn1
|
||||
P11_KIT_INSTALL_STAGING = YES
|
||||
P11_KIT_CONF_OPTS = --disable-static
|
||||
P11_KIT_CONF_ENV = ac_cv_have_decl_program_invocation_short_name=yes \
|
||||
ac_cv_have_decl___progname=no
|
||||
P11_KIT_LICENSE = BSD-3c
|
||||
P11_KIT_LICENSE_FILES = COPYING
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user