pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

attr: add update candidate for sysutils/attr



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%gatalith.at@localhost>
Pushed By:	wiz
Date:		Mon Mar 13 11:58:15 2023 +0100
Changeset:	1b2fa73e524d1d156db532361529188f76c15bb3

Modified Files:
	Makefile
Added Files:
	attr/DESCR
	attr/Makefile
	attr/PLIST
	attr/TODO
	attr/buildlink3.mk
	attr/distinfo
	attr/patches/patch-tools_attr.c

Log Message:
attr: add update candidate for sysutils/attr

Doesn't build on NetBSD though.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1b2fa73e524d1d156db532361529188f76c15bb3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                        |  1 +
 attr/DESCR                      |  4 +++
 attr/Makefile                   | 37 ++++++++++++++++++++++
 attr/PLIST                      | 26 ++++++++++++++++
 attr/TODO                       | 68 +++++++++++++++++++++++++++++++++++++++++
 attr/buildlink3.mk              | 13 ++++++++
 attr/distinfo                   |  6 ++++
 attr/patches/patch-tools_attr.c | 15 +++++++++
 8 files changed, 170 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index c3e64c5aae..52b6f150b4 100644
--- a/Makefile
+++ b/Makefile
@@ -223,6 +223,7 @@ SUBDIR+=	atac-seq
 SUBDIR+=	atanks
 SUBDIR+=	atlas
 SUBDIR+=	atompaw
+SUBDIR+=	attr
 SUBDIR+=	audacity-cmake
 SUBDIR+=	audiere
 SUBDIR+=	audio-mml
diff --git a/attr/DESCR b/attr/DESCR
new file mode 100644
index 0000000000..87231cead4
--- /dev/null
+++ b/attr/DESCR
@@ -0,0 +1,4 @@
+Commands for Manipulating Filesystem Extended Attributes
+
+Refer to the attr(5) manual page for general extended attribute
+(EA) information and references to other EA manual pages.
diff --git a/attr/Makefile b/attr/Makefile
new file mode 100644
index 0000000000..7a6d53efaa
--- /dev/null
+++ b/attr/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.7 2022/11/12 09:10:24 nikita Exp $
+
+ATTR_VERS=	2.5.1
+DISTNAME=	attr-${ATTR_VERS}
+CATEGORIES=	sysutils
+MASTER_SITES=	https://download.savannah.gnu.org/releases/attr/
+EXTRACT_SUFX=	.tar.xz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://savannah.nongnu.org/projects/attr
+COMMENT=	Commands for Manipulating Filesystem Extended Attributes
+LICENSE=	gnu-gpl-v2
+
+GNU_CONFIGURE=		yes
+USE_TOOLS+=		gmake msgfmt
+USE_LIBTOOL=		yes
+#INSTALL_SH_OVERRIDE=	no
+
+LDFLAGS.Darwin+=	-lintl
+#LDFLAGS.NetBSD+=	-lintl
+
+SUBST_CLASSES.Darwin+=	rmldarg
+SUBST_CLASSES.SunOS+=	rmldarg
+SUBST_STAGE.rmldarg=	pre-configure
+SUBST_FILES.rmldarg=	libattr/Makefile
+SUBST_SED.rmldarg=	-e '/version-script/d'
+
+pre-install:
+	cd ${WRKSRC}/libattr && env ${MAKE_ENV} \
+            ${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} \
+                -f ${MAKE_FILE} install-lib install-dev
+	cd ${WRKSRC}/include && env ${MAKE_ENV} \
+            ${MAKE_PROGRAM} ${INSTALL_MAKE_FLAGS} \
+                -f ${MAKE_FILE} install-dev
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/attr/PLIST b/attr/PLIST
new file mode 100644
index 0000000000..d2c47f0f91
--- /dev/null
+++ b/attr/PLIST
@@ -0,0 +1,26 @@
+@comment $NetBSD: PLIST,v 1.2 2016/08/21 21:09:27 markd Exp $
+bin/attr
+bin/getfattr
+bin/setfattr
+include/attr/attributes.h
+include/attr/error_context.h
+include/attr/libattr.h
+include/attr/xattr.h
+lib/libattr.la
+man/man1/attr.1
+man/man1/getfattr.1
+man/man1/setfattr.1
+man/man5/attr.5
+share/doc/attr/CHANGES.gz
+share/doc/attr/COPYING
+share/doc/attr/COPYING.LGPL
+share/doc/attr/PORTING
+share/doc/attr/README
+share/locale/cs/LC_MESSAGES/attr.mo
+share/locale/de/LC_MESSAGES/attr.mo
+share/locale/es/LC_MESSAGES/attr.mo
+share/locale/fr/LC_MESSAGES/attr.mo
+share/locale/gl/LC_MESSAGES/attr.mo
+share/locale/nl/LC_MESSAGES/attr.mo
+share/locale/pl/LC_MESSAGES/attr.mo
+share/locale/sv/LC_MESSAGES/attr.mo
diff --git a/attr/TODO b/attr/TODO
new file mode 100644
index 0000000000..062c3564b1
--- /dev/null
+++ b/attr/TODO
@@ -0,0 +1,68 @@
+Does not build on NetBSD:
+
+https://savannah.nongnu.org/bugs/index.php?63920
+
+  CC       libattr/la-syscalls.lo
+libattr/syscalls.c: In function 'libattr_setxattr':
+libattr/syscalls.c:36:17: error: '__NR_setxattr' undeclared (first use in this function); did you mean 'SYS_setxattr'?
+   36 |  return syscall(__NR_setxattr, path, name, value, size, flags);
+      |                 ^~~~~~~~~~~~~
+      |                 SYS_setxattr
+libattr/syscalls.c:36:17: note: each undeclared identifier is reported only once for each function it appears in
+libattr/syscalls.c: In function 'libattr_lsetxattr':
+libattr/syscalls.c:42:17: error: '__NR_lsetxattr' undeclared (first use in this function); did you mean 'SYS_lsetxattr'?
+   42 |  return syscall(__NR_lsetxattr, path, name, value, size, flags);
+      |                 ^~~~~~~~~~~~~~
+      |                 SYS_lsetxattr
+libattr/syscalls.c: In function 'libattr_fsetxattr':
+libattr/syscalls.c:48:17: error: '__NR_fsetxattr' undeclared (first use in this function); did you mean 'SYS_fsetxattr'?
+   48 |  return syscall(__NR_fsetxattr, filedes, name, value, size, flags);
+      |                 ^~~~~~~~~~~~~~
+      |                 SYS_fsetxattr
+libattr/syscalls.c: In function 'libattr_getxattr':
+libattr/syscalls.c:54:17: error: '__NR_getxattr' undeclared (first use in this function); did you mean 'SYS_getxattr'?
+   54 |  return syscall(__NR_getxattr, path, name, value, size);
+      |                 ^~~~~~~~~~~~~
+      |                 SYS_getxattr
+  CC       libmisc/high_water_alloc.lo
+libattr/syscalls.c: In function 'libattr_lgetxattr':
+libattr/syscalls.c:60:17: error: '__NR_lgetxattr' undeclared (first use in this function); did you mean 'SYS_lgetxattr'?
+   60 |  return syscall(__NR_lgetxattr, path, name, value, size);
+      |                 ^~~~~~~~~~~~~~
+      |                 SYS_lgetxattr
+  CC       libmisc/next_line.lo
+libattr/syscalls.c: In function 'libattr_fgetxattr':
+libattr/syscalls.c:66:17: error: '__NR_fgetxattr' undeclared (first use in this function); did you mean 'SYS_fgetxattr'?
+   66 |  return syscall(__NR_fgetxattr, filedes, name, value, size);
+      |                 ^~~~~~~~~~~~~~
+      |                 SYS_fgetxattr
+libattr/syscalls.c: In function 'libattr_listxattr':
+libattr/syscalls.c:71:17: error: '__NR_listxattr' undeclared (first use in this function); did you mean 'SYS_listxattr'?
+   71 |  return syscall(__NR_listxattr, path, list, size);
+      |                 ^~~~~~~~~~~~~~
+      |                 SYS_listxattr
+libattr/syscalls.c: In function 'libattr_llistxattr':
+libattr/syscalls.c:76:17: error: '__NR_llistxattr' undeclared (first use in this function); did you mean 'SYS_llistxattr'?
+   76 |  return syscall(__NR_llistxattr, path, list, size);
+      |                 ^~~~~~~~~~~~~~~
+      |                 SYS_llistxattr
+libattr/syscalls.c: In function 'libattr_flistxattr':
+libattr/syscalls.c:81:17: error: '__NR_flistxattr' undeclared (first use in this function); did you mean 'SYS_flistxattr'?
+   81 |  return syscall(__NR_flistxattr, filedes, list, size);
+      |                 ^~~~~~~~~~~~~~~
+      |                 SYS_flistxattr
+libattr/syscalls.c: In function 'libattr_removexattr':
+libattr/syscalls.c:86:17: error: '__NR_removexattr' undeclared (first use in this function); did you mean 'SYS_removexattr'?
+   86 |  return syscall(__NR_removexattr, path, name);
+      |                 ^~~~~~~~~~~~~~~~
+      |                 SYS_removexattr
+libattr/syscalls.c: In function 'libattr_lremovexattr':
+libattr/syscalls.c:91:17: error: '__NR_lremovexattr' undeclared (first use in this function); did you mean 'SYS_lremovexattr'?
+   91 |  return syscall(__NR_lremovexattr, path, name);
+      |                 ^~~~~~~~~~~~~~~~~
+      |                 SYS_lremovexattr
+libattr/syscalls.c: In function 'libattr_fremovexattr':
+libattr/syscalls.c:96:17: error: '__NR_fremovexattr' undeclared (first use in this function); did you mean 'SYS_fremovexattr'?
+   96 |  return syscall(__NR_fremovexattr, filedes, name);
+      |                 ^~~~~~~~~~~~~~~~~
+      |                 SYS_fremovexattr
diff --git a/attr/buildlink3.mk b/attr/buildlink3.mk
new file mode 100644
index 0000000000..5ad83403e7
--- /dev/null
+++ b/attr/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2016/08/21 21:09:27 markd Exp $
+
+BUILDLINK_TREE+=	attr
+
+.if !defined(ATTR_BUILDLINK3_MK)
+ATTR_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.attr+=	attr>=2.4.47nb1
+BUILDLINK_PKGSRCDIR.attr?=	../../wip/attr
+
+.endif	# ATTR_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-attr
diff --git a/attr/distinfo b/attr/distinfo
new file mode 100644
index 0000000000..64fb399041
--- /dev/null
+++ b/attr/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.4 2021/10/26 11:19:20 nia Exp $
+
+BLAKE2s (attr-2.5.1.tar.xz) = 52fb843466e2b96ad92b8f77fadb8da7cc65b838ca76380e8cb6a954769cb983
+SHA512 (attr-2.5.1.tar.xz) = 9e5555260189bb6ef2440c76700ebb813ff70582eb63d446823874977307d13dfa3a347dfae619f8866943dfa4b24ccf67dadd7e3ea2637239fdb219be5d2932
+Size (attr-2.5.1.tar.xz) = 318188 bytes
+SHA1 (patch-tools_attr.c) = 477e5f77394a4debb8ba5923fea29ea29c1cf4d4
diff --git a/attr/patches/patch-tools_attr.c b/attr/patches/patch-tools_attr.c
new file mode 100644
index 0000000000..7d256dc4d7
--- /dev/null
+++ b/attr/patches/patch-tools_attr.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Add missing header for basename()
+https://savannah.nongnu.org/bugs/index.php?63920
+
+--- tools/attr.c.orig	2019-08-12 08:39:01.000000000 +0000
++++ tools/attr.c
+@@ -28,6 +28,7 @@
+ #include <errno.h>
+ #include <string.h>
+ #include <locale.h>
++#include <libgen.h>
+ 
+ #include <attr/attributes.h>
+ 


Home | Main Index | Thread Index | Old Index