pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/multimedia/xine-lib xine-lib: Don't try to reimplement...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7829e3f24780
branches:  trunk
changeset: 427138:7829e3f24780
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Apr 12 11:09:05 2020 +0000

description:
xine-lib: Don't try to reimplement memcpy. Should fix clang build.

diffstat:

 multimedia/xine-lib/Makefile                               |   4 +-
 multimedia/xine-lib/distinfo                               |   3 +-
 multimedia/xine-lib/patches/patch-include_xine_xineutils.h |  36 ++++++++++++++
 3 files changed, 40 insertions(+), 3 deletions(-)

diffs (69 lines):

diff -r c09dce67b99a -r 7829e3f24780 multimedia/xine-lib/Makefile
--- a/multimedia/xine-lib/Makefile      Sun Apr 12 11:09:03 2020 +0000
+++ b/multimedia/xine-lib/Makefile      Sun Apr 12 11:09:05 2020 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.159 2020/04/02 17:46:40 nia Exp $
+# $NetBSD: Makefile,v 1.160 2020/04/12 11:09:05 nia Exp $
 
-PKGREVISION=   1
+PKGREVISION=   2
 
 .include "Makefile.common"
 
diff -r c09dce67b99a -r 7829e3f24780 multimedia/xine-lib/distinfo
--- a/multimedia/xine-lib/distinfo      Sun Apr 12 11:09:03 2020 +0000
+++ b/multimedia/xine-lib/distinfo      Sun Apr 12 11:09:05 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.111 2020/04/02 15:52:46 nia Exp $
+$NetBSD: distinfo,v 1.112 2020/04/12 11:09:05 nia Exp $
 
 SHA1 (xine-lib-1.2.10.tar.xz) = 66fe7a7d372f74967df46834167f85f5c2d43ae7
 RMD160 (xine-lib-1.2.10.tar.xz) = 1dba24e9e6c4f21e766d9b696dd02f4e645f4c8c
@@ -10,6 +10,7 @@
 SHA1 (patch-fa) = 9312a3bab4ae8482a208948277f1d11fb7eaaf8c
 SHA1 (patch-include_xine_attributes.h) = e7cb5f50d95a2523e2de83250fe11a12f0126a7f
 SHA1 (patch-include_xine_post.h) = 3ada327a7f171bdf680074b30f005099011a201c
+SHA1 (patch-include_xine_xineutils.h) = a8e32954433fcbd035dfe1416623c3e22ac754c2
 SHA1 (patch-src-post-audio-stretch.c) = 6f950bcd47fdf68b691744dc105f59f821748ce1
 SHA1 (patch-src-post-audio-upmix.c) = 70ca6babfa9a7add0ac70a6024fcff429e1bc49d
 SHA1 (patch-src-post-audio-upmix_mono.c) = 2c70ded10118cbeed5be3c948886f7311ddb7bbd
diff -r c09dce67b99a -r 7829e3f24780 multimedia/xine-lib/patches/patch-include_xine_xineutils.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/multimedia/xine-lib/patches/patch-include_xine_xineutils.h        Sun Apr 12 11:09:05 2020 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-include_xine_xineutils.h,v 1.1 2020/04/12 11:09:05 nia Exp $
+
+Don't reimplement memcpy. Actually not compatible with clang:
+
+../../include/xine/xineutils.h:211:63: error: fields must have a constant size:
+'variable length array in structure' extension will never be supported
+
+--- include/xine/xineutils.h.orig      2019-12-13 20:47:50.000000000 +0000
++++ include/xine/xineutils.h
+@@ -200,26 +200,6 @@ extern void *(* xine_fast_memcpy)(void *
+ /* len (usually) < 500, but not a build time constant. */
+ #define xine_small_memcpy(xsm_to,xsm_from,xsm_len) memcpy (xsm_to, xsm_from, xsm_len)
+ 
+-#if (defined(__GNUC__) && (__GNUC__ >= 4)) || defined(__clang__)
+-#  if defined(ARCH_X86)
+-#    undef xine_small_memcpy
+-static inline void *xine_small_memcpy (void *to, const void *from, size_t len) {
+-  void *t2 = to;
+-  size_t l2 = len;
+-  __asm__ __volatile__ (
+-    "cld\n\trep movsb"
+-    : "=S" (from), "=D" (t2), "=c" (l2), "=m" (*(struct {char foo[len];} *)to)
+-    : "0"  (from), "1"  (t2), "2"  (l2)
+-    : "cc"
+-  );
+-  (void)from;
+-  (void)t2;
+-  (void)l2;
+-  return to;
+-}
+-#  endif
+-#endif
+-
+ /*
+  * Debug stuff
+  */



Home | Main Index | Thread Index | Old Index