Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 5/5] Added host targets to gnupg and its prerequisite libraries.
  2012-05-07 20:59 [Buildroot] [PATCH 1/5] Added the libassuan package Stijn Souffriau
@ 2012-05-07 20:59 ` Stijn Souffriau
  0 siblings, 0 replies; 12+ messages in thread
From: Stijn Souffriau @ 2012-05-07 20:59 UTC (permalink / raw)
  To: buildroot

---
 package/gnupg/gnupg.mk               |   11 +++++++++++
 package/libassuan/libassuan.mk       |    5 +++++
 package/libgcrypt/libgcrypt.mk       |    1 +
 package/libgpg-error/libgpg-error.mk |    1 +
 package/libksba/libksba.mk           |    5 +++++
 package/libpth/libpth.mk             |    5 +++++
 6 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/package/gnupg/gnupg.mk b/package/gnupg/gnupg.mk
index a9cdf38..0a6c99f 100644
--- a/package/gnupg/gnupg.mk
+++ b/package/gnupg/gnupg.mk
@@ -20,4 +20,15 @@ GNUPG_CONF_OPT = \
 	--with-zlib=$(STAGING_DIR)/usr/lib \
 	--with-libiconv-prefix=$(STAGING_DIR)/usr
 
+HOST_GNUPG_CONF_OPT = \
+	--disable-optimization \
+	--with-gpg-error-prefix=$(HOST_DIR)/usr \
+	--with-libgcrypt-prefix=$(HOST_DIR)/usr \
+	--with-libassuan-prefix=$(HOST_DIR)/usr \
+	--with-ksba-prefix=$(HOST_DIR)/usr \
+	--with-pth-prefix=$(HOST_DIR)/usr \
+	--with-zlib=$(HOST_DIR)/usr/lib \
+	--with-libiconv-prefix=$(HOST_DIR)/usr
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
diff --git a/package/libassuan/libassuan.mk b/package/libassuan/libassuan.mk
index d2a018a..a94e601 100644
--- a/package/libassuan/libassuan.mk
+++ b/package/libassuan/libassuan.mk
@@ -13,6 +13,11 @@ LIBASSUAN_CONF_OPT = \
 	--disable-optimization \
 	--with-gpg-error-prefix=$(STAGING_DIR)/usr
 
+HOST_LIBASSUAN_CONF_OPT = \
+	--disable-optimization \
+	--with-gpg-error-prefix=$(HOST_DIR)/usr
+
 LIBASSUAN_DEPENDENCIES = libgpg-error
 
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
diff --git a/package/libgcrypt/libgcrypt.mk b/package/libgcrypt/libgcrypt.mk
index 68c6c47..55606fe 100644
--- a/package/libgcrypt/libgcrypt.mk
+++ b/package/libgcrypt/libgcrypt.mk
@@ -18,3 +18,4 @@ LIBGCRYPT_CONF_OPT = \
 LIBGCRYPT_DEPENDENCIES = libgpg-error
 
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
diff --git a/package/libgpg-error/libgpg-error.mk b/package/libgpg-error/libgpg-error.mk
index 1b78b17..2aa1da3 100644
--- a/package/libgpg-error/libgpg-error.mk
+++ b/package/libgpg-error/libgpg-error.mk
@@ -9,3 +9,4 @@ LIBGPG_ERROR_SITE = ftp://ftp.gnupg.org/gcrypt/libgpg-error
 LIBGPG_ERROR_INSTALL_STAGING = YES
 
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
diff --git a/package/libksba/libksba.mk b/package/libksba/libksba.mk
index bebd352..d33b149 100644
--- a/package/libksba/libksba.mk
+++ b/package/libksba/libksba.mk
@@ -13,4 +13,9 @@ LIBKSBA_CONF_OPT = \
 	--disable-optimization \
 	--with-gpg-error-prefix=$(STAGING_DIR)/usr
 
+HOST_LIBKSBA_CONF_OPT = \
+	--disable-optimization \
+	--with-gpg-error-prefix=$(HOST_DIR)/usr
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
diff --git a/package/libpth/libpth.mk b/package/libpth/libpth.mk
index 07c5c61..4fb7494 100644
--- a/package/libpth/libpth.mk
+++ b/package/libpth/libpth.mk
@@ -12,4 +12,9 @@ LIBPTH_INSTALL_STAGING = YES
 LIBPTH_CONF_OPT = \
 	--disable-optimization
 
+HOST_LIBPTH_CONF_OPT = \
+	--disable-optimization
+
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 1/5] Added the libassuan package.
@ 2012-05-09 21:29 Stijn Souffriau
  2012-05-09 21:29 ` [Buildroot] [PATCH 2/5] Added the libksba package Stijn Souffriau
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Stijn Souffriau @ 2012-05-09 21:29 UTC (permalink / raw)
  To: buildroot

---
 package/Config.in              |    1 +
 package/libassuan/Config.in    |    7 +++++++
 package/libassuan/libassuan.mk |   18 ++++++++++++++++++
 3 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100644 package/libassuan/Config.in
 create mode 100644 package/libassuan/libassuan.mk

diff --git a/package/Config.in b/package/Config.in
index b25f31a..58c6624 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/libassuan/Config.in b/package/libassuan/Config.in
new file mode 100644
index 0000000..93ab49c
--- /dev/null
+++ b/package/libassuan/Config.in
@@ -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/
diff --git a/package/libassuan/libassuan.mk b/package/libassuan/libassuan.mk
new file mode 100644
index 0000000..d2a018a
--- /dev/null
+++ b/package/libassuan/libassuan.mk
@@ -0,0 +1,18 @@
+#############################################################
+#
+# 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 = \
+	--disable-optimization \
+	--with-gpg-error-prefix=$(STAGING_DIR)/usr
+
+LIBASSUAN_DEPENDENCIES = libgpg-error
+
+$(eval $(call AUTOTARGETS))
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 2/5] Added the libksba package.
  2012-05-09 21:29 [Buildroot] [PATCH 1/5] Added the libassuan package Stijn Souffriau
@ 2012-05-09 21:29 ` Stijn Souffriau
  2012-05-10 10:41   ` Gustavo Zacarias
  2012-05-09 21:29 ` [Buildroot] [PATCH 3/5] Added the libpth package Stijn Souffriau
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 12+ messages in thread
From: Stijn Souffriau @ 2012-05-09 21:29 UTC (permalink / raw)
  To: buildroot

---
 package/Config.in          |    1 +
 package/libksba/Config.in  |    6 ++++++
 package/libksba/libksba.mk |   16 ++++++++++++++++
 3 files changed, 23 insertions(+), 0 deletions(-)
 create mode 100644 package/libksba/Config.in
 create mode 100644 package/libksba/libksba.mk

diff --git a/package/Config.in b/package/Config.in
index 58c6624..d71136d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/libksba/Config.in b/package/libksba/Config.in
new file mode 100644
index 0000000..b13982a
--- /dev/null
+++ b/package/libksba/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_LIBKSBA
+	bool "libksba"
+	help
+	  Libksba is a CMS and X.509 access library under development.
+
+	  http://gnupg.org/
diff --git a/package/libksba/libksba.mk b/package/libksba/libksba.mk
new file mode 100644
index 0000000..bebd352
--- /dev/null
+++ b/package/libksba/libksba.mk
@@ -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_CONF_OPT = \
+	--disable-optimization \
+	--with-gpg-error-prefix=$(STAGING_DIR)/usr
+
+$(eval $(call AUTOTARGETS))
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 3/5] Added the libpth package.
  2012-05-09 21:29 [Buildroot] [PATCH 1/5] Added the libassuan package Stijn Souffriau
  2012-05-09 21:29 ` [Buildroot] [PATCH 2/5] Added the libksba package Stijn Souffriau
@ 2012-05-09 21:29 ` Stijn Souffriau
  2012-05-10 10:43   ` Gustavo Zacarias
  2012-05-09 21:29 ` [Buildroot] [PATCH 4/5] Added the gnupg package Stijn Souffriau
  2012-05-09 21:29 ` [Buildroot] [PATCH 5/5] Added host targets to gnupg and its prerequisite libraries Stijn Souffriau
  3 siblings, 1 reply; 12+ messages in thread
From: Stijn Souffriau @ 2012-05-09 21:29 UTC (permalink / raw)
  To: buildroot

---
 package/Config.in                                  |    1 +
 package/libpth/Config.in                           |    9 +++++
 ...mmited-L-usr-lib-I-usr-include-from-paths.patch |   34 ++++++++++++++++++++
 package/libpth/libpth-0002-dependencyfix.patch     |   25 ++++++++++++++
 .../libpth-0003-fixed-install-dependency.patch     |   34 ++++++++++++++++++++
 package/libpth/libpth.mk                           |   15 +++++++++
 6 files changed, 118 insertions(+), 0 deletions(-)
 create mode 100644 package/libpth/Config.in
 create mode 100644 package/libpth/libpth-0001-ommited-L-usr-lib-I-usr-include-from-paths.patch
 create mode 100644 package/libpth/libpth-0002-dependencyfix.patch
 create mode 100644 package/libpth/libpth-0003-fixed-install-dependency.patch
 create mode 100644 package/libpth/libpth.mk

diff --git a/package/Config.in b/package/Config.in
index d71136d..3035aaf 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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/libpth/Config.in"
 source "package/libsigc/Config.in"
 source "package/libtpl/Config.in"
 source "package/liburcu/Config.in"
diff --git a/package/libpth/Config.in b/package/libpth/Config.in
new file mode 100644
index 0000000..38a5837
--- /dev/null
+++ b/package/libpth/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBPTH
+	bool "libpth"
+	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/
diff --git a/package/libpth/libpth-0001-ommited-L-usr-lib-I-usr-include-from-paths.patch b/package/libpth/libpth-0001-ommited-L-usr-lib-I-usr-include-from-paths.patch
new file mode 100644
index 0000000..846a454
--- /dev/null
+++ b/package/libpth/libpth-0001-ommited-L-usr-lib-I-usr-include-from-paths.patch
@@ -0,0 +1,34 @@
+From 92f49db9b1c74691ac82b1f52429ca9b6f98d6f4 Mon Sep 17 00:00:00 2001
+From: Stijn Souffriau <stijn.souffriau@essensium.com>
+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
+
diff --git a/package/libpth/libpth-0002-dependencyfix.patch b/package/libpth/libpth-0002-dependencyfix.patch
new file mode 100644
index 0000000..a1eefe1
--- /dev/null
+++ b/package/libpth/libpth-0002-dependencyfix.patch
@@ -0,0 +1,25 @@
+From 92f862503bb934252e9df1d19d7184b5ed57d7aa Mon Sep 17 00:00:00 2001
+From: Stijn Souffriau <stijn.souffriau@essensium.com>
+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
+
diff --git a/package/libpth/libpth-0003-fixed-install-dependency.patch b/package/libpth/libpth-0003-fixed-install-dependency.patch
new file mode 100644
index 0000000..e1d7d50
--- /dev/null
+++ b/package/libpth/libpth-0003-fixed-install-dependency.patch
@@ -0,0 +1,34 @@
+From f2079abd360d2f1c531927e8ff7aa034d51aac66 Mon Sep 17 00:00:00 2001
+From: Stijn Souffriau <stijn.souffriau@essensium.com>
+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
+
diff --git a/package/libpth/libpth.mk b/package/libpth/libpth.mk
new file mode 100644
index 0000000..07c5c61
--- /dev/null
+++ b/package/libpth/libpth.mk
@@ -0,0 +1,15 @@
+#############################################################
+#
+# libpth
+#
+#############################################################
+
+LIBPTH_VERSION = 2.0.6
+LIBPTH_SOURCE = pth-$(LIBPTH_VERSION).tar.gz
+LIBPTH_SITE = ftp://ftp.gnu.org/gnu/pth/
+LIBPTH_INSTALL_STAGING = YES
+
+LIBPTH_CONF_OPT = \
+	--disable-optimization
+
+$(eval $(call AUTOTARGETS))
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 4/5] Added the gnupg package.
  2012-05-09 21:29 [Buildroot] [PATCH 1/5] Added the libassuan package Stijn Souffriau
  2012-05-09 21:29 ` [Buildroot] [PATCH 2/5] Added the libksba package Stijn Souffriau
  2012-05-09 21:29 ` [Buildroot] [PATCH 3/5] Added the libpth package Stijn Souffriau
@ 2012-05-09 21:29 ` Stijn Souffriau
  2012-05-10 10:45   ` Gustavo Zacarias
  2012-05-09 21:29 ` [Buildroot] [PATCH 5/5] Added host targets to gnupg and its prerequisite libraries Stijn Souffriau
  3 siblings, 1 reply; 12+ messages in thread
From: Stijn Souffriau @ 2012-05-09 21:29 UTC (permalink / raw)
  To: buildroot

---
 package/Config.in                                  |    1 +
 package/gnupg/Config.in                            |   12 +++++++
 ...gnupg-0001-removed-autogenerated-stdint.h.patch |   31 ++++++++++++++++++++
 package/gnupg/gnupg.mk                             |   23 ++++++++++++++
 4 files changed, 67 insertions(+), 0 deletions(-)
 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

diff --git a/package/Config.in b/package/Config.in
index 3035aaf..3352c88 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -438,6 +438,7 @@ endmenu
 endmenu
 
 menu "Miscellaneous"
+source "package/gnupg/Config.in"
 source "package/shared-mime-info/Config.in"
 endmenu
 
diff --git a/package/gnupg/Config.in b/package/gnupg/Config.in
new file mode 100644
index 0000000..56a79a1
--- /dev/null
+++ b/package/gnupg/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_GNUPG
+	bool "gnupg"
+	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/
diff --git a/package/gnupg/gnupg-0001-removed-autogenerated-stdint.h.patch b/package/gnupg/gnupg-0001-removed-autogenerated-stdint.h.patch
new file mode 100644
index 0000000..a382cf6
--- /dev/null
+++ b/package/gnupg/gnupg-0001-removed-autogenerated-stdint.h.patch
@@ -0,0 +1,31 @@
+From 53a02ec3a77ecd0d57660a55c55764bdc0063ec1 Mon Sep 17 00:00:00 2001
+From: Stijn Souffriau <stijn.souffriau@essensium.com>
+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
+
diff --git a/package/gnupg/gnupg.mk b/package/gnupg/gnupg.mk
new file mode 100644
index 0000000..a9cdf38
--- /dev/null
+++ b/package/gnupg/gnupg.mk
@@ -0,0 +1,23 @@
+#############################################################
+#
+# libgpg-error
+#
+#############################################################
+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 libpth zlib libiconv 
+
+GNUPG_INSTALL_STAGING = YES
+
+GNUPG_CONF_OPT = \
+	--disable-optimization \
+	--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))
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 5/5] Added host targets to gnupg and its prerequisite libraries.
  2012-05-09 21:29 [Buildroot] [PATCH 1/5] Added the libassuan package Stijn Souffriau
                   ` (2 preceding siblings ...)
  2012-05-09 21:29 ` [Buildroot] [PATCH 4/5] Added the gnupg package Stijn Souffriau
@ 2012-05-09 21:29 ` Stijn Souffriau
  2012-05-10 11:04   ` Thomas Petazzoni
  3 siblings, 1 reply; 12+ messages in thread
From: Stijn Souffriau @ 2012-05-09 21:29 UTC (permalink / raw)
  To: buildroot

---
 package/gnupg/gnupg.mk               |   11 +++++++++++
 package/libassuan/libassuan.mk       |    5 +++++
 package/libgcrypt/libgcrypt.mk       |    1 +
 package/libgpg-error/libgpg-error.mk |    1 +
 package/libksba/libksba.mk           |    5 +++++
 package/libpth/libpth.mk             |    5 +++++
 6 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/package/gnupg/gnupg.mk b/package/gnupg/gnupg.mk
index a9cdf38..0a6c99f 100644
--- a/package/gnupg/gnupg.mk
+++ b/package/gnupg/gnupg.mk
@@ -20,4 +20,15 @@ GNUPG_CONF_OPT = \
 	--with-zlib=$(STAGING_DIR)/usr/lib \
 	--with-libiconv-prefix=$(STAGING_DIR)/usr
 
+HOST_GNUPG_CONF_OPT = \
+	--disable-optimization \
+	--with-gpg-error-prefix=$(HOST_DIR)/usr \
+	--with-libgcrypt-prefix=$(HOST_DIR)/usr \
+	--with-libassuan-prefix=$(HOST_DIR)/usr \
+	--with-ksba-prefix=$(HOST_DIR)/usr \
+	--with-pth-prefix=$(HOST_DIR)/usr \
+	--with-zlib=$(HOST_DIR)/usr/lib \
+	--with-libiconv-prefix=$(HOST_DIR)/usr
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
diff --git a/package/libassuan/libassuan.mk b/package/libassuan/libassuan.mk
index d2a018a..a94e601 100644
--- a/package/libassuan/libassuan.mk
+++ b/package/libassuan/libassuan.mk
@@ -13,6 +13,11 @@ LIBASSUAN_CONF_OPT = \
 	--disable-optimization \
 	--with-gpg-error-prefix=$(STAGING_DIR)/usr
 
+HOST_LIBASSUAN_CONF_OPT = \
+	--disable-optimization \
+	--with-gpg-error-prefix=$(HOST_DIR)/usr
+
 LIBASSUAN_DEPENDENCIES = libgpg-error
 
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
diff --git a/package/libgcrypt/libgcrypt.mk b/package/libgcrypt/libgcrypt.mk
index 68c6c47..55606fe 100644
--- a/package/libgcrypt/libgcrypt.mk
+++ b/package/libgcrypt/libgcrypt.mk
@@ -18,3 +18,4 @@ LIBGCRYPT_CONF_OPT = \
 LIBGCRYPT_DEPENDENCIES = libgpg-error
 
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
diff --git a/package/libgpg-error/libgpg-error.mk b/package/libgpg-error/libgpg-error.mk
index 1b78b17..2aa1da3 100644
--- a/package/libgpg-error/libgpg-error.mk
+++ b/package/libgpg-error/libgpg-error.mk
@@ -9,3 +9,4 @@ LIBGPG_ERROR_SITE = ftp://ftp.gnupg.org/gcrypt/libgpg-error
 LIBGPG_ERROR_INSTALL_STAGING = YES
 
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
diff --git a/package/libksba/libksba.mk b/package/libksba/libksba.mk
index bebd352..d33b149 100644
--- a/package/libksba/libksba.mk
+++ b/package/libksba/libksba.mk
@@ -13,4 +13,9 @@ LIBKSBA_CONF_OPT = \
 	--disable-optimization \
 	--with-gpg-error-prefix=$(STAGING_DIR)/usr
 
+HOST_LIBKSBA_CONF_OPT = \
+	--disable-optimization \
+	--with-gpg-error-prefix=$(HOST_DIR)/usr
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
diff --git a/package/libpth/libpth.mk b/package/libpth/libpth.mk
index 07c5c61..4fb7494 100644
--- a/package/libpth/libpth.mk
+++ b/package/libpth/libpth.mk
@@ -12,4 +12,9 @@ LIBPTH_INSTALL_STAGING = YES
 LIBPTH_CONF_OPT = \
 	--disable-optimization
 
+HOST_LIBPTH_CONF_OPT = \
+	--disable-optimization
+
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 2/5] Added the libksba package.
  2012-05-09 21:29 ` [Buildroot] [PATCH 2/5] Added the libksba package Stijn Souffriau
@ 2012-05-10 10:41   ` Gustavo Zacarias
  0 siblings, 0 replies; 12+ messages in thread
From: Gustavo Zacarias @ 2012-05-10 10:41 UTC (permalink / raw)
  To: buildroot

On 2012-05-09 18:29, Stijn Souffriau wrote:

> +LIBKSBA_CONF_OPT = \
> +	--disable-optimization \
> +	--with-gpg-error-prefix=$(STAGING_DIR)/usr
> +
> +$(eval $(call AUTOTARGETS))

LIBKSBA_DEPENDENCIES = libgpg-error
and
select BR2_PACKAGE_LIBGPG_ERROR in Config.in maybe?
Regards.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 3/5] Added the libpth package.
  2012-05-09 21:29 ` [Buildroot] [PATCH 3/5] Added the libpth package Stijn Souffriau
@ 2012-05-10 10:43   ` Gustavo Zacarias
  2012-05-11 22:52     ` Arnout Vandecappelle
  0 siblings, 1 reply; 12+ messages in thread
From: Gustavo Zacarias @ 2012-05-10 10:43 UTC (permalink / raw)
  To: buildroot

On 2012-05-09 18:29, Stijn Souffriau wrote:

> +++ b/package/libpth/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_LIBPTH
> +	bool "libpth"
> +	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/

depends on BR2_TOOLCHAIN_EXTERNAL_GLIBC || BR2_TOOLCHAIN_CTNG_glibc || 
BR2_TOOLCHAIN_CTNG_eglibc
pth doesn't work with uClibc...
Regards.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 4/5] Added the gnupg package.
  2012-05-09 21:29 ` [Buildroot] [PATCH 4/5] Added the gnupg package Stijn Souffriau
@ 2012-05-10 10:45   ` Gustavo Zacarias
  0 siblings, 0 replies; 12+ messages in thread
From: Gustavo Zacarias @ 2012-05-10 10:45 UTC (permalink / raw)
  To: buildroot

On 2012-05-09 18:29, Stijn Souffriau wrote:

> +++ b/package/gnupg/Config.in
> @@ -0,0 +1,12 @@
> +config BR2_PACKAGE_GNUPG
> +	bool "gnupg"
> +	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/

depends on BR2_TOOLCHAIN_EXTERNAL_GLIBC || BR2_TOOLCHAIN_CTNG_glibc || 
BR2_TOOLCHAIN_CTNG_eglibc
Needs pth which doesn't work with uClibc.
Regards.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 5/5] Added host targets to gnupg and its prerequisite libraries.
  2012-05-09 21:29 ` [Buildroot] [PATCH 5/5] Added host targets to gnupg and its prerequisite libraries Stijn Souffriau
@ 2012-05-10 11:04   ` Thomas Petazzoni
  0 siblings, 0 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2012-05-10 11:04 UTC (permalink / raw)
  To: buildroot

Hello,

Le Wed,  9 May 2012 23:29:46 +0200,
Stijn Souffriau <stijn.souffriau@essensium.com> a ?crit :

> ---
>  package/gnupg/gnupg.mk               |   11 +++++++++++
>  package/libassuan/libassuan.mk       |    5 +++++
>  package/libgcrypt/libgcrypt.mk       |    1 +
>  package/libgpg-error/libgpg-error.mk |    1 +
>  package/libksba/libksba.mk           |    5 +++++
>  package/libpth/libpth.mk             |    5 +++++
>  6 files changed, 28 insertions(+), 0 deletions(-)

I am not sure we want to support building gnupg for the host. It is not
needed as a build time dependency of anything, and gnupg is available
in virtually all GNU/Linux distributions, and as far as I know, there
are no specific version compatibility problems that would require the
gnupg version on the host to be exactly the same as the one used on the
target.

I'd like to avoid seeing Buildroot replacing the package management
system of the host distribution, for tools that are as common as gnupg.
Things like u-boot-tools, or sam-ba require packages because they are
typically not available in Linux distros, but it's not the case of
gnupg.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 3/5] Added the libpth package.
  2012-05-10 10:43   ` Gustavo Zacarias
@ 2012-05-11 22:52     ` Arnout Vandecappelle
  2012-05-11 23:11       ` Gustavo Zacarias
  0 siblings, 1 reply; 12+ messages in thread
From: Arnout Vandecappelle @ 2012-05-11 22:52 UTC (permalink / raw)
  To: buildroot

On 05/10/12 12:43, Gustavo Zacarias wrote:
>> +++ b/package/libpth/Config.in
>> @@ -0,0 +1,9 @@
>> +config BR2_PACKAGE_LIBPTH
>> +    bool "libpth"
>> +    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/

  Since the upstream package is called pth, it makes sense to give the buildroot
package the same name, rather than libpth.

>
> depends on BR2_TOOLCHAIN_EXTERNAL_GLIBC || BR2_TOOLCHAIN_CTNG_glibc || BR2_TOOLCHAIN_CTNG_eglibc
> pth doesn't work with uClibc...

  Why do you say that?  I've just tried it with a default uClibc-0.9.33.1 config
on i486 and the pth tests run fine.

  It probably won't work on NOMMU, however: I see some fork calls in there that
are not configured out.

  Regards,
  Arnout

-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH 3/5] Added the libpth package.
  2012-05-11 22:52     ` Arnout Vandecappelle
@ 2012-05-11 23:11       ` Gustavo Zacarias
  0 siblings, 0 replies; 12+ messages in thread
From: Gustavo Zacarias @ 2012-05-11 23:11 UTC (permalink / raw)
  To: buildroot

On 2012-05-11 19:52, Arnout Vandecappelle wrote:

>> depends on BR2_TOOLCHAIN_EXTERNAL_GLIBC || BR2_TOOLCHAIN_CTNG_glibc 
>> || BR2_TOOLCHAIN_CTNG_eglibc
>> pth doesn't work with uClibc...
>
>  Why do you say that?  I've just tried it with a default
> uClibc-0.9.33.1 config
> on i486 and the pth tests run fine.
>
>  It probably won't work on NOMMU, however: I see some fork calls in
> there that
> are not configured out.
>
>  Regards,
>  Arnout

Because it only works for i386 uclibc, see pth_mctx.c lines 464-485, 
snip:

*****
intern int pth_mctx_set(
     pth_mctx_t *mctx, void (*func)(void), char *sk_addr_lo, char 
*sk_addr_hi)
{
     pth_mctx_save(mctx);
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
     && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 && defined(JB_PC) && 
defined(JB_SP)
     mctx->jb[0].__jmpbuf[JB_PC] = (int)func;
     mctx->jb[0].__jmpbuf[JB_SP] = (int)sk_addr_hi;
#elif defined(__GLIBC__) && defined(__GLIBC_MINOR__) \
     && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 0 && defined(__mc68000__)
     mctx->jb[0].__jmpbuf[0].__aregs[0] = (long int)func;
     mctx->jb[0].__jmpbuf[0].__sp = (int *)sk_addr_hi;
#elif defined(__GNU_LIBRARY__) && defined(__i386__)
     mctx->jb[0].__jmpbuf[0].__pc = (char *)func;
     mctx->jb[0].__jmpbuf[0].__sp = sk_addr_hi;
#else
#error "Unsupported Linux (g)libc version and/or platform"
#endif
     sigemptyset(&mctx->sigs);
     mctx->error = 0;
     return TRUE;
}
*****

Regards.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-05-11 23:11 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-09 21:29 [Buildroot] [PATCH 1/5] Added the libassuan package Stijn Souffriau
2012-05-09 21:29 ` [Buildroot] [PATCH 2/5] Added the libksba package Stijn Souffriau
2012-05-10 10:41   ` Gustavo Zacarias
2012-05-09 21:29 ` [Buildroot] [PATCH 3/5] Added the libpth package Stijn Souffriau
2012-05-10 10:43   ` Gustavo Zacarias
2012-05-11 22:52     ` Arnout Vandecappelle
2012-05-11 23:11       ` Gustavo Zacarias
2012-05-09 21:29 ` [Buildroot] [PATCH 4/5] Added the gnupg package Stijn Souffriau
2012-05-10 10:45   ` Gustavo Zacarias
2012-05-09 21:29 ` [Buildroot] [PATCH 5/5] Added host targets to gnupg and its prerequisite libraries Stijn Souffriau
2012-05-10 11:04   ` Thomas Petazzoni
  -- strict thread matches above, loose matches on Subject: below --
2012-05-07 20:59 [Buildroot] [PATCH 1/5] Added the libassuan package Stijn Souffriau
2012-05-07 20:59 ` [Buildroot] [PATCH 5/5] Added host targets to gnupg and its prerequisite libraries Stijn Souffriau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox