Browse Source

Add disabled attr package

android-5
Fredrik Fornwall 9 years ago
parent
commit
df3c683132
  1. 25
      disabled-packages/attr/attr.patch
  2. 10
      disabled-packages/attr/build.sh

25
disabled-packages/attr/attr.patch

@ -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--;

10
disabled-packages/attr/build.sh

@ -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="
Loading…
Cancel
Save