- author of buku, nnn, googler...
- writes high quality tools to optimize productivity
- wrote them to minimize time at a computer
jarun / advcpmv Goto Github PK
View Code? Open in Web Editor NEWA patch for GNU Core Utilities cp, mv to add progress bars
A patch for GNU Core Utilities cp, mv to add progress bars
Tested with patch version 9.3 & 9.4
Overall progress always show 100% while individual file progress not moving at all.
If I copy/move lots of files and it asks me to overwrite each file I want to choose 'Yes for all'. How to do it?
Hi, god. Cloud this utils add multi process or parallel features? Hear i have 10P datas to trasfer,I want to add it
......
checking where the gettext function comes from... libc
checking for a traditional french locale... (cached) none
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating po/Makefile.in
config.status: creating gnulib-tests/Makefile
config.status: creating lib/config.h
config.status: executing depfiles commands
config.status: error: in `/home/wutea7/advcpmv/coreutils-9.1':
config.status: error: Something went wrong bootstrapping makefile fragments
for automatic dependency tracking. If GNU make was not used, consider
re-running the configure script with MAKE="gmake" (or whatever is
necessary). You can also try re-running configure with the
'--disable-dependency-tracking' option to at least be able to build
the package (albeit without support for automatic dependency tracking).
See `config.log' for more details
Here is the config.log
Please help, thanks!
Hi,
Very nice patch, really improves cp
and mv
a lot.
Until now I used Midnight Commander to do large copy or move operations, because of the lack of progress bar. Now I switched over to your patched versions.
There are two informations that I am missing during a copy/move operation, though:
It would be nice if you could add those infos.
last several lines of the error code:
/data/data/com.termux/files/usr/include/bits/fortify/string.h:206:42: error: use of undeclared identifier '__USE_FORTIFY_LEVEL'
return __strlcpy_chk(dst, src, size, __bos(dst));
^
./lib/cdefs.h:144:48: note: expanded from macro '__bos'
#define __bos(ptr) __builtin_object_size (ptr, __USE_FORTIFY_LEVEL > 1)
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [Makefile:12734: lib/malloc/libcoreutils_a-dynarray_at_failure.o] Error 1
make[2]: Leaving directory '/data/data/com.termux/files/home/github/advcpmv/coreutils-9.1'
make[1]: *** [Makefile:21011: all-recursive] Error 1
make[1]: Leaving directory '/data/data/com.termux/files/home/github/advcpmv/coreutils-9.1'
make: *** [Makefile:8269: all] Error 2
20 errors generated, which are error: use of undeclared identifier '__USE_FORTIFY_LEVEL'
and above a lot of warning of sha384 sha512 sha256 sha224 sha1 md5 etc.
Can these two command(cp/mv) programs be compiled and integrated into the Openwrt system?
The file paths in the v9.3 patch do not have the same prefixes that the previous versions do and breaks install.sh.
Attempting to run install.sh gives messages like the following. Note that the last line is a prompt for user input:
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/ls.c 2023-03-13 14:08:10.000000000 -0400
|+++ src/ls.c 2023-07-02 16:10:41.947444700 -0400
--------------------------
File to patch:
It also breaks things like using nix's fetchpatch
function to fetch the patch in order to apply it to coreutils.
It is close to working:
* Applying advcpmv-0.9-9.3.patch ...
patching file src/ls.c
Hunk #1 succeeded at 2275 (offset -4 lines).
patching file src/copy.c
Hunk #1 succeeded at 120 (offset -1 lines).
Hunk #2 succeeded at 443 (offset -1 lines).
Hunk #3 FAILED at 475.
Hunk #4 succeeded at 517 (offset -1 lines).
Hunk #5 succeeded at 535 (offset -1 lines).
Hunk #6 succeeded at 719 (offset -1 lines).
Hunk #7 succeeded at 798 (offset -1 lines).
Hunk #8 succeeded at 876 (offset -1 lines).
Hunk #9 succeeded at 1850 (offset 1 line).
Hunk #10 succeeded at 1931 (offset 1 line).
Hunk #11 succeeded at 1952 (offset 1 line).
1 out of 11 hunks FAILED -- saving rejects to file src/copy.c.rej
patching file src/copy.h
patching file src/cp.c
Hunk #1 FAILED at 140.
Hunk #3 succeeded at 685 (offset 16 lines).
Hunk #4 succeeded at 901 with fuzz 1 (offset 17 lines).
Hunk #5 succeeded at 986 (offset 17 lines).
Hunk #6 FAILED at 1108.
Hunk #7 succeeded at 1186 (offset 17 lines).
Hunk #8 succeeded at 1370 (offset 24 lines).
2 out of 8 hunks FAILED -- saving rejects to file src/cp.c.rej
patching file src/mv.c
Hunk #1 FAILED at 79.
Hunk #2 succeeded at 169 (offset -1 lines).
Hunk #3 succeeded at 395 (offset -1 lines).
Hunk #4 FAILED at 459.
Hunk #5 succeeded at 471 (offset -1 lines).
2 out of 5 hunks FAILED -- saving rejects to file src/mv.c.rej
If I do
$ advmv -g /path/to/big/dir /path/in/same/drive
It will delay for a bit while it calculates the size of the directory, then it moves them instantly.
If the move is going to be instant, there's no need to show progress so the progress in such a scenario should either be suppressed or an option to suppress it should be available (so one can set an alias to always use).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.