Commit 1fe63383 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Patched oath-toolkit to work with glibc 2.28

parent 54b6f4aa
all: all:
tar xf oath-toolkit-2.6.2.tar.gz tar xf oath-toolkit-2.6.2.tar.gz
patch -Np1 -d oath-toolkit-2.6.2 < oath-toolkit-2.6.2-gcc7.patch patch -Np1 -d oath-toolkit-2.6.2 < oath-toolkit-2.6.2-gcc7.patch
patch -Np1 -d oath-toolkit-2.6.2 < oath-toolkit-2.6.2-fix_glibc_2.28.patch
cd oath-toolkit-2.6.2 && ./configure --prefix=/usr cd oath-toolkit-2.6.2 && ./configure --prefix=/usr
$(MAKE) -C oath-toolkit-2.6.2 $(MAKE) -C oath-toolkit-2.6.2
$(MAKE) -C oath-toolkit-2.6.2 install $(MAKE) -C oath-toolkit-2.6.2 install
......
diff -uNr oath-toolkit-2.6.2/liboath/gl/fseeko.c oath-toolkit-2.6.2-fix_glibc_2.28/liboath/gl/fseeko.c
--- oath-toolkit-2.6.2/liboath/gl/fseeko.c 2016-08-27 20:45:06.000000000 +0930
+++ oath-toolkit-2.6.2-fix_glibc_2.28/liboath/gl/fseeko.c 2019-09-17 04:16:07.283027444 +0930
@@ -47,7 +47,7 @@
#endif
/* These tests are based on fpurge.c. */
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
if (fp->_IO_read_end == fp->_IO_read_ptr
&& fp->_IO_write_ptr == fp->_IO_write_base
&& fp->_IO_save_base == NULL)
@@ -123,7 +123,7 @@
return -1;
}
-#if defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
+#if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */
fp->_flags &= ~_IO_EOF_SEEN;
fp->_offset = pos;
#elif defined __sferror || defined __DragonFly__ || defined __ANDROID__
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