Added the libassuan package.
PATCH RESEND 1/4 Added the libassuan package.
--- package/Config.in | 1 + package/libassuan/Config.in | 7 +++++++ package/libassuan/libassuan.mk | 17 +++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 package/libassuan/Config.in create mode 100644 package/libassuan/libassuan.mk
package/Config.in +1 -0
@@ -276,6 +276,7 @@ endmenu menu "Crypto" source "package/beecrypt/Config.in" source "package/gnutls/Config.in" +source "package/libassuan/Config.in" source "package/libgcrypt/Config.in" source "package/libgpg-error/Config.in" source "package/libnss/Config.in"
package/libassuan/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_LIBASSUAN + bool "libassuan" + select BR2_PACKAGE_LIBGPG_ERROR + help + Libassuan is the IPC library used by some GnuPG related software. + + http://www.gnupg.org/
package/libassuan/libassuan.mk new file +17 -0
@@ -0,0 +1,17 @@ +############################################################# +# +# libassuan +# +############################################################# + +LIBASSUAN_VERSION = 2.0.3 +LIBASSUAN_SOURCE = libassuan-$(LIBASSUAN_VERSION).tar.bz2 +LIBASSUAN_SITE = ftp://ftp.gnupg.org/gcrypt/libassuan/ +LIBASSUAN_INSTALL_STAGING = YES + +LIBASSUAN_CONF_OPT = \ + --with-gpg-error-prefix=$(STAGING_DIR)/usr + +LIBASSUAN_DEPENDENCIES = libgpg-error + +$(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.9.5
PATCH RESEND 2/4 Added the libksba package.
--- package/Config.in | 1 + package/libksba/Config.in | 7 +++++++ package/libksba/libksba.mk | 16 ++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 package/libksba/Config.in create mode 100644 package/libksba/libksba.mk
package/Config.in +1 -0
@@ -279,6 +279,7 @@ source "package/gnutls/Config.in" source "package/libassuan/Config.in" source "package/libgcrypt/Config.in" source "package/libgpg-error/Config.in" +source "package/libksba/Config.in" source "package/libnss/Config.in" source "package/openssl/Config.in" source "package/polarssl/Config.in"
package/libksba/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_LIBKSBA + bool "libksba" + select BR2_PACKAGE_LIBGPG_ERROR + help + Libksba is a CMS and X.509 access library under development. + + http://gnupg.org/
package/libksba/libksba.mk new file +16 -0
@@ -0,0 +1,16 @@ +############################################################# +# +# libksba +# +############################################################# + +LIBKSBA_VERSION = 1.2.0 +LIBKSBA_SOURCE = libksba-$(LIBKSBA_VERSION).tar.bz2 +LIBKSBA_SITE = ftp://ftp.gnupg.org/gcrypt/libksba/ +LIBKSBA_INSTALL_STAGING = YES +LIBKSBA_DEPENDENCIES = libgpg-error + +LIBKSBA_CONF_OPT = \ + --with-gpg-error-prefix=$(STAGING_DIR)/usr + +$(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.9.5
PATCH RESEND 3/4 Added the pth package.
In reply to Stijn Souffriau--- package/Config.in | 1 + package/pth/Config.in | 10 ++++++ ...mmited-L-usr-lib-I-usr-include-from-paths.patch | 34 ++++++++++++++++++++ package/pth/pth-0002-dependencyfix.patch | 25 ++++++++++++++ .../pth/pth-0003-fixed-install-dependency.patch | 34 ++++++++++++++++++++ package/pth/pth.mk | 12 +++++++ 6 files changed, 116 insertions(+) create mode 100644 package/pth/Config.in create mode 100644 package/pth/pth-0001-ommited-L-usr-lib-I-usr-include-from-paths.patch create mode 100644 package/pth/pth-0002-dependencyfix.patch create mode 100644 package/pth/pth-0003-fixed-install-dependency.patch create mode 100644 package/pth/pth.mk
package/Config.in +1 -0
@@ -398,6 +398,7 @@ source "package/libffi/Config.in" source "package/libglib2/Config.in" source "package/libical/Config.in" source "package/libnspr/Config.in" +source "package/pth/Config.in" source "package/libsigc/Config.in" source "package/libtpl/Config.in" source "package/liburcu/Config.in"
package/pth/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_LIBPTH + bool "libpth" + depends on BR2_TOOLCHAIN_EXTERNAL_GLIBC || BR2_TOOLCHAIN_CTNG_glibc || BR2_TOOLCHAIN_CTNG_eglibc + help + Pth is a very portable POSIX/ANSI-C based library for Unix + platforms which provides non-preemptive priority-based scheduling + for multiple threads of execution (aka ``multithreading'') + inside event-driven applications. + + http://www.gnu.org/software/pth/
package/pth/pth-0001-ommited-L-usr-lib-I-usr-include-from-paths.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 92f49db9b1c74691ac82b1f52429ca9b6f98d6f4 Mon Sep 17 00:00:00 2001 +From: Stijn Souffriau <[email protected]> +Date: Thu, 29 Mar 2012 19:55:02 +0200 +Subject: [PATCH] ommited -L/usr/lib -I/usr/include from paths + +--- + pth-config.in | 8 ++++++-- + 1 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/pth-config.in b/pth-config.in +index 24a93d7..802770d 100644 +--- a/pth-config.in ++++ b/pth-config.in +@@ -109,11 +109,15 @@ do + output="$output $pth_acdir" + ;; + --cflags) +- output="$output -I$pth_includedir" ++ if [[ $pth_includedir != "/usr/include" ]]; then ++ output="$output -I$pth_includedir" ++ fi + output_extra="$output_extra $pth_cflags" + ;; + --ldflags) +- output="$output -L$pth_libdir" ++ if [[ $pth_libdir != "/usr/lib" ]]; then ++ output="$output -L$pth_libdir" ++ fi + output_extra="$output_extra $pth_ldflags" + ;; + --libs) +-- +1.7.0.4 +
package/pth/pth-0002-dependencyfix.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 92f862503bb934252e9df1d19d7184b5ed57d7aa Mon Sep 17 00:00:00 2001 +From: Stijn Souffriau <[email protected]> +Date: Mon, 2 Apr 2012 16:00:53 +0200 +Subject: [PATCH] Added prerequisite to rule needed for parallel building + +--- + Makefile.in | 2 ++ + 1 files changed, 2 insertions(+), 0 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index 477ed81..750ec9f 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -162,6 +162,8 @@ all-normal: $(TARGET_ALL) + all-for-install: $(TARGET_ALL) + @touch .done-all >/dev/null 2>&1 || $(TRUE) + ++$(HSRCS): pth_p.h ++ + # build the private shared header file + pth_p.h: $(S)pth_p.h.in + $(SHTOOL) scpp -o pth_p.h -t $(S)pth_p.h.in -Dcpp -Cintern -M '==#==' $(HSRCS) +-- +1.7.0.4 +
package/pth/pth-0003-fixed-install-dependency.patch new file +34 -0
@@ -0,0 +1,34 @@ +From f2079abd360d2f1c531927e8ff7aa034d51aac66 Mon Sep 17 00:00:00 2001 +From: Stijn Souffriau <[email protected]> +Date: Tue, 3 Apr 2012 13:49:38 +0200 +Subject: [PATCH] fixed install dependency + +--- + Makefile.in | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index 750ec9f..f5f3c9c 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -229,7 +229,7 @@ install-dirs: + $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1 + $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man3 + $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(datadir)/aclocal +-install-pth: ++install-pth: install-dirs + $(SHTOOL) install -c -m 755 pth-config $(DESTDIR)$(bindir)/pth-config + $(SHTOOL) install -c -m 644 $(S)pth-config.1 $(DESTDIR)$(mandir)/man1/pth-config.1 + $(SHTOOL) install -c -m 644 $(S)pth.3 $(DESTDIR)$(mandir)/man3/pth.3 +@@ -237,7 +237,7 @@ install-pth: + $(SHTOOL) install -c -m 644 pth.h $(DESTDIR)$(includedir)/pth.h + @umask 022; $(LIBTOOL) --mode=install \ + $(SHTOOL) install -c libpth.la $(DESTDIR)$(libdir)/libpth.la +-install-pthread: ++install-pthread: install-dirs + $(SHTOOL) install -c -m 755 pthread-config $(DESTDIR)$(bindir)/pthread-config + $(SHTOOL) install -c -m 644 $(S)pthread-config.1 $(DESTDIR)$(mandir)/man1/pthread-config.1 + $(SHTOOL) install -c -m 644 pthread.h $(DESTDIR)$(includedir)/pthread.h +-- +1.7.0.4 +
package/pth/pth.mk new file +12 -0
@@ -0,0 +1,12 @@ +############################################################# +# +# pth +# +############################################################# + +PTH_VERSION = 2.0.6 +PTH_SOURCE = pth-$(PTH_VERSION).tar.gz +PTH_SITE = $(BR2_GNU_MIRROR)/pth +PTH_INSTALL_STAGING = YES + +$(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.9.5
PATCH RESEND 3/4 Added the pth package.
Hello Stijn,
Le Sat, 2 Jun 2012 17:09:17 +0200,
Stijn Souffriau <[email protected]> a ?crit :
Quoted 5 lines
--- package/Config.in | 1 + package/pth/Config.in | 10 ++++++ ...mmited-L-usr-lib-I-usr-include-from-paths.patch | 34 ++++++++++++++++++++ package/pth/pth-0002-dependencyfix.patch | 25 ++++++++++++++
Quoted 8 lines
.../pth/pth-0003-fixed-install-dependency.patch | 34 ++++++++++++++++++++ package/pth/pth.mk | 12 +++++++ 6 files changed, 116 insertions(+) create mode 100644 package/pth/Config.in create mode 100644 package/pth/pth-0001-ommited-L-usr-lib-I-usr-include-from-paths.patch create mode 100644 package/pth/pth-0002-dependencyfix.patch create mode 100644 package/pth/pth-0003-fixed-install-dependency.patch create mode 100644 package/pth/pth.mk
I have tried to integrate your work, but unfortunately, the GNU Pth library doesn't even build on ARM glibc-based systems. It simply fails with:
pth_mctx.c: In function '__pth_mctx_set':
pth_mctx.c:480:2: error: #error "Unsupported Linux (g)libc version and/or platform"
Also, I don't think it's worth putting too much effort into this since GnuPG is currently migrating to a new library named nPth, which apparently should cause a lot less portability problems. See:
http://lists.gnupg.org/pipermail/gnupg-announce/2012q2/000315.html.
Therefore, I would rather suggest:
(1) To package the 1.4.x version of gnupg, which is used in current distros (at least Debian/Ubuntu based distros), so it shouldn't be too old, and apparently has less dependencies.
(2) Wait for the 2.1 development version of gnupg to become a stable version, and create a package for both nPth or Pth.
In the mean time, I've put an updated version of your work at
http://git.free-electrons.com/users/thomas-petazzoni/buildroot/log/?h=gnupg,
with a few fixes.
Best regards,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
PATCH RESEND 4/4 Added the gnupg package.
In reply to Stijn Souffriau--- package/Config.in | 1 + package/gnupg/Config.in | 13 ++++++++ ...gnupg-0001-removed-autogenerated-stdint.h.patch | 31 ++++++++++++++++++++ package/gnupg/gnupg.mk | 23 +++++++++++++++ 4 files changed, 68 insertions(+) create mode 100644 package/gnupg/Config.in create mode 100644 package/gnupg/gnupg-0001-removed-autogenerated-stdint.h.patch create mode 100644 package/gnupg/gnupg.mk
package/Config.in +1 -0
@@ -438,6 +438,7 @@ endmenu endmenu menu "Miscellaneous" +source "package/gnupg/Config.in" source "package/shared-mime-info/Config.in" endmenu
package/gnupg/Config.in new file +13 -0
@@ -0,0 +1,13 @@ +config BR2_PACKAGE_GNUPG + bool "gnupg" + depends on BR2_TOOLCHAIN_EXTERNAL_GLIBC || BR2_TOOLCHAIN_CTNG_glibc || BR2_TOOLCHAIN_CTNG_eglibc + select BR2_PACKAGE_LIBGPG_ERROR + select BR2_PACKAGE_LIBGCRYPT + select BR2_PACKAGE_LIBKSBA + select BR2_PACKAGE_LIBASSUAN + select BR2_PACKAGE_LIBPTH + select BR2_PACKAGE_ZLIB + help + GnuPG 2.0 is the new modularized version of GnuPG supporting OpenPGP and S/MIME + + http://www.gnupg.org/
package/gnupg/gnupg-0001-removed-autogenerated-stdint.h.patch new file +31 -0
@@ -0,0 +1,31 @@ +From 53a02ec3a77ecd0d57660a55c55764bdc0063ec1 Mon Sep 17 00:00:00 2001 +From: Stijn Souffriau <[email protected]> +Date: Sun, 6 May 2012 23:19:38 +0200 +Subject: [PATCH] removed autogenerated stdint.h + +--- + gl/Makefile.in | 7 +++---- + 1 files changed, 3 insertions(+), 4 deletions(-) + +diff --git a/gl/Makefile.in b/gl/Makefile.in +index 7cc38e0..df06b73 100644 +--- a/gl/Makefile.in ++++ b/gl/Makefile.in +@@ -298,11 +298,10 @@ libgnu_a_SOURCES = allocsa.h allocsa.c mkdtemp.h setenv.h size_max.h \ + strpbrk.h xsize.h + libgnu_a_LIBADD = $(LIBOBJS) + noinst_HEADERS = +-EXTRA_DIST = alloca_.h allocsa.valgrind stdint_.h +-BUILT_SOURCES = $(ALLOCA_H) $(STDINT_H) $(UNISTD_H) ++EXTRA_DIST = alloca_.h allocsa.valgrind ++BUILT_SOURCES = $(ALLOCA_H) $(UNISTD_H) + SUFFIXES = +-MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t stdint.h \ +- stdint.h-t unistd.h ++MOSTLYCLEANFILES = core *.stackdump alloca.h alloca.h-t unistd.h + MOSTLYCLEANDIRS = + CLEANFILES = + DISTCLEANFILES = +-- +1.7.0.4 +
package/gnupg/gnupg.mk new file +23 -0
@@ -0,0 +1,23 @@ +############################################################# +# +# gnupg +# +############################################################# + +GNUPG_VERSION = 2.0.19 +GNUPG_SOURCE = gnupg-$(GNUPG_VERSION).tar.bz2 +GNUPG_SITE = ftp://ftp.gnupg.org/gcrypt/gnupg/ +GNUPG_DEPENDENCIES= libgpg-error libgcrypt libassuan libksba pth zlib libiconv + +GNUPG_INSTALL_STAGING = YES + +GNUPG_CONF_OPT = \ + --with-gpg-error-prefix=$(STAGING_DIR)/usr \ + --with-libgcrypt-prefix=$(STAGING_DIR)/usr \ + --with-libassuan-prefix=$(STAGING_DIR)/usr \ + --with-ksba-prefix=$(STAGING_DIR)/usr \ + --with-pth-prefix=$(STAGING_DIR)/usr \ + --with-zlib=$(STAGING_DIR)/usr/lib \ + --with-libiconv-prefix=$(STAGING_DIR)/usr + +$(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.9.5