Add disabled attr package

This commit is contained in:
Fredrik Fornwall 2015-12-13 15:04:49 -05:00
parent 9da06063db
commit df3c683132
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,25 @@
diff -u -r ../attr-2.4.47/libmisc/walk_tree.c ./libmisc/walk_tree.c
--- ../attr-2.4.47/libmisc/walk_tree.c 2013-05-19 00:53:54.000000000 -0400
+++ ./libmisc/walk_tree.c 2015-12-13 14:47:30.178955536 -0500
@@ -122,7 +122,11 @@
close_another_dir:
/* Close the topmost directory handle still open. */
closed = closed->prev;
+#ifdef __ANDROID__
+ closed->pos = -1;
+#else
closed->pos = telldir(closed->stream);
+#endif
closedir(closed->stream);
closed->stream = NULL;
num_dir_handles++;
@@ -188,7 +192,9 @@
if (!dir.stream)
return err + func(path, NULL, flags |
WALK_TREE_FAILED, arg);
+#ifndef __ANDROID__
seekdir(dir.stream, dir.pos);
+#endif
closed = closed->next;
num_dir_handles--;

View File

@ -0,0 +1,10 @@
TERMUX_PKG_HOMEPAGE=http://savannah.nongnu.org/projects/attr/
TERMUX_PKG_DESCRIPTION="Commands for manipulating filesystem extended attributes."
TERMUX_PKG_VERSION=2.4.47
TERMUX_PKG_SRCURL=http://download.savannah.gnu.org/releases/attr/attr-${TERMUX_PKG_VERSION}.src.tar.gz
TERMUX_PKG_FOLDERNAME=attr-$TERMUX_PKG_VERSION
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-gettext=no"
TERMUX_PKG_MAKE_INSTALL_TARGET="install install-lib"
CPPFLAGS+=" -D__THROW="