Browse Source

attr: Update from 2.4.47 to 2.4.48

android-5
Fredrik Fornwall 7 years ago
parent
commit
c13f3ac6ae
  1. 11
      packages/attr/attr.c.patch
  2. 8
      packages/attr/build.sh
  3. 45
      packages/attr/include-xattr.h.patch
  4. 11
      packages/attr/tools-attr.c.patch

11
packages/attr/attr.c.patch

@ -1,11 +0,0 @@
diff -u -r ../attr-2.4.47/attr/attr.c ./attr/attr.c
--- ../attr-2.4.47/attr/attr.c 2013-05-19 06:53:54.000000000 +0200
+++ ./attr/attr.c 2017-02-02 21:51:24.680776395 +0100
@@ -26,6 +26,7 @@
#include <errno.h>
#include <string.h>
#include <locale.h>
+#include <libgen.h> /* for basename(3) */
#include <attr/attributes.h>
#include "config.h"

8
packages/attr/build.sh

@ -1,10 +1,10 @@
TERMUX_PKG_HOMEPAGE=http://savannah.nongnu.org/projects/attr/
TERMUX_PKG_DESCRIPTION="Utilities 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_SHA256=25772f653ac5b2e3ceeb89df50e4688891e21f723c460636548971652af0a859
TERMUX_PKG_VERSION=2.4.48
TERMUX_PKG_SRCURL=http://download.savannah.gnu.org/releases/attr/attr-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=5ead72b358ec709ed00bbf7a9eaef1654baad937c001c044fe8b74c57f5324e7
TERMUX_PKG_BUILD_IN_SRC=yes
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-gettext=no"
TERMUX_PKG_MAKE_INSTALL_TARGET="install install-lib"
# TERMUX_PKG_MAKE_INSTALL_TARGET="install install-lib"
# attr.5 man page is in linux-man-pages:
TERMUX_PKG_RM_AFTER_INSTALL="share/man/man5/attr.5"

45
packages/attr/include-xattr.h.patch

@ -1,45 +0,0 @@
diff -u -r ../attr-2.4.47/include/xattr.h ./include/xattr.h
--- ../attr-2.4.47/include/xattr.h 2013-05-19 00:53:54.000000000 -0400
+++ ./include/xattr.h 2016-09-09 09:29:40.387825768 -0400
@@ -34,29 +34,29 @@
__BEGIN_DECLS
extern int setxattr (const char *__path, const char *__name,
- const void *__value, size_t __size, int __flags) __THROW;
+ const void *__value, size_t __size, int __flags);
extern int lsetxattr (const char *__path, const char *__name,
- const void *__value, size_t __size, int __flags) __THROW;
+ const void *__value, size_t __size, int __flags);
extern int fsetxattr (int __filedes, const char *__name,
- const void *__value, size_t __size, int __flags) __THROW;
+ const void *__value, size_t __size, int __flags);
extern ssize_t getxattr (const char *__path, const char *__name,
- void *__value, size_t __size) __THROW;
+ void *__value, size_t __size);
extern ssize_t lgetxattr (const char *__path, const char *__name,
- void *__value, size_t __size) __THROW;
+ void *__value, size_t __size);
extern ssize_t fgetxattr (int __filedes, const char *__name,
- void *__value, size_t __size) __THROW;
+ void *__value, size_t __size);
extern ssize_t listxattr (const char *__path, char *__list,
- size_t __size) __THROW;
+ size_t __size);
extern ssize_t llistxattr (const char *__path, char *__list,
- size_t __size) __THROW;
+ size_t __size);
extern ssize_t flistxattr (int __filedes, char *__list,
- size_t __size) __THROW;
+ size_t __size);
-extern int removexattr (const char *__path, const char *__name) __THROW;
-extern int lremovexattr (const char *__path, const char *__name) __THROW;
-extern int fremovexattr (int __filedes, const char *__name) __THROW;
+extern int removexattr (const char *__path, const char *__name);
+extern int lremovexattr (const char *__path, const char *__name);
+extern int fremovexattr (int __filedes, const char *__name);
__END_DECLS

11
packages/attr/tools-attr.c.patch

@ -0,0 +1,11 @@
diff -u -r ../attr-2.4.48/tools/attr.c ./tools/attr.c
--- ../attr-2.4.48/tools/attr.c 2018-01-21 05:00:44.000000000 +0000
+++ ./tools/attr.c 2018-06-26 03:18:34.271455876 +0000
@@ -28,6 +28,7 @@
#include <errno.h>
#include <string.h>
#include <locale.h>
+#include <libgen.h> /* for basename(3) */
#include <attr/attributes.h>
Loading…
Cancel
Save