diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-16 11:00:39 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-03-16 11:00:39 +0000 |
commit | 29db8fdc62a425024e5ec0cb4bf710a2b88ac2f6 (patch) | |
tree | 1ae9f3c21bdb928fe317768c95d9cdd15a04c791 /main/libgpg-error | |
parent | f5bcb24db9fdce08492af30dfb17e38b0f7b7269 (diff) | |
download | aports-29db8fdc62a425024e5ec0cb4bf710a2b88ac2f6.tar.bz2 aports-29db8fdc62a425024e5ec0cb4bf710a2b88ac2f6.tar.xz |
main/libgpg-error: build fix for armhf and aarch64
fixes compile failure:
logging.c: In function '_gpgrt_log_printhex':
logging.c:1153:49: error: incompatible type for argument 4 of '_gpgrt_logv_printhex'
_gpgrt_logv_printhex (buffer, length, NULL, NULL);
^~~~
logging.c:1097:1: note: expected 'va_list {aka __va_list}' but argument is of type 'void *'
_gpgrt_logv_printhex (const void *buffer, size_t length,
^~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'main/libgpg-error')
-rw-r--r-- | main/libgpg-error/APKBUILD | 5 | ||||
-rw-r--r-- | main/libgpg-error/fix-va_list.patch | 22 |
2 files changed, 25 insertions, 2 deletions
diff --git a/main/libgpg-error/APKBUILD b/main/libgpg-error/APKBUILD index d41baa2343..c7833f5410 100644 --- a/main/libgpg-error/APKBUILD +++ b/main/libgpg-error/APKBUILD @@ -13,7 +13,7 @@ makedepends="" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-lisp:lisp:noarch" source="https://gnupg.org/ftp/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2 - " + fix-va_list.patch" builddir="$srcdir"/$pkgname-$pkgver build () { cd "$builddir" @@ -42,4 +42,5 @@ lisp() { mv "$pkgdir"/usr/share "$subpkgdir"/usr/share/ } -sha512sums="967e5e9930ca2bcd4cc790d69c907684500120c1363ed384a5540ccd4e9a387977c7352da03ff7e0feeacedf073131fc0db9eea9d097d0fbd389fd0bc9b5c209 libgpg-error-1.28.tar.bz2" +sha512sums="967e5e9930ca2bcd4cc790d69c907684500120c1363ed384a5540ccd4e9a387977c7352da03ff7e0feeacedf073131fc0db9eea9d097d0fbd389fd0bc9b5c209 libgpg-error-1.28.tar.bz2 +36b8d9248fe4ce8efc6dc046f3b0e658f54e95fdd21afa1b262c2b87acbddcc46f68ccd475d761038e38f2991903f51ebe2c13bd9351fa650cfa2f08c2235429 fix-va_list.patch" diff --git a/main/libgpg-error/fix-va_list.patch b/main/libgpg-error/fix-va_list.patch new file mode 100644 index 0000000000..5a8ba01686 --- /dev/null +++ b/main/libgpg-error/fix-va_list.patch @@ -0,0 +1,22 @@ +diff --git a/src/logging.c b/src/logging.c +index 1a4f620..12b9494 100644 +--- a/src/logging.c ++++ b/src/logging.c +@@ -1141,7 +1141,7 @@ void + _gpgrt_log_printhex (const void *buffer, size_t length, + const char *fmt, ...) + { +- va_list arg_ptr; ++ va_list arg_ptr = {}; + + if (fmt) + { +@@ -1150,7 +1150,7 @@ _gpgrt_log_printhex (const void *buffer, size_t length, + va_end (arg_ptr); + } + else +- _gpgrt_logv_printhex (buffer, length, NULL, NULL); ++ _gpgrt_logv_printhex (buffer, length, NULL, arg_ptr); + } + + |