Frederic,

rust in ports contains a patch to use getexecpath() for current_exe() that
makes this workaround outdate.

make test works better than before:

test result: FAILED. 164 passed; 2 failed; 1 ignored; 0 measured; 0 filtered 
out; finished in 0.71s

and after:

test result: FAILED. 165 passed; 1 failed; 1 ignored; 0 measured; 0 filtered 
out; finished in 0.74s

Ok to drop it?

Index: Makefile
===================================================================
RCS file: /home/cvs/ports/sysutils/fclones/Makefile,v
diff -u -p -r1.3 Makefile
--- Makefile    7 Mar 2025 20:34:18 -0000       1.3
+++ Makefile    5 Sep 2026 15:54:11 -0000
@@ -1,6 +1,7 @@
 COMMENT =              efficient duplicate file finder
 
 DIST_TUPLE =           github pkolaczk fclones v0.35.0 .
+REVISION =             0
 
 CATEGORIES =           sysutils
 
Index: patches/patch-fclones_src_log_rs
===================================================================
RCS file: patches/patch-fclones_src_log_rs
diff -N patches/patch-fclones_src_log_rs
--- patches/patch-fclones_src_log_rs    13 Nov 2023 18:54:44 -0000      1.1.1.1
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,17 +0,0 @@
-Index: fclones/src/log.rs
---- fclones/src/log.rs.orig
-+++ fclones/src/log.rs
-@@ -72,12 +73,7 @@ impl StdLog {
-     pub fn new() -> StdLog {
-         StdLog {
-             progress_bar: Mutex::new(Weak::default()),
--            program_name: std::env::current_exe()
--                .unwrap()
--                .file_name()
--                .unwrap()
--                .to_string_lossy()
--                .to_string(),
-+            program_name: "fclones".to_string(),
-             log_stderr_to_stdout: false,
-             no_progress: false,
-         }


-- 
wbr, Kirill

Reply via email to