FreeBSD Bugzilla – Attachment 220227 Details for
Bug 236362
new port: sysutils/rmlint: Remove duplicates and other lint from your filesystem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated patch to add sysutils/rmlint
rmlint.diff (text/plain), 3.78 KB, created by
Joseph Mingrone
on 2020-12-03 18:32:31 UTC
(
hide
)
Description:
Updated patch to add sysutils/rmlint
Filename:
MIME Type:
Creator:
Joseph Mingrone
Created:
2020-12-03 18:32:31 UTC
Size:
3.78 KB
patch
obsolete
>diff --git a/sysutils/Makefile b/sysutils/Makefile >index ff60fcfd41ee..62b02ee8be0b 100644 >--- a/sysutils/Makefile >+++ b/sysutils/Makefile >@@ -1088,6 +1088,7 @@ > SUBDIR += rhc > SUBDIR += riak-cs > SUBDIR += rinse >+ SUBDIR += rmlint > SUBDIR += rocr > SUBDIR += roct > SUBDIR += rovclock >diff --git a/sysutils/rmlint/Makefile b/sysutils/rmlint/Makefile >new file mode 100644 >index 000000000000..060cec38d1d0 >--- /dev/null >+++ b/sysutils/rmlint/Makefile >@@ -0,0 +1,43 @@ >+# $FreeBSD$ >+ >+PORTNAME= rmlint >+DISTVERSIONPREFIX= v >+DISTVERSION= 2.9.0 >+CATEGORIES= sysutils >+ >+MAINTAINER= jockl@pianojockl.org >+COMMENT= Remove duplicates and other lint from your filesystem >+ >+LICENSE= GPLv3 >+ >+BUILD_DEPENDS= ${LOCALBASE}/lib/libglib-2.0.so:devel/glib20 \ >+ gettext:devel/gettext \ >+ pkgconf:devel/pkgconf \ >+ sphinx-build:textproc/py-sphinx@${PY_FLAVOR} >+LIB_DEPENDS= libelf.so:devel/libelf \ >+ libjson-glib-1.0.so:devel/json-glib >+ >+USES= gnome python scons >+USE_GITHUB= yes >+GH_ACCOUNT= sahib >+GH_PROJECT= rmlint >+USE_GNOME= glib20 >+ >+MAKE_ARGS= --actual-prefix=${PREFIX} \ >+ --prefix=${STAGEDIR}${PREFIX} \ >+ --without-gui >+ >+PLIST_FILES= bin/rmlint \ >+ share/man/man1/rmlint.1.gz >+ >+OPTIONS_DEFINE= NLS >+ >+NLS_USES= gettext-runtime >+NLS_CONFIGURE_WITH= gettext >+ >+.include <bsd.port.pre.mk> >+ >+post-patch: >+ ${REINPLACE_CMD} -e 's|lseek64|lseek|g' ${WRKSRC}/lib/utilities.h >+ >+.include <bsd.port.post.mk> >diff --git a/sysutils/rmlint/distinfo b/sysutils/rmlint/distinfo >new file mode 100644 >index 000000000000..1d6b14a4a6bd >--- /dev/null >+++ b/sysutils/rmlint/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1607016826 >+SHA256 (sahib-rmlint-v2.9.0_GH0.tar.gz) = a2d26863e0018efad60f0b1123e7cffd8ef764c8fb574a7987a49260e4e51c8f >+SIZE (sahib-rmlint-v2.9.0_GH0.tar.gz) = 2483457 >diff --git a/sysutils/rmlint/files/patch-lib_xattr.c b/sysutils/rmlint/files/patch-lib_xattr.c >new file mode 100644 >index 000000000000..4d907faa721b >--- /dev/null >+++ b/sysutils/rmlint/files/patch-lib_xattr.c >@@ -0,0 +1,44 @@ >+--- lib/xattr.c.orig 2019-08-20 20:40:07 UTC >++++ lib/xattr.c >+@@ -207,7 +207,7 @@ static int rm_xattr_del(RmFile *file, const char *key, >+ // ACTUAL API FUNCTIONS // >+ //////////////////////////// >+ >+-int rm_xattr_write_hash(RmFile *file, RmSession *session) { >++int rm_xattr_write_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) { >+ g_assert(file); >+ g_assert(file->digest); >+ g_assert(session); >+@@ -236,7 +236,7 @@ int rm_xattr_write_hash(RmFile *file, RmSession *sessi >+ return 0; >+ } >+ >+-gboolean rm_xattr_read_hash(RmFile *file, RmSession *session) { >++gboolean rm_xattr_read_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) { >+ g_assert(file); >+ g_assert(session); >+ >+@@ -283,7 +283,7 @@ gboolean rm_xattr_read_hash(RmFile *file, RmSession *s >+ #endif >+ } >+ >+-int rm_xattr_clear_hash(RmFile *file, RmSession *session) { >++int rm_xattr_clear_hash(__attribute__((unused)) RmFile *file, __attribute__((unused)) RmSession *session) { >+ g_assert(file); >+ g_assert(session); >+ >+@@ -310,6 +310,8 @@ int rm_xattr_clear_hash(RmFile *file, RmSession *sessi >+ #endif >+ } >+ >++#if HAVE_XATTR >++ >+ GHashTable *rm_xattr_list(const char *path, bool follow_symlinks) { >+ const size_t buf_size = 4096; >+ const size_t val_size = 1024; >+@@ -478,3 +480,5 @@ int rm_xattr_mark_deduplicated(const char *path, bool >+ g_hash_table_destroy(map); >+ return result; >+ } >++ >++#endif >diff --git a/sysutils/rmlint/pkg-descr b/sysutils/rmlint/pkg-descr >new file mode 100644 >index 000000000000..18fa82561ad1 >--- /dev/null >+++ b/sysutils/rmlint/pkg-descr >@@ -0,0 +1,5 @@ >+rmlint is an "extremely fast tool to remove duplicates and other lint >+from your filesystem." >+ >+WWW: https://rmlint.rtfd.org/ >+WWW: https://github.com/sahib/rmlint
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jrm
:
maintainer-approval?
Actions:
View
|
Diff
Attachments on
bug 236362
:
202683
|
202687
|
202811
|
209633
| 220227 |
222295
|
222304