From owner-svn-ports-all@freebsd.org Tue Feb 9 19:26:31 2021 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A8664528B14; Tue, 9 Feb 2021 19:26:31 +0000 (UTC) (envelope-from jrm@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4DZtDP63TFz3jsq; Tue, 9 Feb 2021 19:26:29 +0000 (UTC) (envelope-from jrm@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 55147104DC; Tue, 9 Feb 2021 19:26:28 +0000 (UTC) (envelope-from jrm@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 119JQRxo050609; Tue, 9 Feb 2021 19:26:28 GMT (envelope-from jrm@FreeBSD.org) Received: (from jrm@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 119JQQL8050604; Tue, 9 Feb 2021 19:26:26 GMT (envelope-from jrm@FreeBSD.org) Message-Id: <202102091926.119JQQL8050604@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jrm set sender to jrm@FreeBSD.org using -f From: Joseph Mingrone Date: Tue, 9 Feb 2021 19:26:26 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r564803 - in head/sysutils: . rmlint rmlint/files X-SVN-Group: ports-head X-SVN-Commit-Author: jrm X-SVN-Commit-Paths: in head/sysutils: . rmlint rmlint/files X-SVN-Commit-Revision: 564803 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Feb 2021 19:26:31 -0000 Author: jrm Date: Tue Feb 9 19:26:26 2021 New Revision: 564803 URL: https://svnweb.freebsd.org/changeset/ports/564803 Log: New port, sysutils/rmlint: Remove duplicates from your filesystem PR: 236362 Submitted by: Joachim Werner (Maintainer) Added: head/sysutils/rmlint/ head/sysutils/rmlint/Makefile (contents, props changed) head/sysutils/rmlint/distinfo (contents, props changed) head/sysutils/rmlint/files/ head/sysutils/rmlint/files/patch-lib_utilities.h (contents, props changed) head/sysutils/rmlint/files/patch-lib_xattr.c (contents, props changed) head/sysutils/rmlint/pkg-descr (contents, props changed) Modified: head/sysutils/Makefile (contents, props changed) Modified: head/sysutils/Makefile ============================================================================== --- head/sysutils/Makefile Tue Feb 9 19:26:21 2021 (r564802) +++ head/sysutils/Makefile Tue Feb 9 19:26:26 2021 (r564803) @@ -1091,6 +1091,7 @@ SUBDIR += rhc SUBDIR += riak-cs SUBDIR += rinse + SUBDIR += rmlint SUBDIR += rocr SUBDIR += roct SUBDIR += rovclock Added: head/sysutils/rmlint/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rmlint/Makefile Tue Feb 9 19:26:26 2021 (r564803) @@ -0,0 +1,39 @@ +# $FreeBSD$ + +PORTNAME= rmlint +DISTVERSIONPREFIX= v +DISTVERSION= 2.10.1 +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 +GH_TAGNAME= a726d0cbf839d7a0f35962d67e0f60054d0364f6 +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 Added: head/sysutils/rmlint/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rmlint/distinfo Tue Feb 9 19:26:26 2021 (r564803) @@ -0,0 +1,3 @@ +TIMESTAMP = 1612880853 +SHA256 (sahib-rmlint-v2.10.1-a726d0cbf839d7a0f35962d67e0f60054d0364f6_GH0.tar.gz) = ac564a89b5e6cc389c41bf1bf88b82c317373ad4b8c420cbe7416a8dd1fe6799 +SIZE (sahib-rmlint-v2.10.1-a726d0cbf839d7a0f35962d67e0f60054d0364f6_GH0.tar.gz) = 2495749 Added: head/sysutils/rmlint/files/patch-lib_utilities.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rmlint/files/patch-lib_utilities.h Tue Feb 9 19:26:26 2021 (r564803) @@ -0,0 +1,13 @@ +--- lib/utilities.h.orig 2021-02-09 17:20:43 UTC ++++ lib/utilities.h +@@ -127,6 +127,10 @@ static inline void rm_sys_close(int fd) { + } + } + ++#ifndef HAVE_LSEEK64 ++#define lseek64 lseek ++#endif ++ + static inline gint64 rm_sys_preadv(int fd, const struct iovec *iov, int iovcnt, + RmOff offset) { + #if RM_IS_APPLE || RM_IS_CYGWIN Added: head/sysutils/rmlint/files/patch-lib_xattr.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rmlint/files/patch-lib_xattr.c Tue Feb 9 19:26:26 2021 (r564803) @@ -0,0 +1,46 @@ +--- lib/xattr.c.orig 2020-12-06 15:39:50 UTC ++++ lib/xattr.c +@@ -209,7 +209,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); + +@@ -287,7 +287,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); + +@@ -316,6 +316,8 @@ int rm_xattr_clear_hash(RmFile *file, RmSession *sessi + + #if HAVE_XATTR + ++#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; +@@ -484,5 +486,7 @@ int rm_xattr_mark_deduplicated(const char *path, bool + g_hash_table_destroy(map); + return result; + } ++ ++#endif + + #endif Added: head/sysutils/rmlint/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/rmlint/pkg-descr Tue Feb 9 19:26:26 2021 (r564803) @@ -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