[pacman-dev] [GIT] The official pacman repository branch, master, updated. v5.0.1-84-gad27aa3

2016-10-11 Thread Allan McRae
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "The official pacman repository". The branch, master has been updated via ad27aa30fbcac7a07586072d29d3db50009994e9 (commit) vi

[pacman-dev] [PATCH][WIP] Allow replacing libcrypto with libnettle in pacman

2016-10-11 Thread Allan McRae
Add a --with-nettle configure option that directs pacman to use the libnettle hashing functions. Only one of the --with-libssl and --with-nettle configure options can be specified. Signed-off-by: Allan McRae --- I did not write this - it is based heavily off a patch submitted to flyspray. I will

[pacman-dev] [PATCH][WIP] Use coreutils binaries for checking/generating checksums

2016-10-11 Thread Allan McRae
If pacman is build against a crypto library other than openssl, it makes no sense to require makepkg to use it. The only currently considered alternative to openssl is nettle, which has no binary for base64 encode/decode. This means that we could replace the hashing cacluations with nettle-hash, b

Re: [pacman-dev] [PATCH][WIP] Allow replacing libcrypto with libnettle in pacman

2016-10-11 Thread Dave Reisner
On Tue, Oct 11, 2016 at 09:57:34PM +1000, Allan McRae wrote: > Add a --with-nettle configure option that directs pacman to use the libnettle > hashing functions. Only one of the --with-libssl and --with-nettle configure > options can be specified. > > Signed-off-by: Allan McRae > --- > > I did n

Re: [pacman-dev] [PATCH][WIP] Allow replacing libcrypto with libnettle in pacman

2016-10-11 Thread Allan McRae
On 11/10/16 23:32, Dave Reisner wrote: >> +#if HAVE_LIBSSL >> >MD5_CTX ctx; >> > +#else /* HAVE_LIBNETTLE */ > Seems naive... perhaps elif HAVE_LIBNETTLE and make the else case an > #error since it's unexpected ? > The whole block is surrounded by: #if defined HAVE_LIBSSL || defined HAVE_LI

[pacman-dev] [PATCH] Use f_bavail for diskspace calculations

2016-10-11 Thread Martin Kühne
From: Martin Kühne This should make pacman's behavior consistent with GNU coreutils df, as well as follow advice from affected filesystems' devs as well as `man statvfs`. This fixes FS#37402 Signed-off-by: Martin Kühne --- lib/libalpm/diskspace.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[pacman-dev] [PATCH] Resume downloads properly on another server

2016-10-11 Thread Martin Kühne
Package Downloads which fail for the next mirror to be used may resume and display negative download speeds. A detailed analysis revealed that the payload's progress in libalpm is not properly reset which ultimately leads to this annoying terminal noise due to a negative sign on the download speeds

Re: [pacman-dev] [PATCH] Use f_bavail for diskspace calculations

2016-10-11 Thread Allan McRae
On 12/10/16 02:36, Martin Kühne wrote: > From: Martin Kühne > > This should make pacman's behavior consistent with GNU coreutils df, > as well as follow advice from affected filesystems' devs as well as > `man statvfs`. > > This fixes FS#37402 > > Signed-off-by: Martin Kühne Thanks for sortin

Re: [pacman-dev] [PATCH v5] makepkg: Move parseopts from library to libmakepkg

2016-10-11 Thread Allan McRae
On 10/10/16 18:47, Alad Wenter wrote: > parseopts is used in makepkg and other scripts such as pacman-key as a > getopt replacement. > > Instead of including it in those scripts via a macro, move it to > libmakepkg/util/parseopts.sh and have scripts source this file where > appropriate. > > To ke

[pacman-dev] [PATCH] Generalise makepkg-wrapper to handle any script using libmakepkg

2016-10-11 Thread Allan McRae
Signed-off-by: Allan McRae --- scripts/Makefile.am | 27 +++- scripts/{makepkg-wrapper.sh.in => wrapper.sh.in} | 4 ++-- 2 files changed, 19 insertions(+), 12 deletions(-) rename scripts/{makepkg-wrapper.sh.in => wrapper.sh.in} (84%) diff --git

Re: [pacman-dev] [PATCH v5] makepkg: Move parseopts from library to libmakepkg

2016-10-11 Thread Allan McRae
On 12/10/16 14:28, Allan McRae wrote: > On 10/10/16 18:47, Alad Wenter wrote: >> parseopts is used in makepkg and other scripts such as pacman-key as a >> getopt replacement. >> >> Instead of including it in those scripts via a macro, move it to >> libmakepkg/util/parseopts.sh and have scripts sour