mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
community/quvi: correctly use XSI-compliant strerror_r
This commit is contained in:
parent
1316e88606
commit
35d8e54169
@ -12,6 +12,7 @@ makedepends="$depends_dev glib-dev"
|
|||||||
subpackages="$pkgname-doc"
|
subpackages="$pkgname-doc"
|
||||||
source="https://downloads.sourceforge.net/project/quvi/${pkgver%.*}/quvi/quvi-$pkgver.tar.xz
|
source="https://downloads.sourceforge.net/project/quvi/${pkgver%.*}/quvi/quvi-$pkgver.tar.xz
|
||||||
fix-memcorruption.patch
|
fix-memcorruption.patch
|
||||||
|
strerror-xsi.patch
|
||||||
"
|
"
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
@ -36,5 +37,8 @@ package() {
|
|||||||
make DESTDIR="$pkgdir" install
|
make DESTDIR="$pkgdir" install
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="ef50160b7f2b6b8c9049eb995cb26da3100b10e7af8206d98d2e128cde300ceb05a24dded06d7d49c0e691fcc2de5a4c5c9e9f439d40ca52cd0a3a24330c6d79 quvi-0.9.5.tar.xz
|
sha512sums="
|
||||||
81984ac85b7346fe448455f16b561d483159843e92fe46803b737f688e5d6c9174c11d90b3071c0d000e9fe95547502bf9461240652da4f792ce5ccca46af794 fix-memcorruption.patch"
|
ef50160b7f2b6b8c9049eb995cb26da3100b10e7af8206d98d2e128cde300ceb05a24dded06d7d49c0e691fcc2de5a4c5c9e9f439d40ca52cd0a3a24330c6d79 quvi-0.9.5.tar.xz
|
||||||
|
81984ac85b7346fe448455f16b561d483159843e92fe46803b737f688e5d6c9174c11d90b3071c0d000e9fe95547502bf9461240652da4f792ce5ccca46af794 fix-memcorruption.patch
|
||||||
|
d37cb7754be661f806a5923bb36891795c4d139b2cedb60cab8113b8bb95aa7814f1cb780816e31411bdb6e55b8ba1d819b3ef3f4da1146e941c9a3c193aadad strerror-xsi.patch
|
||||||
|
"
|
||||||
|
12
community/quvi/strerror-xsi.patch
Normal file
12
community/quvi/strerror-xsi.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- quvi-0.9.5.orig/src/util/strerr.c
|
||||||
|
+++ quvi-0.9.5/src/util/strerr.c
|
||||||
|
@@ -32,7 +32,8 @@
|
||||||
|
gchar *r;
|
||||||
|
#ifdef HAVE_STRERROR_R
|
||||||
|
gchar b[256];
|
||||||
|
- r = g_strdup(strerror_r(errno, b, sizeof(b)));
|
||||||
|
+ strerror_r(errno, b, sizeof(b));
|
||||||
|
+ r = g_strdup(b);
|
||||||
|
#else
|
||||||
|
r = g_strdup(strerror(errno));
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user