summaryrefslogtreecommitdiffstats
path: root/source/a/sharutils
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/sharutils')
-rwxr-xr-xsource/a/sharutils/sharutils.SlackBuild3
-rw-r--r--source/a/sharutils/sharutils.glibc228.diff20
2 files changed, 23 insertions, 0 deletions
diff --git a/source/a/sharutils/sharutils.SlackBuild b/source/a/sharutils/sharutils.SlackBuild
index 7c9d938d3..535fa714c 100755
--- a/source/a/sharutils/sharutils.SlackBuild
+++ b/source/a/sharutils/sharutils.SlackBuild
@@ -68,6 +68,9 @@ cd $TMP
rm -rf sharutils-$VERSION
tar xvf $CWD/sharutils-$VERSION.tar.?z || exit 1
cd sharutils-$VERSION || exit 1
+
+zcat $CWD/sharutils.glibc228.diff.gz | patch -p1 --verbose || exit 1
+
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
diff --git a/source/a/sharutils/sharutils.glibc228.diff b/source/a/sharutils/sharutils.glibc228.diff
new file mode 100644
index 000000000..1f3a25d97
--- /dev/null
+++ b/source/a/sharutils/sharutils.glibc228.diff
@@ -0,0 +1,20 @@
+--- ./lib/fseeko.c.orig 2015-05-30 10:34:54.000000000 -0500
++++ ./lib/fseeko.c 2018-09-18 19:01:59.959070461 -0500
+@@ -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__