diff options
-rw-r--r-- | net-wireless/crda/files/crda-3.18-python3.patch | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net-wireless/crda/files/crda-3.18-python3.patch b/net-wireless/crda/files/crda-3.18-python3.patch index 4f8756862..22212d821 100644 --- a/net-wireless/crda/files/crda-3.18-python3.patch +++ b/net-wireless/crda/files/crda-3.18-python3.patch @@ -43,7 +43,7 @@ diff --git a/utils/key2pub.py b/utils/key2pub.py index 3e84cd2..c76cbbb 100755 --- a/utils/key2pub.py +++ b/utils/key2pub.py -@@ -1,126 +1,128 @@ +@@ -1,127 +1,128 @@ #!/usr/bin/env python +import io @@ -145,6 +145,7 @@ index 3e84cd2..c76cbbb 100755 + import struct - output.write('#include <stdint.h>\n') +- output.write('#include <openssl/bn.h>\n') if len(struct.pack('@L', 0)) == 8: return print_ssl_64(output, name, val) else: @@ -170,9 +171,10 @@ index 3e84cd2..c76cbbb 100755 static struct pubkey keys[] = { ''') - for n in xrange(n + 1): +- for n in xrange(n + 1): - output.write(' KEYS(e_%d, n_%d),\n' % (n, n)) - output.write('};\n') ++ for n in range(n + 1): + output.write(u' KEYS(e_{0}, n_{0}),\n'.format(n)) + output.write(u'};\n') pass |