synocli-file: update rmlint to support reflink#5462
synocli-file: update rmlint to support reflink#5462hgy59 merged 7 commits intoSynoCommunity:masterfrom
Conversation
|
currently build of synocli-file fails due to #5463 |
|
Hi @hgy59 The build completes and packages the .spk , when I test on my DS-1821 . rmlint --version shows the new version 2.10.1 . |
can you please check whether } features[] = {{.name = "mounts", .enabled = HAVE_BLKID & HAVE_GIO_UNIX},
{.name = "nonstripped", .enabled = HAVE_LIBELF},
{.name = "fiemap", .enabled = HAVE_FIEMAP},
{.name = "sha512", .enabled = HAVE_SHA512},
{.name = "bigfiles", .enabled = HAVE_BIGFILES},
{.name = "intl", .enabled = HAVE_LIBINTL},
{.name = "replay", .enabled = HAVE_JSON_GLIB},
{.name = "xattr", .enabled = HAVE_XATTR},
{.name = "btrfs-support", .enabled = HAVE_BTRFS_H},
{.name = NULL, .enabled = 0}};
/* clang-format on */So now only the BTW: to build a package for rmlint only, you can build it in spksrc/diyspk/rmlint (diyspk = do it yourself spk). That is much faster and does not need the rust patch |
|
Thanks @hgy59 Hopefully your PR can be included into the next release of synocli-file Also I made a patch for rmlint/lib/format/sh.c.in as upstream the original code actually has the checks for reflink warning commented out and so always prints the warning when the clone or reflink handler is used, Please feel free to use --- lib/formats/sh.c.in.orig 2020-06-13 19:12:45.000000000 +0930
+++ lib/formats/sh.c.in 2022-10-27 22:22:57.623108880 +1030
@@ -218,9 +218,9 @@
};
static void rm_sh_warn_if_reflink_not_compiled_in(void) {
-#if !HAVE_BLKID || !HAVE_GIO_UNIX
+ if(!HAVE_BLKID || !HAVE_GIO_UNIX) {
g_printerr("\n%sWARNING:%s reflink will not be emitted: please compile with blkid and gio-unix-2.0.\n", YELLOW, RESET);
-#endif
+ }
}
static void rm_sh_parse_handlers(RmFmtHandlerShScript *self, const char *handler_cfg) { |
|
@t-rutter reading your patch i doubt that there is an error in the source code. |
- update cross/file to match the version of the build environment
- Update bat to v0.22.1 - Update fdupes to v2.2.1 - Update fzf to v.0.34.0 - Update jdupes to v1.21.0 - Update tree to v2.0.4
@t-rutter |
* update rmlint to support reflink * libelf: fix 64-bit support for cross compile * synocli-file: update file (follow up to SynoCommunity#5441) - update cross/file to match the version of the build environment * update several tools: - Update bat to v0.22.1 - Update fdupes to v2.2.1 - Update fzf to v.0.34.0 - Update jdupes to v1.21.0 - Update tree to v2.0.4 * use dedicated extract folder to compile util-linux for libblkid * final fix for rmlint to support reflink in synocli-file packages * rmlint: add json-glib to support to read json caches
Description
add libblkid to support reflink in rmlint (option to Optimize non-rotational disks)
add libelf to support to "Find non-stripped binaries" with rmlint
since the build environment was update to debian bullseye (Docker: Install rustc & upgrade image to Debian 11 bullseye #5441) we need to update cross/file to the same version
Fixes #5459
Checklist
all-supportedcompleted successfullyType of change