View | Details | Raw Unified | Return to bug 236362 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (+31 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	rmlint
4
PORTVERSION=	2.9.0
5
DISTVERSIONPREFIX=	v
6
CATEGORIES=	sysutils
7
8
MAINTAINER=	jockl@pianojockl.org
9
COMMENT=	Remove duplicates and other lint from your filesystem
10
11
LICENSE=	GPLv3
12
13
LIB_DEPENDS=	libelf.so:devel/libelf
14
BUILD_DEPENDS=	${LOCALBASE}/lib/libglib-2.0.so:devel/glib20 git:devel/git pkgconf:devel/pkgconf gettext:devel/gettext sphinx-build:textproc/py-sphinx
15
16
USES=		scons python:3.2-3.7
17
#gettext-runtime
18
#USES_GNOME=	glib20
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	sahib
21
GH_PROJECT=	rmlint
22
CC=	clang
23
24
MAKE_ARGS=	--without-gui --prefix=${STAGEDIR}${PREFIX}
25
26
.include <bsd.port.pre.mk>
27
28
post-patch:
29
	${REINPLACE_CMD} -e 's|lseek64|lseek|g' ${WRKSRC}/lib/utilities.h
30
31
.include <bsd.port.post.mk>
(-)distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1575144044
2
SHA256 (sahib-rmlint-v2.9.0_GH0.tar.gz) = a2d26863e0018efad60f0b1123e7cffd8ef764c8fb574a7987a49260e4e51c8f
3
SIZE (sahib-rmlint-v2.9.0_GH0.tar.gz) = 2483457
(-)files/patch-lib_xattr.c (+44 lines)
Line 0 Link Here
1
--- lib/xattr.c.orig	2019-08-20 20:40:07 UTC
2
+++ lib/xattr.c
3
@@ -207,7 +207,7 @@ static int rm_xattr_del(RmFile *file, const char *key,
4
 //  ACTUAL API FUNCTIONS  //
5
 ////////////////////////////
6
 
7
-int rm_xattr_write_hash(RmFile *file, RmSession *session) {
8
+int rm_xattr_write_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) {
9
     g_assert(file);
10
     g_assert(file->digest);
11
     g_assert(session);
12
@@ -236,7 +236,7 @@ int rm_xattr_write_hash(RmFile *file, RmSession *sessi
13
     return 0;
14
 }
15
 
16
-gboolean rm_xattr_read_hash(RmFile *file, RmSession *session) {
17
+gboolean rm_xattr_read_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) {
18
     g_assert(file);
19
     g_assert(session);
20
 
21
@@ -283,7 +283,7 @@ gboolean rm_xattr_read_hash(RmFile *file, RmSession *s
22
 #endif
23
 }
24
 
25
-int rm_xattr_clear_hash(RmFile *file, RmSession *session) {
26
+int rm_xattr_clear_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) {
27
     g_assert(file);
28
     g_assert(session);
29
 
30
@@ -310,6 +310,8 @@ int rm_xattr_clear_hash(RmFile *file, RmSession *sessi
31
 #endif
32
 }
33
 
34
+#if HAVE_XATTR
35
+
36
 GHashTable *rm_xattr_list(const char *path, bool follow_symlinks) {
37
     const size_t buf_size = 4096;
38
     const size_t val_size = 1024;
39
@@ -478,3 +480,5 @@ int rm_xattr_mark_deduplicated(const char *path, bool 
40
     g_hash_table_destroy(map);
41
     return result;
42
 }
43
+
44
+#endif
(-)pkg-descr (+5 lines)
Line 0 Link Here
1
rmlint is an "extremely fast tool to remove duplicates and other lint
2
from your filesystem."
3
4
WWW: https://rmlint.rtfd.org/
5
WWW: https://github.com/sahib/rmlint
(-)pkg-plist (+2 lines)
Line 0 Link Here
1
bin/rmlint
2
share/man/man1/rmlint.1.gz

Return to bug 236362