pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/multimedia/vlc2 vlc2: Workaround missing strerror_l on...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/28610b537e56
branches:  trunk
changeset: 382493:28610b537e56
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Jul 05 14:24:38 2018 +0000

description:
vlc2: Workaround missing strerror_l on SunOS.

diffstat:

 multimedia/vlc2/distinfo                        |   3 ++-
 multimedia/vlc2/patches/patch-src_posix_error.c |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r cead91d5fb0a -r 28610b537e56 multimedia/vlc2/distinfo
--- a/multimedia/vlc2/distinfo  Thu Jul 05 14:20:43 2018 +0000
+++ b/multimedia/vlc2/distinfo  Thu Jul 05 14:24:38 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.27 2018/06/16 09:49:00 markd Exp $
+$NetBSD: distinfo,v 1.28 2018/07/05 14:24:38 jperkin Exp $
 
 SHA1 (vlc-2.2.6.tar.xz) = d299dce6a5c94af4292657b6cb99c44654024f70
 RMD160 (vlc-2.2.6.tar.xz) = b2727834bcbbf0d274e3a0b4a3317f3b914f9ad4
@@ -31,3 +31,4 @@
 SHA1 (patch-modules_services__discovery_mtp.c) = 03ad7d3efecc95bb27aaa216b78719662999102e
 SHA1 (patch-modules_video__output_sdl.c) = fcb5daacd5fe0627dcf1eaad79c8e2a27d6c948a
 SHA1 (patch-src_config_file.c) = 87c53b6d3a2d1fa9cf5b7e8e672ab2a08cafe3bb
+SHA1 (patch-src_posix_error.c) = 7892d00bdcb21a0ab0e3b5424354a647b14fe819
diff -r cead91d5fb0a -r 28610b537e56 multimedia/vlc2/patches/patch-src_posix_error.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/vlc2/patches/patch-src_posix_error.c   Thu Jul 05 14:24:38 2018 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_posix_error.c,v 1.1 2018/07/05 14:24:38 jperkin Exp $
+
+Missing strerror_l workaround for SunOS.
+
+--- src/posix/error.c.orig     2014-08-14 07:20:04.000000000 +0000
++++ src/posix/error.c
+@@ -31,6 +31,9 @@
+ 
+ static const char *vlc_strerror_l(int errnum, const char *lname)
+ {
++#ifdef __sun
++    const char *buf = strerror(errnum);
++#else
+     int saved_errno = errno;
+     locale_t loc = newlocale(LC_MESSAGES_MASK, lname, (locale_t)0);
+ 
+@@ -51,6 +54,7 @@ static const char *vlc_strerror_l(int er
+     const char *buf = strerror_l(errnum, loc);
+ 
+     freelocale(loc);
++#endif
+     return buf;
+ }
+ 



Home | Main Index | Thread Index | Old Index