Commit 54b6f4aa authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
all:
tar xf oath-toolkit-2.6.2.tar.gz
patch -Np1 -d oath-toolkit-2.6.2 < oath-toolkit-2.6.2-gcc7.patch
cd oath-toolkit-2.6.2 && ./configure --prefix=/usr
$(MAKE) -C oath-toolkit-2.6.2
$(MAKE) -C oath-toolkit-2.6.2 install
rm -rf oath-toolkit-2.6.2
diff -uNr oath-toolkit-2.6.2/liboath/gl/tests/intprops.h oath-toolkit-2.6.2-gcc7/liboath/gl/tests/intprops.h
--- oath-toolkit-2.6.2/liboath/gl/tests/intprops.h 2016-08-27 20:45:06.000000000 +0930
+++ oath-toolkit-2.6.2-gcc7/liboath/gl/tests/intprops.h 2018-06-21 17:33:08.947071366 +0930
@@ -230,11 +230,11 @@
(e.g., A and B) have the same type as MIN and MAX. Instead, they assume
that the result (e.g., A + B) has that type. */
#if _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL
-# define _GL_ADD_OVERFLOW(a, b, min, max)
+# define _GL_ADD_OVERFLOW(a, b, min, max) \
__builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0)
-# define _GL_SUBTRACT_OVERFLOW(a, b, min, max)
+# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \
__builtin_sub_overflow (a, b, (__typeof__ ((a) - (b)) *) 0)
-# define _GL_MULTIPLY_OVERFLOW(a, b, min, max)
+# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \
__builtin_mul_overflow (a, b, (__typeof__ ((a) * (b)) *) 0)
#else
# define _GL_ADD_OVERFLOW(a, b, min, max) \
diff -uNr oath-toolkit-2.6.2/libpskc/gl/intprops.h oath-toolkit-2.6.2-gcc7/libpskc/gl/intprops.h
--- oath-toolkit-2.6.2/libpskc/gl/intprops.h 2016-08-27 20:45:06.000000000 +0930
+++ oath-toolkit-2.6.2-gcc7/libpskc/gl/intprops.h 2018-06-21 17:33:34.711161836 +0930
@@ -230,11 +230,11 @@
(e.g., A and B) have the same type as MIN and MAX. Instead, they assume
that the result (e.g., A + B) has that type. */
#if _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL
-# define _GL_ADD_OVERFLOW(a, b, min, max)
+# define _GL_ADD_OVERFLOW(a, b, min, max) \
__builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0)
-# define _GL_SUBTRACT_OVERFLOW(a, b, min, max)
+# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \
__builtin_sub_overflow (a, b, (__typeof__ ((a) - (b)) *) 0)
-# define _GL_MULTIPLY_OVERFLOW(a, b, min, max)
+# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \
__builtin_mul_overflow (a, b, (__typeof__ ((a) * (b)) *) 0)
#else
# define _GL_ADD_OVERFLOW(a, b, min, max) \
diff -uNr oath-toolkit-2.6.2/oathtool/gl/intprops.h oath-toolkit-2.6.2-gcc7/oathtool/gl/intprops.h
--- oath-toolkit-2.6.2/oathtool/gl/intprops.h 2016-08-27 20:45:06.000000000 +0930
+++ oath-toolkit-2.6.2-gcc7/oathtool/gl/intprops.h 2018-06-21 17:33:50.922218761 +0930
@@ -230,11 +230,11 @@
(e.g., A and B) have the same type as MIN and MAX. Instead, they assume
that the result (e.g., A + B) has that type. */
#if _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL
-# define _GL_ADD_OVERFLOW(a, b, min, max)
+# define _GL_ADD_OVERFLOW(a, b, min, max) \
__builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0)
-# define _GL_SUBTRACT_OVERFLOW(a, b, min, max)
+# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \
__builtin_sub_overflow (a, b, (__typeof__ ((a) - (b)) *) 0)
-# define _GL_MULTIPLY_OVERFLOW(a, b, min, max)
+# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \
__builtin_mul_overflow (a, b, (__typeof__ ((a) * (b)) *) 0)
#else
# define _GL_ADD_OVERFLOW(a, b, min, max) \
diff -uNr oath-toolkit-2.6.2/pskctool/gl/intprops.h oath-toolkit-2.6.2-gcc7/pskctool/gl/intprops.h
--- oath-toolkit-2.6.2/pskctool/gl/intprops.h 2016-08-27 20:45:06.000000000 +0930
+++ oath-toolkit-2.6.2-gcc7/pskctool/gl/intprops.h 2018-06-21 17:34:03.562263147 +0930
@@ -230,11 +230,11 @@
(e.g., A and B) have the same type as MIN and MAX. Instead, they assume
that the result (e.g., A + B) has that type. */
#if _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL
-# define _GL_ADD_OVERFLOW(a, b, min, max)
+# define _GL_ADD_OVERFLOW(a, b, min, max) \
__builtin_add_overflow (a, b, (__typeof__ ((a) + (b)) *) 0)
-# define _GL_SUBTRACT_OVERFLOW(a, b, min, max)
+# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \
__builtin_sub_overflow (a, b, (__typeof__ ((a) - (b)) *) 0)
-# define _GL_MULTIPLY_OVERFLOW(a, b, min, max)
+# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \
__builtin_mul_overflow (a, b, (__typeof__ ((a) * (b)) *) 0)
#else
# define _GL_ADD_OVERFLOW(a, b, min, max) \
bin
/usr/bin/.*
/usr/share/xml/.*
doc
/usr/share/gtk-doc/.*
man
/usr/share/man/.*
headers
/usr/include/.*
pkg
/usr/lib/pkgconfig/.*
lib
/usr/lib/lib.*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment