[PATCH] bootstrap: Avoid gnulib operations if not needed.

2018-04-28 Thread Paul Smith
* build-aux/bootstrap: Remove unused variable gnulib_mk. Set $gnulib_extra_files early so it can be overridden in .conf. Remove redundant --import flag from $gnulib_tool_options. Set $use_gnulib to false if no gnulib modules or files are needed. If $use_gnulib is false, don't do anything related

Re: [PATCH] bootstrap: Avoid gnulib operations if not needed

2018-04-28 Thread Paul Eggert
That email was empty, so I attempted to repair Evolution's damage in the patch you originally sent, and installed the attached into the Gnulib master on Savannah. Please give a try. Thanks. >From b48a0b952b98b15fb1abb1f18f3676a647935a5f Mon Sep 17 00:00:00 2001 From: Paul Smith

Re: [PATCH] bootstrap: Avoid gnulib operations if not needed

2018-04-28 Thread Paul Eggert
Paul Smith wrote: I've never figured out how to use git send-email with SMTP servers which require secure connections. To get that to work, I put something like the following into my ~/.gitconfig file (I used my own info of course, with UCLA-CS's SMTP server). Admittedly it's a bit of a

[PATCH] bootstrap: Avoid gnulib operations if not needed

2018-04-28 Thread Paul Smith

Re: [PATCH] bootstrap: Avoid gnulib operations if not needed

2018-04-28 Thread Paul Smith
On Sat, 2018-04-28 at 14:00 -0700, Paul Eggert wrote: > Thanks, but it looks like Evolution broke the patch by folding lines; could > you > please resend it as an attachment? "git format-patch" is a good way to format > patches, and I use "git send-email" to send them if you prefer not to use

[PATCH] manywarnings: port to GCC 8.0

2018-04-28 Thread Paul Eggert
* build-aux/gcc-warning.spec: Add -Wcatch-value, -Wclass-memaccess, -Wdo-subscript, -Wextra-semi. Adjust to the fact that the GCC help message now mentions operands for -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation, -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,

[PATCH] bootstrap: Avoid gnulib operations if not needed

2018-04-28 Thread Paul Smith
* build-aux/bootstrap: Remove unused variable gnulib_mk. Set $gnulib_extra_files early so it can be overridden in .conf. Remove redundant --import flag from $gnulib_tool_options. Set $use_gnulib to false if no gnulib modules or files are needed. If $use_gnulib is false, don't do anything related

[PATCH v3 2/4] sha256sum: use kernel crypto API

2018-04-28 Thread Matteo Croce
Use AF_ALG for sha224 and sha256 too Signed-off-by: Matteo Croce --- lib/sha256.c | 32 ++-- modules/crypto/sha256 | 6 +- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/lib/sha256.c b/lib/sha256.c index

[PATCH v3 1/4] sha1sum: use AF_ALG when available

2018-04-28 Thread Matteo Croce
Linux supports accessing kernel crypto API via AF_ALG since version 2.6.38. Coreutils uses libcrypto when available and fallbacks to generic C implementation of various hashing functions. Add a generic afalg_stream() function which uses AF_ALG to calculate the hash of a stream and use sendfile()

[PATCH v3 4/4] md5sum: use kernel crypto API

2018-04-28 Thread Matteo Croce
Use AF_ALG for md5 too Signed-off-by: Matteo Croce --- lib/md5.c | 18 +- modules/crypto/md5 | 6 +- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/lib/md5.c b/lib/md5.c index 68d00a6c7..307abbbe7 100644 --- a/lib/md5.c +++

[PATCH v3 3/4] sha512sum: use kernel crypto API

2018-04-28 Thread Matteo Croce
Use AF_ALG for sha384 and sha512 too Signed-off-by: Matteo Croce --- lib/sha512.c | 32 ++-- modules/crypto/sha512 | 6 +- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/lib/sha512.c b/lib/sha512.c index