* [Buildroot] libcrypt is old..
@ 2010-03-27 0:48 Sagaert Johan
2010-03-27 8:22 ` Thomas Petazzoni
0 siblings, 1 reply; 6+ messages in thread
From: Sagaert Johan @ 2010-03-27 0:48 UTC (permalink / raw)
To: buildroot
Hi
Why not bumping libcrypt to 1.4.5 (the current one 1.2.4 is from 2005..)
Change the version,and get rid of the 2 patches.
Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100327/afff9898/attachment.htm>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] libcrypt is old..
2010-03-27 0:48 [Buildroot] libcrypt is old Sagaert Johan
@ 2010-03-27 8:22 ` Thomas Petazzoni
2010-03-27 15:11 ` [Buildroot] [PATCH] libgcrypt: bump to 1.4.5 llandwerlin at gmail.com
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Petazzoni @ 2010-03-27 8:22 UTC (permalink / raw)
To: buildroot
On Sat, 27 Mar 2010 01:48:50 +0100
"Sagaert Johan" <sagaert.johan@skynet.be> wrote:
> Why not bumping libcrypt to 1.4.5 (the current one 1.2.4 is from 2005..)
>
> Change the version,and get rid of the 2 patches.
Good idea. Could you provide a patch ?
Thanks!
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] 6+ messages in thread
* [Buildroot] libcrypt is old..
@ 2010-03-27 13:36 Sagaert Johan
2010-03-29 11:45 ` Peter Korsgaard
0 siblings, 1 reply; 6+ messages in thread
From: Sagaert Johan @ 2010-03-27 13:36 UTC (permalink / raw)
To: buildroot
Hi
Here is my patch for libgcrypt (against 2010-02 )
diff -rupN
buildroot-2010.02/package/libgcrypt/libgcrypt-00-ac_cv_sys_symbol_underscore
.patch
buildroot/package/libgcrypt/libgcrypt-00-ac_cv_sys_symbol_underscore.patch
---
buildroot-2010.02/package/libgcrypt/libgcrypt-00-ac_cv_sys_symbol_underscore
.patch 2010-02-26 15:52:48.000000000 +0100
+++
buildroot/package/libgcrypt/libgcrypt-00-ac_cv_sys_symbol_underscore.patch
1970-01-01 01:00:00.000000000 +0100
@@ -1,24 +0,0 @@
-diff -u libgcrypt-1.2.4.oorig/acinclude.m4 libgcrypt-1.2.4/acinclude.m4
---- libgcrypt-1.2.4.oorig/acinclude.m4 2005-07-29 15:45:48.000000000 +0200
-+++ libgcrypt-1.2.4/acinclude.m4 2007-09-19 13:33:19.000000000 +0200
-@@ -99,12 +99,14 @@
- i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp)
- ac_cv_sys_symbol_underscore=yes
- ;;
-- *)
-- if test "$cross_compiling" = yes; then
-- ac_cv_sys_symbol_underscore=yes
-- else
-- tmp_do_check="yes"
-- fi
-+ *) if test -z "$ac_cv_sys_symbol_underscore"; then
-+ if test "$cross_compiling" = yes &&
-+ then
-+ ac_cv_sys_symbol_underscore=yes
-+ else
-+ tmp_do_check="yes"
-+ fi
-+ fi
- ;;
- esac
- if test "$tmp_do_check" = "yes"; then
diff -rupN
buildroot-2010.02/package/libgcrypt/libgcrypt-01-reconfigure.patch
buildroot/package/libgcrypt/libgcrypt-01-reconfigure.patch
--- buildroot-2010.02/package/libgcrypt/libgcrypt-01-reconfigure.patch
2010-02-26 15:52:48.000000000 +0100
+++ buildroot/package/libgcrypt/libgcrypt-01-reconfigure.patch 1970-01-01
01:00:00.000000000 +0100
@@ -1,17 +0,0 @@
---- libgcrypt-1.2.4.oorig/configure 2007-09-19 13:40:48.000000000 +0200
-+++ libgcrypt-1.2.4/configure 2007-09-19 13:41:44.000000000 +0200
-@@ -27370,12 +27370,13 @@
- i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
- ac_cv_sys_symbol_underscore=yes
- ;;
-- *)
-+ *)if test -z "$ac_cv_sys_symbol_underscore";then
- if test "$cross_compiling" = yes; then
- ac_cv_sys_symbol_underscore=yes
- else
- tmp_do_check="yes"
- fi
-+ fi
- ;;
- esac
- if test "$tmp_do_check" = "yes"; then
diff -rupN buildroot-2010.02/package/libgcrypt/libgcrypt.mk
buildroot/package/libgcrypt/libgcrypt.mk
--- buildroot-2010.02/package/libgcrypt/libgcrypt.mk 2010-02-26
15:52:48.000000000 +0100
+++ buildroot/package/libgcrypt/libgcrypt.mk 2010-03-27 14:26:47.000000000
+0100
@@ -3,7 +3,7 @@
# libgcrypt
#
#############################################################
-LIBGCRYPT_VERSION:=1.2.4
+LIBGCRYPT_VERSION:=1.4.5
LIBGCRYPT_SOURCE:=libgcrypt-$(LIBGCRYPT_VERSION).tar.bz2
LIBGCRYPT_SITE:=ftp://gd.tuwien.ac.at/privacy/gnupg/libgcrypt/
LIBGCRYPT_DIR:=$(BUILD_DIR)/libgcrypt-$(LIBGCRYPT_VERSION)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100327/cebc53e7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: br_libgcrypt.patch
Type: application/octet-stream
Size: 2758 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100327/cebc53e7/attachment.obj>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] libgcrypt: bump to 1.4.5
2010-03-27 8:22 ` Thomas Petazzoni
@ 2010-03-27 15:11 ` llandwerlin at gmail.com
2010-03-29 11:43 ` Peter Korsgaard
0 siblings, 1 reply; 6+ messages in thread
From: llandwerlin at gmail.com @ 2010-03-27 15:11 UTC (permalink / raw)
To: buildroot
From: Lionel Landwerlin <llandwerlin@gmail.com>
Also autotools.in conversion and change source location from gd.tuwien.ac.at to ftp.gnupg.org
Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
---
.../libgcrypt-00-ac_cv_sys_symbol_underscore.patch | 27 ++++---
package/libgcrypt/libgcrypt-01-reconfigure.patch | 28 +++++--
package/libgcrypt/libgcrypt.mk | 85 ++-----------------
3 files changed, 43 insertions(+), 97 deletions(-)
diff --git a/package/libgcrypt/libgcrypt-00-ac_cv_sys_symbol_underscore.patch b/package/libgcrypt/libgcrypt-00-ac_cv_sys_symbol_underscore.patch
index fe71360..95db0fb 100644
--- a/package/libgcrypt/libgcrypt-00-ac_cv_sys_symbol_underscore.patch
+++ b/package/libgcrypt/libgcrypt-00-ac_cv_sys_symbol_underscore.patch
@@ -1,24 +1,27 @@
-diff -u libgcrypt-1.2.4.oorig/acinclude.m4 libgcrypt-1.2.4/acinclude.m4
---- libgcrypt-1.2.4.oorig/acinclude.m4 2005-07-29 15:45:48.000000000 +0200
-+++ libgcrypt-1.2.4/acinclude.m4 2007-09-19 13:33:19.000000000 +0200
-@@ -99,12 +99,14 @@
+diff --git a/acinclude.m4 b/acinclude.m4
+index a7bc0fa..1a5bffc 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -76,13 +76,14 @@ case "${host}" in
i386-emx-os2 | i[3456]86-pc-os2*emx | i386-pc-msdosdjgpp)
ac_cv_sys_symbol_underscore=yes
;;
- *)
- if test "$cross_compiling" = yes; then
-- ac_cv_sys_symbol_underscore=yes
+- if test "x$ac_cv_sys_symbol_underscore" = x ; then
+- ac_cv_sys_symbol_underscore=yes
+- fi
- else
- tmp_do_check="yes"
-- fi
+ *) if test -z "$ac_cv_sys_symbol_underscore"; then
-+ if test "$cross_compiling" = yes &&
-+ then
-+ ac_cv_sys_symbol_underscore=yes
++ if test "$cross_compiling" = yes; then
++ if test "x$ac_cv_sys_symbol_underscore" = x ; then
++ ac_cv_sys_symbol_underscore=yes
++ fi
+ else
-+ tmp_do_check="yes"
++ tmp_do_check="yes"
+ fi
-+ fi
+ fi
;;
esac
- if test "$tmp_do_check" = "yes"; then
+
diff --git a/package/libgcrypt/libgcrypt-01-reconfigure.patch b/package/libgcrypt/libgcrypt-01-reconfigure.patch
index 963ae8b..87d29a2 100644
--- a/package/libgcrypt/libgcrypt-01-reconfigure.patch
+++ b/package/libgcrypt/libgcrypt-01-reconfigure.patch
@@ -1,17 +1,27 @@
---- libgcrypt-1.2.4.oorig/configure 2007-09-19 13:40:48.000000000 +0200
-+++ libgcrypt-1.2.4/configure 2007-09-19 13:41:44.000000000 +0200
-@@ -27370,12 +27370,13 @@
+diff --git a/configure b/configure
+index 70a6d50..8f55d95 100755
+--- a/configure
++++ b/configure
+@@ -22306,14 +22306,15 @@ case "${host}" in
i386-emx-os2 | i345686-pc-os2*emx | i386-pc-msdosdjgpp)
ac_cv_sys_symbol_underscore=yes
;;
- *)
+- if test "$cross_compiling" = yes; then
+- if test "x$ac_cv_sys_symbol_underscore" = x ; then
+- ac_cv_sys_symbol_underscore=yes
+ *)if test -z "$ac_cv_sys_symbol_underscore";then
- if test "$cross_compiling" = yes; then
- ac_cv_sys_symbol_underscore=yes
- else
- tmp_do_check="yes"
- fi
-+ fi
++ if test "$cross_compiling" = yes; then
++ if test "x$ac_cv_sys_symbol_underscore" = x ; then
++ ac_cv_sys_symbol_underscore=yes
++ fi
++ else
++ tmp_do_check="yes"
++ fi
+ fi
+- else
+- tmp_do_check="yes"
+- fi
;;
esac
if test "$tmp_do_check" = "yes"; then
diff --git a/package/libgcrypt/libgcrypt.mk b/package/libgcrypt/libgcrypt.mk
index 89856c1..69b0ed0 100644
--- a/package/libgcrypt/libgcrypt.mk
+++ b/package/libgcrypt/libgcrypt.mk
@@ -3,82 +3,15 @@
# libgcrypt
#
#############################################################
-LIBGCRYPT_VERSION:=1.2.4
+LIBGCRYPT_VERSION:=1.4.5
LIBGCRYPT_SOURCE:=libgcrypt-$(LIBGCRYPT_VERSION).tar.bz2
-LIBGCRYPT_SITE:=ftp://gd.tuwien.ac.at/privacy/gnupg/libgcrypt/
-LIBGCRYPT_DIR:=$(BUILD_DIR)/libgcrypt-$(LIBGCRYPT_VERSION)
-LIBGCRYPT_LIBRARY:=src/libgcrypt.la
-LIBGCRYPT_DESTDIR:=usr/lib
-LIBGCRYPT_TARGET_LIBRARY=$(LIBGCRYPT_DESTDIR)/libgcrypt.so
+LIBGCRYPT_SITE:=ftp://ftp.gnupg.org/gcrypt/libgcrypt
+LIBGCRYPT_INSTALL_STAGING = YES
+LIBGCRYPT_INSTALL_TARGET = YES
-$(DL_DIR)/$(LIBGCRYPT_SOURCE):
- $(call DOWNLOAD,$(LIBGCRYPT_SITE),$(LIBGCRYPT_SOURCE))
+LIBGCRYPT_CONF_ENV = \
+ ac_cv_sys_symbol_underscore=no
+LIBGCRYPT_CONF_OPT = \
+ --disable-optimization
-$(LIBGCRYPT_DIR)/.source: $(DL_DIR)/$(LIBGCRYPT_SOURCE)
- $(BZCAT) $(DL_DIR)/$(LIBGCRYPT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(LIBGCRYPT_DIR) package/libgcrypt/ libgcrypt\*.patch
- $(CONFIG_UPDATE) $(LIBGCRYPT_DIR)
- # This is incorrectly hardwired to yes for cross-compiles with no
- # sane way to pass pre-existing knowledge so fix it with the chainsaw..
- $(SED) '/GNUPG_SYS_SYMBOL_UNDERSCORE/d' $(LIBGCRYPT_DIR)/configure
- touch $@
-
-$(LIBGCRYPT_DIR)/.configured: $(LIBGCRYPT_DIR)/.source
- (cd $(LIBGCRYPT_DIR); rm -f config.cache; \
- $(TARGET_CONFIGURE_OPTS) \
- $(TARGET_CONFIGURE_ARGS) \
- ac_cv_sys_symbol_underscore=no \
- ./configure $(QUIET) \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/usr \
- --exec-prefix=/usr \
- --bindir=/usr/bin \
- --sbindir=/usr/sbin \
- --libdir=/usr/lib \
- --libexecdir=/$(LIBGCRYPT_DESTDIR) \
- --sysconfdir=/etc \
- --datadir=/usr/share \
- --localstatedir=/var \
- --includedir=/usr/include \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --disable-optimization \
- )
- touch $@
-
-$(LIBGCRYPT_DIR)/$(LIBGCRYPT_LIBRARY): $(LIBGCRYPT_DIR)/.configured
- $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LIBGCRYPT_DIR)
-
-$(STAGING_DIR)/$(LIBGCRYPT_TARGET_LIBRARY): $(LIBGCRYPT_DIR)/$(LIBGCRYPT_LIBRARY)
- $(MAKE) $(TARGET_CONFIGURE_OPTS) DESTDIR=$(STAGING_DIR) -C $(LIBGCRYPT_DIR) install
- $(SED) "s,^libdir=.*,libdir=\'$(STAGING_DIR)/usr/lib\',g" $(STAGING_DIR)/usr/lib/libgcrypt.la
- touch -c $@
-
-$(TARGET_DIR)/$(LIBGCRYPT_TARGET_LIBRARY): $(STAGING_DIR)/$(LIBGCRYPT_TARGET_LIBRARY)
- cp -dpf $<* $(TARGET_DIR)/$(LIBGCRYPT_DESTDIR)
-ifneq ($(BR2_HAVE_INFOPAGES),y)
- rm -rf $(STAGING_DIR)/usr/share/info
-endif
-
-libgcrypt: libgpg-error $(TARGET_DIR)/$(LIBGCRYPT_TARGET_LIBRARY)
-
-libgcrypt-source: $(DL_DIR)/$(LIBGCRYPT_SOURCE)
-
-libgcrypt-clean:
- rm -f $(TARGET_DIR)/$(LIBGCRYPT_TARGET_LIBRARY)*
- -$(MAKE) -C $(LIBGCRYPT_DIR) clean
- rm -rf $(STAGING_DIR)/$(LIBGCRYPT_TARGET_LIBRARY)\*
-
-libgcrypt-dirclean:
- rm -rf $(LIBGCRYPT_DIR)
-
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
-TARGETS+=libgcrypt
-endif
+$(eval $(call AUTOTARGETS,package,libgcrypt))
--
1.7.0.2
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH] libgcrypt: bump to 1.4.5
2010-03-27 15:11 ` [Buildroot] [PATCH] libgcrypt: bump to 1.4.5 llandwerlin at gmail.com
@ 2010-03-29 11:43 ` Peter Korsgaard
0 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2010-03-29 11:43 UTC (permalink / raw)
To: buildroot
>>>>> "llandwerlin" == llandwerlin <llandwerlin@gmail.com> writes:
llandwerlin> From: Lionel Landwerlin <llandwerlin@gmail.com>
llandwerlin> Also autotools.in conversion and change source location from gd.tuwien.ac.at to ftp.gnupg.org
Thanks, but you forgot the libgpg_error dependency:
checking for GPG Error - version >= 1.4... no
configure: error: libgpg-error is needed.
See ftp://ftp.gnupg.org/gcrypt/libgpg-error/ .
make: *** [/tmp/br/build/libgcrypt-1.4.5/.stamp_configured] Error 1
I've fixed that and committed.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] libcrypt is old..
2010-03-27 13:36 [Buildroot] libcrypt is old Sagaert Johan
@ 2010-03-29 11:45 ` Peter Korsgaard
0 siblings, 0 replies; 6+ messages in thread
From: Peter Korsgaard @ 2010-03-29 11:45 UTC (permalink / raw)
To: buildroot
>>>>> "Sagaert" == Sagaert Johan <sagaert.johan@skynet.be> writes:
Sagaert> Hi
Sagaert> Here is my patch for libgcrypt (against 2010-02 )
Thanks - I've committed Lionel's version instead as that also converted
the package to Makefile.autotools.in format.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-03-29 11:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-27 0:48 [Buildroot] libcrypt is old Sagaert Johan
2010-03-27 8:22 ` Thomas Petazzoni
2010-03-27 15:11 ` [Buildroot] [PATCH] libgcrypt: bump to 1.4.5 llandwerlin at gmail.com
2010-03-29 11:43 ` Peter Korsgaard
-- strict thread matches above, loose matches on Subject: below --
2010-03-27 13:36 [Buildroot] libcrypt is old Sagaert Johan
2010-03-29 11:45 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox