pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/spice-server spice-server: Another SunOS fix.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f8ae60bb5f0b
branches:  trunk
changeset: 444573:f8ae60bb5f0b
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Sun Jan 10 14:53:47 2021 +0000

description:
spice-server: Another SunOS fix.

diffstat:

 sysutils/spice-server/distinfo                         |   4 ++--
 sysutils/spice-server/patches/patch-tools_reds__stat.c |  11 +++++++----
 2 files changed, 9 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r e4672a7defcd -r f8ae60bb5f0b sysutils/spice-server/distinfo
--- a/sysutils/spice-server/distinfo    Sun Jan 10 14:52:52 2021 +0000
+++ b/sysutils/spice-server/distinfo    Sun Jan 10 14:53:47 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2021/01/05 15:14:38 jperkin Exp $
+$NetBSD: distinfo,v 1.4 2021/01/10 14:53:47 jperkin Exp $
 
 SHA1 (spice-0.14.3.tar.bz2) = f5968dd5df5f64805d093b4c85b4165959e6c65b
 RMD160 (spice-0.14.3.tar.bz2) = fe99d8d0db4b275b1d19dc9a7231144133c5bfa0
@@ -8,4 +8,4 @@
 SHA1 (patch-server_red-worker.c) = 93699283fa99299bd672f930e8b90f5951d3726a
 SHA1 (patch-server_tests_test-stream.c) = 4b06d20626f06581c40164aa6d670e9b6530cdee
 SHA1 (patch-server_tests_test-websocket.c) = 19bca4dd6f441336588a1ae224f9d3d9b9984917
-SHA1 (patch-tools_reds__stat.c) = 3464bbb8b25aa871adfbc501412f84ad925f6509
+SHA1 (patch-tools_reds__stat.c) = dcf0a7152577dcd12719971a13e5fd00f0cf15d6
diff -r e4672a7defcd -r f8ae60bb5f0b sysutils/spice-server/patches/patch-tools_reds__stat.c
--- a/sysutils/spice-server/patches/patch-tools_reds__stat.c    Sun Jan 10 14:52:52 2021 +0000
+++ b/sysutils/spice-server/patches/patch-tools_reds__stat.c    Sun Jan 10 14:53:47 2021 +0000
@@ -1,15 +1,18 @@
-$NetBSD: patch-tools_reds__stat.c,v 1.1 2020/02/06 21:57:42 kamil Exp $
+$NetBSD: patch-tools_reds__stat.c,v 1.2 2021/01/10 14:53:47 jperkin Exp $
 
-Add NetBSD support.
+Add SunOS and NetBSD support.
 
---- tools/reds_stat.c.orig     2019-04-30 08:51:05.000000000 +0000
+--- tools/reds_stat.c.orig     2020-02-27 11:26:12.000000000 +0000
 +++ tools/reds_stat.c
-@@ -144,7 +144,11 @@ int main(int argc, char **argv)
+@@ -144,7 +144,14 @@ int main(int argc, char **argv)
              num_of_nodes = reds_stat->num_of_nodes;
              shm_old_size = shm_size;
              shm_size = header_size + num_of_nodes * sizeof(SpiceStatNode);
 +#if defined(__NetBSD__)
 +            reds_stat = mremap(reds_stat, shm_old_size, NULL, shm_size, 0);
++#elif defined(__sun)
++            munmap(reds_stat, shm_old_size);
++            reds_stat = (SpiceStat *)mmap(NULL, shm_size, PROT_READ, MAP_SHARED, fd, 0);
 +#else
              reds_stat = mremap(reds_stat, shm_old_size, shm_size, MREMAP_MAYMOVE);
 +#endif



Home | Main Index | Thread Index | Old Index