0007-contrib-gcrypt-simplify-compilation-by-disabling-doc.patch 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. From 2abccdbedc8b0bf802af7747fb240530509ec1b7 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
  3. Date: Sun, 7 Dec 2014 20:02:18 +0100
  4. Subject: [PATCH 7/9] contrib/gcrypt: simplify compilation by disabling /doc
  5. and work-around a libtool limitation
  6. ---
  7. contrib/src/gcrypt/disable-doc-compilation.patch | 43 ++++++++++++++++++++++
  8. contrib/src/gcrypt/rules.mak | 2 +
  9. .../gcrypt/work-around-libtool-limitation.patch | 25 +++++++++++++
  10. 3 files changed, 70 insertions(+)
  11. create mode 100644 contrib/src/gcrypt/disable-doc-compilation.patch
  12. create mode 100644 contrib/src/gcrypt/work-around-libtool-limitation.patch
  13. diff --git a/contrib/src/gcrypt/disable-doc-compilation.patch b/contrib/src/gcrypt/disable-doc-compilation.patch
  14. new file mode 100644
  15. index 0000000..7113a31
  16. --- /dev/null
  17. +++ b/contrib/src/gcrypt/disable-doc-compilation.patch
  18. @@ -0,0 +1,43 @@
  19. +diff -ru libgcrypt/Makefile.am libgcrypt/Makefile.am
  20. +--- libgcrypt/Makefile.am 2014-08-18 08:46:51.000000000 +0200
  21. ++++ libgcrypt/Makefile.am 2014-12-07 19:54:02.000000000 +0100
  22. +@@ -25,11 +25,11 @@
  23. + # (A suitable gitlog-to-changelog script can be found in GnuPG master.)
  24. + GITLOG_TO_CHANGELOG=gitlog-to-changelog
  25. +
  26. +-DIST_SUBDIRS = m4 compat mpi cipher random src doc tests
  27. +-SUBDIRS = compat mpi cipher random src doc tests
  28. ++DIST_SUBDIRS = m4 compat mpi cipher random src tests
  29. ++SUBDIRS = compat mpi cipher random src tests
  30. +
  31. + EXTRA_DIST = autogen.sh autogen.rc README.GIT LICENSES \
  32. +- ChangeLog-2011 build-aux/ChangeLog-2011 doc/ChangeLog-2011 \
  33. ++ ChangeLog-2011 build-aux/ChangeLog-2011 \
  34. + m4/ChangeLog-2011 cipher/ChangeLog-2011 src/ChangeLog-2011 \
  35. + random/ChangeLog-2011 tests/ChangeLog-2011 mpi/ChangeLog-2011 \
  36. + build-aux/git-log-footer build-aux/git-log-fix
  37. +Only in libgcrypt: Makefile.am.orig
  38. +Only in libgcrypt: Makefile.am.rej
  39. +diff -ru libgcrypt-raw/configure.ac libgcrypt/configure.ac
  40. +--- libgcrypt-raw/configure.ac 2014-12-07 19:51:54.000000000 +0100
  41. ++++ libgcrypt/configure.ac 2014-12-07 19:52:48.000000000 +0100
  42. +@@ -2043,7 +2043,6 @@
  43. + mpi/Makefile
  44. + cipher/Makefile
  45. + random/Makefile
  46. +-doc/Makefile
  47. + src/Makefile
  48. + src/gcrypt.h
  49. + src/libgcrypt-config
  50. +diff -ru libgcrypt-raw/configure.ac.orig libgcrypt/configure.ac.orig
  51. +--- libgcrypt-raw/configure.ac.orig 2014-12-07 19:51:54.000000000 +0100
  52. ++++ libgcrypt/configure.ac.orig 2014-12-07 19:52:37.000000000 +0100
  53. +@@ -1219,7 +1219,7 @@
  54. + AC_COMPILE_IFELSE([AC_LANG_SOURCE(
  55. + [[__asm__("xorl \$(123456789/12345678), %ebp;\n\t");]])],
  56. + [gcry_cv_gcc_as_const_division_with_wadivide_ok=yes])])
  57. +- if test "$gcry_cv_gcc_as_const_division_ok_with_wadivide_ok" = "no" ; then
  58. ++ if test "$gcry_cv_gcc_as_const_division_with_wadivide_ok" = "no" ; then
  59. + # '-Wa,--divide' did not work, restore old flags.
  60. + CPPFLAGS="$_gcc_cppflags_save"
  61. + fi
  62. diff --git a/contrib/src/gcrypt/rules.mak b/contrib/src/gcrypt/rules.mak
  63. index 4b2cce0..a3f1545 100644
  64. --- a/contrib/src/gcrypt/rules.mak
  65. +++ b/contrib/src/gcrypt/rules.mak
  66. @@ -13,6 +13,8 @@ libgcrypt: libgcrypt-$(GCRYPT_VERSION).tar.bz2 .sum-gcrypt
  67. $(UNPACK)
  68. $(APPLY) $(SRC)/gcrypt/fix-amd64-assembly-on-solaris.patch
  69. $(APPLY) $(SRC)/gcrypt/0001-Fix-assembly-division-check.patch
  70. + $(APPLY) $(SRC)/gcrypt/work-around-libtool-limitation.patch
  71. + $(APPLY) $(SRC)/gcrypt/disable-doc-compilation.patch
  72. $(MOVE)
  73. DEPS_gcrypt = gpg-error
  74. diff --git a/contrib/src/gcrypt/work-around-libtool-limitation.patch b/contrib/src/gcrypt/work-around-libtool-limitation.patch
  75. new file mode 100644
  76. index 0000000..df97ffb
  77. --- /dev/null
  78. +++ b/contrib/src/gcrypt/work-around-libtool-limitation.patch
  79. @@ -0,0 +1,25 @@
  80. +diff -ru libgcrypt-broken/cipher/Makefile.am libgcrypt/cipher/Makefile.am
  81. +--- libgcrypt-broken/cipher/Makefile.am 2013-11-06 23:05:24.000000000 +0100
  82. ++++ libgcrypt/cipher/Makefile.am 2013-11-06 23:21:25.000000000 +0100
  83. +@@ -19,6 +19,8 @@
  84. +
  85. + # Process this file with automake to produce Makefile.in
  86. +
  87. ++LIBTOOL=@LIBTOOL@ --tag=CC
  88. ++
  89. + EXTRA_DIST = Manifest
  90. +
  91. + # Need to include ../src in addition to top_srcdir because gcrypt.h is
  92. +diff -ru libgcrypt-broken/mpi/Makefile.am libgcrypt/mpi/Makefile.am
  93. +--- libgcrypt-broken/mpi/Makefile.am 2013-11-06 23:05:24.000000000 +0100
  94. ++++ libgcrypt/mpi/Makefile.am 2013-11-06 23:22:04.000000000 +0100
  95. +@@ -23,6 +23,9 @@
  96. +
  97. + # Need to include ../src in addition to top_srcdir because gcrypt.h is
  98. + # a built header.
  99. ++
  100. ++LIBTOOL=@LIBTOOL@ --tag=CC
  101. ++
  102. + AM_CPPFLAGS = -I../src -I$(top_srcdir)/src
  103. + AM_CFLAGS = $(GPG_ERROR_CFLAGS)
  104. +
  105. --
  106. 2.3.2