On Mon, Oct 28, 2024 at 10:05:47AM +0100, Andreas Tille wrote: > Am Sat, Oct 26, 2024 at 03:44:11PM +0100 schrieb Reuben Thomas: > > The main points are that a) there was never a program called 'perforate', > > b) the program 'zum' that did the "perforating" is now otiose, as file > > systems and cp between them take care of this functionality, and so c) the > > useful functionality left in the package was mainly the 'finddup' program, > > which I have updated, along with the minor utility 'findstrip', and the > > 'findcore' script which I've added to my version of the package. This in principle agrees with my original analysis. (I'll also note that findstrip doesn't work: $ find . -xdev -type f \! \( -name '*.o' -o -name '*.so.*' -o -name 'lib*' -o -name '*.do' \) -print | xargs file | awk -F: '$2 ~ /not .*strip/ { print $1 }' xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option and findcore finds files matching "(vg)?core(.[1-9]+)?" which is not what coredumps are called in the general case, so the utility of that utility is questionable as an addition.)
I've written /a/ finddup like every three months for the past few years, and every time I'm annoyed util-linux hardlink(1) doesn't have a "just give me the duplicate files" mode, so I just wrote it: https://lore.kernel.org/util-linux/5acde6a911f086ab8d2314c5b76eb76075140941.1730139540.git.nabijaczlew...@nabijaczleweli.xyz/t/#u hardlink(1) is a widely-used canonical implementation with ongoing maintenance (naturally, it's in util-linux). > What do you consider the best way of action here? If the patchset lands in util-linux, that renders the entire package obsolescent. I'd say 1. fix the bit where finddup reads the whole file into memory (this is in git already) 2. don't add more binaries or whatever, don't shim out zum like it is in git 3. declare the package obsolescent, > The whole thing should be explained in NEWS.Debian. since there's a non-insignificant popcon here 4. remove it from forky This code is best left in 1996 where it came from. Here's a NEWS snippet: -- >8 -- Since trixie, the perforate package is obsolescent: + zum-like functionality is provided by cp --sparse and --reflink (this is the default for sparse files!) + finddup-like functionality is provided by hardlink -lc Please migrate away from perforate, it will be removed from forky.
signature.asc
Description: PGP signature