diff --git a/sysutils/fsearch/Makefile b/sysutils/fsearch/Makefile index 80ea1f12937d..8353baa30a5c 100644 --- a/sysutils/fsearch/Makefile +++ b/sysutils/fsearch/Makefile @@ -1,27 +1,30 @@ PORTNAME= fsearch PORTVERSION= 0.2.2 PORTREVISION= 3 CATEGORIES= sysutils MAINTAINER= danfe@FreeBSD.org COMMENT= Fast file search utility for Unix-like systems WWW= https://cboxdoerfer.github.io/fsearch/ LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/License LIB_DEPENDS= libicuuc.so:devel/icu \ libpcre2-8.so:devel/pcre2 USE_GITHUB= yes GH_ACCOUNT= cboxdoerfer USES= meson gettext-tools gnome pkgconfig USE_GNOME= cairo gdkpixbuf2 gtk30 post-patch: @${PRINTF} '\n%s\n%s;\n' int \ 'strverscmp(const char *, const char *)' \ >> ${WRKSRC}/src/fsearch_string_utils.h + @${REINPLACE_CMD} -e 's,time_t,int64_t,g' \ + ${WRKSRC}/src/fsearch_time_utils.h \ + ${WRKSRC}/src/tests/test_time_utils.c .include diff --git a/sysutils/fsearch/files/patch-src_fsearch__time__utils.c b/sysutils/fsearch/files/patch-src_fsearch__time__utils.c new file mode 100644 index 000000000000..c6def574e2fa --- /dev/null +++ b/sysutils/fsearch/files/patch-src_fsearch__time__utils.c @@ -0,0 +1,34 @@ +--- src/fsearch_time_utils.c.orig 2022-08-22 10:06:20 UTC ++++ src/fsearch_time_utils.c +@@ -1,11 +1,11 @@ + #define _GNU_SOURCE + +-#include "fsearch_time_utils.h" +- + #include + #include + #include + ++#include "fsearch_time_utils.h" ++ + typedef enum FsearchDateTimeType { + FSEARCH_DATE_TIME_TYPE_SECOND, + FSEARCH_DATE_TIME_TYPE_MINUTE, +@@ -377,7 +377,7 @@ parse_implicit_date_time_constants(const char *str, st + } + + static bool +-parse_date_time_constants(const char *str, time_t *time_start_out, time_t *time_end_out) { ++parse_date_time_constants(const char *str, int64_t *time_start_out, int64_t *time_end_out) { + struct tm tm_start = {}; + struct tm tm_end = {}; + +@@ -469,7 +469,7 @@ round_down_tm_to_reference_with_date_time_accuracy(str + } + + bool +-fsearch_date_time_parse_interval(const char *str, time_t *time_start_out, time_t *time_end_out) { ++fsearch_date_time_parse_interval(const char *str, int64_t *time_start_out, int64_t *time_end_out) { + if (parse_date_time_constants(str, time_start_out, time_end_out)) { + return true; + }