Re: [pacman-dev] [PATCH] Replace CURLOPT_PROGRESSFUNCTION with CURLOPT_XFERINFOFUNCTION

2016-08-31 Thread Will Miles
On 2016-08-30 11:01 PM, Allan McRae wrote: OK. I don't think pacman is used anywhere where curl older than August 2013 is an issue... Allan I guess I'm the exception that proves the rule -- I'm using pacman on QNX 6.6, which ships with libcurl 7.24.0 from Jan 2012.Alas, RTOS folks are

[pacman-dev] [PATCH v2] Fix handling of unavailable backup hashes

2016-04-11 Thread Will Miles
the contents of its backup=() list. Signed-off-by: Will Miles --- lib/libalpm/add.c | 6 +++--- lib/libalpm/be_local.c | 6 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/libalpm/add.c b/lib/libalpm/add.c index f5c9a95..629e2a5 100644 --- a/lib/libalpm/add.c +++ b

Re: [pacman-dev] [PATCH] Fix segfault during install when a package update adds a new file to 'backup'

2016-04-05 Thread Will Miles
On 2016-04-05 12:13 AM, Andrew Gregory wrote: On 04/01/16 at 10:52am, Will Miles wrote: When a new package release adds a new entry to the backup list, no hash exists for that file in the previously installed package version. Fix two places where that nonexistent hash may be dereferenced

Re: [pacman-dev] [PATCH] Fix segfault during install when a package update adds a new file to 'backup'

2016-04-04 Thread Will Miles
On 2016-04-02 2:55 AM, Allan McRae wrote: On 02/04/16 00:52, Will Miles wrote: When a new package release adds a new entry to the backup list, no hash exists for that file in the previously installed package version. Fix two places where that nonexistent hash may be dereferenced. Signed-off

[pacman-dev] [PATCH] Fix segfault during install when a package update adds a new file to 'backup'

2016-04-01 Thread Will Miles
When a new package release adds a new entry to the backup list, no hash exists for that file in the previously installed package version. Fix two places where that nonexistent hash may be dereferenced. Signed-off-by: Will Miles --- lib/libalpm/add.c | 2 +- lib/libalpm/be_local.c | 4

[pacman-dev] [PATCH] Fix segfaults during install when a package adds a new file to 'backup'

2016-02-29 Thread Will Miles
When adding a new package release adds a new entry to the 'backup' list, no hash exists for that file in the previously installed package version. This patch fixes two places where that nonexistent hash may be dereferenced. Signed-off-by: Will Miles --- lib/libalpm/add.c |

Re: [pacman-dev] [PATCH 3/6] common: Add support for wcwidth and wcswidth for systems without.

2015-03-03 Thread Will Miles
wrote: From what I understand, if gnulib does work then we should add it as a git submodule and adjust our configure to use functions from there when necessary. We can look into that further if you gnulib does lots of what you need. Thanks, Allan On 28/02/15 07:20, Will Miles wrote: Gnulib does i

Re: [pacman-dev] [PATCH 3/6] common: Add support for wcwidth and wcswidth for systems without.

2015-02-27 Thread Will Miles
Gnulib does indeed have the necessary bits for patches 3, 4, and 5. Consider them withdrawn, then, and I'll update my QNX build environment accordingly. -Will On 2/27/2015 3:27 PM, Allan McRae wrote: On 28/02/15 06:24, Allan McRae wrote: On 28/02/15 05:43, Will Miles wrote: The spe

[pacman-dev] [PATCH 5/6] libalpm: Add mkdtemp for systems that do not have it

2015-02-27 Thread Will Miles
Signed-off-by: Will Miles --- configure.ac| 6 +++--- lib/libalpm/trans.c | 35 +++ 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index da1953e..0a1ef44 100644 --- a/configure.ac +++ b/configure.ac @@ -303,9

[pacman-dev] [PATCH 6/6] Add QNX operating system specific implementations to libalpm and pacman.

2015-02-27 Thread Will Miles
Signed-off-by: Will Miles --- lib/libalpm/diskspace.c | 37 ++ lib/libalpm/util.c | 69 + src/pacman/pacman.c | 4 +++ 3 files changed, 110 insertions(+) diff --git a/lib/libalpm/diskspace.c b/lib/libalpm

[pacman-dev] [PATCH 3/6] common: Add support for wcwidth and wcswidth for systems without.

2015-02-27 Thread Will Miles
The specific implementation has been copied from Markus Kuhn at http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c Signed-off-by: Will Miles --- src/common/util-common.c | 225 +++ src/common/util-common.h | 6 ++ 2 files changed, 231 insertions(+) diff

[pacman-dev] [PATCH 2/6] common: Avoid errors on systems that define strnlen but not strndup

2015-02-27 Thread Will Miles
Add a configure test for a system library supplied strnlen, and disable the embedded version in common if one is found. Signed-off-by: Will Miles --- configure.ac | 4 ++-- src/common/util-common.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac

[pacman-dev] QNX patches, v2

2015-02-27 Thread Will Miles
This patch set is a cleaned up version of the the first attempt to add QNX support. Changes from the first version include: * Using Markus Kuhn's implementation of wcwidth and wcswidth * Breaking the mkdtemp replacement into its own patch, with a proper configure test instead of #ifdef __QNX__

[pacman-dev] [PATCH 4/6] common: Add support for systems without asprintf/vasprintf.

2015-02-27 Thread Will Miles
Signed-off-by: Will Miles --- configure.ac | 2 +- src/common/util-common.c | 27 +++ src/common/util-common.h | 7 +++ 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 359d61b..da1953e 100644 --- a

[pacman-dev] [PATCH 1/6] util: Use util-common for strndup in pacsort and pactree

2015-02-27 Thread Will Miles
This small refactor reduces the number of replications of the local imeplementation of strndup. Signed-off-by: Will Miles --- src/util/Makefile.am | 4 ++-- src/util/pacsort.c | 23 +-- src/util/pactree.c | 24 ++-- src/util/util-common.c | 1

[pacman-dev] [PATCH 4/5] common: Add support for systems without asprintf/vasprintf.

2015-02-26 Thread Will Miles
Signed-off-by: Will Miles --- configure.ac | 2 +- src/common/util-common.c | 27 +++ src/common/util-common.h | 7 +++ 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 359d61b..da1953e 100644 --- a

[pacman-dev] [PATCH 1/5] util: Use util-common for strndup in pacsort and pactree

2015-02-26 Thread Will Miles
This small refactor reduces the number of replications of the local imeplementation of strndup. Signed-off-by: Will Miles --- src/util/Makefile.am | 4 ++-- src/util/pacsort.c | 23 +-- src/util/pactree.c | 24 ++-- src/util/util-common.c | 1

[pacman-dev] [PATCH 5/5] Add QNX operating system specific implementations to libalpm and pacman.

2015-02-26 Thread Will Miles
Signed-off-by: Will Miles --- lib/libalpm/diskspace.c | 38 +++ lib/libalpm/trans.c | 37 +++ lib/libalpm/util.c | 68 + src/pacman/pacman.c | 4 +++ 4 files changed, 147 insertions

[pacman-dev] [PATCH 2/5] common: Avoid errors on systems that define strnlen but not strndup

2015-02-26 Thread Will Miles
Add a configure test for a system library supplied strnlen, and disable the embedded version in common if one is found. Signed-off-by: Will Miles --- configure.ac | 4 ++-- src/common/util-common.c | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac

[pacman-dev] [PATCH 3/5] common: Add support for wcwidth and wcswidth for systems without.

2015-02-26 Thread Will Miles
The specific implementation has been borrowed from glibc-2.21. Signed-off-by: Will Miles --- src/common/util-common.c | 142 +++ src/common/util-common.h | 6 ++ 2 files changed, 148 insertions(+) diff --git a/src/common/util-common.c b/src/common

[pacman-dev] Patches for QNX support

2015-02-26 Thread Will Miles
This patch set adds support for the QNX RTOS. The first four patches are essentially workarounds for QNX's libc; the last patch implements the QNX-specific sections in libalpm.