* [Buildroot] [PATCHv2 1/2] p11-kit: new package
@ 2013-06-03 0:50 Gustavo Zacarias
2013-06-03 0:50 ` [Buildroot] [PATCHv2 2/2] gnutls: bump to version 3.2.1 Gustavo Zacarias
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2013-06-03 0:50 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
package/Config.in | 1 +
package/p11-kit/Config.in | 15 +++++++++++++++
package/p11-kit/p11-kit.mk | 15 +++++++++++++++
3 files changed, 31 insertions(+)
create mode 100644 package/p11-kit/Config.in
create mode 100644 package/p11-kit/p11-kit.mk
diff --git a/package/Config.in b/package/Config.in
index 61715d8..ce3943a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -611,6 +611,7 @@ source "package/mpc/Config.in"
source "package/mpfr/Config.in"
source "package/mtdev2tuio/Config.in"
source "package/orc/Config.in"
+source "package/p11-kit/Config.in"
source "package/poco/Config.in"
source "package/protobuf/Config.in"
source "package/protobuf-c/Config.in"
diff --git a/package/p11-kit/Config.in b/package/p11-kit/Config.in
new file mode 100644
index 0000000..40a07d3
--- /dev/null
+++ b/package/p11-kit/Config.in
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_P11_KIT
+ bool "p11-kit"
+ depends on !BR2_PREFER_STATIC_LIB
+ depends on BR2_USE_MMU
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ 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 requires a toolchain with thread support"
+ depends on !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/p11-kit/p11-kit.mk b/package/p11-kit/p11-kit.mk
new file mode 100644
index 0000000..2ddb27c
--- /dev/null
+++ b/package/p11-kit/p11-kit.mk
@@ -0,0 +1,15 @@
+#############################################################
+#
+# p11-kit
+#
+#############################################################
+
+P11_KIT_VERSION = 0.18.1
+P11_KIT_SITE = http://p11-glue.freedesktop.org/releases
+P11_KIT_DEPENDENCIES = host-pkgconf libtasn1
+P11_KIT_INSTALL_STAGING = YES
+P11_KIT_CONF_OPT = --disable-static
+P11_KIT_LICENSE = BSD-3c
+P11_KIT_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
--
1.8.1.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* [Buildroot] [PATCHv2 2/2] gnutls: bump to version 3.2.1 2013-06-03 0:50 [Buildroot] [PATCHv2 1/2] p11-kit: new package Gustavo Zacarias @ 2013-06-03 0:50 ` Gustavo Zacarias 2013-06-03 3:13 ` [Buildroot] [PATCHv2 1/2] p11-kit: new package Baruch Siach 2013-06-03 15:27 ` Peter Korsgaard 2 siblings, 0 replies; 4+ messages in thread From: Gustavo Zacarias @ 2013-06-03 0:50 UTC (permalink / raw) To: buildroot Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- package/gnutls/Config.in | 1 + ...gnutls-correct_rpl_gettimeofday_signature.patch | 58 ---------------------- package/gnutls/gnutls.mk | 29 ++++++++--- 3 files changed, 24 insertions(+), 64 deletions(-) delete mode 100644 package/gnutls/gnutls-correct_rpl_gettimeofday_signature.patch diff --git a/package/gnutls/Config.in b/package/gnutls/Config.in index 038b3fb..f699af7 100644 --- a/package/gnutls/Config.in +++ b/package/gnutls/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_GNUTLS bool "gnutls" select BR2_PACKAGE_NETTLE + select BR2_PACKAGE_PCRE depends on BR2_USE_WCHAR help GnuTLS is a secure communications library implementing the SSL diff --git a/package/gnutls/gnutls-correct_rpl_gettimeofday_signature.patch b/package/gnutls/gnutls-correct_rpl_gettimeofday_signature.patch deleted file mode 100644 index 9188708..0000000 --- a/package/gnutls/gnutls-correct_rpl_gettimeofday_signature.patch +++ /dev/null @@ -1,58 +0,0 @@ -[PATCH] fix build on uClibc - -Currently we fail on uclibc like below - -| In file included from /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-uclibc/sysroots/qemuarm/usr/include/sys/procfs.h:32:0, -| from /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-uclibc/sysroots/qemuarm/usr/include/sys/ucontext.h:26, -| from /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-uclibc/sysroots/qemuarm/usr/include/signal.h:392, -| from ../../gl/signal.h:52, -| from ../../gl/sys/select.h:58, -| from /home/kraj/work/angstrom/sources/openembedded-core/build/tmp-uclibc/sysroots/qemuarm/usr/include/sys/types.h:220, -| from ../../gl/sys/types.h:28, -| from ../../lib/includes/gnutls/gnutls.h:46, -| from ex-cxx.cpp:3: -| ../../gl/sys/time.h:396:66: error: conflicting declaration 'void* restrict' -| ../../gl/sys/time.h:396:50: error: 'restrict' has a previous declaration as 'timeval* restrict' -| make[4]: *** [ex-cxx.o] Error 1 -| make[4]: *** Waiting for unfinished jobs.... - - -GCC detects that we call 'restrict' as param name in function -signatures and complains since both params are called 'restrict' -therefore we use __restrict to denote the C99 keywork - -This only happens of uclibc since this code is not excercised with -eglibc otherwise we will have same issue there too - -Signed-off-by: Khem Raj <raj.khem@gmail.com> -Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> - -Index: gnutls-2.12.14/gl/sys_time.in.h -=================================================================== ---- gnutls-2.12.14.orig/gl/sys_time.in.h 2012-01-15 10:54:39.517285351 -0800 -+++ gnutls-2.12.14/gl/sys_time.in.h 2012-01-15 10:59:23.773299108 -0800 -@@ -82,20 +82,20 @@ - # define gettimeofday rpl_gettimeofday - # endif - _GL_FUNCDECL_RPL (gettimeofday, int, -- (struct timeval *restrict, void *restrict) -+ (struct timeval *__restrict, void *__restrict) - _GL_ARG_NONNULL ((1))); - _GL_CXXALIAS_RPL (gettimeofday, int, -- (struct timeval *restrict, void *restrict)); -+ (struct timeval *__restrict, void *__restrict)); - # else - # if !@HAVE_GETTIMEOFDAY@ - _GL_FUNCDECL_SYS (gettimeofday, int, -- (struct timeval *restrict, void *restrict) -+ (struct timeval *__restrict, void *__restrict) - _GL_ARG_NONNULL ((1))); - # endif - /* Need to cast, because on glibc systems, by default, the second argument is - struct timezone *. */ - _GL_CXXALIAS_SYS_CAST (gettimeofday, int, -- (struct timeval *restrict, void *restrict)); -+ (struct timeval *__restrict, void *__restrict)); - # endif - _GL_CXXALIASWARN (gettimeofday); - # elif defined GNULIB_POSIXCHECK diff --git a/package/gnutls/gnutls.mk b/package/gnutls/gnutls.mk index 610a5a2..3089979 100644 --- a/package/gnutls/gnutls.mk +++ b/package/gnutls/gnutls.mk @@ -4,22 +4,39 @@ # ############################################################# -GNUTLS_VERSION = 3.1.9 +GNUTLS_VERSION = 3.2.1 GNUTLS_SOURCE = gnutls-$(GNUTLS_VERSION).tar.xz -GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v3.1 -GNUTLS_LICENSE = GPLv3+ LGPLv3 +GNUTLS_SITE = ftp://ftp.gnutls.org/gcrypt/gnutls/v3.2 +GNUTLS_LICENSE = GPLv3+ LGPLv2.1+ GNUTLS_LICENSE_FILES = COPYING COPYING.LESSER -GNUTLS_DEPENDENCIES = host-pkgconf nettle $(if $(BR2_PACKAGE_ZLIB),zlib) -GNUTLS_CONF_OPT = --with-libnettle-prefix=$(STAGING_DIR)/usr --disable-rpath +GNUTLS_DEPENDENCIES = host-pkgconf nettle pcre \ + $(if $(BR2_PACKAGE_P11_KIT),p11-kit) \ + $(if $(BR2_PACKAGE_LIBIDN),libidn) \ + $(if $(BR2_PACKAGE_LIBTASN1),libtasn1) \ + $(if $(BR2_PACKAGE_ZLIB),zlib) +GNUTLS_CONF_OPT = --with-libnettle-prefix=$(STAGING_DIR)/usr --disable-rpath \ + --disable-doc --disable-guile GNUTLS_CONF_ENV = gl_cv_socket_ipv6=$(if $(BR2_INET_IPV6),yes,no) \ ac_cv_header_wchar_h=$(if $(BR2_USE_WCHAR),yes,no) \ gt_cv_c_wchar_t=$(if $(BR2_USE_WCHAR),yes,no) \ - gt_cv_c_wint_t=$(if $(BR2_USE_WCHAR),yes,no) + gt_cv_c_wint_t=$(if $(BR2_USE_WCHAR),yes,no) \ + gl_cv_func_gettimeofday_clobber=no GNUTLS_INSTALL_STAGING = YES # libpthread autodetection poisons the linkpath GNUTLS_CONF_OPT += $(if $(BR2_TOOLCHAIN_HAS_THREADS),--with-libpthread-prefix=$(STAGING_DIR)/usr) +# gnutls needs libregex, but pcre can be used too +# The check isn't cross-compile friendly +define GNUTLS_LIBREGEX_CHECK_FIX + $(SED) 's/libopts_cv_with_libregex=no/libopts_cv_with_libregex=yes/g;'\ + $(@D)/configure +endef +GNUTLS_PRE_CONFIGURE_HOOKS += GNUTLS_LIBREGEX_CHECK_FIX +GNUTLS_CONF_OPT += --with-regex-header=pcreposix.h \ + --with-libregex-cflags="`$(PKG_CONFIG_HOST_BINARY) libpcreposix --cflags`" \ + --with-libregex-libs="`$(PKG_CONFIG_HOST_BINARY) libpcreposix --libs`" + # libidn support for nommu must exclude the crywrap wrapper (uses fork) GNUTLS_CONF_OPT += $(if $(BR2_USE_MMU),,--disable-crywrap) GNUTLS_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBIDN),libidn) -- 1.8.1.5 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCHv2 1/2] p11-kit: new package 2013-06-03 0:50 [Buildroot] [PATCHv2 1/2] p11-kit: new package Gustavo Zacarias 2013-06-03 0:50 ` [Buildroot] [PATCHv2 2/2] gnutls: bump to version 3.2.1 Gustavo Zacarias @ 2013-06-03 3:13 ` Baruch Siach 2013-06-03 15:27 ` Peter Korsgaard 2 siblings, 0 replies; 4+ messages in thread From: Baruch Siach @ 2013-06-03 3:13 UTC (permalink / raw) To: buildroot Hi Gustavo, On Sun, Jun 02, 2013 at 09:50:52PM -0300, Gustavo Zacarias wrote: > Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> > --- > package/Config.in | 1 + > package/p11-kit/Config.in | 15 +++++++++++++++ > package/p11-kit/p11-kit.mk | 15 +++++++++++++++ > 3 files changed, 31 insertions(+) > create mode 100644 package/p11-kit/Config.in > create mode 100644 package/p11-kit/p11-kit.mk [snip] > diff --git a/package/p11-kit/Config.in b/package/p11-kit/Config.in > new file mode 100644 > index 0000000..40a07d3 > --- /dev/null > +++ b/package/p11-kit/Config.in > @@ -0,0 +1,15 @@ > +config BR2_PACKAGE_P11_KIT > + bool "p11-kit" > + depends on !BR2_PREFER_STATIC_LIB > + depends on BR2_USE_MMU > + depends on BR2_TOOLCHAIN_HAS_THREADS > + 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 requires a toolchain with thread support" > + depends on !BR2_TOOLCHAIN_HAS_THREADS Maybe also add BR2_PREFER_STATIC_LIB to the comment 'depends'? baruch > diff --git a/package/p11-kit/p11-kit.mk b/package/p11-kit/p11-kit.mk > new file mode 100644 > index 0000000..2ddb27c > --- /dev/null > +++ b/package/p11-kit/p11-kit.mk > @@ -0,0 +1,15 @@ > +############################################################# > +# > +# p11-kit > +# > +############################################################# > + > +P11_KIT_VERSION = 0.18.1 > +P11_KIT_SITE = http://p11-glue.freedesktop.org/releases > +P11_KIT_DEPENDENCIES = host-pkgconf libtasn1 > +P11_KIT_INSTALL_STAGING = YES > +P11_KIT_CONF_OPT = --disable-static > +P11_KIT_LICENSE = BSD-3c > +P11_KIT_LICENSE_FILES = COPYING > + > +$(eval $(autotools-package)) > -- > 1.8.1.5 -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCHv2 1/2] p11-kit: new package 2013-06-03 0:50 [Buildroot] [PATCHv2 1/2] p11-kit: new package Gustavo Zacarias 2013-06-03 0:50 ` [Buildroot] [PATCHv2 2/2] gnutls: bump to version 3.2.1 Gustavo Zacarias 2013-06-03 3:13 ` [Buildroot] [PATCHv2 1/2] p11-kit: new package Baruch Siach @ 2013-06-03 15:27 ` Peter Korsgaard 2 siblings, 0 replies; 4+ messages in thread From: Peter Korsgaard @ 2013-06-03 15:27 UTC (permalink / raw) To: buildroot >>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes: Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Committed both, thanks. -- Bye, Peter Korsgaard ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-03 15:27 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-06-03 0:50 [Buildroot] [PATCHv2 1/2] p11-kit: new package Gustavo Zacarias 2013-06-03 0:50 ` [Buildroot] [PATCHv2 2/2] gnutls: bump to version 3.2.1 Gustavo Zacarias 2013-06-03 3:13 ` [Buildroot] [PATCHv2 1/2] p11-kit: new package Baruch Siach 2013-06-03 15:27 ` Peter Korsgaard
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox