commit:     9def327b17275c5e330ab4db1e80b41c43ac9508
Author:     Vjaceslavs Klimovs <vklimovs <AT> gmail <DOT> com>
AuthorDate: Sun Jan 26 01:31:46 2020 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Sun Jan 26 01:45:36 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9def327b

net-wireless/crda: fix Hunk #4 succeeded at 117 with fuzz 2.

Closes: https://github.com/gentoo/gentoo/pull/14452
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>

 net-wireless/crda/files/crda-4.14-python-3.patch | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/net-wireless/crda/files/crda-4.14-python-3.patch 
b/net-wireless/crda/files/crda-4.14-python-3.patch
index 97db1ac0529..df22a6a4bd4 100644
--- a/net-wireless/crda/files/crda-4.14-python-3.patch
+++ b/net-wireless/crda/files/crda-4.14-python-3.patch
@@ -1,5 +1,7 @@
---- /utils/key2pub.py
-+++ /utils/key2pub.py
+diff --git a/utils/key2pub.py b/utils/key2pub.py
+index 9bb04cd..632e6a6 100755
+--- a/utils/key2pub.py
++++ b/utils/key2pub.py
 @@ -3,20 +3,20 @@
  import sys
  try:
@@ -25,7 +27,7 @@
          val = val[8:]
      vnew.reverse()
      output.write('static BN_ULONG %s[%d] = {\n' % (name, len(vnew)))
-@@ -34,13 +34,13 @@
+@@ -34,13 +34,13 @@ def print_ssl_64(output, name, val):
      output.write('};\n\n')
  
  def print_ssl_32(output, name, val):
@@ -42,7 +44,7 @@
          val = val[4:]
      vnew.reverse()
      output.write('static BN_ULONG %s[%d] = {\n' % (name, len(vnew)))
-@@ -80,21 +80,21 @@
+@@ -80,21 +80,21 @@ struct pubkey {
  
  static struct pubkey keys[] = {
  ''')
@@ -67,16 +69,16 @@
          idx += 1
          if idx == 8:
              idx = 0
-@@ -117,7 +117,7 @@
+@@ -117,7 +117,7 @@ struct key_params {
  
- static const struct key_params keys[] = {
+ static const struct key_params __attribute__ ((unused)) keys[] = {
  ''')
 -    for n in xrange(n + 1):
 +    for n in range(n + 1):
          output.write('        KEYS(e_%d, n_%d),\n' % (n, n))
      output.write('};\n')
      
-@@ -135,7 +135,7 @@
+@@ -135,7 +135,7 @@ except IndexError:
      mode = None
  
  if not mode in modes:
@@ -85,7 +87,7 @@
      sys.exit(2)
  
  output = open(outfile, 'w')
-@@ -153,3 +153,5 @@
+@@ -153,3 +153,5 @@ for f in files:
      idx += 1
  
  modes[mode][1](output, idx - 1)

Reply via email to